/* ===================== VARIABLES ===================== */
:root {
    --crema: #A66B4C;
    --navy: #1D2A44;
    --emerald: #006A4E;
    --charcoal: #333333;
    --gold: #D4AF37;
    --white: #ffffff;
}

/* ===================== RESET ===================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===================== BODY ===================== */
body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, #A66B4C 0%, #f1f5f9 100%);
    color: var(--charcoal);
    line-height: 1.6;
}

/* ===================== HEADER PRO ===================== */
header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    padding: 10px 8%; /* 👈 más compacto */
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    transition: all 0.3s ease;
    z-index: 1000;
}

/* CUANDO HACE SCROLL */
header.scrolled {
    background: #D4AF37; /* 👈 amarillo elegante */
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

/* LINKS EN SCROLL */
header.scrolled .nav-links a {
    color: white;
}

/* ICONO MENU */
header.scrolled .menu-icon {
    color: white;
}

/* LOGO */
.logo img {
    width: 180px;
    transition: 0.3s;
}

header.scrolled .logo img {
    width: 140px; /* 👈 efecto premium */
}

/* NAV */
.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: rgb(1, 39, 92);
    font-weight: 530;
    position: relative;
    transition: 0.3s;
}


/* INDICADOR ACTIVO */
.nav-links a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0%;
    height: 2px;
    background: var(--emerald);
    transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

/* MENU ICON */
.menu-icon {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
}

.menu-icon {
    color: var(--navy);
}




/* ===================== MOBILE MENU ===================== */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 75%;
    height: 100%;
    background: white;
    display: flex;
    flex-direction: column;
    padding: 80px 30px;
    gap: 25px;
    transition: 0.4s;
    z-index: 999;
}

.mobile-menu a {
    text-decoration: none;
    font-size: 1.3rem;
    color: var(--navy);
    font-weight: 500;
    position: relative;
}

/* INDICADOR MOBILE */
.mobile-menu a.active {
    color: var(--emerald);
}

/* ABIERTO */
.mobile-menu.open {
    left: 0;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {

    .nav-links {
        display: none;
    }

    .menu-icon {
        display: block;
    }
}

/* ===================== TOP BANNER ===================== */
.top-banner {
    width: 100%;
    background: var(--navy);
    color: white;
    text-align: center;
    padding: 10px;
    font-size: 0.9rem;
    
}

/* ===================== HERO ===================== */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;

    padding: 120px 10%;
    min-height: 85vh;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("img/banner.png");
    background-repeat: no-repeat;

    /* 👇 magia real */
    background-size: cover;
    background-position: center center;

    z-index: 0;
}

/* overlay */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg,
            rgba(253, 253, 251, 0.7) 0%,
            rgba(253, 253, 251, 0.4) 40%,
            rgba(253, 253, 251, 0.1) 70%,
            rgba(253, 253, 251, 0) 100%);
    z-index: 1;
}

/* efecto decorativo */


.hero-content {
    position: relative;
    z-index: 2;
    max-width: 550px;
}

.hero-content h1 {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    color: var(--navy);
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.subtitle {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 2.5rem;
}

/* ===================== BOTONES ===================== */
.btn-primary,
.btn-whatsapp {
    display: inline-block;
    background: #1db756;
    color: #ffffff;
    padding: 18px 35px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover,
.btn-whatsapp:hover {
    background: #07702e;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 106, 78, 0.2);
}

/* ===================== BOX DETAILS ===================== */
.box-details {
    position: relative;
    padding: 100px 10%;
    text-align: center;
    overflow: hidden;
    color: white;
}

/* IMAGEN DE FONDO */
.box-details::before {
    content: "";
    position: absolute;
    inset: 0;

    background-image: url("img//eggsline.png"); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    z-index: 0;
}

/* OVERLAY OSCURO PARA LEGIBILIDAD */
.box-details::after {
    content: "";
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45); /*  ajusta intensidad */
    z-index: 1;
}

/* CONTENIDO ENCIMA */
.box-details * {
    position: relative;
    z-index: 2;
}

/* SUBTITULO */
.section-subtitle {
    max-width: 600px;
    margin: 10px auto 50px;
    font-size: 1rem;
    opacity: 0.85;
}

/* GRID PRODUCTOS */
.product-grid {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

/* CARD */
.product-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    padding: 25px;
    width: 280px;
    text-align: left;

    border: 1px solid rgba(255,255,255,0.15);

    transition: 0.4s;
}

/* HOVER PRO */
.product-card:hover {
    transform: translateY(-8px);
    background: rgba(255,255,255,0.12);
}

/* TITULO */
.product-card h3 {
    margin-bottom: 10px;
    font-size: 1.4rem;
}

/* TEXTO */
.product-card p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin-bottom: 15px;
}

/* BADGE */
.badge {
    display: inline-block;
    font-size: 0.7rem;
    background: var(--gold);
    color: #000;
    padding: 5px 10px;
    border-radius: 20px;
    font-weight: 600;
}

/* ===================== STATS ===================== */
.stats-grid {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 60px;
    flex-wrap: wrap;
}

/* CARD STAT */
.stat {
    text-align: center;
}

/* NUMERO */
.stat h3 {
    font-size: 2rem;
    color: var(--gold);
    margin-bottom: 5px;
}

/* TEXTO */
.stat p {
    font-size: 0.9rem;
    opacity: 0.85;
}

/* ===================== TRUST ===================== */
.trust {
    padding: 20px 10%;
}

/* CONTENEDOR PRINCIPAL (YA NO FLEX DIRECTO) */
.trust-card {
    background: #1D2A44;
    backdrop-filter: blur(6px);

    color: var(--white);
    border-radius: 20px;
    padding: 50px;

    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.25);
}

/* PARTE SUPERIOR */
.trust-top {
    display: flex;
    align-items: center;
    gap: 50px;
    margin-bottom: 40px;
}

/* IMAGEN */
.profile-frame img {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
}

/* TEXTO */
.trust-info h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
}

/* PARTE INFERIOR (YA INTEGRADA) */
.trust-extra {
    position: relative;
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 30px;
}

/* línea divisora */
.trust-extra::before {
    content: "";
    position: absolute;
    top: 0;
    left: 5%;
    width: 90%;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
}

/* CARDS INTERNAS */
.trust-contact-card,
.trust-map-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 18px;
    padding: 25px;
    flex: 1;
    min-width: 280px;

    border: 1px solid rgba(255, 255, 255, 0.15);

    box-shadow: 
        0 10px 30px rgba(0,0,0,0.25),
        inset 0 1px 1px rgba(255,255,255,0.15);

    transition: all 0.4s ease;
}

/* HOVER SUAVE */
.trust-contact-card:hover,
.trust-map-card:hover {
    transform: translateY(-5px);
}

/* CONTACTO */
.trust-contact-card h3 {
    margin-bottom: 15px;
    color: #fcfcfc;
}

.trust-contact-card .item {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 10px;
}

.trust-contact-card span {
    font-size: 18px;
}

.trust-contact-card a {
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
}

/* MAPA */
.trust-map-card {
    padding: 0;
    overflow: hidden;
}

.trust-map-card iframe {
    width: 100%;
    height: 100%;
    min-height: 250px;
    border: none;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .trust-top {
        flex-direction: column;
        text-align: center;
    }

    .trust-extra {
        flex-direction: column;
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    filter: blur(10px);
    transition: all 0.8s cubic-bezier(0.2, 0.65, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}


/* ===================== APP STYLE ORDER ===================== */

/* FONDO */
.order-system {
    position: relative;
    padding: 60px 20px; /* 👈 menos espacio */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: auto; /* 👈 quitamos el full screen */
}

/* IMAGEN DE FONDO */
.order-system::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("img/canasta.png") center/cover no-repeat;
    z-index: 0;
}

/* OVERLAY */
.order-system::after {
    content: "";
    position: absolute;
    inset: 0;
   
    z-index: 1;
}

/* CARD CENTRAL */
.order-container {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.474);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

/* TITULOS */
.order-container h2 {
    text-align: center;
    color: #000000;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.order-container .subtitle {
    text-align: center;
    font-size: 0.9rem;
    margin-bottom: 20px;
    color: #090909;
}

/* FORM */
.order-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.order-form input,
.order-form select {
    padding: 14px;
    border-radius: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
}

.order-form input:focus,
.order-form select:focus {
    border: 1px solid var(--emerald);
    background: white;
}

/* PRODUCTOS */
.order-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* CARD */
.order-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px;
    border-radius: 12px;
    background: #f9fafb;
}

/* BOTONES */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-control button {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f1af09;
    color: white;
    border: none;
    font-size: 16px;
}

/* SUMMARY */
.order-summary {
    margin-top: 15px;
    background: #c99207;
    color: white;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
}

.order-summary p {
    font-size: 0.85rem;
    margin-bottom: 10px;
}

.order-summary .btn-primary {
    background: white;
    color: #07702e;
    border: 1px; /* 👈 elimina borde verde */
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.btn-primary i {
    margin-right: 8px;
    font-size: 1.1rem;
}


/* ===================== FOOTER ===================== */
/* ===================== FOOTER PRO ===================== */
/* ===================== FOOTER COMPACTO PRO ===================== */
.footer {
    background: #c98c07;
    color: #ffffff;
    padding: 25px 10% 10px; /* 👈 mucho más compacto */
}

/* CONTENEDOR */
.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;

    border-bottom: 1px solid rgba(255,255,255,0.15);
    padding-bottom: 15px;
}

/* COLUMNAS */
.footer-col {
    display: flex;
    flex-direction: column;
    gap: 6px; /* 👈 menos espacio */
}

/* LOGO */
.footer-logo {
    width: 110px; /* 👈 más pequeño */
    opacity: 0.95;
}

/* LINKS */
.footer-col a {
    color: #ffffff;
    text-decoration: none;
    font-size: 13px;
    transition: 0.3s;
}

.footer-col a:hover {
    color: #fff;
}

/* TEXTO */
.footer-col span {
    font-size: 12px;
    opacity: 0.7;
}

/* REDES */
.footer-col.social {
    flex-direction: row;
    gap: 10px;
}

.footer-col.social a {
    width: 34px;
    height: 34px;
    font-size: 14px;
    color: #ffffff;

    background: rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;

    transition: all 0.3s ease;
}

/* HOVER MÁS FINO */
.footer-col.social a:hover {
    background: white;
    color: #c98c07;
    transform: translateY(-2px);
}

/* COPY */
.footer-copy {
    text-align: center;
    font-size: 11px;
    margin-top: 10px;
    opacity: 0.6;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .footer-col {
        align-items: center;
    }

    .footer-col.social {
        justify-content: center;
    }
}

/* ===================== WHATSAPP FLOAT ===================== */
/* ===================== WHATSAPP FLOAT PRO ===================== */

.float-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    align-items: center;
    z-index: 999;
}

/* TEXTO */
.float-label {
    background: #25D366;
    color: #fff;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px 0 0 10px;
    text-decoration: none;
    display: flex;
    align-items: center;
    margin-right: 6px;
    position: relative;
    transition: 0.3s;
}

/* TRIANGULITO */
.float-label::after {
    content: "";
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 6px solid #25D366;
}

/* BOTÓN */
.float-button {
    width: 55px;
    height: 55px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 26px;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    transition: 0.3s;
}

/* HOVER */
.float-button:hover,
.float-label:hover {
    background: #1ebe5d;
}

/* EFECTO PULSO (PRO) */
.float-button::before {
    content: "";
    position: absolute;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: rgba(37, 211, 102, 0.5);
    animation: pulse 2s infinite;
    z-index: -1;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }
    70% {
        transform: scale(1.6);
        opacity: 0;
    }
    100% {
        transform: scale(1.6);
        opacity: 0;
    }
}

.hero {
    min-height: 100vh;
}

@media (max-width: 900px) {
    .hero {
        min-height: 75vh;
    }
}

/* ===================== MICROINTERACCIONES ===================== */

/* PRODUCT CARDS */
.product-card {
    transform: translateY(0) scale(1);
}

.product-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

/* BADGE EFECTO */
.badge {
    transition: all 0.3s ease;
}

.product-card:hover .badge {
    background: white;
    color: var(--navy);
}

/* STATS */
.stat {
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-6px) scale(1.05);
}

/* NUMERO EFECTO */
.stat h3 {
    transition: 0.3s;
}

.stat:hover h3 {
    color: white;
}

/* SUAVIZAR SCROLL REVEAL */
.reveal {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(8px);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {

    .hero {
        padding: 100px 5% 60px;
        min-height: auto; /* 👈 elimina el espacio forzado */
        align-items: flex-start;
    }

    .hero::before {
        background-size: cover; /* 👈 clave */
        background-position: center top;
    }

    .hero-content {
        margin-top: 40px;
    }


    .hero-content h1 {
        font-size: 2.5rem;
    }

    .trust-card {
        flex-direction: column;
        text-align: center;
        padding: 40px 20px;
    }

    .logic-grid {
        flex-direction: column;
    }

    .logic-separator {
        transform: rotate(90deg);
    }

    .order-system {
        padding: 60px 5%;
    }

    /* productos en 1 columna */
    .order-grid {
        grid-template-columns: 1fr;
    }

    .order-card {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .order-card h3 {
        font-size: 1rem;
    }

    .quantity-control {
        gap: 10px;
    }
}