/* =========================================
   VARIABLES Y RESET
   ========================================= */
:root {
    --bg-color: #0f0518;
    --card-bg: #1e0d2d;
    --accent-cream: #f8f1e7;
    --accent-purple: #3d1c5c;
    --text-main: #ffffff;
    --text-muted: #bdaec6;
    --font-family: 'Lora', Roboto, Helvetica, Arial, sans-serif;
    --transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    /* Fondo con gradiente elegante de arriba a abajo */
    background: linear-gradient(180deg, #0f0518 0%, #1a0b2e 100%);
    background-attachment: fixed; /* Mantiene el gradiente estable al scrollear */
    color: var(--text-main);
    font-family: var(--font-family);
    line-height: 1.6;
    overflow-x: hidden;
}

/* =========================================
   HEADER & NAV
   ========================================= */
header {
    padding: 1.5rem 5%;
    position: sticky;
    top: 0;
    background: rgba(15, 5, 24, 0.9);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo corregido para que sea blanco en ambos lados */
.logo img, .footer-logo {
    height: 40px;
    filter: invert(1); 
}

nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

nav ul li {
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition);
}

nav ul li:hover {
    color: var(--text-main);
}

.auth button {
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.auth button:first-child {
    background: transparent;
    color: var(--text-main);
}

.auth button:last-child {
    background: var(--accent-cream);
    color: var(--bg-color);
}

/* =========================================
   HERO SECTION
   ========================================= */
.hero {
    padding: 8rem 5%;
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
}

.hero-container {
    max-width: 600px;
    z-index: 10;
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}


.hero p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.hero button {
    padding: 1rem 2.5rem;
    background:linear-gradient(135deg, #e7deff 0%, #9f93e2 100%);;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
}

.browser:hover {
    transition: transform 0.3s ease;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(65, 28, 124, 0.3);
    background:linear-gradient(135deg, #f7f4ff 0%, #dad4ff 100%);;
}

/* Imágenes Flotantes del Hero - AJUSTADAS MÁS GRANDES */
.hero-images {
    position: absolute;
    right: 5%;
    top: 50%;
    transform: translateY(-50%);
    width: 45%;
    height: 600px;
}

.hero-images img {
    position: absolute;
    border-radius: 50%;
    object-fit: cover;
    border: 6px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 30px 60px rgba(32, 23, 44, 0.6);
    transition: var(--transition);
}

/* Aumento de tamaño solicitado */
.floating-img-1 { width: 320px; height: 320px; top: 0; right: 0; z-index: 3; }
.floating-img-2 { width: 240px; height: 240px; bottom: 5%; right: 35%; z-index: 2; }
.floating-img-3 { width: 200px; height: 200px; top: 15%; right: 45%; z-index: 1; }

.hero-images img:hover { transform: scale(1.05); }

/* =========================================
   FEATURES SECTION
   ========================================= */
.features {
    padding: 5rem 5%;
    display: flex;
    align-items: center;
    gap: 10%;
    background: transparent;
}

.feature-text { flex: 1; }
.feature-text h2 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.feature-text ul { list-style: none; margin-top: 1.5rem; }
.feature-text li { 
    margin-bottom: 0.8rem; 
    padding-left: 1.5rem;
    position: relative;
}
.feature-text li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-cream);
}

.feature-image img {
    width: 450px;
    height: 450px;
    border-radius: 50%;
    object-fit: cover;
}

.feature-image:hover {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: scale(1.05);
}
/* =========================================
   TESTIMONIALS
   ========================================= */
.testimonials { padding: 5rem 5%; text-align: center; }
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: var(--card-bg);
    padding: 3rem;
    border-radius: 20px;
    text-align: left;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.05);
}

.testimonial-card:hover { transform: translateY(-10px); background: #2a143d; }

.testimonial-card span {
    display: block;
    margin-top: 1.5rem;
    color: var(--accent-cream);
    font-weight: bold;
}

/* =========================================
   POPULAR FRAGRANCES
   ========================================= */
.popular-perfumes { padding: 5rem 5%; text-align: center; }
.section-title { margin-bottom: 3rem; font-size: 2.2rem; }

.fragances-container {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.fragance-item {
    position: relative;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(83, 46, 170, 0.3);
}

.fragance-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.fragance-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(61, 28, 92, 0.85);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: var(--transition);
    backdrop-filter: blur(4px);
    padding: 20px;
}

.fragance-overlay h4 { font-size: 1.5rem; margin-bottom: 0.5rem; }
.fragance-overlay h5 { font-size: 1rem; color: var(--accent-cream); text-transform: uppercase; letter-spacing: 2px; }

.fragance-item:hover .fragance-overlay { opacity: 1; }
.fragance-item:hover img { transform: scale(1.1); }

/* =========================================
   VALUE PROPOSITION (LAS TARJETAS ELEGANTES)
   ========================================= */
.value-proposition { padding: 8rem 5%; text-align: center; }
.value-proposition h2 { font-size: 2.5rem; margin-bottom: 1rem; }

.cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
}

.card {
    background: var(--card-bg);
    padding: 3rem 2rem;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.card:hover {
    transform: translateY(-12px);
    background: #251238;
    box-shadow: 0 20px 40px rgba(54, 18, 95, 0.4);
}

.card img {
    width: 100%;       /* Ocupa todo el ancho de la tarjeta */
    height: 220px;      /* Altura fija para que todas las tarjetas sean iguales */
    object-fit: cover;  /* Para que la imagen llene el espacio sin deformarse */
    margin-bottom: 0;
    filter: brightness(0.9); /* Un toque sutil para que el texto resalte luego */
    transition: var(--transition);
}

.card h3 { margin-bottom: 1rem; color: var(--accent-cream); margin-top: 9px; }
.card p { color: var(--text-muted); font-size: 0.95rem; }

/* =========================================
   FAQ SECTION
   ========================================= */
.faq { padding: 5rem 20%; }
.faq-item {
    border-bottom: 1px solid var(--accent-purple);
    padding: 1.5rem 0;
    cursor: pointer;
}

.faq-question { display: flex; justify-content: space-between; align-items: center; }
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    color: var(--text-muted);
    margin-top: 0;
    margin-left: 6px;
}
.faq-item.active .faq-answer { max-height: 200px; margin-top: 1rem; }


/* =========================================
   FOOTER
   ========================================= */
footer { background: #160229; padding: 5rem 5% 2rem; }

.footer-cta {
    background: var(--accent-purple);
    border-radius: 30px;
    padding: 4rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

/* ESTILO DEL BOTÓN EMPIEZA */
.empieza {
    padding: 1.2rem 2.5rem;
    background: var(--accent-cream);
    color: var(--bg-color);
    border: none;
    border-radius: 50px;
    margin-top: 16px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 10px 20px rgba(73, 34, 136, 0.2);
}

.empieza:hover {
    transition: transform 0.3s ease;
    transform: scale(1.05);
    box-shadow: 0 15px 30px rgba(88, 44, 170, 0.3);
    background: #ffffff;
}

.footer-deco-img {
    width: 300px;
    position: absolute;
    right: -50px;
    opacity: 0.3;
}

.footer-links {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid #222;
}

.link-group h4 { margin-bottom: 1.5rem; color: var(--accent-cream); }
.link-group ul { list-style: none; }
.link-group li { margin-bottom: 0.8rem; color: var(--text-muted); cursor: pointer; }

.footer-bottom {
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.footer-bottom ul { display: flex; list-style: none; gap: 2rem; }

/* =========================================
   MEDIA QUERY: LIGHT MODE
   ========================================= */
@media (prefers-color-scheme: light) {
    :root {
        --bg-color: #f8f3ea;
        --card-bg: #ffffff;
        --accent-purple: #b984d3;
        --text-main: #2d1b4d;
        --text-muted: #3e2b50;
    }
    .logo img, .footer-logo { filter: none; }
    header { background: rgba(253, 250, 246, 0.9); }
    body { background: linear-gradient(180deg, #ebe7f5 0%, #cfc3f7 100%); }
    .empieza { background:#2d1b4d }
    .empieza:hover { background: #4b3275 }
    .browser:hover { background:linear-gradient(135deg, #8765dd 0%, #5f4dc2 100%); }
    .hero button { color: #ebe7f5 }
    .card:hover { background: #d3c4f5}
    .fragance-overlay h4 { color: #f8e8ff}
    .hero-images img { box-shadow: 0 30px 60px rgba(171, 107, 255, 0.6);}
    .cards-container h3 { color: #4b3275 }
    footer { background: rgba(253, 250, 246, 0.9); }
    .testimonial-card:hover { background: #d3c4f5 }
    .feature-text li::before { color:rgba(61, 28, 92, 0.85)}
    .hero button { background:linear-gradient(135deg, #7054b9 0%, #3f3383 100%); }
    .auth button:last-child { background: #4b3275 }
    .testimonial-card span { color:#2d1b4d }
    .footer-cta { background: #ae87db}
}

@media (max-width: 768px) {
    .hero h1 { font-size: 2.5rem; }
    .hero-images { display: none; }
    .features { flex-direction: column; text-align: center; }
    .footer-links { grid-template-columns: 1fr 1fr; }
}