/* --- Variables de Marca --- */
:root {
    --primary: #591820; /* Burdeos Oscuro */
    --primary-light: #761520; /* Rojo más vivo */
    --secondary: #c59d9b; /* Rosa Palo / Dusty Pink */
    --accent: #73342b; /* Terracota */
    --bg-cream: #f6ece3; /* Crema Fondo */
    --white: #ffffff;
    --black: #000000;
    --text-grey: #333333;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;
}

/* --- Reseteo Básico --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--text-grey);
    line-height: 1.6;
    background-color: var(--white);
    overflow-x: hidden; /* Prevenir scroll horizontal por animaciones */
}

img {
    max-width: 100%;
    display: block;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- Tipografía y Utilidades (Refactorizado) --- */
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.text-light { color: var(--primary-light); }
.mb-25 { margin-bottom: 25px; }
.mr-20 { margin-right: 20px; }
.text-center { text-align: center; }

.subtitle {
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 10px;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.section {
    padding: 80px 0;
}

.bg-cream {
    background-color: var(--bg-cream);
}

/* --- Botones --- */
.btn-primary {
    display: inline-block;
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--primary);
    text-align: center;
    cursor: pointer;
}

.btn-primary:hover {
    background-color: transparent;
    color: var(--primary);
}

.btn-outline {
    display: inline-block;
    background-color: transparent;
    color: var(--primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 700;
    border: 2px solid var(--primary);
    margin-left: 10px;
    text-align: center;
    cursor: pointer;
}

.btn-outline:hover {
    background-color: var(--primary);
    color: var(--white);
}

/* --- Top Banner Inglés --- */
.top-banner {
    background-color: var(--black);
    color: var(--white);
    text-align: center;
    padding: 8px 0;
    font-size: 0.85rem;
    font-weight: 300;
}

.top-banner-content {
    display: flex; 
    justify-content: center; 
    align-items: center; 
    gap: 8px; 
    margin: 0;
}

/* --- Navbar --- */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo img {
    height: 50px; 
}

.logo-text {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 1px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--secondary);
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
    cursor: pointer;
}

/* --- Hero Section --- */
.hero {
    position: relative;
    height: 90vh;
    display: flex;
    align-items: center;
    background-color: var(--bg-cream);
    overflow: hidden;
}

.hero-image-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 1;
}

.hero-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-image-container .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-cream) 10%, rgba(246,236,227,0) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding-right: 50px;
}

/* Estilos extraídos del HTML para el Hero */
.hero-tagline {
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--accent);
    letter-spacing: 2px;
    font-family: var(--font-body);
    font-weight: 700;
    margin-bottom: 10px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-buttons-wrapper {
    margin-top: 40px;
}

/* --- Layouts Partidos --- */
.split-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-layout.reverse .image-box {
    order: 2;
}

.image-box img {
    border-radius: 5px;
    box-shadow: 20px 20px 0px var(--secondary);
}

/* Cita estilizada (Extraída del HTML) */
.quote-box {
    border-left: 3px solid var(--primary);
    padding-left: 15px;
    margin-top: 20px;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--primary);
}

/* --- Íconos Estéticos (Movido desde el <style> del HTML) --- */
.aesthetic-container {
    width: 100%;
    height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.aesthetic-circle {
    width: 220px;
    height: 220px;
    background-color: rgba(197, 157, 155, 0.15); 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.4s ease, background-color 0.4s ease;
}

.aesthetic-circle i {
    font-size: 5rem;
    color: var(--secondary);
    opacity: 0.8;
}

.aesthetic-circle:hover {
    transform: scale(1.05);
    background-color: rgba(197, 157, 155, 0.25);
}

/* --- Servicios (Con Nuevas Animaciones Hover) --- */
.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--white);
    padding: 30px;
    border: 1px solid #eee;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1); /* Curva suave moderna */
    border-radius: 8px;
}

/* Efecto Hover Moderno */
.service-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 15px 30px rgba(89, 24, 32, 0.1);
    border-color: var(--secondary);
}

.service-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 20px;
}

.service-card h4, .service-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--primary);
}

/* --- Carruseles --- */
.carousel-wrapper {
    position: relative;
    padding: 0 40px;
}

.carousel-track {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 20px;
    scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }

.carousel-item {
    flex: 0 0 300px;
    scroll-snap-align: center;
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.carousel-item.landscape {
    flex: 0 0 500px;
}

.carousel-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.placeholder-box {
    height: 300px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    background: #f9f9f9; 
    color: #777;
}

.caption {
    padding: 15px;
    text-align: center;
    font-weight: 700;
    color: var(--primary);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.carousel-btn:hover {
    background-color: var(--primary-light);
    transform: translateY(-50%) scale(1.1);
}

.prev { left: 0; }
.next { right: 0; }

/* --- Contacto --- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.info-item {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
}

.info-item i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 5px;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    font-family: var(--font-body);
    font-weight: 700;
}

.social-links-contact {
    margin-top: 30px;
}
.social-icon-large {
    font-size: 2rem;
    color: var(--primary);
    margin-right: 20px;
}

/* --- Footer --- */
.footer {
    background-color: var(--primary);
    color: var(--bg-cream);
    padding-top: 60px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}

.footer-logo {
    height: 60px;
    margin-bottom: 20px;
    filter: brightness(0) invert(1);
}

.footer h4 {
    color: var(--secondary);
    margin-bottom: 20px;
    font-family: var(--font-body);
    text-transform: uppercase;
    font-size: 0.9rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 10px;
}

.footer ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.social-links a {
    color: var(--bg-cream);
    font-size: 1.2rem;
    margin-right: 15px;
}

.footer-bottom {
    background-color: var(--black);
    text-align: center;
    padding: 20px;
    font-size: 0.8rem;
    color: #888;
}

/* --- Botón Flotante de WhatsApp --- */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 3px #999;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #20ba5a;
    transform: scale(1.1);
}

/* --- NUEVAS CLASES DE ANIMACIÓN (Refactorización) --- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
    will-change: opacity, transform;
}

.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- MOBILE RESPONSIVE (Refactorizado y Movido del HTML) --- */
@media (max-width: 768px) {
    
    /* Navbar y Menú */
    .nav-links {
        display: none; 
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: var(--white);
        flex-direction: column;
        padding: 20px;
        text-align: center;
        box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    }
    
    .nav-links.active {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }
    
    .navbar .btn-primary {
        display: none; 
    }

    /* Hero Section (Portada) */
    .hero {
        flex-direction: column;
        height: auto;
        padding-top: 0 !important;
        padding-bottom: 40px;
        align-items: center;
        text-align: center;
        display: flex;
    }

    .hero-image-container {
        position: relative;
        width: 100%;
        height: 35vh !important;
        min-height: 280px;
        order: -1; 
        margin-bottom: 20px;
        margin-top: 0 !important;
        overflow: hidden;
    }
    
    .hero-image-container img {
        height: 100% !important; 
        object-fit: cover !important; 
        object-position: center top; 
        display: block;
    }

    /* Gradiente ajustado para móvil */
    .hero-image-container .overlay {
        position: absolute !important;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2;
        background: linear-gradient(to bottom, 
            rgba(246,236,227,0) 40%, 
            var(--bg-cream, #F6ECE3) 100%
        ) !important;
        pointer-events: none; 
    }
    
    .hero-content {
        padding: 0 20px;
        width: 100%;
    }

    /* Reemplazo de estilos inline del hero móvil */
    .hero-tagline { font-size: 1rem !important; }
    .hero-title { font-size: 2.2rem !important; }

    /* Botones del Hero */
    .hero-buttons-wrapper {
        display: flex;
        flex-direction: column;
        gap: 15px;
        width: 100%;
        margin-top: 25px !important;
    }

    .hero-buttons-wrapper .btn-primary, 
    .hero-buttons-wrapper .btn-outline {
        width: 100%;
        margin-left: 0;
        display: block;
        padding: 14px 0;
    }

    /* Layouts Partidos */
    .split-layout {
        display: block !important; 
        padding: 40px 20px;
    }
    
    /* Sección Sobre Mí Móvil Específico */
    #sobre-mi.split-layout .image-box {
        float: left;
        width: 60%; 
        margin-right: 20px;
        margin-bottom: 10px;
    }

    #sobre-mi.split-layout .image-box img {
        width: 100%;
        height: auto !important;
        box-shadow: 10px 10px 0px var(--secondary); 
        object-fit: contain;
    }

    #sobre-mi.split-layout .text-box { 
        display: block;
        text-align: left; 
        padding: 0 !important;
    }
    
    #sobre-mi h2 { font-size: 1.5rem; line-height: 1.1; margin-bottom: 15px; }
    #sobre-mi .subtitle { font-size: 0.7rem; }

    /* Otras Secciones Split */
    .split-layout:not(#sobre-mi) {
        display: grid !important; /* Volver a grid para los otros si es necesario, o mantener block */
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .split-layout.reverse .image-box { order: 0; }

    .split-layout:not(#sobre-mi) .text-box { padding: 0 15px; }

    .split-layout:not(#sobre-mi) .image-box img {
        width: 100%;
        height: auto; 
        max-height: 450px; 
        object-fit: cover;
        box-shadow: 10px 10px 0px var(--secondary);
    }

    /* Ajuste Íconos Estéticos */
    .aesthetic-container {
        height: 220px;
        margin-bottom: 20px;
    }
    .aesthetic-circle {
        width: 180px;
        height: 180px;
    }
    .aesthetic-circle i {
        font-size: 4rem;
    }

    /* Contacto y Footer */
    .contact-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .contact-info .info-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .social-links-contact {
        display: flex;
        justify-content: center;
        gap: 20px;
    }
    .social-links-contact a { margin: 0; }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .footer-logo {
        margin: 0 auto 20px auto;
    }

    /* Botón WhatsApp */
    .whatsapp-float {
        width: 75px !important;
        height: 75px !important;
        font-size: 45px !important;
        bottom: 25px !important;
        right: 20px !important;
    }
}