@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;700&display=swap');

:root {
    --azul-profundo: #0a1f44;
    --dorado-suave: #c5a059;
    --blanco: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    color: #333;
    overflow-x: hidden;
}

/* --- NAVEGACIÓN (INALTERADA) --- */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 8%;
    background: var(--blanco);
    border-bottom: 1px solid #eee;
    position: relative;
    z-index: 10;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo { height: 65px; }

.nav-links {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav-links a {
    text-decoration: none;
    color: var(--azul-profundo);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ============================================================
   SECCIÓN INICIO: ESPACIADO MEJORADO + FONDO BLANCO
   ============================================================ */
.inicio-hero {
    position: relative;
    height: calc(100vh - 116px); 
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Todo alineado a la izquierda */
    justify-content: center; 
    text-align: left;
    padding: 0 10%;
    background-color: var(--blanco);
    
    /* Efecto de transparencia hacia la izquierda */
    background-image: linear-gradient(to right, 
                    #ffffff 45%, 
                    rgba(255,255,255,0) 100%), 
                    url('Imagenes/hero-firma.jpg');
    
    background-size: cover;
    background-position: right center; 
    background-repeat: no-repeat;
    color: var(--azul-profundo); 
}

.inicio-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: 5.5rem;
    color: var(--azul-profundo); 
    line-height: 0.95;
    
    /* CAMBIO: MÁS ESPACIO DEBAJO DEL TÍTULO */
    margin-bottom: 40px; 
    
    max-width: 650px; 
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: -2px;
}

.inicio-hero p {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    color: var(--dorado-suave); 
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-weight: 700;
    max-width: 500px;
    
    /* CAMBIO: MUCHO MÁS ESPACIO PARA SEPARAR EL BOTÓN */
    margin-bottom: 50px; 
}

/* Aseguramos que el botón en el hero se vea bien alineado */
.inicio-hero .btn-principal {
    margin-top: 10px; /* Un extra por seguridad */
}

/* ============================================================ */


/* --- TODO LO SIGUIENTE SE MANTIENE EXACTAMENTE IGUAL --- */

/* --- ESTILO PÁGINA NOSOTROS --- */
.firma-main {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
    align-items: center;
}

.texto-seccion {
    padding: 60px 10% 60px 15%;
}

.texto-seccion h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: var(--azul-profundo);
    margin-bottom: 20px;
    text-transform: uppercase;
}

.resaltado {
    font-size: 1.25rem;
    font-weight: 700;
    color: #555;
    margin-bottom: 30px;
    border-left: 3px solid var(--dorado-suave);
    padding-left: 20px;
}

.contenido p {
    line-height: 1.8;
    margin-bottom: 20px;
    font-size: 1.1rem;
}

.imagen-seccion img {
    width: 100%;
    height: 80vh;
    object-fit: cover;
}

/* --- ELEMENTOS COMUNES --- */
.subtitulo {
    font-size: 1.25rem;
    line-height: 1.7;
    color: #555;
    max-width: 500px;
    margin-bottom: 45px;
    border-left: 3px solid var(--dorado-suave);
    padding-left: 20px;
}

.btn-principal {
    background: var(--dorado-suave); 
    color: white;
    padding: 20px 45px;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    display: inline-block;
    transition: 0.3s;
}

.btn-principal:hover {
    background: #a68545;
}

/* --- FOOTER AZUL --- */
footer {
    padding: 35px 0;
    background-color: #0a1f44;
    text-align: center;
}

footer p {
    color: #ffffff !important;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin: 0;
}

/* --- DISEÑO PREMIUM PARA LA SECCIÓN NUESTRA FIRMA --- */
.firma-wrapper {
    padding: 80px 10%;
    background-color: #fcfcfc;
    min-height: 75vh;
}

.firma-header {
    margin-bottom: 50px;
}

.linea-superior {
    display: block;
    width: 40px;
    height: 5px;
    background-color: #c5a059;
    margin-bottom: 15px;
}

.firma-header h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem;
    color: #0a1f44;
    letter-spacing: -2px;
}

.firma-grid-premium {
    display: grid;
    grid-template-columns: 0.8fr 1.1fr 1.1fr;
    gap: 2px;
    background-color: #eee;
    border: 1px solid #eee;
}

.card-ilustracion {
    background-color: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 0;
}

.img-decorativa {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    filter: grayscale(100%) contrast(110%);
}

.card-texto {
    background-color: #fcfcfc;
    padding: 60px;
}

.dorado-text {
    color: #c5a059;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 25px;
    font-weight: 700;
}

.card-texto p {
    font-size: 1.1rem;
    line-height: 1.9;
    color: #444;
}

/* --- SECCIÓN SERVICIOS --- */
.servicios-estelares {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2px;
    background-color: #eee;
    border: 1px solid #eee;
}

.tarjeta-premium {
    text-decoration: none;
    background-color: #fff;
    display: block;
    padding: 60px 40px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
}

.tarjeta-premium:hover {
    background-color: #0a1f44;
    transform: translateY(-5px);
    z-index: 2;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.numero-servicio {
    display: block;
    font-size: 0.8rem;
    color: #c5a059;
    margin-bottom: 20px;
    font-weight: 700;
    transition: color 0.3s;
}

.tarjeta-premium h2.dorado-text {
    font-size: 1.4rem;
    margin-bottom: 15px;
    transition: color 0.3s;
}

.tarjeta-premium p {
    color: #666;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    transition: color 0.3s;
}

.flecha-link {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #c5a059;
    font-weight: 700;
}

.tarjeta-premium:hover h2, 
.tarjeta-premium:hover p,
.tarjeta-premium:hover .flecha-link {
    color: #ffffff !important;
}

.otros-servicios-container {
    margin-top: 100px;
    padding-top: 50px;
    border-top: 1px solid #eee;
}

.titulo-secundario {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #0a1f44;
    margin-bottom: 40px;
    text-align: center;
}

.lista-otros-servicios {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 50px;
}

.item-otros {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    padding: 15px 0;
    border-bottom: 1px solid #f9f9f9;
}

.item-otros strong {
    color: #c5a059;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 5px;
}

.cta-final {
    margin-top: 60px;
    text-align: center;
}

.btn-simple {
    display: inline-block;
    color: #0a1f44;
    text-decoration: none;
    font-weight: bold;
    border: 2px solid #0a1f44;
    padding: 15px 40px;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.btn-simple:hover {
    background-color: #0a1f44;
    color: #fff;
}

/* --- SECCIÓN CONTACTO --- */
.contacto-layout {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 80px;
    align-items: start;
}

.bloque-info {
    margin-bottom: 40px;
}

.bloque-info p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 8px;
}

.contacto-form-container {
    background: #fff;
    padding: 50px;
    border: 1px solid #eee;
    box-shadow: 0 10px 30px rgba(0,0,0,0.02);
}

.grupo-input {
    margin-bottom: 25px;
}

.grupo-input label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 10px;
    color: #0a1f44;
}

.grupo-input input, 
.grupo-input select, 
.grupo-input textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

.btn-enviar-contacto {
    width: 100%;
    background-color: #0a1f44;
    color: #fff;
    padding: 20px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.3s;
}

.btn-enviar-contacto:hover {
    background-color: #c5a059;
}

/* --- RESPONSIVO --- */
@media (max-width: 900px) {
    .firma-main, .contacto-layout { grid-template-columns: 1fr; }
    
    /* En móvil vuelve a ser centrado y blanco sobre la imagen oscura */
    .inicio-hero { 
        align-items: center; 
        text-align: center; 
        padding: 0 5%; 
        background-position: center; 
        background-image: linear-gradient(rgba(10, 31, 68, 0.7), rgba(10, 31, 68, 0.7)), 
                        url('Imagenes/hero-firma.jpg'); 
    }
    
    .inicio-hero h1 { 
        font-size: 3rem; 
        color: white; /* Texto blanco en móvil */
        max-width: 100%; 
    }
    
    .inicio-hero p {
         color: #c5a059; /* Dorado visible sobre oscuro */
    }

    .nav-links { gap: 15px; }
    .firma-grid-premium { grid-template-columns: 1fr; }
    .lista-otros-servicios { grid-template-columns: 1fr; }
}




/* --- ESTILO FINAL: ESTADO DE PROCESOS (IDÉNTICO A OTRAS PÁGINAS) --- */

/* Contenedor específico para no afectar Inicio ni Nosotros */
#seccion-especifica-procesos {
    padding: 60px 0 100px;
    background-color: #ffffff;
}

/* Encabezado: Título a la izquierda con rayita arriba */
.encabezado-procesos-premium {
    max-width: 1100px;
    margin: 0 auto 60px;
    padding: 0 40px;
    text-align: left;
}

/* La rayita beige arriba del título */
.linea-superior-beige {
    width: 60px;
    height: 4px;
    background-color: #c5a059;
    margin-bottom: 25px; /* Espacio entre raya y título */
}

/* Título con la misma fuente y tamaño de Servicios/Contacto */
.encabezado-procesos-premium h1 {
    font-family: 'Playfair Display', serif; /* La fuente elegante de tus capturas */
    font-size: 3.5rem; 
    color: #0a1f44;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0;
    letter-spacing: 1px;
}

/* Diseño de los cuadros */
.contenedor-cuadros-procesos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.cuadro-estilo-premium {
    background: #ffffff;
    padding: 50px 40px;
    border: 1px solid #f2f2f2;
    box-shadow: 0 15px 45px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.cuadro-estilo-premium:hover {
    transform: translateY(-8px);
    border-color: #c5a059;
}

.cuadro-estilo-premium h2 {
    font-family: 'Inter', sans-serif;
    color: #c5a059;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.cuadro-estilo-premium p {
    font-family: 'Inter', sans-serif;
    color: #555;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 30px;
}

/* Botón Beige de la Firma */
.btn-beige-oficial {
    display: inline-block;
    background-color: #c5a059;
    color: #ffffff !important;
    padding: 18px 35px;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: 0.3s;
}

.btn-beige-oficial:hover {
    background-color: #0a1f44;
}

/* Ajuste móvil */
@media (max-width: 768px) {
    .encabezado-procesos-premium h1 { font-size: 2.5rem; }
}

/* --- AJUSTE DE TAMAÑO DE TÍTULO PARA PROCESOS --- */

#seccion-especifica-procesos .encabezado-procesos-premium h1 {
    font-family: 'Playfair Display', serif; 
    font-size: 4.5rem !important; /* El tamaño imponente de Servicios */
    color: #0a1f44;
    text-transform: uppercase;
    font-weight: 800; 
    margin: 0;
    line-height: 1.1;
    letter-spacing: -1px;
}

/* Para que en el celular se ajuste automáticamente y no se corte */
@media (max-width: 768px) {
    #seccion-especifica-procesos .encabezado-procesos-premium h1 {
        font-size: 2.8rem !important;
    }
}


/* --- EFECTO GLOBAL DE PESTAÑA ACTIVA (TODAS LAS PÁGINAS) --- */

.nav-links li a {
    position: relative;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 5px 0;
}

/* 1. Identifica la pestaña activa (la que tiene el color beige manual) */
.nav-links li a[style*="color: rgb(197, 160, 89)"], 
.nav-links li a[style*="color: #c5a059"] {
    font-weight: 700 !important;
}

/* 2. La línea beige debajo de la pestaña actual */
.nav-links li a[style*="color: #c5a059"]::after,
.nav-links li a[style*="color: rgb(197, 160, 89)"]::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #c5a059;
    transform: scaleX(1); /* Siempre visible en la activa */
}

/* 3. Efecto para las pestañas cuando pasas el mouse (Hover) */
.nav-links li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #c5a059;
    transform: scaleX(0); /* Escondida por defecto */
    transition: transform 0.3s ease;
    transform-origin: bottom right;
}

.nav-links li a:hover::after {
    transform: scaleX(1); /* Aparece al pasar el mouse */
    transform-origin: bottom left;
}

.nav-links li a:hover {
    color: #c5a059 !important;
}


/* --- IGUALAR ALTURA PROCESOS CON SERVICIOS --- */

/* 1. Ajuste del contenedor principal */
#seccion-especifica-procesos {
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 40px 40px 40px !important; /* Mismo padding que .firma-wrapper */
}

/* 2. Ajuste del encabezado */
.encabezado-procesos-premium {
    text-align: left;
    margin-bottom: 60px !important;
    padding: 0 !important; /* Quitamos cualquier padding extra que mueva el h1 */
}

/* 3. Ajuste de la rayita y el h1 para que sean gemelos a Servicios */
.linea-superior-beige {
    display: block;
    width: 60px;
    height: 4px;
    background-color: #c5a059;
    margin-bottom: 25px !important;
}

.encabezado-procesos-premium h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4.5rem; /* Ajusta este número si el de servicios es distinto */
    color: #0a1f44;
    text-transform: uppercase;
    font-weight: 700;
    margin: 0 !important;
    line-height: 1.1;
}

/* --- AJUSTE PARA EL CELULAR --- */
@media (max-width: 768px) {
    #seccion-especifica-procesos {
        padding: 40px 20px !important;
    }
    
    .encabezado-procesos-premium h1 {
        font-size: 2.5rem !important; /* Para que no se corte en el móvil */
    }
}



/* ============================================================
   SOLUCIÓN MAESTRA MÓVIL - NO TOCA LAS DEMÁS PÁGINAS
   ============================================================ */

@media (max-width: 768px) {
    
    /* NAVEGACIÓN GENERAL (Para todas las páginas) */
    .nav-container {
        flex-direction: column !important;
        padding: 10px 0 !important;
        gap: 8px !important;
    }

    .logo {
        height: 32px !important; /* Logo pequeño para que no empuje todo */
        width: auto !important;
    }

    .nav-links {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 5px 12px !important;
        padding: 0 10px !important;
    }

    .nav-links li a {
        font-size: 0.65rem !important;
        letter-spacing: 0.5px !important;
    }

    /* TÍTULOS DE PÁGINAS INTERNAS (Servicios, Contacto, Firma, Procesos) */
    /* Bajamos el tamaño para que NO se corten como en tus capturas */
    .firma-header h1, 
    .encabezado-procesos-premium h1 {
        font-size: 2.3rem !important; 
        line-height: 1.1 !important;
        text-align: center !important;
    }

    .linea-superior, .linea-superior-beige {
        margin: 0 auto 15px !important;
    }

    /* --- AJUSTE EXCLUSIVO PARA EL INICIO (INDEX) --- */
    /* Usamos la clase del header de inicio para no afectar a servicios */
    .inicio-hero {
        padding-top: 20px !important; /* Evita que el menú pise el fondo */
    }

    .inicio-hero h1 {
        font-size: 2.1rem !important; /* Tamaño perfecto para "ORIENTACIONES JURÍDICAS" */
        line-height: 1.1 !important;
        margin-top: 10px !important;
    }

    /* Los cuadros de todas las páginas en una sola columna */
    .servicios-estelares, 
    .contenedor-cuadros-procesos {
        grid-template-columns: 1fr !important;
        padding: 0 15px !important;
        gap: 20px !important;
    }
}