/* VARIABLES */

:root {
    --text: #111111;
    --background: #c8e4ff;
    --primary: #060026;
    --secondary: #1b3fa0;
    --accent: #3b82f6;
    --white: #ffffff;
}

/* RESET */

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

/* Para todo el texto general, descripciones, precios y botones */
body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300; /* Un grosor ligero para que se vea fino y elegante */
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
}

/* Para los títulos grandes y nombres de los perfumes (L'ESSENCE UNIQUE, CATÁLOGO, etc.) */
h1, h2, h3, .logo, .nav-links a {
    font-family: 'Cinzel', serif;
    font-weight: 600;
    text-transform: uppercase; /* El diseño usa casi todo en mayúsculas */
    letter-spacing: 1px;       /* Un pequeño espacio entre letras para mayor elegancia */
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

header{
    display:flex;
    justify-content:space-between;
    align-items:center;

    padding:20px 60px;

    background:#dce8f3;
}

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

.logo img{
    width: 210px;
    height: auto;
}

nav{

    display:flex;
    gap:70px;

    margin-left:auto;
    margin-right:auto;
}


nav a{
    text-decoration:none;
    color:#111;

    font-weight:600;
    font-size:18px;

    display:flex;
    align-items:center;
    gap:10px;

    position:relative;

    transition:
        color .3s ease,
        transform .3s ease;
}

nav a:hover{

    color:#173a6b;

    transform:translateY(-3px);
}


nav a i{
    transition:.3s;
    font-size: 22px;
}

nav a.activo-menu{

    animation: menuActivo 2.5s ease-in-out infinite;
}

nav a.activo-menu::after{

    content:"";

    position:absolute;

    left:0;
    bottom:-10px;

    width:100%;
    height:3px;

    background:#0f2d5c;

    border-radius:10px;
}

nav a:hover::before{

    width:100%;
}

nav a::before{

    content:"";

    position:absolute;

    bottom:-10px;
    left:50%;

    width:0;

    height:3px;

    background:#173a6b;

    transition:all .3s ease;

    transform:translateX(-50%);
}


@keyframes menuActivo{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-2px);
    }

    100%{
        transform:translateY(0);
    }
}

/* LUPA */

.acciones{

    display:flex;
    gap:15px;
}

.btn-busqueda{

    width:45px;
    height:45px;

    border:none;
    border-radius:50%;

    background:white;

    cursor:pointer;

    transition:.3s;
}


.btn-busqueda:hover{

    background:#173a6b;
    color:white;

    transform:scale(1.1);
}

/* PARA QUE EL BOTON SE EXPANDA*/

.busqueda-expandible{

    display:flex;
    align-items:center;

    width:45px;
    height:45px;

    background:white;

    border-radius:30px;

    overflow:hidden;

    transition:all .4s ease;

    cursor:pointer;
}

.busqueda-expandible i{

    min-width:45px;

    text-align:center;

    color:#173a6b;

    font-size:16px;
}

.busqueda-expandible input{

    border:none;

    outline:none;

    width:0;

    background:transparent;

    font-size:15px;

    padding-right:15px;

    transition:.4s ease;
}


.busqueda-expandible:hover input{

    width:160px;
}

.busqueda-expandible:hover,
.busqueda-expandible:focus-within{

    width:220px;

    box-shadow:0 5px 15px rgba(15,45,92,.15);
}


/* HERO */

.hero{
    position: relative;
    min-height: 700px;
    overflow: hidden;

    display: flex;
    align-items: center;
}

.imagen-fondo{
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    object-fit: cover;

    z-index: 1;
}


.hero-text{
    position: relative;
    z-index: 3;

    padding: 130px;
}

.hero-text h1 {
    line-height: 1;
    font-size: 4rem;
    color: var(--primary);
    margin-bottom: 20px;
}

.hero-text p {
    line-height: 1.4;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.hero-text button {
    background: var(--primary);
    color: white;
    border: none;
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
}

.hero-text button:hover {
    background: var(--secondary);
}

.hero-image img {
    width: 500px;
    height: auto;
}

/* DESTACADOS */

.destacados {
    padding: 80px 10%;
    text-align: center;
}

.destacados h2 {
    color: var(--primary);
    margin-bottom: 50px;  /* SEPARACION DE LAS TARJETAS */
    font-size: 2rem;
}

.destacados ul {
    display: flex;
    justify-content: center;
    gap: 25px;
    list-style: none;
    flex-wrap: wrap;
}

.destacados li {
    background: white;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* BENEFICIOS */

.beneficios{
    position: relative;
    padding: 80px 10%;
    overflow: hidden;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}


.beneficios h1,
.card{
    position: relative;
    z-index: 2;
}

.fondo-beneficios{
    position: absolute;
    top: 0;
    right: 0;

    width: 100%;
    height: 100%;

    filter: blur(1px);


    object-fit: cover;

    z-index: 1;
}
.beneficios h1 {
    text-shadow:
        0 0 5px rgba(0,0,0,0.8),
        0 0 10px rgba(0,0,0,0.8),
        0 0 20px rgba(0,0,0,0.8);
    font-size: 4rem;
    grid-column: 1 / -1;
    text-align: center;
    color: #ffffff;
    margin-bottom: 30px;
}

.card h3 {
    color: #ffffff;
    margin-bottom: 10px;
}

.card {
    background: #00000069;
    padding: 30px;
    border-radius: 15px;
    text-align: center;

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.199);

    transition: 0.3s;
}

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

.icono {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

.icono img {
    width: 200px;
}

.card p {
    color: #dee8ff;
}

/* CAMBIAR ENTRE PERFUMES*/

.slider-container{

    display:flex;
    align-items:center;
    gap:20px;

}

.slider{
    padding-top: 10px;
    display:flex;
    gap:25px;
    overflow-x:auto;
    scroll-behavior:smooth;
    scrollbar-width:none;
    flex:1;

}

.slider::-webkit-scrollbar{
    display:none;
}

.linea-destacados{

    width:220px;
    height:4px;

    background:#0f2d5c;

    margin:15px auto 50px;

    border-radius:20px;
}

/* TARJETAS DE LOS PERFUMES */
.card-destacado{

    min-width:280px;
    background:white;
    border-radius:15px;
    padding:20px;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    transition:.3s;
}

.card-destacado img{
    
    width:100%;
    height:220px;
    object-fit:contain;

}

.card-destacado h3{

    margin-top:15px;
    color:#0f2d5c;

}

.card-destacado:hover{

    transform:translateY(-8px);

    box-shadow:0 12px 25px rgba(0,0,0,.15);
}


/* FLECHAS DE LAS TARJETAS */
.slider-btn{

    width:50px;
    height:50px;
    border:none;
    border-radius:50%;
    background:#0f2d5c;
    color:white;
    cursor:pointer;
    font-size:20px;
    transition:.3s;
}

.slider-btn:hover{

    transform:scale(1.1);
    background:#173a6b;
    
}

/* IMAGEN INFERIOR */

.beneficios div:last-child img {
    width: 100%;
    border-radius: 20px;
}

/* FOOTER */

footer{
    background: #0f2747;
    color: white;
}

.footer-container{
    max-width: 1300px;
    margin: auto;
    padding: 40px 80px;

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 120px;

}

.footer-logo{
    flex: 1;
    min-width: 250px;
}

.footer-logo h2{
    font-family: 'Playfair Display', serif;
    margin-bottom: 15px;
    font-size: 28px;
}

.footer-logo p{
    color: #d8e3ee;
    line-height: 1.6;
}

.footer-contact{
    flex: 1;
    min-width: 200px;
}

.footer-contact h3,
.footer-links h3{
    margin-bottom: 15px;
    font-size: 18px;
    margin-top: 35px;
}

.footer-contact address{
    font-style: normal;
    line-height: 1.8;
    color: #d8e3ee;
}

.footer-links{
    flex: 1;
    min-width: 200px;

    display: flex;
    flex-direction: column;
}

.footer-links a{
    color: #d8e3ee;
    text-decoration: none;
    margin-bottom: 15px;
    transition: 0.3s;
}

.footer-links a:hover{
    color: white;
    transform: translateX(5px);
}

.footer-bottom{
    border-top: 1px solid rgba(255,255,255,.15);

    text-align: center;
    padding: 20px;
}

.footer-bottom p{
    font-size: 14px;
    color: #c9d5df;
}

.footer-brand{
    width: 180px;
    height: auto;
}


.footer-brand img{
    width: 230px;
    height:auto;
    flex-shrink:0;
}

.footer-brand h2{
    margin-bottom:10px;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    .hero {
        flex-direction: column;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3rem;
    }

    .hero-image img {
        width: 350px;
        margin-top: 30px;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: 10px;
    }

    .header-content {
        flex-direction: column;
        gap: 20px;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}

/*
    BOTON DE WHATSAPP
*/

.whatsapp-float{
    position:fixed;
    bottom:25px;
    right:25px;
    width:65px;
    height:65px;
    border-radius:50%;
    background:#25D366;
    display:flex;
    justify-content:center;
    align-items:center;
    color:white;
    font-size:32px;
    text-decoration:none;
    box-shadow:0 5px 20px rgba(0,0,0,.25);
    z-index:999;
    transition:.3s;

    animation:pulse 2s infinite;
}

.whatsapp-float:hover{
    transform:scale(1.1);
    box-shadow:0 8px 25px rgba(0,0,0,.35);
}

@keyframes pulse{
    0%{
        box-shadow:0 0 0 0 rgba(37,211,102,.7);
    }
    70%{
        box-shadow:0 0 0 15px rgba(37,211,102,0);
    }
    100%{
        box-shadow:0 0 0 0 rgba(37,211,102,0);
    }
}

/* =====================================
   RESPONSIVE TABLET
===================================== */

@media (max-width: 1024px){

    header{
        padding:20px 30px;
    }

    nav{
        gap:30px;
    }

    .hero-text{
        padding:80px;
    }

    .hero-text h1{
        font-size:3.2rem;
    }

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

    .footer-container{
        gap:60px;
    }
}

/* =====================================
   RESPONSIVE CELULAR
===================================== */

@media (max-width: 768px){

    html,
    body{
        overflow-x:hidden;
    }

    /* HEADER */

    header{
        flex-direction:column;
        padding:20px;
        gap:20px;
    }

    .logo img{
        width:170px;
    }

    nav{
        width:100%;
        margin:0;
        gap:15px;
        justify-content:center;
        flex-wrap:wrap;
    }

    nav a{
        font-size:14px;
        gap:6px;
    }

    nav a i{
        font-size:16px;
    }

    .acciones{
        width:100%;
        justify-content:center;
    }

    .busqueda-expandible:hover,
    .busqueda-expandible:focus-within{
        width:180px;
    }

    .busqueda-expandible:hover input{
        width:120px;
    }

    /* HERO */

    .hero{
        min-height:500px;
        justify-content:center;
        text-align:center;
    }

    .hero-text{
        padding:40px 20px;
        width:100%;
    }

    .hero-text h1{
        font-size:2.2rem;
        margin-bottom:15px;
    }

    .hero-text p{
        font-size:1rem;
        margin-bottom:20px;
    }

    .hero-text button{
        width:100%;
        max-width:280px;
    }

    /* DESTACADOS */

    .destacados{
        padding:60px 20px;
    }

    .destacados h2{
        font-size:1.8rem;
    }

    .slider-container{
        gap:10px;
    }

    .card-destacado{
        min-width:240px;
        padding:15px;
    }

    .card-destacado img{
        height:180px;
    }

    .slider-btn{
        width:42px;
        height:42px;
        font-size:16px;
    }

    /* BENEFICIOS */

    .beneficios{
        padding:60px 20px;
        grid-template-columns:1fr;
    }

    .beneficios h1{
        font-size:2.2rem;
        margin-bottom:20px;
    }

    .card{
        padding:20px;
    }

    .icono img{
        width:120px;
    }

    .card h3{
        font-size:1.1rem;
    }

    .card p{
        font-size:.95rem;
    }

    /* FOOTER */

    .footer-container{
        flex-direction:column;
        text-align:center;
        padding:40px 20px;
        gap:40px;
    }

    .footer-brand{
        width:100%;
    }

    .footer-brand img{
        width:180px;
        margin:auto;
    }

    .footer-contact h3,
    .footer-links h3{
        margin-top:0;
    }

    .footer-links{
        align-items:center;
    }

    /* WHATSAPP */

    .whatsapp-float{
        width:60px;
        height:60px;
        font-size:28px;
        right:15px;
        bottom:15px;
    }
}

/* =====================================
   CELULARES PEQUEÑOS
===================================== */

@media (max-width: 480px){

    header{
        padding:15px;
    }

    .logo img{
        width:140px;
    }

    nav{
        gap:12px;
    }

    nav a{
        font-size:13px;
    }

    .hero{
        min-height:420px;
    }

    .hero-text h1{
        font-size:1.8rem;
    }

    .hero-text p{
        font-size:.9rem;
    }

    .linea-destacados{
        width:150px;
    }

    .destacados h2{
        font-size:1.5rem;
    }

    .beneficios h1{
        font-size:1.8rem;
    }

    .card-destacado{
        min-width:220px;
    }

    .footer-bottom p{
        font-size:12px;
    }

    .whatsapp-float{
        width:55px;
        height:55px;
        font-size:25px;
    }
}