/* ============================================================
   Intrepid DMC Ecuador — Diseño propio sobre Bootstrap 5.3
   ============================================================ */

:root {
    --idmc-primary: #0f4c44;        /* verde bosque amazonico */
    --idmc-primary-dark: #0a352f;
    --idmc-accent: #e8552f;         /* coral */
    --idmc-accent-dark: #c94020;
    --idmc-sand: #faf6f0;
    --idmc-ink: #212a2e;
    --idmc-muted: #5c6b70;
    --idmc-gold: #f4b942;
    --idmc-radius: 1rem;
    --idmc-shadow: 0 .5rem 1.5rem rgba(15, 76, 68, .12);
    --idmc-shadow-lg: 0 1.25rem 3rem rgba(15, 76, 68, .18);
    --idmc-font-head: "Poppins", "Segoe UI", Arial, sans-serif;
    --idmc-font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--idmc-font-body);
    color: var(--idmc-ink);
    background: #fff;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: var(--idmc-font-head); }

img { max-width: 100%; }

/* ---------- Barra superior ---------- */
.topbar {
    background: var(--idmc-primary-dark);
    color: rgba(255, 255, 255, .85);
    font-size: .82rem;
}
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--idmc-gold); }
.topbar .fa { margin-right: .3rem; }

/* ---------- Navbar ---------- */
.navbar-idmc {
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .06);
}
.navbar-idmc .navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--idmc-primary);
    letter-spacing: .02em;
}
.navbar-idmc .navbar-brand img { height: 34px; margin-right: .5rem; }
.navbar-idmc .nav-link {
    font-weight: 600;
    font-size: .92rem;
    color: var(--idmc-ink);
    padding: .6rem .9rem !important;
    border-radius: .5rem;
}
.navbar-idmc .nav-link:hover,
.navbar-idmc .nav-link.active { color: var(--idmc-accent); }

.btn-idmc {
    --bs-btn-bg: var(--idmc-accent);
    --bs-btn-border-color: var(--idmc-accent);
    --bs-btn-hover-bg: var(--idmc-accent-dark);
    --bs-btn-hover-border-color: var(--idmc-accent-dark);
    --bs-btn-active-bg: var(--idmc-accent-dark);
    --bs-btn-active-border-color: var(--idmc-accent-dark);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    font-weight: 600;
    border-radius: 50rem;
    padding: .55rem 1.4rem;
}
.btn-idmc-outline {
    --bs-btn-color: #fff;
    --bs-btn-border-color: #fff;
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-color: var(--idmc-primary);
    --bs-btn-hover-border-color: #fff;
    --bs-btn-active-bg: #fff;
    --bs-btn-active-color: var(--idmc-primary);
    font-weight: 600;
    border-radius: 50rem;
    padding: .55rem 1.4rem;
}
.btn-idmc-green {
    --bs-btn-bg: var(--idmc-primary);
    --bs-btn-border-color: var(--idmc-primary);
    --bs-btn-hover-bg: var(--idmc-primary-dark);
    --bs-btn-hover-border-color: var(--idmc-primary-dark);
    --bs-btn-active-bg: var(--idmc-primary-dark);
    --bs-btn-active-border-color: var(--idmc-primary-dark);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    --bs-btn-active-color: #fff;
    font-weight: 600;
    border-radius: 50rem;
    padding: .55rem 1.4rem;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    background: var(--idmc-primary-dark) center/cover no-repeat;
    color: #fff;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(100deg, rgba(10, 53, 47, .88) 0%, rgba(10, 53, 47, .55) 45%, rgba(10, 53, 47, .15) 100%);
}
.hero .container { position: relative; z-index: 2; }
.hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    max-width: 15ch;
}
.hero .lead {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    max-width: 46ch;
    color: rgba(255, 255, 255, .92);
}
.hero .badge-hero {
    display: inline-block;
    background: var(--idmc-accent);
    color: #fff;
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: .45rem 1rem;
    border-radius: 50rem;
    margin-bottom: 1.25rem;
}

.hero-sm {
    min-height: 46vh;
}
.hero-sm h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }

/* ---------- Hero con video ---------- */
.hero-video { overflow: hidden; }
.hero-video .hero-video__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* ---------- Franja de confianza ---------- */
.trust-strip {
    background: var(--idmc-primary);
    color: #fff;
}
.trust-strip .trust-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: 1.1rem .5rem;
}
.trust-strip .trust-item .fa {
    font-size: 1.6rem;
    color: var(--idmc-gold);
}
.trust-strip .trust-item strong { display: block; font-size: .95rem; }
.trust-strip .trust-item span { font-size: .8rem; color: rgba(255, 255, 255, .75); }

/* ---------- Secciones ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--idmc-sand); }
.section-title {
    font-weight: 800;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    color: var(--idmc-primary);
    margin-bottom: .75rem;
}
.section-subtitle {
    color: var(--idmc-muted);
    max-width: 60ch;
    font-size: 1.05rem;
}
.eyebrow {
    color: var(--idmc-accent);
    font-weight: 700;
    font-size: .8rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}

/* ---------- Tarjetas de tours ---------- */
.tour-card {
    border: 0;
    border-radius: var(--idmc-radius);
    overflow: hidden;
    box-shadow: var(--idmc-shadow);
    transition: transform .25s ease, box-shadow .25s ease;
    height: 100%;
    background: #fff;
}
.tour-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--idmc-shadow-lg);
}
.tour-card .tour-img {
    height: 220px;
    object-fit: cover;
    width: 100%;
}
.tour-card .tour-body { padding: 1.4rem 1.4rem 1.6rem; }
.tour-card .tour-duration {
    display: inline-block;
    background: rgba(232, 85, 47, .12);
    color: var(--idmc-accent-dark);
    font-weight: 700;
    font-size: .72rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    padding: .3rem .8rem;
    border-radius: 50rem;
    margin-bottom: .8rem;
}
.tour-card h5 { font-weight: 700; color: var(--idmc-ink); font-size: 1.08rem; }
.tour-card p { color: var(--idmc-muted); font-size: .9rem; }
.tour-card .tour-link {
    font-weight: 700;
    color: var(--idmc-primary);
    text-decoration: none;
    font-size: .9rem;
}
.tour-card .tour-link:hover { color: var(--idmc-accent); }
.tour-card .tour-link .fa { transition: transform .2s; }
.tour-card:hover .tour-link .fa { transform: translateX(4px); }

/* ---------- Features ---------- */
.feature-box { text-align: center; padding: 1rem; }
.feature-box .feature-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(15, 76, 68, .09);
    color: var(--idmc-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
}
.feature-box h5 { font-weight: 700; font-size: 1rem; }
.feature-box p { color: var(--idmc-muted); font-size: .88rem; }

/* ---------- Banner CTA ---------- */
.cta-banner {
    position: relative;
    background: var(--idmc-primary-dark) center/cover no-repeat;
    color: #fff;
    text-align: center;
    padding: 5rem 0;
}
.cta-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(10, 53, 47, .78);
}
.cta-banner .container { position: relative; z-index: 2; }
.cta-banner h2 { font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.6rem); }

/* ---------- Acordeon ---------- */
.accordion-idmc .accordion-item {
    border: 0;
    border-radius: .8rem !important;
    overflow: hidden;
    margin-bottom: .8rem;
    box-shadow: 0 .15rem .6rem rgba(15, 76, 68, .08);
}
.accordion-idmc .accordion-button {
    font-weight: 700;
    color: var(--idmc-primary);
    font-family: var(--idmc-font-head);
    background: #fff;
}
.accordion-idmc .accordion-button:not(.collapsed) {
    background: var(--idmc-primary);
    color: #fff;
    box-shadow: none;
}
.accordion-idmc .accordion-button:focus { box-shadow: none; }

/* ---------- Página de tour ---------- */
.trip-meta .meta-item {
    background: #fff;
    border-radius: .9rem;
    padding: 1rem 1.2rem;
    box-shadow: var(--idmc-shadow);
    text-align: center;
}
.trip-meta .meta-item .fa { color: var(--idmc-accent); font-size: 1.3rem; }
.trip-meta .meta-item small { display: block; color: var(--idmc-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.trip-meta .meta-item strong { font-size: .98rem; }

.gallery-img {
    border-radius: .9rem;
    object-fit: cover;
    width: 100%;
    height: 230px;
    box-shadow: var(--idmc-shadow);
}

/* ---------- Breadcrumb ---------- */
.breadcrumb-idmc {
    background: transparent;
    font-size: .85rem;
    padding: 0;
}
.breadcrumb-idmc a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.breadcrumb-idmc a:hover { color: var(--idmc-gold); }
.breadcrumb-idmc .breadcrumb-item.active { color: rgba(255, 255, 255, .6); }
.breadcrumb-idmc .breadcrumb-item + .breadcrumb-item::before { color: rgba(255, 255, 255, .5); }

/* ---------- Footer ---------- */
.footer-idmc {
    background: var(--idmc-primary-dark);
    color: rgba(255, 255, 255, .75);
    font-size: .9rem;
}
.footer-idmc h6 {
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    font-size: .8rem;
    letter-spacing: .1em;
    margin-bottom: 1.1rem;
}
.footer-idmc a { color: rgba(255, 255, 255, .75); text-decoration: none; }
.footer-idmc a:hover { color: var(--idmc-gold); }
.footer-idmc .footer-brand {
    color: #fff;
    font-family: var(--idmc-font-head);
    font-weight: 700;
    font-size: 1.2rem;
}
.footer-idmc .social-btn {
    display: inline-flex;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .1);
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-right: .5rem;
    transition: background .2s;
}
.footer-idmc .social-btn:hover { background: var(--idmc-accent); color: #fff; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .12);
    padding: 1.3rem 0;
    font-size: .8rem;
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
    position: fixed;
    right: 1.4rem;
    bottom: 1.4rem;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 .4rem 1.2rem rgba(0, 0, 0, .25);
    z-index: 1050;
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }

/* ---------- Tarjetas de permisos/documentos ---------- */
.permit-card {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: #fff;
    border-radius: var(--idmc-radius);
    padding: 1.4rem 1.5rem;
    box-shadow: var(--idmc-shadow);
    border: 1px solid rgba(15, 76, 68, .08);
    border-left: 5px solid var(--idmc-accent);
    height: 100%;
    transition: transform .25s ease, box-shadow .25s ease;
    text-decoration: none;
    color: inherit;
}
.permit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--idmc-shadow-lg);
    color: inherit;
}
.permit-card .permit-icon {
    flex: 0 0 auto;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(232, 85, 47, .1);
    color: var(--idmc-accent-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.permit-card .permit-info { flex: 1 1 auto; min-width: 0; }
.permit-card .permit-info h5 {
    font-weight: 700;
    font-size: .98rem;
    margin-bottom: .25rem;
    color: var(--idmc-ink);
}
.permit-card .permit-info small {
    display: block;
    color: var(--idmc-muted);
    font-size: .78rem;
    margin-bottom: .55rem;
}
.permit-card .permit-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(15, 76, 68, .09);
    color: var(--idmc-primary);
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .28rem .7rem;
    border-radius: 50rem;
}
.permit-card .permit-action {
    flex: 0 0 auto;
    color: var(--idmc-primary);
    font-size: 1.3rem;
    transition: transform .2s;
}
.permit-card:hover .permit-action { transform: translateX(4px); color: var(--idmc-accent); }
.permit-card { cursor: pointer; }

/* ---------- Documento protegido (modal) ---------- */
.doc-protected {
    user-select: none;
    -webkit-user-select: none;
    background: var(--idmc-sand);
    overflow: auto;
    max-height: 76vh;
}
.doc-protected img {
    display: block;
    margin: 0 auto;
    pointer-events: none;
    max-width: 100%;
    width: auto;
    height: auto;
    box-shadow: var(--idmc-shadow-lg);
    transition: max-width .25s ease;
}
.doc-zoom-btns .btn { padding: .15rem .55rem; }

/* ---------- Utilidades ---------- */
.lead-text { font-size: 1.08rem; color: var(--idmc-muted); }
.text-idmc { color: var(--idmc-primary) !important; }
.rounded-idmc { border-radius: var(--idmc-radius) !important; }
.shadow-idmc { box-shadow: var(--idmc-shadow) !important; }
.img-cover { object-fit: cover; width: 100%; }

@media (max-width: 767.98px) {
    .hero { min-height: 62vh; }
    .section { padding: 3rem 0; }
}
