/* TESORO REWARDS - MASTER STYLESHEET
Factorización de estilos para index, ofertas, perfil, registro y términos.
*/


/* --- Variables y Configuración Base --- */

:root {
    --tesoro-blue: #202C5D;
    --tesoro-gold: #aa8453;
    --tesoro-gold-light: #c4a678;
    --bg-light: #f8fafc;
    --font-main: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-main);
    scroll-behavior: smooth;
    color: var(--tesoro-blue);
    font-size: 16px;
}


/* --- Gradientes y Fondos --- */

.hero-section {
    background: linear-gradient(rgba(32, 44, 93, 0.35), rgba(32, 44, 93, 0.35)), url('/webp/des-lcs/');
    background-size: cover;
    background-position: center;
}

.register-section {
    background: linear-gradient(rgba(32, 44, 93, 0.35), rgba(32, 44, 93, 0.35)), url('/webp/des-ixt/');
    background-size: cover;
    background-position: center;
}

.hero-gradient {
    background: linear-gradient(rgba(32, 44, 93, 0.35), rgba(32, 44, 93, 0.35)), url('/webp/des-lcs/');
    background-size: cover;
    background-position: center;
}

.bg-pattern {
    background-color: #fcfcfc;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='https://www.google.com/search?q=http://www.w3.org/2000/svg%27%253E%253Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23aa8453' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2v-4h4v-2h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2v-4h4v-2H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    background-image: radial-gradient(white 1px, transparent 1px);
    background-size: 40px 40px;
}


/* --- Componentes de Interfaz --- */


/* Botones */

.btn-primary {
    @apply w-full bg-tesoro-blue text-white py-4 rounded-xl font-bold text-[10px] uppercase tracking-[2px] transition-all shadow-lg hover: bg-tesoro-gold hover: -translate-y-1 active: scale-95;
}

.btn-secondary {
    @apply px-8 py-3 rounded-full border-2 border-tesoro-gold text-tesoro-gold font-bold text-[10px] uppercase tracking-widest hover: bg-tesoro-gold hover: text-white transition-all;
}


/* Inputs y Formularios */

.input-field {
    @apply w-full px-5 py-4 bg-gray-50 border-none rounded-xl focus: ring-2 focus: ring-tesoro-gold outline-none transition-all text-sm;
}

.label-style {
    @apply block text-[10px] font-bold uppercase tracking-wider text-gray-400 mb-2;
}


/*Formularios*/

.booking-bar {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.booking-input {
    appearance: none;
    background: transparent;
    width: 100%;
    outline: none;
    cursor: pointer;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #202C5D;
}


/* Tarjetas y Efectos */

.glass-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(170, 132, 83, 0.1);
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}


/* --- Perfil y Sidebar --- */

.sidebar-link {
    @apply flex items-center space-x-4 p-4 rounded-xl transition-all text-gray-500 hover: bg-white hover: text-tesoro-gold hover: shadow-md;
}

.sidebar-link.active {
    @apply bg-white text-tesoro-gold shadow-md font-bold border-l-4 border-tesoro-gold;
}

.stat-card {
    @apply bg-white p-6 rounded-2xl border border-gray-100 shadow-sm hover: shadow-md transition-shadow;
}


/* --- Acordeón de FAQs (Ofertas) --- */

.faq-accordion-item .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.faq-accordion-item.active .faq-answer {
    max-height: 500px;
}

.faq-accordion-item.active i {
    transform: rotate(180deg);
}


/* --- Personalización de Scroll y Otros --- */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: var(--tesoro-gold);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--tesoro-gold-light);
}


/* Soporte para Impresión (Términos) */

@media print {
    .no-print {
        display: none !important;
    }
    body {
        background: white;
    }
}


/* Banner Card */

.promo-banner {
    background: linear-gradient(rgba(32, 44, 93, 0.35), rgba(32, 44, 93, 0.35)), url('/jpg/afi-card-trw/');
    background-size: cover;
    background-position: center;
}

.fntSIL {
    color: rgb(162, 162, 164) !important;
}

.fntGOL {
    color: rgb(156, 105, 40) !important;
}

.fntPLA {
    color: rgb(2, 71, 113) !important;
}


/* Table styles updated */

.benefits-table thead th {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 1.5rem 1rem;
    background: #aa8453;
    /* Dorado solicitado */
    color: white;
}

.benefits-table td {
    padding: 1.25rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    font-size: 14px;
    text-align: center;
}

.benefits-table td:first-child {
    text-align: left;
    font-weight: 600;
    color: #202C5D;
}


/* FAQ Accordion */

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
}

.faq-item.active .faq-content {
    max-height: 500px;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
}

.faq-item .bi-plus-lg {
    transition: transform 0.3s ease;
}

.faq-item.active .bi-plus-lg {
    transform: rotate(45deg);
}

.tier-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.tier-card:hover {
    transform: translateY(-10px);
}

.register-card {
    background: white;
    border-radius: 2.5rem;
    box-shadow: 0 25px 50px -12px rgba(32, 44, 93, 0.15);
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    margin: 2rem;
}

.register-form-input {
    width: 100%;
    padding: 1rem 1.5rem;
    background-color: #f3f4f6;
    border: 2px solid transparent;
    border-radius: 1rem;
    font-size: 0.85rem;
    color: #202C5D;
    outline: none;
    transition: all 0.3s ease;
}

.register-form-input:focus {
    background-color: white;
    border-color: #aa8453;
    box-shadow: 0 0 0 4px rgba(170, 132, 83, 0.1);
}

.register-form-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    margin-left: 0.5rem;
}

.btn-primary {
    background-color: #aa8453;
    color: white;
    width: 100%;
    padding: 1.25rem;
    border-radius: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 15px -3px rgba(170, 132, 83, 0.3);
}

.btn-primary:hover {
    background-color: #202C5D;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(32, 44, 93, 0.2);
}

select.register-form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23aa8453'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
}


/*Aspect ratio*/

.aspect-horizontal {
    aspect-ratio: 16 / 9;
}


/*Profile*/

.sidebar-link.active {
    background-color: #aa8453;
    color: white;
}

.stat-card {
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}