/* Paleta de Colores:
   Azul Navy PROFUNDO: #0b1528 o #0A192F
   Gris Acero: #4A5568 / #8CA3B9
   Blanco: #FFFFFF o #F8FAFC
*/

:root {
    --navy-blue: #0b1528;
    --navy-blue-light: #162a4d;
    --steel-gray: #4A5568;
    --steel-gray-light: #718096;
    --steel-gray-lighter: #edf2f7;
    --white: #ffffff;
    --off-white: #F8FAFC;
    
    --font-serif: 'Playfair Display', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--steel-gray);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .logo-text {
    font-family: var(--font-serif);
    color: var(--navy-blue);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center { text-align: center; }
.text-white { color: var(--white) !important; }
.text-light-gray { color: #cbd5e1; }
.max-w-800 { max-width: 800px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-4 { margin-bottom: 2rem; }
.mt-4 { margin-top: 2rem; }

/* Backgrounds */
.bg-light { background-color: var(--off-white); }
.bg-dark { background-color: var(--navy-blue); }

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0; /* Square for professional look */
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--navy-blue);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--white);
    color: var(--navy-blue);
    border-color: var(--navy-blue);
}

.btn-secondary {
    background-color: transparent;
    color: var(--navy-blue);
    border: 1px solid var(--navy-blue);
}

.btn-secondary:hover {
    background-color: var(--navy-blue);
    color: var(--white);
}

.btn-whatsapp {
    background-color: #25D366;
    color: var(--white);
    font-weight: 600;
    font-size: 1.1rem;
    border-radius: 50px;
    padding: 1rem 2.5rem;
    box-shadow: 0 8px 15px rgba(37, 211, 102, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-whatsapp:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(37, 211, 102, 0.4);
    color: var(--white);
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #5b5d5d; /* Dark grey left backup */
    background-image: url('navbar_left.png');
    background-repeat: repeat-x;
    background-size: 1px 100%;
    z-index: 1000;
    height: 85px; /* Altura fija para no deformar */
    padding: 0;
    border-bottom: none;
    transition: var(--transition);
}

.navbar-bg-right {
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    left: 50%; /* Will be dynamically updated by JS to match logo edge */
    background-image: url('navbar_bg.png'); /* Light grey right slice */
    background-repeat: repeat-x;
    background-size: 1px 100%;
    z-index: -1;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
}

.logo {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
}

.navbar-logo {
    height: 100%;
    width: auto;
    object-fit: cover;
    display: block;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links li a {
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--navy-blue);
    position: relative;
    text-shadow: 1px 1px 0px rgba(255,255,255,0.3); /* Letra legible sobre metal */
}

.nav-links li a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--navy-blue);
    transition: var(--transition);
}

.nav-links li a:hover::after {
    width: 100%;
}

.nav-btn {
    border: 2px solid var(--navy-blue);
    padding: 0.5rem 1.2rem !important;
    border-radius: 4px;
    background-color: rgba(255,255,255,0.1);
}

.nav-btn::after {
    display: none;
}

.nav-btn:hover {
    background-color: var(--navy-blue);
    color: var(--white) !important;
}

/* Sections */
.section {
    padding: 6rem 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.divider {
    height: 3px;
    width: 60px;
    background-color: var(--steel-gray);
    margin: 0 auto 2rem;
}

.divider.left {
    margin-left: 0;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 80px; /* Offset for navbar */
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-bg .bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg .bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.8) 50%, rgba(255,255,255,0.2) 100%);
}

.hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(11, 21, 40, 0.1);
    color: var(--navy-blue);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
    border-left: 3px solid var(--navy-blue);
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-content h1 .highlight {
    color: var(--steel-gray);
    font-style: italic;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--steel-gray);
    margin-bottom: 2.5rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.hero-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    position: relative;
}

.hero-image {
    position: relative;
    max-width: 450px;
}

.hero-image img {
    width: 100%;
    height: auto;
    display: block;
    box-shadow: -15px 15px 0px rgba(74, 85, 104, 0.2);
    border: 1px solid rgba(255,255,255,0.5);
}

.experience-badge {
    position: absolute;
    bottom: -30px;
    left: -30px;
    background-color: var(--navy-blue);
    color: var(--white);
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.experience-badge .number {
    font-family: var(--font-serif);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
}

.experience-badge .text {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.3;
}

/* Diferenciador */
.diferenciador {
    position: relative;
}

.lead-text {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    color: var(--navy-blue);
    font-style: italic;
    margin-bottom: 1.5rem;
}

.desc-text {
    font-size: 1.1rem;
    line-height: 1.8;
}

.parallax-bg {
    margin-top: 4rem;
    /* La altura siempre será menor que la imagen (que es de ~30vw), garantizando que NUNCA haya franjas grises */
    height: min(350px, 25vw);
    position: relative;
    background-image: url('parallax_bg.png');
    background-position: center 0%;
    background-repeat: no-repeat;
    /* Usamos scroll en CSS, el efecto parallax se hará por JavaScript para no dañar el zoom ni cortar a los lados */
    background-attachment: scroll;
    /* Fuerza ancho completo siempre, protegiendo el texto de cortes */
    background-size: 100% auto;
}

.parallax-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: transparent; /* Se eliminó el filtro azul para que quede gris natural */
}

/* Expertiz */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 3rem;
}

.expertiz-card {
    background-color: var(--white);
    padding: 3rem;
    border-top: 4px solid var(--navy-blue);
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    transition: var(--transition);
}

.expertiz-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--steel-gray);
    margin-bottom: 1.5rem;
}

.expertiz-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.expertiz-card .subtitle {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--steel-gray-light);
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--steel-gray-lighter);
    padding-bottom: 1rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    align-items: flex-start;
}

.feature-list li i {
    color: var(--navy-blue);
    margin-top: 5px;
}

.feature-list li strong {
    display: block;
    color: var(--navy-blue);
    font-weight: 600;
    margin-bottom: 3px;
}

/* Firma */
.split-section {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.split-section .block {
    flex: 1;
}

.firma-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    filter: grayscale(20%);
    box-shadow: 15px 15px 0px rgba(11, 21, 40, 0.05);
}

.services-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
}

.service-box {
    background-color: var(--off-white);
    padding: 1.5rem;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    transition: var(--transition);
}

.service-box:hover {
    background-color: var(--navy-blue);
    color: var(--white);
    transform: translateY(-5px);
}

.service-box:hover h4, .service-box:hover p, .service-box:hover i {
    color: var(--white);
}

.service-box i {
    font-size: 2rem;
    color: var(--navy-blue);
    margin-bottom: 1rem;
    transition: var(--transition);
}

.service-box h4 {
    font-family: var(--font-sans);
    font-size: 1rem;
    margin-bottom: 0.5rem;
    color: var(--navy-blue);
    transition: var(--transition);
}

.service-box p {
    font-size: 0.85rem;
    transition: var(--transition);
}

/* Agenda */
.calendar-slots {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.slot-card {
    background-color: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    padding: 2rem;
    min-width: 200px;
    backdrop-filter: blur(5px);
    transition: var(--transition);
}

.slot-card:hover {
    background-color: var(--white);
    color: var(--navy-blue);
    transform: translateY(-5px);
}

.slot-card:hover .day, .slot-card:hover .time, .slot-card:hover .availability {
    color: var(--navy-blue);
}

.slot-card .day {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--white);
    transition: var(--transition);
}

.slot-card .time {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--white);
}

.slot-card .availability {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #4ade80;
    font-weight: 600;
}

.cta-wrapper {
    margin-top: 2rem;
}

/* Footer */
.footer {
    background-color: #050a14;
    padding: 3rem 0;
    color: rgba(255,255,255,0.5);
    text-align: center;
}

.footer .logo {
    display: inline-flex;
    margin-bottom: 1rem;
}

.footer .logo-text {
    color: var(--white);
    font-size: 1.5rem;
}

.footer p {
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        flex-direction: column-reverse;
        text-align: center;
        padding-top: 4rem;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero-image-wrapper {
        justify-content: center;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }

    .hero-bg .bg-overlay {
        background: linear-gradient(to bottom, rgba(255,255,255,0.9) 0%, rgba(255,255,255,0.95) 100%);
    }

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

    .split-section {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none; /* simple mobile fallback */
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section {
        padding: 4rem 0;
    }

    .parallax-bg {
        /* Hereda el height: 30.2vw y el size: 100% auto que ya lo hacen perfecto en móvil */
    }
}
