/* =========================================
   NOCTUA ABOGADOS - STYLE.CSS (FINAL 2026)
   ========================================= */

/* --- VARIABLES DE COLOR Y FUENTES --- */
:root {
    --dark-blue: #0a1128;
    --medium-blue: #16213e;
    --gold: #cfa76e;
    --gold-hover: #eac38a;
    --light-gray: #f4f4f9;
    --white: #ffffff;
    --text-dark: #333333;
    --text-light: #e0e0e0;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Roboto', sans-serif;
}

/* --- ESTILOS GENERALES --- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--white);
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--dark-blue);
}

a { text-decoration: none; color: inherit; transition: all 0.3s ease; }
ul { list-style: none; }

.container { width: 90%; max-width: 1200px; margin: 0 auto; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }

.section-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
    color: var(--dark-blue);
    position: relative;
    display: inline-block;
}
.section-title::after {
    content: ''; display: block; width: 60%; height: 3px;
    background-color: var(--gold); margin: 15px auto 0;
}

.title-gold { color: var(--gold) !important; }
.section-intro { max-width: 700px; margin: 0 auto 40px; color: #666; }
.gold-text { color: var(--gold); }
.bg-light { background-color: var(--light-gray); }
.bg-white { background-color: var(--white); }

/* --- BOTONES --- */
.btn {
    display: inline-block; padding: 12px 30px; border-radius: 5px;
    font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
    font-size: 0.9rem; cursor: pointer; transition: all 0.3s;
    border: 2px solid transparent;
}
.btn-gold { background-color: var(--gold); color: var(--dark-blue); }
.btn-gold:hover { background-color: var(--gold-hover); transform: translateY(-3px); box-shadow: 0 5px 15px rgba(207, 167, 110, 0.4); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background-color: var(--gold); color: var(--dark-blue); }
.btn-large { padding: 15px 40px; font-size: 1.1rem; }

/* Animación opcional para botón pulsante */
@keyframes pulse-btn {
    0% { box-shadow: 0 0 0 0 rgba(207, 167, 110, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(207, 167, 110, 0); }
    100% { box-shadow: 0 0 0 0 rgba(207, 167, 110, 0); }
}
.animate-pulse { animation: pulse-btn 2s infinite; }

/* Botón de Idioma Escritorio */
.btn-lang-desktop {
    color: var(--gold); 
    border: 1px solid var(--gold); 
    padding: 5px 10px; 
    border-radius: 5px; 
    font-size: 0.85rem;
}
.btn-lang-desktop:hover {
    background-color: var(--gold);
    color: var(--dark-blue) !important;
}

/* --- HEADER --- */
header {
    background-color: var(--dark-blue); color: var(--white);
    padding: 15px 0; position: fixed; width: 100%; top: 0;
    z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.3);
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo-container { display: flex; align-items: center; color: var(--gold); font-size: 1.5rem; font-weight: 700; }

.logo-img, .logo-img-footer {
    height: 55px; width: auto; object-fit: contain;
    filter: invert(1); mix-blend-mode: screen;
}

.logo-text {
    font-family: var(--font-heading); color: var(--white);
    font-size: 1.5rem; font-weight: 700; margin-left: 10px; display: inline-block;
}

nav ul { display: flex; align-items: center; }
nav ul li { margin-left: 30px; }
nav ul li a { font-weight: 500; font-size: 0.95rem; text-transform: uppercase; }
nav ul li a:hover { color: var(--gold); }
.btn-nav { background-color: var(--gold); color: var(--dark-blue) !important; padding: 8px 20px; border-radius: 4px; }
.btn-nav:hover { background-color: var(--gold-hover); }

/* --- HERO (Estilo PC) --- */
.hero {
    background-image: url('portada.jpg');
    background-size: cover; background-position: center;
    height: 100vh; min-height: 600px; display: flex; align-items: center;
    margin-top: 60px; position: relative;
}
.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(10, 17, 40, 0.75); display: flex; align-items: center;
}
.hero-content { color: var(--white); max-width: 800px; }
.hero h1 { font-size: 3.5rem; line-height: 1.2; margin-bottom: 20px; color: var(--white); }
.hero-subtitle { font-size: 1.2rem; margin-bottom: 30px; color: var(--text-light); max-width: 600px; }
.hero-btns .btn { margin-right: 15px; margin-bottom: 15px; }

/* --- RASTREADOR --- */
#rastreador .section-title { color: var(--dark-blue); }
#rastreador .section-intro { color: var(--text-dark); }

.tracker-search { margin-bottom: 40px; }
.folio-input {
    padding: 12px 20px; font-size: 1rem; border: 1px solid #aaa;
    border-radius: 5px; width: 250px; margin-right: 10px;
    color: var(--text-dark);
}
.folio-input::placeholder { color: #555; }
.error-message { color: red; margin-top: 10px; font-weight: bold; }

.case-info {
    background: white; padding: 20px; border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05); margin-bottom: 40px;
    display: inline-block; min-width: 300px; color: var(--text-dark);
}
.case-info h3, .case-info p { color: var(--text-dark); }

.progress-container { position: relative; max-width: 900px; margin: 50px auto 0; height: 100px; }
.progress-bar-bg { position: absolute; top: 20px; left: 0; width: 100%; height: 4px; background-color: #ddd; z-index: 1; }
.progress-bar-fill { position: absolute; top: 20px; left: 0; width: 0%; height: 4px; background-color: var(--gold); z-index: 2; transition: width 1.5s ease-in-out; }

.owl-marker {
    position: absolute; top: -25px; left: 0%; 
    width: 55px; height: 55px;
    background: var(--gold); border-radius: 50%;
    border: 4px solid #f9f9f9; 
    z-index: 4; display: flex; justify-content: center; align-items: center;
    transform: translateX(-50%); transition: left 1.5s ease-in-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.steps-wrapper { display: flex; justify-content: space-between; position: relative; z-index: 3; }
.step { text-align: center; width: 80px; position: relative; }
.step .circle {
    width: 40px; height: 40px; background-color: white; border: 2px solid #ccc;
    border-radius: 50%; margin: 0 auto 10px; display: flex;
    justify-content: center; align-items: center; font-weight: bold;
    color: #888; transition: all 0.5s;
}
.step .label { font-size: 0.75rem; color: #555; }
.step.active .circle { background-color: var(--gold); border-color: var(--gold); color: var(--dark-blue); }
.step.active .label { color: var(--gold); font-weight: bold; }


/* =========================================
   SECCIÓN NOSOTROS (Fondo Azul Oscuro)
   ========================================= */
#nosotros {
    background-color: var(--dark-blue) !important;
    color: var(--white) !important;
}

#nosotros .section-title {
    color: var(--gold) !important; 
}

#nosotros .section-intro,
#nosotros p {
    color: var(--white) !important;
}

#nosotros .about-box {
    background: rgba(255, 255, 255, 0.05); 
    border: 1px solid rgba(207, 167, 110, 0.3); 
    color: var(--white) !important;
}


/* =========================================
   ESTILOS CLÁSICOS (FAMILIA - SERVICIOS)
   ========================================= */
.services-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); 
    gap: 30px; 
    margin-top: 40px; 
}

.service-card {
    background-color: rgba(255, 255, 255, 0.1); 
    padding: 35px 25px; 
    border-radius: 8px;
    text-align: center; 
    transition: all 0.3s ease; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    height: 100%; 
    backdrop-filter: blur(5px);
}

.service-card:hover { 
    transform: translateY(-10px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.4); 
    border-color: var(--gold); 
    background-color: rgba(255, 255, 255, 0.15);
}

.icon-box { 
    font-size: 3rem; 
    color: var(--gold); 
    margin-bottom: 20px; 
}

.service-card h3 { 
    margin-bottom: 15px; 
    font-size: 1.5rem; 
    color: var(--gold) !important; 
}

.service-card p {
    color: #f4f4f9 !important; 
}

/* --- TESTIMONIOS --- */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 30px; }
.testimonial-card {
    background: #fff; padding: 30px; border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); border-left: 4px solid var(--gold);
}
.testimonial-card i { color: var(--gold); font-size: 1.5rem; margin-bottom: 15px; }
.testimonial-text { font-style: italic; color: #555; margin-bottom: 20px; }
.client-name { font-weight: bold; color: var(--dark-blue); display: block; }

/* =========================================
   SECCIÓN SERVICIOS Y FAQ (Fondo de Nubes)
   ========================================= */
#servicios, #faq {
    background: linear-gradient(rgba(40, 40, 40, 0.75), rgba(40, 40, 40, 0.75)), url('assets/fondo-nubes.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: var(--white) !important;
}

#servicios .section-title,
#servicios .section-intro,
#faq .section-title,
#faq .section-intro {
    color: var(--white) !important;
}

/* --- FAQ --- */
.faq-container { max-width: 800px; margin: 0 auto; }
.faq-item {
    background-color: rgba(255, 255, 255, 0.1); 
    border-radius: 8px; 
    margin-bottom: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2); 
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 5px solid transparent; 
    transition: all 0.3s ease;
    backdrop-filter: blur(5px); 
}

.faq-item.active { 
    border-left: 5px solid var(--gold); 
    box-shadow: 0 5px 15px rgba(0,0,0,0.4); 
    background-color: rgba(255, 255, 255, 0.15); 
}

.faq-question {
    padding: 20px; 
    cursor: pointer; 
    display: flex;
    justify-content: space-between; 
    align-items: center; 
    background-color: transparent; 
}

.faq-question:hover { background-color: rgba(255, 255, 255, 0.05); }

.faq-question h3 {
    font-size: 1.1rem; 
    margin-bottom: 0; 
    font-family: var(--font-body);
    font-weight: 700; 
    color: var(--gold) !important; 
}

.faq-question i { color: var(--gold); transition: transform 0.3s ease; }
.faq-item.active .faq-question i { transform: rotate(45deg); }

.faq-answer {
    max-height: 0; 
    overflow: hidden; 
    transition: max-height 0.5s ease-out;
    background-color: rgba(0, 0, 0, 0.2); 
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.faq-answer p { padding: 20px; color: #f4f4f9; font-size: 1rem; margin: 0; }

/* --- FORMULARIO --- */
.section-contacto {
    background-color: var(--dark-blue);
    color: var(--white);
}
.form-wrapper { max-width: 800px; margin: 0 auto; }
.contact-form {
    background-color: rgba(255, 255, 255, 0.05); padding: 40px; border-radius: 10px;
    border: 1px solid rgba(207, 167, 110, 0.3);
}
.input-group { margin-bottom: 20px; text-align: left; }
.form-row { display: flex; gap: 20px; margin-bottom: 20px; }
.input-group.half { flex: 1; }
.contact-form label { display: block; margin-bottom: 8px; font-weight: bold; color: var(--gold); font-size: 0.9rem; }
.contact-form input, .contact-form textarea {
    width: 100%; padding: 12px 15px; border-radius: 5px;
    border: 1px solid #ccc; font-family: var(--font-body); font-size: 1rem;
    color: #333; background-color: #fff;
}
.contact-form input:focus, .contact-form textarea:focus {
    outline: none; border-color: var(--gold); box-shadow: 0 0 8px rgba(207, 167, 110, 0.3);
}
.price-note {
    background-color: rgba(207, 167, 110, 0.15); border-left: 4px solid var(--gold);
    padding: 15px; margin-bottom: 25px; font-size: 0.95rem; color: #e0e0e0; border-radius: 4px; line-height: 1.5;
}
.price-note strong { color: var(--gold); }
.price-note i { margin-right: 8px; color: var(--gold); }

/* --- FOOTER COMPACTO --- */
footer { 
    background-color: var(--dark-blue); 
    color: var(--text-light); 
    padding: 35px 0 15px; /* Redujimos el espacio de arriba y abajo drásticamente */
}
.footer-content { 
    display: flex; 
    justify-content: space-between; 
    flex-wrap: wrap; 
    margin-bottom: 20px; /* Menos espacio antes de la línea final */
}
.footer-col { 
    flex: 1; 
    min-width: 250px; 
    margin-bottom: 10px; 
}
.footer-col h3 { 
    color: var(--gold); 
    margin-bottom: 12px; 
    font-size: 1.1rem; /* Un poquitito más pequeño para que no empuje tanto hacia abajo */
}
.footer-col ul li { 
    margin-bottom: 8px; /* Menos espacio entre el teléfono y la dirección */
    display: flex; 
    align-items: center; 
    font-size: 0.95rem;
}
.gold-icon { 
    color: var(--gold); 
    margin-right: 10px; 
    font-size: 1.1rem; 
}
.footer-bottom { 
    border-top: 1px solid rgba(207, 167, 110, 0.4); /* ¡Aquí está la división! Una línea dorada sutil */
    padding-top: 15px; 
    font-size: 0.85rem; 
    text-align: center; /* Centramos el texto de abajo para que se vea más ordenado */
}

.enlace-privacidad { text-decoration: underline; color: inherit; transition: color 0.3s ease; }
.enlace-privacidad:hover { color: var(--gold); }


/* =========================================
   ÍCONOS DE REDES SOCIALES LIMPIOS
   ========================================= */
.social-title {
    font-size: 1rem;
    margin-bottom: 10px;
    color: var(--gold);
}

.social-link-item {
    display: inline-block;
    margin-right: 15px;
    background: transparent !important; 
    border: none !important;
    text-decoration: none;
}

/* CARGA LA IMAGEN ORIGINAL, CERO FILTROS, CERO EFECTOS */
.social-img {
    width: 32px; 
    height: auto;
    transition: transform 0.3s ease; 
}

/* Al pasar el ratón, solo crece un poquito para el efecto visual */
.social-link-item:hover .social-img {
    transform: scale(1.15); 
}


/* =========================================
   EFECTOS PREMIUM (Scroll y Animaciones)
   ========================================= */

/* 1. BARRA DE PROGRESO (Scroll Indicator) */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px; 
    background: transparent;
    z-index: 10001; 
}

.scroll-progress-bar {
    height: 100%;
    background: var(--gold);
    width: 0%; 
    box-shadow: 0 0 10px rgba(207, 167, 110, 0.8); 
    border-radius: 0 2px 2px 0;
}

/* 2. HEADER QUE SE ENCOGE (Sticky Shrink) */
header {
    transition: all 0.4s ease; 
}

header.header-scrolled {
    padding: 5px 0; 
    background-color: rgba(10, 17, 40, 0.95); 
    backdrop-filter: blur(10px); 
}

header.header-scrolled .logo-img {
    height: 35px; 
    transition: all 0.4s ease;
}

header.header-scrolled .logo-text {
    font-size: 1.2rem; 
    transition: all 0.4s ease;
}

/* 3. PARPADEO DEL WHATSAPP (Latido cada 10 segundos) */
@keyframes latido-whatsapp {
    0%, 85%, 100% { transform: scale(1); box-shadow: 2px 2px 3px #999; }
    88% { transform: scale(1.15); box-shadow: 0 0 20px rgba(37, 211, 102, 0.8); }
    91% { transform: scale(0.95); }
    94% { transform: scale(1.15); box-shadow: 0 0 20px rgba(37, 211, 102, 0.8); }
}

.whatsapp-float {
    position: fixed; width: 60px; height: 60px; bottom: 25px; right: 25px;
    background-color: #25d366; color: #FFF; border-radius: 50px;
    text-align: center; font-size: 30px; box-shadow: 2px 2px 3px #999;
    z-index: 1000; display: flex; align-items: center; justify-content: center;
    transition: all 0.3s ease; text-decoration: none;
    animation: latido-whatsapp 10s infinite; 
}

.whatsapp-float:hover { 
    animation-play-state: paused; 
    background-color: #128C7E; 
    transform: scale(1.1); 
}


/* =========================================================
   ESTILOS RESPONSIVE (MÓVILES) - VERSIÓN FINAL
   ========================================================= */

.controles-movil, 
.menu-mobile-desplegable, 
.barra-inferior-movil {
    display: none; 
}

@media (max-width: 768px) {

    body {
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        background-color: #0a1128 !important;
    }

    header, .barra-navegacion {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 80px; 
        background-color: #0a1128 !important;
        z-index: 9999;
        box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        padding: 0;
        display: flex;
        align-items: center;
    }

    .header-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 0 20px;
        height: 100%;
    }

    .menu-escritorio, nav ul { display: none !important; }

    .logo-img { height: 42px; width: auto; }
    .logo-text { font-size: 1rem; color: white; margin-left: 10px; display: inline-block; }

    .controles-movil {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .btn-en-movil {
        color: #cfa76e;
        border: 1px solid #cfa76e;
        padding: 2px 8px;
        text-decoration: none;
        font-weight: bold;
        font-size: 0.85rem;
        border-radius: 3px;
    }

    .hamburguesa {
        background: none;
        border: none;
        font-size: 1.8rem;
        color: #cfa76e;
        cursor: pointer;
        padding: 0;
    }

    .menu-mobile-desplegable {
        position: fixed;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: #0d1630;
        list-style: none;
        padding: 0;
        margin: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-out;
        border-top: 1px solid #1f2b50;
        display: block;
    }

    .menu-mobile-desplegable li a {
        display: block;
        padding: 15px 20px;
        color: white;
        text-decoration: none;
        border-bottom: 1px solid #1f2b50;
    }

    .menu-mobile-desplegable.abierto {
        max-height: 500px;
        box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    }

    #hero-section, .hero {
        margin-top: 0 !important;
        padding-top: 120px !important; 
        align-items: flex-start !important; 
        height: auto !important; 
        min-height: 500px; 
        background-position: center top !important; 
        background-attachment: scroll !important;
    }
    
    .hero h1 { 
        font-size: 2.2rem; 
        margin-top: 0; 
    } 
    .hero-subtitle { font-size: 1rem; }
    .hero-btns { width: 100%; flex-direction: column; }

    #rastreador .container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch; 
        padding-bottom: 20px;
    }
    .tracker-search { flex-direction: column; align-items: center; }
    .folio-input { width: 100%; margin: 0 0 10px 0; }
    
    .progress-container {
        min-width: 600px;
        height: 180px !important; 
        position: relative;
        margin: 50px auto 0;
        overflow: visible;
    }
    
    .owl-marker { top: 10px !important; }
    .progress-bar-bg, .progress-bar-fill { 
        min-width: 600px;
        top: 55px !important; 
    }
    .steps-wrapper { 
        min-width: 600px;
        margin-top: 80px !important; 
    }

    .footer-content { flex-direction: column; text-align: center; }
    
    .footer-col .social-icons {
        display: block !important;
        text-align: center;
        margin-top: 30px !important;
        width: 100%;
    }
    .social-title {
        display: block;
        width: 100%;
        margin-bottom: 15px !important;
        font-size: 1.1rem;
    }
    .social-link-item {
        display: inline-block;
        margin: 0 10px !important;
        vertical-align: middle;
    }
    
    .social-img {
        width: 45px;
    }

    .testimonials-grid { grid-template-columns: 1fr; }

    .whatsapp-float {
        display: flex !important;
        z-index: 99999;
    }

    .barra-inferior-movil { display: none !important; }
}

@media (max-width: 480px) {
    .steps-wrapper .label {
        font-size: 0.6rem; 
        word-wrap: break-word; 
        line-height: 1.1;
    }
    
    .tracker-result {
        padding: 10px; 
    }
}
/* --- ESTILO FIRMA ALIADA IGNIS --- */
.partner-firm {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1); /* Una rayita muy tenue para separar */
    max-width: 250px; /* Para que no se desparrame */
}

.partner-text {
    font-size: 0.8rem !important; /* Texto chiquito */
    color: var(--gold) !important;
    margin-bottom: 8px !important;
    line-height: 1.2;
    font-style: italic;
}

.logo-ignis {
    height: 50px; /* Tamaño discreto para no engordar el footer */
    width: auto;
    filter: none; /* Sin efectos raros para que no falle */
    transition: transform 0.3s ease;
}

.logo-ignis:hover {
    transform: scale(1.05); /* Un pequeño "mírame" al pasar el mouse */
}