/* Age Gate Tobacco — assets/age-gate.css */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=DM+Sans:wght@300;400;500&display=swap');

/* ─── Bloquear scroll del body ─── */
body.age-gate-active {
    overflow: hidden !important;
    height: 100vh;
}

/* ─── Overlay ─── */
#age-gate-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: var(--ag-overlay-bg, rgba(8, 6, 4, 0.97));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    font-family: 'DM Sans', sans-serif;
    backdrop-filter: blur(2px);
    animation: ag-fade-in 0.4s ease;
}

@keyframes ag-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
}

/* ─── Modal ─── */
#age-gate-modal {
    background: var(--ag-modal-bg, #111009);
    border: 0.5px solid var(--ag-border, #3a3526);
    border-radius: 16px;
    padding: 2.5rem 2rem 2rem;
    max-width: 440px;
    width: 100%;
    text-align: center;
    animation: ag-slide-up 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
}

/* Decorative top border accent */
#age-gate-modal::before {
    content: '';
    position: absolute;
    top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #C9A84C 50%, transparent);
    border-radius: 1px;
}

@keyframes ag-slide-up {
    from { transform: translateY(24px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}

/* ─── Brand ─── */
.ag-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1.75rem;
}

.ag-brand-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}

.ag-brand-line1 {
    font-family: 'Cormorant Garamond', serif;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: 0.18em;
    color: var(--ag-accent, #C9A84C);
    text-transform: uppercase;
}

.ag-brand-line2 {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 300;
    letter-spacing: 0.38em;
    color: var(--ag-sub-color, #7a7060);
    text-transform: uppercase;
    margin-top: 3px;
}

/* ─── Typography ─── */
.ag-title {
    font-family: 'Cormorant Garamond', serif;
    font-size: 26px;
    font-weight: 600;
    color: var(--ag-title-color, #f0ece4);
    margin-bottom: 0.75rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
}

.ag-subtitle {
    font-size: 13.5px;
    color: var(--ag-sub-color, #7a7060);
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.ag-subtitle strong {
    color: var(--ag-accent, #C9A84C);
    font-weight: 500;
}

/* ─── Label ─── */
.ag-label {
    display: block;
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #5a5040;
    text-align: left;
    margin-bottom: 8px;
}

/* ─── Selects ─── */
.ag-dob-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.ag-dob-row select {
    background: #1c1a14;
    border: 0.5px solid #3a3526;
    border-radius: 8px;
    color: #d4ccba;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    padding: 11px 10px;
    width: 100%;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    transition: border-color 0.15s;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%235a5040' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    padding-right: 28px;
}

.ag-dob-row select:focus {
    outline: none;
    border-color: var(--ag-accent, #C9A84C);
}

.ag-dob-row select option {
    background: #1c1a14;
    color: #d4ccba;
}

/* ─── Error ─── */
.ag-error {
    font-size: 12px;
    color: #e05a4a;
    background: rgba(224, 90, 74, 0.08);
    border: 0.5px solid rgba(224, 90, 74, 0.25);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 1rem;
    text-align: left;
}

/* ─── Botones ─── */
.ag-btn-enter {
    display: block;
    width: 100%;
    padding: 13px;
    background: var(--ag-btn-bg, #C9A84C);
    color: var(--ag-btn-text, #1a1001);
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.04em;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 0.6rem;
    transition: opacity 0.15s, transform 0.1s;
}

.ag-btn-enter:hover  { opacity: 0.88; }
.ag-btn-enter:active { transform: scale(0.98); }

.ag-btn-exit {
    display: block;
    width: 100%;
    padding: 11px;
    background: transparent;
    color: var(--ag-sub-color, #5a5040);
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    border: 0.5px solid var(--ag-border, #2a2820);
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    transition: color 0.15s, border-color 0.15s;
    text-align: center;
}

.ag-btn-exit:hover {
    color: #8a8070;
    border-color: #3a3526;
}

/* ─── Legal ─── */
.ag-legal {
    margin-top: 1.5rem;
    font-size: 11px;
    color: #3a3526;
    line-height: 1.65;
    border-top: 0.5px solid #1e1c14;
    padding-top: 1.25rem;
    text-align: center;
}

.ag-legal strong {
    color: #5a5040;
}

.ag-legal a {
    color: var(--ag-accent, #7a6a3a);
    text-decoration: underline;
    text-decoration-color: rgba(122, 106, 58, 0.4);
}

.ag-legal a:hover {
    color: var(--ag-accent, #C9A84C);
    opacity: 0.8;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
    #age-gate-modal {
        padding: 2rem 1.25rem 1.5rem;
    }
    .ag-title {
        font-size: 22px;
    }
    .ag-dob-row {
        grid-template-columns: 1fr 1fr;
    }
    .ag-dob-row select:last-child {
        grid-column: 1 / -1;
    }
}
