/*
 * Tiendas del Norte — Custom Styles
 * Complementa Tailwind CDN con animaciones, gradientes y utilidades custom.
 */

/* ========================================
   Gradientes de texto
   ======================================== */
.text-gradient-gold {
    background: linear-gradient(135deg, hsl(40, 85%, 55%), hsl(35, 75%, 40%));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========================================
   Sombra elegante
   ======================================== */
.shadow-elegant {
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.3),
        0 2px 4px -2px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(203, 169, 82, 0.05);
}

/* ========================================
   Títulos de sección
   ======================================== */
.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
}

.section-subtitle {
    font-family: 'Lato', system-ui, sans-serif;
    color: hsl(220, 15%, 60%);
    font-size: 1.125rem;
}

/* ========================================
   Animaciones
   ======================================== */
@keyframes fade-in-up {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes slow-zoom {
    from { transform: scale(1.05); }
    to { transform: scale(1.15); }
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out forwards;
}

.animate-fade-in {
    animation: fade-in-up 0.6s ease-out forwards;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.animate-slow-zoom {
    animation: slow-zoom 20s ease-in-out infinite alternate;
}

/* ========================================
   Scroll Header (bg cambia al hacer scroll)
   ======================================== */
.header-scrolled {
    background: hsla(220, 35%, 12%, 0.95) !important;
    backdrop-filter: blur(12px);
    padding-top: 0.5rem !important;
    padding-bottom: 0.5rem !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* ========================================
   Scrollbar oculto
   ======================================== */
.scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* ========================================
   HTMX Loading Indicator
   ======================================== */
.htmx-request {
    opacity: 0.7;
    transition: opacity 200ms linear;
}

.htmx-indicator {
    display: none;
}
.htmx-request .htmx-indicator {
    display: inline-block;
}

/* ========================================
   Responsive tweaks
   ======================================== */
@media (max-width: 640px) {
    .section-title {
        font-size: 1.875rem;
    }
}

/* ========================================
   Nav responsive fallback (para evitar que
   se muestren ambos navs simultáneamente)
   ======================================== */
#main-header nav.hidden {
    display: none !important;
}
@media (min-width: 768px) {
    #main-header nav.hidden.md\:flex {
        display: flex !important;
    }
    #main-header .md\:hidden {
        display: none !important;
    }
}
@media (max-width: 767px) {
    #main-header nav.hidden.md\:flex {
        display: none !important;
    }
    #main-header .md\:hidden {
        display: flex !important;
    }
}

/* SVG icons — safe render */
#main-header svg {
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* ========================================
   Google Maps iframe override
   ======================================== */
iframe[src*="google.com/maps"] {
    filter: brightness(0.85) contrast(1.1);
}


/* Estilos para el contenedor de la vinería */
.auth-container {
    background: rgba(15, 23, 42, 0.8); /* Azul muy oscuro traslúcido */
    border: 1px solid #c9a050; /* Dorado sutil */
    border-radius: 8px;
    padding: 2rem;
    color: white;
    backdrop-filter: blur(10px);
}

.form-input-vineria {
    width: 100%;
    background: #0f172a;
    border: 1px solid #334155;
    color: white;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
    outline: none;
}

.form-input-vineria:focus {
    border-color: #c9a050; /* Brillo dorado al enfocar */
}

.btn-vineria {
    background: #c9a050; /* Dorado del logo */
    color: #0f172a;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid #c9a050;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-vineria-outline {
    background: transparent;
    color: #c9a050;
    font-weight: bold;
    text-transform: uppercase;
    border: 1px solid #c9a050;
    padding: 0.6rem 1.2rem;
    border-radius: 4px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.btn-vineria-outline:hover {
    background: rgba(201, 160, 80, 0.1);
    transform: translateY(-1px);
}

.btn-vineria:hover {
    background: #e5b860;
    transform: translateY(-2px);
}

.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 85vh; /* Ocupa casi toda la pantalla vertical */
    padding: 20px;
}

.text-danger {
    color: #ef4444; /* Rojo vibrante */
}

.auth-container {
    background: rgba(15, 23, 42, 0.95); /* El azul oscuro de tu logo */
    border: 1px solid #c9a050; /* Dorado vinería */
    border-radius: 12px;
    padding: 2.5rem;
    color: white;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}