﻿/* ===========================
   TYC - ACEPTAR
=========================== */

html, body {
    height: 100%;
}

body {
    margin: 0;
}

/* =====================================================
   FIX MODAL iOS / WHATSAPP WEBVIEW (🔥 CLAVE 🔥)
===================================================== */

/* El modal SIEMPRE arriba y recibiendo taps */
.modal {
    z-index: 20000 !important;
    pointer-events: auto !important;
}

/* Backdrop justo debajo del modal */
.modal-backdrop {
    z-index: 19990 !important;
}

/* Cuando hay modal, el contenedor con scroll NO debe capturar taps */
body.modal-open .tyc-main {
    pointer-events: none;
    overflow: hidden !important;
}

/* =====================================================
   Layout base
===================================================== */

.tyc-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
}

/* Header */
.tyc-header {
    background: #EBEBEB;
    border-bottom: 1px solid rgba(0,0,0,.08);
}

.tyc-header__row {
    display: flex;
    align-items: center;
    justify-content: center; /* móvil centrado */
    padding: 14px 0;
}

.tyc-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.tyc-brand__logo {
    max-height: 42px;
    width: auto;
}

/* =====================================================
   Main (UN SOLO SCROLL AQUÍ)
===================================================== */

.tyc-main {
    flex: 1;
    min-height: 0;
    overflow-y: auto; /* ✅ scroll único */
    -webkit-overflow-scrolling: touch;
}

/* Footer */
.tyc-footer {
    background: #0B1B4A;
    color: #fff;
}

.tyc-footer__row {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 0;
}

.tyc-footer__text {
    font-size: 12px;
    opacity: .95;
}

/* =====================================================
   Contenido TyC
===================================================== */

.tyc-wrap {
    width: 100%;
    max-width: 860px;
    margin: 0 auto;
    padding: 20px 6px 30px;
}

.tyc-header-block {
    margin-bottom: 14px;
}

.tyc-title {
    font-size: 1.35rem;
    margin: 0 0 6px 0;
    font-weight: 800;
    line-height: 1.2;
}

.tyc-subtitle {
    margin: 0 0 10px 0;
    color: #555;
}

/* Caja SIN scroll interno (evita doble scroll en móvil) */
.tyc-box {
    border: 1px solid #e6e6e6;
    border-radius: 12px;
    background: #fff;
    padding: 16px;
    overflow: visible;
}

/* Documento */
.tyc-ol {
    padding-left: 18px;
    margin: 0;
}

    .tyc-ol li {
        margin: 10px 0;
    }

    .tyc-ol h2 {
        font-size: 1.05rem;
        margin: 18px 0 8px 0;
        padding-top: 10px;
        border-top: 1px solid #e6e6e6;
        font-weight: 800;
    }

    .tyc-ol p {
        margin: 8px 0;
        color: #111;
    }

.tyc-contact {
    margin: 10px 0 0 0;
    padding: 0;
}

    .tyc-contact li {
        list-style: none;
        margin: 0 0 8px 0;
    }

.tyc-footer-note {
    margin-top: 16px;
    color: #555;
    font-size: .9rem;
}

/* =====================================================
   Acciones (checkbox + botones)
===================================================== */

.tyc-actions {
    margin-top: 14px;
    display: grid;
    gap: 12px;
    justify-items: start;
}

#btnAceptar {
    width: 100%;
    max-width: 320px;
}

/* =====================================================
   Desktop
===================================================== */

@media (min-width: 992px) {
    .tyc-header__row {
        justify-content: flex-start;
        padding: 16px 0;
    }

    .tyc-brand__logo {
        max-height: 50px;
    }

    .tyc-title {
        font-size: 1.8rem;
    }

    .tyc-box {
        padding: 20px;
    }
}
