/* ================================
   VARIABLES & RESET
================================ */
:root {
    /* Paleta Decanta — azul cielo + negro + plata */
    --negro: #0d0d0d;
    --azul: #d6ecf5;          /* azul claro del logo */
    --azul-medio: #a8d4e8;    /* azul un tono más profundo para acentos */
    --azul-oscuro: #4a8fa8;   /* azul para hover y detalles */
    --crema: #f4f9fb;         /* fondo general con tinte azulado */
    --gris: #e8f2f7;          /* secciones alternas */
    --texto: #0d0d0d;
    --texto-suave: #5a7a88;
    --blanco: #ffffff;
    --sombra: 0 8px 40px rgba(74,143,168,0.12);
    --transicion: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #0d1f2d;
    color: var(--texto);
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    overflow-x: hidden;
}

/* ================================
   HEADER
================================ */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background: #0a1a20;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.logo-main {
    font-family: 'Cormorant Garamond', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--blanco);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.logo-sub {
    font-family: 'Cormorant Garamond', serif;
    font-size: 13px;
    font-weight: 300;
    font-style: italic;
    color: var(--azul-oscuro);
    letter-spacing: 4px;
}

nav {
    display: flex;
    gap: 30px;
}

nav a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: var(--transicion);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
}

nav a:hover {
    color: var(--azul-oscuro);
    border-bottom-color: var(--azul-oscuro);
}

.carrito-header {
    position: relative;
    cursor: pointer;
    color: white;
    transition: var(--transicion);
}

.carrito-header:hover {
    color: var(--azul-oscuro);
}

.badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--azul-oscuro);
    color: var(--negro);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================
   HERO
================================ */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #0a1a20;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse at 30% 50%, rgba(74,143,168,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 50%, rgba(74,143,168,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
    padding: 40px 20px;
    animation: fadeUp 1s ease forwards;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

.hero-eyebrow {
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--azul-oscuro);
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(48px, 8vw, 90px);
    font-weight: 300;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: italic;
    color: var(--azul-oscuro);
}

.hero-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 40px;
    letter-spacing: 0.5px;
}

.hero-btn {
    display: inline-block;
    padding: 14px 40px;
    border: 1px solid var(--azul-oscuro);
    color: var(--azul-oscuro);
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transicion);
}

.hero-btn:hover {
    background: var(--azul-oscuro);
    color: var(--negro);
}

/* ================================
   SECCIONES
================================ */
section {
    padding: 80px 40px;
}

.section-alt {
    background: #0a1a26;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-tag {
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--azul-oscuro);
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 36px;
    font-weight: 400;
    margin-bottom: 10px;
    color: #ffffff;
}

.section-desc {
    color: var(--azul-medio);
    font-size: 13px;
}

/* ================================
   CARDS
================================ */
.productos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background: #112230;
    width: 270px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: var(--transicion);
    position: relative;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
}

.card-img-wrapper {
    position: relative;
    overflow: hidden;
    background: #f8f5f0;
}

.card img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.card:hover img {
    transform: scale(1.05);
}

.card-body {
    padding: 20px;
}

.card h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 18px;
    font-weight: 400;
    margin-bottom: 8px;
    line-height: 1.3;
}

.card-precio {
    font-size: 20px;
    font-weight: 600;
    color: var(--negro);
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.card-precio span {
    font-size: 12px;
    font-weight: 300;
    color: var(--texto-suave);
    margin-left: 4px;
}

.card button {
    width: 100%;
    padding: 12px;
    background: var(--negro);
    color: white;
    border: 1px solid var(--negro);
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transicion);
    font-weight: 500;
}

.card button:hover {
    background: var(--azul-oscuro);
    border-color: var(--azul-oscuro);
    color: var(--negro);
}

.card button.agregado {
    background: #2d7a4e;
    border-color: #2d7a4e;
    color: white;
}

/* ================================
   PANEL CARRITO
================================ */
.carrito-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 200;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carrito-backdrop.visible {
    display: block;
    opacity: 1;
}

.carrito-panel {
    position: fixed;
    top: 0;
    right: -420px;
    width: 400px;
    height: 100vh;
    background: var(--blanco);
    z-index: 300;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    box-shadow: -10px 0 50px rgba(0,0,0,0.2);
}

.carrito-panel.abierto {
    right: 0;
}

.carrito-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 28px;
    border-bottom: 1px solid #eee;
}

.carrito-panel-header h3 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 400;
}

.cerrar-btn {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--texto-suave);
    transition: var(--transicion);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cerrar-btn:hover {
    background: #f0f0f0;
    color: var(--negro);
}

.carrito-items {
    flex: 1;
    overflow-y: auto;
    padding: 20px 28px;
}

.carrito-vacio {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 200px;
    gap: 16px;
    color: #ccc;
    font-size: 13px;
    letter-spacing: 1px;
}

.carrito-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #f0f0f0;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.item-info {
    flex: 1;
}

.item-nombre {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 4px;
}

.item-precio {
    font-size: 13px;
    color: var(--texto-suave);
}

.item-eliminar {
    background: none;
    border: none;
    cursor: pointer;
    color: #ccc;
    font-size: 16px;
    transition: var(--transicion);
    padding: 4px 8px;
    border-radius: 4px;
}

.item-eliminar:hover {
    color: #e74c3c;
    background: #ffeaea;
}

.carrito-footer {
    padding: 24px 28px;
    border-top: 1px solid #eee;
}

.total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 16px;
}

.total-row span:last-child {
    font-family: 'Cormorant Garamond', serif;
    font-size: 24px;
    font-weight: 600;
}

.whatsapp-btn {
    width: 100%;
    padding: 16px;
    background: #25D366;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transicion);
    margin-bottom: 10px;
}

.whatsapp-btn:hover {
    background: #1da851;
    transform: translateY(-1px);
}

.limpiar-btn {
    width: 100%;
    padding: 10px;
    background: none;
    border: none;
    color: var(--texto-suave);
    font-size: 12px;
    cursor: pointer;
    letter-spacing: 1px;
    text-decoration: underline;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transicion);
}

.limpiar-btn:hover {
    color: #e74c3c;
}

/* ================================
   BOTÓN FLOTANTE
================================ */
.carrito-flotante {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 56px;
    height: 56px;
    background: var(--negro);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    transition: var(--transicion);
    z-index: 150;
    border: 2px solid rgba(201, 168, 76, 0.3);
}

.carrito-flotante:hover {
    background: var(--azul-oscuro);
    transform: scale(1.1);
}

.carrito-flotante span {
    position: absolute;
    top: -4px;
    right: -4px;
    background: var(--azul-oscuro);
    color: var(--negro);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ================================
   TOAST
================================ */
.toast {
    position: fixed;
    bottom: 100px;
    right: 28px;
    background: var(--negro);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 13px;
    border-left: 3px solid var(--azul-oscuro);
    transform: translateY(20px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 400;
    pointer-events: none;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ================================
   SELECTOR DE ML (DECANTS)
================================ */
.ml-selector {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
}

.ml-btn {
    flex: 1;
    padding: 8px 0;
    border: 1.5px solid #ddd;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1px;
    color: var(--texto-suave);
    transition: var(--transicion);
}

.ml-btn:hover {
    border-color: var(--azul-oscuro);
    color: var(--azul-oscuro);
}

.ml-btn.active {
    border-color: var(--negro);
    background: var(--negro);
    color: var(--blanco);
}

.btn-agregar-decant {
    width: 100%;
    padding: 12px;
    background: var(--negro);
    color: white;
    border: 1px solid var(--negro);
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transicion);
    font-weight: 500;
}

.btn-agregar-decant:hover {
    background: var(--azul-oscuro);
    border-color: var(--azul-oscuro);
    color: var(--negro);
}

.btn-agregar-decant.agregado {
    background: #2d7a4e;
    border-color: #2d7a4e;
    color: white;
}

/* ================================
   FOOTER
================================ */
footer {
    background: #050e14;
    color: rgba(255,255,255,0.5);
    text-align: center;
    padding: 40px 20px;
    font-size: 12px;
    line-height: 2;
}

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 768px) {
    nav {
        display: flex;
        gap: 8px;
    }

    section {
        padding: 60px 20px;
    }

    .hero {
        min-height: 70vh;
    }

    .carrito-panel {
        width: 100%;
        right: -100%;
    }

    .card {
        width: calc(100% - 40px);
        max-width: 340px;
    }
}

/* ================================
   NAVEGACIÓN POR PÁGINAS
================================ */
.pagina {
    display: none;
}

.pagina.activa {
    display: block;
    animation: fadeIn 0.35s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

nav a.active {
    color: var(--azul-oscuro) !important;
    border-bottom: 1px solid var(--dorado);
}

/* ================================
   PAGE HERO (páginas interiores)
================================ */
.page-hero {
    background: #0a1a20;
    color: white;
    text-align: center;
    padding: 60px 20px 50px;
    border-bottom: 1px solid rgba(201,168,76,0.2);
}

.page-hero h1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 300;
    margin: 10px 0 12px;
}

.page-hero p {
    color: rgba(255,255,255,0.55);
    font-size: 13px;
}

/* ================================
   HERO BOTONES
================================ */
.hero-acciones {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-btn-outline {
    background: transparent;
    border-color: rgba(255,255,255,0.4);
    color: rgba(255,255,255,0.8);
}

.hero-btn-outline:hover {
    border-color: white;
    color: white;
    background: transparent;
}

/* ================================
   BTN AGREGAR UNIFICADO
================================ */
.btn-agregar {
    width: 100%;
    padding: 12px;
    background: var(--negro);
    color: white;
    border: 1px solid var(--negro);
    border-radius: 2px;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: var(--transicion);
    font-weight: 500;
    margin-top: 4px;
}

.btn-agregar:hover {
    background: var(--azul-oscuro);
    border-color: var(--azul-oscuro);
    color: var(--negro);
}

.btn-agregar.agregado {
    background: #2d7a4e;
    border-color: #2d7a4e;
    color: white;
}

/* ================================
   TICKER INSTAGRAM
================================ */
.ticker-link {
    display: block;
    text-decoration: none;
    background: #0a1a20;
    border-top: 1px solid rgba(74,143,168,0.25);
    border-bottom: 1px solid rgba(74,143,168,0.25);
    overflow: hidden;
    cursor: pointer;
}

.ticker-link:hover .ticker-track {
    animation-play-state: paused;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    padding: 14px 0;
}

.ticker-track {
    display: flex;
    align-items: center;
    width: max-content;
    animation: ticker-scroll 18s linear infinite;
    white-space: nowrap;
}

@keyframes ticker-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    color: var(--azul-medio);
    text-transform: uppercase;
    padding: 0 40px;
}

.ticker-item svg {
    flex-shrink: 0;
    color: var(--azul-medio);
}

.ticker-sep {
    font-size: 10px;
    color: var(--azul-oscuro);
    padding: 0 10px;
    opacity: 0.6;
}

/* Dark card text fixes */
.card h3 {
    color: #e8f2f7;
}
.card-precio {
    color: #e8f2f7;
}
.card-precio span {
    color: var(--azul-medio);
}

/* ================================
   CARDS RESPONSIVE — 2 por fila móvil
================================ */
@media (max-width: 768px) {
    header {
        padding: 14px 16px;
    }

    nav {
        display: flex;
        gap: 12px;
    }

    nav a {
        font-size: 10px;
        letter-spacing: 0.8px;
    }

    section {
        padding: 40px 12px;
    }

    .hero {
        min-height: 60vh;
    }

    .productos {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 0 4px;
    }

    .card {
        width: 100%;
        max-width: 100%;
    }

    .card img {
        height: 160px;
    }

    .card-body {
        padding: 10px;
    }

    .card h3 {
        font-size: 13px;
        margin-bottom: 6px;
    }

    .card-precio {
        font-size: 16px;
        margin-bottom: 10px;
    }

    .ml-selector {
        gap: 6px;
        margin-bottom: 8px;
    }

    .ml-btn {
        padding: 6px 0;
        font-size: 11px;
    }

    .btn-agregar,
    .btn-agregar-decant {
        padding: 9px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    .carrito-panel {
        width: 100%;
        right: -100%;
    }

    .page-hero {
        padding: 40px 16px 30px;
    }

    .page-hero h1 {
        font-size: 32px;
    }
}










