/* ==========================================================
   tarifas.css — Estilos de la página de Tarifas (Tarifario)
   Ubicación: css/tarifas.css
   (se carga DESPUÉS de css/styles.css)
   ========================================================== */

:root {
    --tf-navy: #0a2a5e;      /* Cambia por el azul de tu marca */
    --tf-accent: #f28c1b;    /* Cambia por el naranja de tu marca */
    --tf-line: #17a2e8;      /* Borde celeste de los botones */
}

/* ===== Hero con banner y título ===== */
.hero.hero-tarifas {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    background:
        linear-gradient(rgba(6, 24, 56, .78), rgba(6, 24, 56, .88)),
        url("../assets/tarifas-banner.jpg") center / cover no-repeat,
        url("../assets/servicio-maritimo.jpg") center / cover no-repeat !important;
    background-color: var(--tf-navy) !important;
}
.hero.hero-tarifas .hero-overlay,
.hero.hero-tarifas .hero-wave {
    display: none !important;
}
.tf-hero-title {
    text-align: center;
    color: #fff;
    padding: 70px 20px 80px;
}
.tf-hero-title h1 {
    margin: 0;
    font-size: 44px;
    font-weight: 600;
    letter-spacing: .5px;
}

/* ===== Cuerpo: menú lateral + visor PDF ===== */
.tf-section {
    padding: 40px 0 70px;
    background: #fff;
}
.tf-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 70px;
    align-items: start;
}

/* ----- Menú lateral ----- */
.tf-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.tf-btn {
    width: 100%;
    min-height: 54px;
    padding: 10px 18px;
    background: #fff;
    border: 1px solid var(--tf-line);
    color: var(--tf-navy);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    text-transform: uppercase;
    cursor: pointer;
    transition: background .25s, color .25s, box-shadow .25s;
}
.tf-btn:hover {
    background: #eef6fd;
}
.tf-btn:focus-visible {
    outline: 3px solid var(--tf-accent);
    outline-offset: 2px;
}
.tf-btn.active {
    background: var(--tf-navy);
    color: #fff;
    box-shadow: 0 6px 16px rgba(10, 42, 94, .3);
}

/* ----- Visor ----- */
.tf-viewer {
    min-width: 0;
}
.tf-viewer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.tf-viewer-title {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--tf-navy);
}
.tf-viewer-actions {
    display: flex;
    gap: 8px;
}
.tf-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    border: 1px solid var(--tf-navy);
    color: var(--tf-navy);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: background .25s, color .25s;
}
.tf-action:hover {
    background: var(--tf-navy);
    color: #fff;
}
.tf-action.primary {
    background: var(--tf-accent);
    border-color: var(--tf-accent);
    color: #fff;
}
.tf-action.primary:hover {
    filter: brightness(1.08);
    background: var(--tf-accent);
}

.tf-frame-wrap {
    position: relative;
    height: 820px;
    background: #323639;       /* mismo gris oscuro de los visores de PDF */
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(10, 42, 94, .18);
}
.tf-frame-wrap iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
    background: #323639;
}

/* Indicador de carga */
.tf-loader {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: #fff;
    font-size: 14px;
    background: #323639;
    transition: opacity .3s;
    pointer-events: none;
}
.tf-loader.hide {
    opacity: 0;
}
.tf-spinner {
    width: 42px;
    height: 42px;
    border: 4px solid rgba(255, 255, 255, .25);
    border-top-color: var(--tf-accent);
    border-radius: 50%;
    animation: tf-spin .8s linear infinite;
}
@keyframes tf-spin {
    to { transform: rotate(360deg); }
}

.tf-note {
    margin: 12px 0 0;
    font-size: 13px;
    color: #6b7280;
}
.tf-note i {
    color: var(--tf-accent);
    margin-right: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .tf-layout {
        grid-template-columns: 280px 1fr;
        gap: 36px;
    }
}
@media (max-width: 992px) {
    .tf-layout {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .tf-menu {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
    .tf-frame-wrap {
        height: 620px;
    }
    .tf-hero-title h1 {
        font-size: 36px;
    }
}
@media (max-width: 520px) {
    .tf-menu {
        grid-template-columns: 1fr;
    }
    .tf-frame-wrap {
        height: 480px;
    }
    .tf-hero-title {
        padding: 50px 20px 60px;
    }
}
