/* Importamos variables primero (aunque ya estén linkeadas en HTML, es buena práctica resetear aquí) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

/* --- CLASES UTILITARIAS --- */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-secondary);
    line-height: 1.2;
}

a { text-decoration: none; }

.section { padding: 80px 0; }
.bg-light { background-color: var(--color-bg-light); }

/* --- BOTONES --- */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background-color: #bfa030; /* Un tono más oscuro del dorado */
    transform: translateY(-2px);
}

.btn-outline {
    border: 2px solid var(--color-secondary);
    color: var(--color-secondary);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    margin-left: 10px;
}

/* --- NAVBAR --- */
/* NAVBAR BASE (Estado inicial transparente) */
.navbar {
    padding: 20px 0; /* Espacioso al inicio */
    position: fixed; /* Fijo siempre */
    width: 100%;
    top: 0;
    left: 0;
    background: transparent; /* Transparente para ver el Hero */
    transition: all 0.4s ease; /* Animación suave */
    z-index: 1000;
}

/* ESTADO SCROLLED (Cuando bajas) */
.navbar.scrolled {
    padding: 10px 0; /* Se hace más delgada */
    background: rgba(255, 255, 255, 0.98); /* Se vuelve blanca casi sólida */
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); /* Le sale sombrita */
}

/* Ajuste para que los links se vean bien en fondo blanco o transparente */
.navbar.scrolled .logo,
.navbar.scrolled .nav-links a {
    color: var(--color-secondary); /* Asegura contraste */
}

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



/* El botón en el navegador (Desktop) */
.btn-nav {
    margin-left: auto; /* Empuja el botón a la derecha en escritorio */
    margin-right: 20px; /* Separación con el menú móvil si aparece */
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-secondary);
    font-family: var(--font-heading);
}

.logo .dot { color: var(--color-primary); }

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

.nav-links a:not(.btn-primary) {
    color: var(--color-secondary);
    font-weight: 500;
}

.menu-toggle { display: none; font-size: 2rem; cursor: pointer; }

/* --- HERO SECTION --- */
.hero {
    padding: 100px 0 60px;
    overflow: hidden;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
}

.highlight { color: var(--color-primary); }

.badge {
    background-color: var(--color-accent);
    color: var(--color-secondary);
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    display: inline-block;
    margin-bottom: 15px;
}

/* Placeholder del Celular */
.mockup-phone {
    width: 280px;
    height: 550px;
    background-color: var(--color-secondary);
    border-radius: 40px;
    border: 8px solid #333;
    margin: 0 auto;
    position: relative;
    box-shadow: 20px 20px 50px rgba(0,0,0,0.2);
}

.screen {
    background-color: #fff;
    width: 100%;
    height: 100%;
    border-radius: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

/* --- FEATURES --- */
.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: var(--border-radius);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition);
}

.feature-card:hover { transform: translateY(-5px); }

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

/* --- DEMOS --- */
.demos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.demo-card {
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.demo-img {
    height: 300px;
    background-color: #eee;
    /* Aquí pondremos las imágenes reales luego */
}

.demo-boda { background: linear-gradient(45deg, #f3e7e9 0%, #e3eeff 99%, #e3eeff 100%); }
.demo-xv { background: linear-gradient(120deg, #e0c3fc 0%, #8ec5fc 100%); }
.demo-minimal { background: #fdfbf7; }

.demo-info { padding: 20px; text-align: center; }

/* --- RESPONSIVE (Móvil) --- */
@media (max-width: 768px) {
    .nav-links {
        /* Estado cerrado (Oculto) */
        display: none; 
        position: absolute;
        top: 100%; /* Justo debajo de la barra */
        left: 0;
        width: 100%;
        background-color: #fff; /* Fondo blanco sólido */
        flex-direction: column; /* Lista vertical */
        padding: 20px 0;
        box-shadow: 0 10px 15px rgba(0,0,0,0.1);
        text-align: center;
        gap: 20px; /* Espacio entre enlaces */
    }

    /* Estado ABIERTO (Esta clase la pondrá JS) */
    .nav-links.active {
        display: flex;
        animation: slideDown 0.3s ease forwards;
    }

    /* Animación suave de entrada */
    @keyframes slideDown {
        from { opacity: 0; transform: translateY(-10px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .menu-toggle { 
        display: block;
        margin-left: 0; /*Reseteamos margen */
    }

    .btn-nav{
        padding: 8px 16px;
        font-size: 0.9rem;
        margin-right: 0;
        
    }
    .btn-nav span {
        display: none;
    }

    .hero-container {
        grid-template-columns: 1fr; /* Una columna */
        text-align: center;
    }

    .hero h1 { font-size: 2.5rem; }
    
    .hero-btns {
        display: flex;
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-outline { margin-left: 0; }
}


/* --- PHONE MOCKUP (El iPhone CSS) --- */
.phone-frame {
    width: 300px;
    height: 600px;
    background-color: #1a1a1a; /* Borde negro del teléfono */
    border-radius: 45px;
    box-shadow: 
        0 0 0 2px #444, /* Borde metálico exterior */
        0 20px 50px rgba(0,0,0,0.3); /* Sombra 3D */
    position: relative;
    padding: 12px; /* Grosor del borde */
    margin: 0 auto;
    transition: transform 0.5s ease;
}

.phone-frame:hover {
    transform: translateY(-10px) rotate(-2deg); /* Efecto flotante al pasar el mouse */
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background-color: #1a1a1a;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: #fff;
    border-radius: 35px; /* Debe ser un poco menos que el frame */
    overflow: hidden; /* Corta la imagen si es muy grande */
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Asegura que la foto llene toda la pantalla sin deformarse */
}

/* --- AJUSTE PARA LAS IMÁGENES DE DEMOS --- */
.demo-img {
    height: 250px; /* Altura fija */
    background-size: cover;
    background-position: center;
    transition: transform 0.3s ease;
}

.demo-card:hover .demo-img {
    transform: scale(1.05); /* Zoom suave al pasar el mouse */
}


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

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