@import url('https://googleapis.com');

:root {
    --dark: #0f172a;
    --muted: #64748b;
    --primary: #0066ff;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

section {
    padding: 50px 20px 60px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* ---  NAVBAR (ESTILO APPLE) --- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.nav-container {
    width: 100%;
    max-width: 1024px;
    padding: 0 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo,
.nav-link {
    text-decoration: none;
    color: rgba(245, 245, 247, 0.8);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.logo {
    font-size: 14px;
    font-weight: 500;
}

.nav-link {
    font-size: 12px;
    font-weight: 400;
}

.logo:hover,
.nav-link:hover,
.cart-icon-btn:hover {
    color: #fff;
}

.nav-menu,
.nav-actions {
    display: flex;
    align-items: center;
}

.nav-menu {
    list-style: none;
    gap: 32px;
}

.nav-actions {
    gap: 24px;
}

/* ---  ELEMENTOS DEL NAVBAR --- */
.cart-icon-btn {
    background: none;
    border: none;
    color: rgba(245, 245, 247, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 4px;
    transition: color 0.3s ease;
}

.cart-icon-svg {
    width: 16px;
    height: 16px;
    display: block;
}

.cart-count {
    font-size: 9px;
    font-weight: 600;
    background-color: #fff;
    color: #161617;
    border-radius: 50%;
    min-width: 13px;
    height: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: -4px;
    right: -6px;
    line-height: 1;
}

/* ---  MENÚ HAMBURGUESA --- */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    gap: 6px;
    background: none;
    border: none;
    width: 18px;
    height: 48px;
}

.hamburger span {
    width: 100%;
    height: 1px;
    background-color: rgba(245, 245, 247, 0.8);
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: translateY(3.5px) rotate(45deg);
    background-color: #fff;
}

.hamburger.active span:nth-child(2) {
    transform: translateY(-3.5px) rotate(-45deg);
    background-color: #fff;
}

/* --- RESPONSIVE MÓVIL --- */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 48px;
        left: 0;
        width: 100%;
        height: 0;
        background-color: #161617;
        flex-direction: column;
        gap: 0;
        padding: 0 48px;
        overflow: hidden;
        transition: height 0.5s cubic-bezier(0.28, 0.11, 0.32, 1);
    }

    .nav-menu.active {
        height: 100vh;
        padding-top: 20px;
    }

    .nav-menu li {
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }

    .nav-link {
        display: block;
        padding: 14px 0;
        font-size: 24px;
        color: #f5f5f7;
    }
}

/* HERO */
.hero {
    position: relative;
    height: 80vh;
    min-height: 450px;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    /* Alinea el contenido hacia la parte inferior */
    align-items: center;
    text-align: center;
    color: #f5f5f7;
    padding: 48px 20px 60px;
    /* Incrementado el padding inferior para separar los botones del borde de la pantalla */
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 650px;
    padding: 0 20px;
    animation: appleFadeUp 0.8s ease-out;
    margin-top: auto;
    /* Empuja todo el bloque de texto y botones hacia abajo */
}

/* --- SLIDER DE FONDO --- */
.hero-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.apple-hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: no-repeat center center / cover;
    opacity: 0;
    animation: appleSliderActive 15s infinite ease-in-out;
}

.apple-hero-slide:nth-child(2) {
    animation-delay: 5s;
}

.apple-hero-slide:nth-child(3) {
    animation-delay: 10s;
}

/* --- ELEMENTOS DE CONTENIDO --- */
.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    /* Espacio limpio entre el texto y los botones inferiores */
    animation: appleFadeUp 1.2s ease-out forwards;
}

.hero h1,
.hero p {
    letter-spacing: -0.01em;
    animation: appleFadeUp 0.8s ease-out forwards;
}

.hero h1 {
    font-size: 42px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #ffffff;
}

.hero p {
    font-size: 20px;
    font-weight: 400;
    letter-spacing: 0.01em;
    color: rgba(245, 245, 247, 0.85);
    margin-bottom: 0;
    /* Eliminado el margen viejo para un mejor control con los botones */
    animation-duration: 1s;
}

/* --- BOTONES --- */
.btn {
    font-size: 15px;
    font-weight: 500;
    letter-spacing: -0.015em;
    text-decoration: none;
    background-color: #ffffff;
    color: #33cc66;
    padding: 11px 24px;
    border-radius: 30px;
    border: 1px solid #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, color 0.2s, opacity 0.2s;
}

.btn:hover {
    opacity: 0.9;
}

.btn.btn-secondary {
    background-color: #33cc66;
    color: #ffffff;
    border-color: #33cc66;
}

.btn.btn-secondary:hover {
    background-color: #44dd77;
    border-color: #44dd77;
    opacity: 1;
}

/* --- ANIMACIONES --- */
@keyframes appleSliderActive {

    0%,
    100%,
    37.33% {
        opacity: 0;
    }

    4%,
    33.33% {
        opacity: 1;
    }
}

@keyframes appleFadeUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- RESPONSIVE --- */
@media (max-width: 768px) {

    .hero,
    .apple-hero-slide {
        background-position: center 20%;
    }

    .hero {
        min-height: 400px;
        padding-bottom: 40px;
    }

    .slide:nth-child(2) {
        background-position: right center;
    }

    .hero h1 {
        font-size: 40px;
    }

    .btn {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero p {
        font-size: 18px;
    }
}

/* --- 2. BENEFICIOS (GRID) --- */
.benefits {
    padding: 60px 20px;
    background-color: #f8fafc;
    /* Fondo sutil para resaltar las tarjetas blancas */
}

.benefits h2 {
    text-align: center;
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 48px;
    color: #1e293b;
}

.grid-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #ffffff;
    padding: 40px 32px;
    border-radius: 16px;
    /* Bordes redondeados modernos */
    border: 1px solid #e2e8f0;
    /* Línea sutil de contorno */
    text-align: left;
    /* Alineación profesional a la izquierda */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-8px);
    border-color: #cbd5e1;
    /* Cambio sutil de borde en el hover sin alterar el color del SVG */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.card-icon {
    display: flex;
    justify-content: flex-start;
    /* Alineado a la izquierda junto con el texto */
    align-items: center;
    height: 48px;
    width: 100%;
    margin-bottom: 24px;
}

/* El SVG ahora se muestra exactamente con sus colores originales */
.svg-icon {
    filter: none !important;
    /* Elimina cualquier filtro previo */
    object-fit: contain;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: #1e293b;
}

.card p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #64748b;
    /* Gris legible para el cuerpo de texto */
}

.card p span {
    color: #0f172a;
    /* Énfasis sutil en las palabras clave */
}

/* --- 3. COMPARACIÓN DE SUSCRIPCIONES (TABLA) --- */
.sub-benefits {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    font-family: system-ui, -apple-system, sans-serif;
    color: var(--dark);
}

.sub-benefits h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.05em;
}

.sub-benefits-intro {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.6;
}

.table-responsive {
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    background: #fff;
    text-align: left;
}

.compare-table th,
.compare-table td {
    padding: 18px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 0.95rem;
}

.compare-table th {
    font-weight: 700;
    font-size: 1rem;
    padding: 30px 24px;
}

/* Primera columna */
.compare-table td:first-child {
    font-weight: 600;
    width: 25%;
}

.compare-table tbody tr:hover {
    background-color: #f8fafc;
}

/* Columna Destacada */
.compare-table .highlight-col {
    background-color: rgba(0, 102, 255, 0.03);
}

th.highlight-col {
    color: var(--primary);
    font-weight: 800;
}

/* Fila de Precios */
.row-price td {
    padding: 25px 24px;
    font-size: 1.4rem;
    font-weight: 800;
}

.row-price .price-accent {
    color: var(--primary);
    font-size: 1.6rem;
}

/* Componentes */
.muted {
    color: var(--muted);
    opacity: 0.7;
}

.badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    background-color: #dcfce7;
    color: #15803d;
}

/* --- ESTILOS GLOBALES (ESTILO APPLE) --- */

/* --- NAV BAR ESTILO APPLE --- */
.apple-nav {
    background-color: rgba(22, 22, 23, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 48px;
    z-index: 9999;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-content {
    width: 100%;
    max-width: 1024px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo, .nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: -0.01em;
    transition: color 0.2s ease;
}

.nav-logo:hover, .nav-links a:hover {
    color: #ffffff;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

/* --- ESTILOS DEL CARRITO (CONTEO DE PRODUCTOS) --- */
.cart-icon-btn {
    position: relative;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s ease;
}

.cart-icon-btn:hover {
    color: #ffffff;
}

.cart-icon-svg {
    width: 16px;
    height: 16px;
}

.cart-count {
    position: absolute;
    bottom: -2px;
    right: -4px;
    background-color: #0071e3;
    color: #ffffff;
    font-size: 9px;
    font-weight: 600;
    min-width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animación pop cuando cambia de número */
.cart-count.bump {
    transform: scale(1.4);
}

/* --- CONTENEDOR PRINCIPAL --- */
.main-container {
    padding-top: 88px; /* Espacio para que la nav fija no tape el título */
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 40px;
}

.product-section {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding: 0 20px;
}

.section-title {
    font-size: 48px;
    font-weight: 600;
    letter-spacing: -0.003em;
    margin-bottom: 40px;
    background: #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- CUADRÍCULA DE PRODUCTOS --- */
/* --- CUADRÍCULA DE PRODUCTOS (MODIFICADA ESTILO APPLE MOBILE) --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    transition: all 0.3s ease;
}

/* --- TARJETA DE PRODUCTO --- */
.product-card {
    background-color: #161617;
    border-radius: 22px;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    min-height: 500px;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease;
    cursor: pointer;
}


/* --- ADAPTACIÓN EXCLUSIVA PARA DISPOSITIVOS MÓVILES --- */
@media (max-width: 768px) {
    .product-grid {
        /* Cambia de cuadrícula a una fila horizontal continua */
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        
        /* Habilita el desplazamiento horizontal táctil nativo */
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        
        /* Espaciado lateral para que las tarjetas no choquen con los bordes de la pantalla */
        padding: 20px 24px 40px 24px;
        margin: 0 -24px; /* Expande el contenedor para un scroll de borde a borde */
        gap: 20px;
    }

    /* Ocultar barra de desplazamiento visual para mantener la estética limpia */
    .product-grid::-webkit-scrollbar {
        display: none;
    }

    /* Ajustes en la tarjeta para el modo carrusel */
    .product-card {
        flex: 0 0 85%; /* Cada tarjeta ocupa el 85% del ancho de la pantalla móvil */
        max-width: 320px;
        min-height: 480px;
        scroll-snap-align: center; /* Efecto imán: la tarjeta se centra automáticamente al soltar el dedo */
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    }
    
    /* El título de la sección se alinea a la izquierda en móviles, como la App Store */
    .section-title {
        font-size: 34px;
        text-align: left;
        padding-left: 4px;
        margin-bottom: 24px;
    }
}

.product-card:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px rgba(255, 255, 255, 0.05);
}

/* --- TEXTOS DEL PRODUCTO --- */
.product-tag {
    font-size: 12px;
    font-weight: 600;
    color: #f51929;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
}

.product-name {
    font-size: 28px;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 8px;
}

.product-desc {
    font-size: 17px;
    color: #86868b;
    line-height: 1.4211;
    max-width: 240px;
    margin-bottom: 20px;
}

/* --- IMAGEN --- */
.product-image-container {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-card:hover .product-image {
    transform: scale(1.05);
}

/* --- PRECIO Y ENLACES --- */
.product-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.product-price {
    font-size: 17px;
    color: #f5f5f7;
    margin-bottom: 16px;
}

.product-cta {
    display: inline-block;
    background-color: #0071e3;
    color: #ffffff;
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 980px;
    border: none;
    font-weight: 400;
    letter-spacing: -0.022em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.product-cta:hover {
    background-color: #147ce5;
}

.product-cta:active {
    transform: scale(0.98);
}

/* Ocultar menú en pantallas muy pequeñas */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}


/* --- NUEVOS ESTILOS PARA LA VENTANA EMERGENTE (ESTILO APPLE BAG) --- */
.cart-dropdown {
    position: fixed;
    top: 54px; /* Justo debajo de la barra de navegación */
    right: calc(50% - 512px + 22px); /* Alineado con el botón en pantallas grandes */
    width: 320px;
    background-color: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    display: none; /* Se controla con JavaScript */
    pointer-events: auto;
     opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.25, 1, 0.5, 1), transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    transform: translateY(-8px) scale(0.95);
    display: block !important; /* Cambiamos display none por block para que la transición funcione */
}

.cart-dropdown.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    /* Se remueve la regla animation anterior para usar la transición nativa coordinada */
}

/* Ajuste de posición para pantallas medianas/pequeñas */
@media (max-width: 1068px) {
    .cart-dropdown {
        right: 22px;
    }
}

.cart-dropdown.show {
    display: block;
    animation: fadeInScale 0.25s cubic-bezier(0.25, 1, 0.5, 1);
}

.cart-dropdown-arrow {
    position: absolute;
    top: -6px;
    right: 14px;
    width: 12px;
    height: 12px;
    background-color: rgba(28, 28, 30, 0.95);
    transform: rotate(45deg);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-dropdown-content {
    padding: 24px;
}

.cart-empty-msg {
    color: #86868b;
    font-size: 14px;
    text-align: center;
    padding: 10px 0;
}

/* LISTA DE ELEMENTOS */
.cart-items-list {
    list-style: none;
    max-height: 240px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-details {
    display: flex;
    flex-direction: column;
}

.cart-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #f5f5f7;
}

.cart-item-qty {
    font-size: 12px;
    color: #86868b;
    margin-top: 2px;
}

.cart-item-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.cart-item-price {
    font-size: 14px;
    color: #f5f5f7;
}

.cart-item-remove {
    background: none;
    border: none;
    color: #0071e3;
    font-size: 12px;
    cursor: pointer;
}

.cart-item-remove:hover {
    text-decoration: underline;
}

/* TOTAL Y ACCIÓN */
.cart-total-container {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
}

.cart-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 500;
    color: #f5f5f7;
    margin-bottom: 16px;
}

.checkout-btn {
    width: 100%;
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.checkout-btn:hover {
    background-color: #147ce5;
}

/* ANIMACIONES */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* --- ESTILOS DEL SELECTOR DE SUSCRIPCIÓN --- */
.subscription-selector-container {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.subscription-label {
    font-size: 12px;
    color: #86868b;
    font-weight: 500;
}

.subscription-select {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.subscription-select:focus {
    border-color: #0071e3;
}

/* Forzar que las opciones hereden el fondo oscuro en sistemas de escritorio */
.subscription-select option {
    background-color: #1c1c1e;
    color: #f5f5f7;
}

/* --- ESTILOS DE LOS MENÚS DESPLEGABLES DE OPCIONES --- */
.cart-options-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

/* Espacio inferior adicional solo al último selector antes del precio final */
.cart-options-row:nth-last-of-type(1) {
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.options-label {
    font-size: 12px;
    color: #86868b;
    font-weight: 500;
}

.options-select {
    background-color: rgba(255, 255, 255, 0.05);
    color: #f5f5f7;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    cursor: pointer;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.options-select:focus {
    border-color: #0071e3;
}

.options-select option {
    background-color: #1c1c1e;
    color: #f5f5f7;
}

/* --- CONFIGURACIÓN DE LOS CÍRCULOS DE COLOR EN EL CARRITO --- */
.cart-color-selector {
    display: flex;
    gap: 6px;
    margin-top: 6px;
    margin-left: 4px; /* El margen izquierdo solicitado para alinearlo o separarlo estéticamente */
}

.color-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

/* Colores de los círculos */
.color-dot.negro { background-color: #1c1c1e; }
.color-dot.rojo { background-color: #e30000; }
.color-dot.verde { background-color: #248a3d; }
.color-dot.otro { background-color: #a2a2a2; }

/* Estado seleccionado (añade un anillo exterior sutil) */
.color-dot.active {
    transform: scale(1.15);
    border-color: #ffffff;
    box-shadow: 0 0 0 2px #0071e3;
}

.color-dot:hover {
    transform: scale(1.1);
}


/* --- DISEÑO DEL CONTENEDOR CON CÍRCULO BLANCO --- */
.product-image-container {
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 20px auto 30px auto;
    
    /* Configuración del círculo blanco de fondo */
    background-color: #ffffff;
    border-radius: 50%;
    padding: 20px; /* Margen interno para que la imagen no toque los bordes del círculo */
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.05); /* Sutil resplandor de fondo */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.product-image {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 10px; /* Suaviza las esquinas si subes fotos cuadradas */
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Efecto Apple: Al posicionar el mouse sobre la tarjeta, el círculo reacciona fluidamente */
.product-card:hover .product-image-container {
    transform: scale(1.05);
}

.product-card:hover .product-image {
    transform: scale(1.03);
}


/* --- VENTANA EMERGENTE FORMULARIO (MODAL INTERFAZ APPLE) --- */
.checkout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.checkout-modal.show {
    display: flex;
    animation: modalFadeIn 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.checkout-modal-content {
    background-color: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 540px;
    border-radius: 20px;
    padding: 32px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.close-modal-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    color: #86868b;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal-btn:hover {
    color: #ffffff;
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 6px;
}

.modal-subtitle {
    font-size: 13px;
    color: #86868b;
    margin-bottom: 24px;
}

/* COMPONENTES DEL FORMULARIO */
.apple-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-row {
    display: flex;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.form-group label {
    font-size: 11px;
    font-weight: 600;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.optional-tag {
    text-transform: lowercase;
    font-weight: 400;
    opacity: 0.8;
}

.form-group input {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 10px 14px;
    color: #f5f5f7;
    font-size: 14px;
    outline: none;
    font-family: inherit;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.form-group input:focus {
    border-color: #0071e3;
    background-color: rgba(255, 255, 255, 0.06);
}

/* UBICACIÓN GPS INPUT */
.gps-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.gps-input-wrapper input {
    width: 100%;
    padding-right: 44px;
}

.gps-btn {
    position: absolute;
    right: 6px;
    background-color: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #0071e3;
    padding: 6px 10px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease;
}

.gps-btn:hover {
    background-color: rgba(0, 113, 227, 0.15);
}

.apple-submit-btn {
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.apple-submit-btn:hover {
    background-color: #147ce5;
}

.apple-submit-btn:active {
    transform: scale(0.98);
}

@keyframes modalFadeIn {
    from { opacity: 0; transform: scale(1.03); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 480px) {
    .form-row { flex-direction: column; gap: 16px; }
}



/* --- VENTANA DE CONFIRMACIÓN DE ÉXITO --- */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 30000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-modal.show {
    display: flex;
    animation: modalFadeIn 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.success-modal-content {
    background-color: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.08);
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 40px 32px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
}

.success-icon-wrapper {
    width: 60px;
    height: 60px;
    background-color: rgba(52, 199, 89, 0.1);
    color: #34c759; /* Verde nativo de Apple iOS */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px auto;
}

.success-title {
    font-size: 24px;
    font-weight: 600;
    color: #f5f5f7;
    margin-bottom: 8px;
}

.success-subtitle {
    font-size: 13px;
    color: #86868b;
    line-height: 1.5;
    margin-bottom: 24px;
}

/* CAJA DEL ID DE LA ORDEN */
.order-id-box {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.order-id-label {
    font-size: 11px;
    color: #86868b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.order-id-value {
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    font-family: SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}

.success-close-btn {
    width: 100%;
    background-color: #0071e3;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.success-close-btn:hover {
    background-color: #147ce5;
}


/* --- ESTILOS ICONO Y MENÚ DE USUARIO --- */
.user-icon-btn {
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s ease;
}

.user-icon-btn:hover {
    color: #ffffff;
}

.user-icon-svg {
    width: 17px;
    height: 17px;
}

/* VENTANA FLOTANTE DE USUARIO */
.user-dropdown {
    position: fixed;
    top: 54px;
    right: calc(50% - 512px + 60px); /* Alineado al icono de usuario */
    width: 290px;
    background-color: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    z-index: 10000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: translateY(-8px) scale(0.95);
}

@media (max-width: 1068px) {
    .user-dropdown { right: 64px; }
}

.user-dropdown.show {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.user-dropdown-arrow {
    position: absolute;
    top: -6px;
    right: 12px;
    width: 12px;
    height: 12px;
    background-color: rgba(28, 28, 30, 0.95);
    transform: rotate(45deg);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.user-dropdown-content {
    padding: 20px;
}

.user-dropdown-title {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 12px;
}

.user-empty-msg {
    color: #86868b;
    font-size: 13px;
    text-align: center;
    padding: 10px 0;
}

/* TARJETA DE ESTADO DE LA ORDEN */
.user-order-card {
    background-color: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 12px;
}

.user-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.u-order-id {
    font-size: 12px;
    font-family: monospace;
    color: #ffffff;
    font-weight: 600;
}

/* Píldora de estado en proceso */
.u-order-status {
    font-size: 10px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 980px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.status-process {
    background-color: rgba(245, 158, 11, 0.15); /* Ámbar/Naranja sutil */
    color: #f59e0b;
}

.user-order-body {
    font-size: 12px;
    color: #86868b;
    display: flex;
    flex-direction: column;
    gap: 4px;
}


#u-order-date {
    border-top: 1px dashed rgba(255, 255, 255, 0.06);
    padding-top: 6px;
    font-weight: 400;
    letter-spacing: -0.01em;
}


/* --- ESTILOS COMPARTIDOS NAV ACCIONES (USER & CART) --- */
.user-icon-btn,
.user-link-btn, 
.cart-icon-btn {
    position: relative;
    border: none;
    background-color: transparent;
    text-decoration: none; /* Elimina la línea inferior del enlace <a> */
    color: rgba(255, 255, 255, 0.8); /* Gris translúcido estilo Apple */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s ease;
}

/* Efecto Hover idéntico para ambos botones */
.user-icon-btn:hover, 
.cart-icon-btn:hover {
    color: #ffffff; /* Blanco brillante al posicionar el cursor */
}

/* Dimensionado idéntico de los vectores SVG */
.user-icon-svg, 
.cart-icon-svg {
    width: 16px;
    height: 16px;
}



/* --- PIE DE PÁGINA (FOOTER) --- */
.footer {
    background-color: #1a252f;
    /* Azul noche profundo, más corporativo */
    color: #ffffff;
    padding: 60px 40px;
    /* Más aire y espacio blanco para denotar categoría */
    width: 100%;
    max-width: 100%;
    margin-top: 80px;
    border-top: 1px solid #2c3e50;
    /* Línea de división fina y elegante */
    box-sizing: border-box;
}

.footer-container {
    max-width: 1140px;
    /* Ancho estándar de rejillas ejecutivas */
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-copy {
    font-size: 0.85rem;
    /* Texto sutil, no compite visualmente */
    color: #95a5a6;
    /* Gris atenuado sofisticado */
    letter-spacing: 0.5px;
    /* Mayor legibilidad ejecutiva */
    font-weight: 400;
}

.footer-socials {
    display: flex;
    gap: 24px;
    /* Más separación entre íconos */
}

.social-icon {
    font-size: 1.2rem;
    /* Íconos ligeramente más pequeños y discretos */
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
    /* Transición limpia de color, sin movimientos */
    display: inline-block;
    opacity: 0.8;
}

.social-icon:hover {
    opacity: 1;
    color: #3498db;
    /* Color de acento corporativo al pasar el cursor */
}



/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 768px) {

    .footer-container {
        flex-direction: column;
        /* Apila el texto y los iconos en una sola columna */
        text-align: center;
    }
}