:root {
    --rojo-principal: #e60000;
    --negro: #1a1a1a;
    --gris-fondo: #f8f9fa;
    --blanco: #ffffff;
    --whatsapp: #25D366;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body {
    background-color: var(--gris-fondo);
    color: var(--negro);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Cabecera y Navegación */
.header {
    background-color: var(--blanco);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 40px;
    width: auto;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--rojo-principal);
}

.eirl-text {
    font-size: 0.85rem;
    font-weight: 400;
    text-transform: lowercase;
    color: #555;
}

nav a {
    text-decoration: none;
    color: var(--negro);
    font-weight: 600;
    margin-left: 15px;
    transition: color 0.3s;
}

nav a:hover, nav a.active {
    color: var(--rojo-principal);
}

/* Contenido Principal */
.main-content {
    flex: 1;
    padding: 30px 5%;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

/* Hero alegórico estilizado */
.hero-section {
    position: relative;
    background: url('https://images.unsplash.com/photo-1521737711867-e3b97375f902?auto=format&fit=crop&w=1200&q=80') center/cover no-repeat;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.hero-overlay {
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.9) 0%, rgba(230, 0, 0, 0.75) 100%);
    color: var(--blanco);
    padding: 50px 30px;
    text-align: center;
}

.hero-badge {
    background-color: var(--rojo-principal);
    font-size: 0.75rem;
    letter-spacing: 2px;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: bold;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 12px;
}

.hero-overlay h1 {
    font-size: 2.3rem;
    margin-bottom: 10px;
}

.hero-overlay p {
    font-size: 1.1rem;
    opacity: 0.95;
    max-width: 700px;
    margin: 0 auto;
}

/* Sección Carta de Presentación */
.presentation-letter {
    background: var(--blanco);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.presentation-letter h2 {
    color: var(--negro);
    font-size: 1.4rem;
}

.red-line {
    border: 0;
    height: 3px;
    background: var(--rojo-principal);
    width: 60px;
    margin: 12px 0 25px 0;
}

.letter-body {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 15px;
}

/* Tarjetas de Pilares/Valores */
.pillars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

.pillar-card {
    background: var(--gris-fondo);
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid var(--rojo-principal);
    text-align: left;
}

.pillar-icon {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.pillar-card h4 {
    color: var(--negro);
    margin-bottom: 6px;
    font-size: 1.05rem;
}

.pillar-card p {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Firma */
.letter-signature {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    color: #444;
}

.signature-name {
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--negro);
    margin-top: 5px;
}

.signature-title {
    color: var(--rojo-principal);
    font-weight: 600;
    font-size: 0.95rem;
}

.signature-company {
    font-size: 0.85rem;
    color: #777;
}

/* Grilla Uniforme de Servicios (Oficios/Profesiones) */
.grid-services {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    margin-bottom: 25px;
    align-items: stretch;
}

.card {
    background: var(--blanco);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-top: 4px solid var(--rojo-principal);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    overflow: hidden;
}

.card-with-img {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
}

.card-content h3 {
    margin-bottom: 12px;
    color: var(--negro);
    font-size: 1.15rem;
}

.card-img {
    width: 100%;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    object-fit: cover;
    object-position: center;
    display: block;
    border-top: 1px solid #eee;
}

.card ul {
    list-style-type: square;
    padding-left: 20px;
}

.card ul li {
    margin-bottom: 8px;
    font-size: 0.92rem;
    line-height: 1.4;
}

/* Formularios */
.form-box {
    background: var(--blanco);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.btn-ws {
    background-color: var(--whatsapp);
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-ws:hover {
    background-color: #1eb956;
}

.btn-primary {
    background-color: var(--rojo-principal);
    color: white;
    border: none;
    padding: 12px 20px;
    width: 100%;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background-color: #b30000;
}

footer {
    background: var(--negro);
    color: var(--blanco);
    text-align: center;
    padding: 15px;
    font-size: 0.9rem;
    margin-top: auto;
}