/* ============================================
   REISHI COFFEE - CSS COMPLETO
   ============================================ */

/* ---- VARIABLES ---- */
:root {
    --primary: #2d6a4f;
    --primary-dark: #1b4332;
    --primary-light: #40916c;
    --secondary: #d4a574;
    --secondary-dark: #b8834a;
    --accent: #95d5b2;
    --gold: #d4a574;
    --dark: #1a1a2e;
    --dark-light: #16213e;
    --gray-900: #212529;
    --gray-800: #343a40;
    --gray-700: #495057;
    --gray-600: #6c757d;
    --gray-400: #ced4da;
    --gray-300: #dee2e6;
    --gray-200: #e9ecef;
    --gray-100: #f8f9fa;
    --white: #ffffff;
    --danger: #dc3545;
    --success: #28a745;
    --warning: #ffc107;
    --info: #17a2b8;
    --font-primary: 'Inter', sans-serif;
    --font-display: 'Playfair Display', serif;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --shadow-xl: 0 20px 60px rgba(0,0,0,0.2);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-full: 50px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- RESET ---- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--gray-800);
    line-height: 1.7;
    background: var(--white);
    overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---- BOTONES ---- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    font-family: var(--font-primary);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    line-height: 1.4;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}
.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-light {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
}
.btn-light:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover {
    background: var(--white);
    color: var(--primary);
}

.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-sm { padding: 8px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; justify-content: center; }

.btn-danger {
    background: var(--danger);
    color: var(--white);
    border-color: var(--danger);
}
.btn-danger:hover {
    background: #c82333;
    border-color: #c82333;
}

.btn-success {
    background: var(--success);
    color: var(--white);
    border-color: var(--success);
}

.btn-warning {
    background: var(--warning);
    color: var(--gray-900);
    border-color: var(--warning);
}

/* ---- NAVBAR ---- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 15px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(27, 67, 50, 0.97);
    padding: 10px 0;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(10px);
}

.navbar-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand .logo {
    height: 45px;
    width: auto;
    transition: var(--transition);
}

.navbar.scrolled .navbar-brand .logo {
    height: 38px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-link {
    color: rgba(255,255,255,0.85);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--white);
    background: rgba(255,255,255,0.15);
}

.navbar-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.navbar-toggle span {
    width: 25px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

.nav-auth {
    margin-left: 10px;
}

/* ---- HERO ---- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    text-align: center;
    color: var(--white);
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(27,67,50,0.85) 0%, rgba(26,26,46,0.7) 100%);
    z-index: 1;
}

/* Hero Video Background */
.hero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.hero-youtube {
    overflow: hidden;
    pointer-events: none;
}

.hero-youtube iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120vw;
    height: 120vh;
    min-width: 120%;
    min-height: 120%;
    transform: translate(-50%, -50%);
    border: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.25rem);
    opacity: 0.9;
    margin-bottom: 35px;
    line-height: 1.8;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.hero-scroll-indicator a {
    color: rgba(255,255,255,0.7);
    font-size: 1.5rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(45,106,79,0.4); }
    70% { box-shadow: 0 0 0 15px rgba(45,106,79,0); }
    100% { box-shadow: 0 0 0 0 rgba(45,106,79,0); }
}

/* ---- SECTIONS ---- */
.section {
    padding: 100px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: var(--dark);
    margin-bottom: 10px;
}

.section-subtitle {
    color: var(--gray-600);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
}

.section-divider {
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 2px;
    margin: 15px auto 0;
}

/* ---- VIDEO INTERMEDIO (solapado sobre el hero) ---- */
.video-intermedio-wrapper {
    position: relative;
    z-index: 10;
    margin-top: -90px;
    padding-bottom: 0;
    pointer-events: none;
}

.video-intermedio-card {
    pointer-events: all;
    max-width: 860px;
    margin: 0 auto;
    background: #000;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    border: 3px solid rgba(255,255,255,0.12);
}

.video-intermedio-titulo {
    background: rgba(0,0,0,0.7);
    color: #fff;
    text-align: center;
    padding: 12px 20px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    backdrop-filter: blur(6px);
}

.video-intermedio-player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}

.video-intermedio-player iframe,
.video-intermedio-player video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Espacio extra en la sección beneficios cuando hay video arriba */
.benefits.has-video-above {
    padding-top: 110px;
}

/* ---- LOGOS CARRUSEL ---- */
.logos-section {
    padding: 50px 0;
    background: var(--white);
    overflow: hidden;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
}

.logos-header {
    text-align: center;
    margin-bottom: 32px;
    padding: 0 20px;
}

.logos-header h3 {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.logos-header p {
    color: var(--gray-600);
    font-size: 0.95rem;
}

.logos-track-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Fade gradients on both edges */
.logos-track-wrapper::before,
.logos-track-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 140px;
    z-index: 2;
    pointer-events: none;
}

.logos-track-wrapper::before {
    left: 0;
    background: linear-gradient(to right, var(--white) 0%, transparent 100%);
}

.logos-track-wrapper::after {
    right: 0;
    background: linear-gradient(to left, var(--white) 0%, transparent 100%);
}

.logos-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: logos-scroll 28s linear infinite;
}

.logos-track:hover {
    animation-play-state: paused;
}

@keyframes logos-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.logos-item {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 60px;
    padding: 0 10px;
}

.logos-item img {
    height: 48px;
    max-width: 160px;
    object-fit: contain;
    filter: grayscale(100%) opacity(0.55);
    transition: filter 0.3s ease;
}

.logos-item img:hover,
.logos-item a:hover img {
    filter: grayscale(0%) opacity(1);
}

.logos-item a {
    display: flex;
    align-items: center;
}


/* ---- BENEFICIOS (sin video ya tiene su separación via .section) ---- */

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
}

.benefit-card {
    background: var(--white);
    padding: 40px 25px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.benefit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: var(--white);
    font-size: 1.5rem;
}

.benefit-card h3 {
    color: var(--dark);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.benefit-card p {
    color: var(--gray-600);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* ---- PAQUETES ---- */
.packages {
    background: var(--white);
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    align-items: stretch;
}

.package-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    border: 2px solid var(--gray-200);
    display: flex;
    flex-direction: column;
}

.package-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.package-card.featured {
    border-color: var(--primary);
    transform: scale(1.03);
}

.package-card.featured:hover {
    transform: scale(1.03) translateY(-10px);
}

.package-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger);
    color: var(--white);
    padding: 5px 15px;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 5;
}

.package-popular-badge {
    position: absolute;
    top: -1px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: var(--white);
    padding: 6px 22px;
    border-radius: 0 0 var(--radius) var(--radius);
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 6;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.package-popular-badge i {
    margin-right: 5px;
    font-size: 0.75rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0 0 18px 0;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 0.88rem;
    color: var(--gray-700);
    border-bottom: 1px solid var(--gray-100);
}

.package-features li:last-child {
    border-bottom: none;
}

.package-features li i {
    color: var(--primary);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.package-image {
    padding: 30px;
    background: linear-gradient(135deg, var(--gray-100), var(--gray-200));
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 250px;
}

.package-image img {
    max-height: 200px;
    width: auto;
    transition: var(--transition);
}

.package-card:hover .package-image img {
    transform: scale(1.05);
}

.package-content {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.package-name {
    font-family: var(--font-display);
    font-size: 1.4rem;
    color: var(--dark);
    margin-bottom: 8px;
}

.package-description {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-bottom: 15px;
    flex-grow: 1;
}

.package-quantity {
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.package-quantity i {
    margin-right: 5px;
}

.package-pricing {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.price-old {
    color: var(--gray-600);
    text-decoration: line-through;
    font-size: 1rem;
}

.price-current {
    color: var(--primary-dark);
    font-size: 2rem;
    font-weight: 800;
}

.price-current small {
    font-size: 0.8rem;
    font-weight: 500;
}

/* ---- CTA SECTION ---- */
.cta-section {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: var(--white);
    text-align: center;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- TESTIMONIOS ---- */
.testimonials {
    background: var(--gray-100);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: var(--white);
    padding: 35px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    border: 1px solid var(--gray-200);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 15px;
}

.testimonial-stars i {
    margin-right: 2px;
}

.testimonial-text {
    color: var(--gray-700);
    font-style: italic;
    margin-bottom: 25px;
    line-height: 1.8;
    font-size: 0.95rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.testimonial-avatar {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
}

.testimonial-name {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
}

/* ---- PROMO / NEWSLETTER ---- */
.promo-section {
    background: var(--white);
}

.promo-card {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
    color: var(--white);
    box-shadow: var(--shadow-xl);
}

.promo-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    opacity: 0.8;
}

.promo-card h2 {
    font-family: var(--font-display);
    font-size: 2rem;
    margin-bottom: 10px;
}

.promo-card p {
    opacity: 0.9;
    margin-bottom: 30px;
    font-size: 1.05rem;
}

.promo-form .input-group {
    display: flex;
    gap: 10px;
    max-width: 500px;
    margin: 0 auto;
}

.promo-form input[type="email"] {
    flex: 1;
    padding: 14px 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.15);
    color: var(--white);
    font-size: 1rem;
    font-family: var(--font-primary);
    outline: none;
    transition: var(--transition);
}

.promo-form input[type="email"]::placeholder {
    color: rgba(255,255,255,0.6);
}

.promo-form input[type="email"]:focus {
    border-color: var(--white);
    background: rgba(255,255,255,0.25);
}

.promo-form .btn-primary {
    background: var(--white);
    color: var(--primary-dark);
    border-color: var(--white);
    white-space: nowrap;
}

.promo-form .btn-primary:hover {
    background: var(--gray-100);
    transform: translateY(-2px);
}

.form-message {
    margin-top: 15px;
    font-size: 0.9rem;
}

.form-message.success { color: var(--accent); }
.form-message.error { color: #ff6b6b; }

/* ---- FOOTER ---- */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-logo {
    height: 40px;
    margin-bottom: 15px;
}

.footer-description {
    font-size: 0.9rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

.footer-social {
    display: flex;
    gap: 12px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition);
}

.footer-social a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

.footer-col h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 20px;
    position: relative;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul li a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.footer-col ul li i {
    margin-right: 8px;
    color: var(--primary-light);
}

.footer-bottom {
    padding: 20px 0;
    text-align: center;
    font-size: 0.85rem;
}

/* ---- CARRITO FLOTANTE ---- */
.cart-floating {
    position: fixed;
    bottom: 100px;
    right: 30px;
    z-index: 900;
}

.cart-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--primary);
    color: var(--white);
    border: none;
    font-size: 1.3rem;
    cursor: pointer;
    position: relative;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.cart-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.1);
}

.cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ---- CARRITO SIDEBAR ---- */
.cart-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1100;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.cart-overlay.active {
    opacity: 1;
    visibility: visible;
}

.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    max-width: 90vw;
    height: 100vh;
    background: var(--white);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.cart-sidebar.active {
    right: 0;
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--gray-200);
}

.cart-header h3 {
    font-size: 1.1rem;
    color: var(--dark);
}

.cart-close {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--gray-600);
    transition: var(--transition);
}

.cart-close:hover { color: var(--danger); }

.cart-items {
    flex: 1;
    overflow-y: auto;
    padding: 15px 25px;
}

.cart-empty {
    text-align: center;
    padding: 40px 0;
    color: var(--gray-600);
}

.cart-empty i {
    font-size: 3rem;
    margin-bottom: 10px;
    opacity: 0.3;
}

.cart-item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray-200);
    align-items: center;
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--gray-100);
    flex-shrink: 0;
}

.cart-item-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    min-width: 0;
}

.cart-item-info h4 {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-info .item-price {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-item-qty button {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gray-300);
    background: var(--white);
    cursor: pointer;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.cart-item-qty button:hover {
    background: var(--gray-100);
}

.cart-item-qty span {
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 1rem;
    transition: var(--transition);
}

.cart-item-remove:hover { color: var(--danger); }

.cart-footer {
    padding: 20px 25px;
    border-top: 2px solid var(--gray-200);
    background: var(--gray-100);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 15px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .navbar-toggle {
        display: flex;
    }

    .navbar-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--primary-dark);
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 5px;
        transition: var(--transition);
        box-shadow: var(--shadow-xl);
    }

    .navbar-menu.active {
        right: 0;
    }

    .nav-link {
        padding: 12px 16px;
        display: block;
        width: 100%;
        border-radius: var(--radius);
    }

    .nav-auth {
        margin-left: 0;
        margin-top: 15px;
        padding-top: 15px;
        border-top: 1px solid rgba(255,255,255,0.15);
        width: 100%;
    }

    .nav-auth .btn {
        width: 100%;
        justify-content: center;
    }

    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .package-card.featured {
        transform: none;
    }

    .package-card.featured:hover {
        transform: translateY(-10px);
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .promo-form .input-group {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .hero {
        background-attachment: scroll;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 60px 0;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
    }

    .benefit-card {
        padding: 25px 20px;
    }

    .promo-card {
        padding: 40px 20px;
    }

    .cart-sidebar {
        width: 100%;
    }
}

/* ---- ANIMATIONS ---- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

/* ---- ALERT MESSAGES ---- */
.alert {
    padding: 15px 20px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.alert-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ---- POPUP MARKETING ---- */
.popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}
.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-marketing {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    z-index: 9999;
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    max-width: 460px;
    width: 92%;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3);
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.popup-marketing.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1rem;
    cursor: pointer;
    z-index: 2;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.popup-header {
    padding: 40px 30px 25px;
    text-align: center;
    background: var(--primary);
    color: white;
}
.popup-emoji {
    font-size: 3rem;
    margin-bottom: 10px;
    animation: popupBounce 1s ease infinite;
}
.popup-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 8px;
    line-height: 1.3;
}
.popup-subtitle {
    opacity: 0.9;
    font-size: 0.92rem;
    line-height: 1.5;
}

.popup-body {
    padding: 25px 30px 30px;
    text-align: center;
}

.popup-code {
    background: #f0fdf4;
    border: 2px dashed var(--primary);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 18px;
    position: relative;
}
.popup-code small {
    display: block;
    color: var(--gray-600);
    font-size: 0.78rem;
    margin-bottom: 4px;
}
.popup-code-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: 3px;
}
.popup-copy-btn {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s ease;
}
.popup-copy-btn:hover {
    background: var(--primary-dark);
}

.popup-newsletter form {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
}
.popup-newsletter input[type="email"] {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--gray-300);
    border-radius: 10px;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    transition: border-color 0.3s;
}
.popup-newsletter input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}
.popup-newsletter button {
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    transition: background 0.3s;
}
.popup-newsletter button:hover {
    background: var(--primary-dark);
}

.popup-form-msg {
    font-size: 0.82rem;
    min-height: 20px;
}
.popup-form-msg.success { color: #28a745; }
.popup-form-msg.error { color: #dc3545; }

.popup-btn {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}
.popup-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(45,106,79,0.3);
    color: white;
}

.popup-dismiss {
    margin-top: 15px;
    font-size: 0.78rem;
    color: var(--gray-400);
    cursor: pointer;
    transition: color 0.3s;
}
.popup-dismiss:hover {
    color: var(--gray-600);
}

@keyframes popupBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@media (max-width: 480px) {
    .popup-marketing {
        width: 95%;
        border-radius: 16px;
    }
    .popup-header { padding: 30px 20px 20px; }
    .popup-title { font-size: 1.3rem; }
    .popup-body { padding: 20px; }
    .popup-newsletter form { flex-direction: column; }
    .popup-code-value { font-size: 1.3rem; }
}

/* ---- WHATSAPP FLOATING BUTTON ---- */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    color: #fff;
}

.whatsapp-float:active {
    transform: scale(0.95);
}

@media (max-width: 768px) {
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 1.5rem;
        bottom: 20px;
        right: 20px;
    }
}

/* ========================================
   ORDER TRACKING TIMELINE
   ======================================== */
.order-timeline {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    padding: 20px 0;
}
.order-timeline::before {
    content: '';
    position: absolute;
    top: 38px;
    left: 36px;
    right: 36px;
    height: 3px;
    background: var(--gray-200);
    z-index: 0;
}
.timeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    flex: 1;
    text-align: center;
}
.timeline-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gray-200);
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    margin-bottom: 8px;
    transition: all 0.3s ease;
    border: 3px solid var(--white);
    box-shadow: 0 0 0 2px var(--gray-200);
}
.timeline-step.done .timeline-icon {
    background: var(--primary);
    color: var(--white);
    box-shadow: 0 0 0 2px var(--primary);
}
.timeline-step.current .timeline-icon {
    background: var(--white);
    color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary);
    animation: timelinePulse 2s ease-in-out infinite;
}
@keyframes timelinePulse {
    0%, 100% { box-shadow: 0 0 0 3px var(--primary); }
    50% { box-shadow: 0 0 0 3px var(--primary), 0 0 0 8px rgba(45,106,79,0.15); }
}
.timeline-info strong {
    display: block;
    font-size: 0.78rem;
    color: var(--gray-600);
}
.timeline-step.done .timeline-info strong,
.timeline-step.current .timeline-info strong {
    color: var(--primary-dark);
}
.timeline-info small {
    font-size: 0.7rem;
    color: var(--gray-500);
}
@media (max-width: 600px) {
    .order-timeline {
        flex-direction: column;
        gap: 0;
    }
    .order-timeline::before {
        top: 0;
        bottom: 0;
        left: 19px;
        right: auto;
        width: 3px;
        height: auto;
    }
    .timeline-step {
        flex-direction: row;
        text-align: left;
        gap: 12px;
        padding: 8px 0;
    }
    .timeline-info { text-align: left; }
}
