/* =====================================================================
   refresh.css — Capa de tema no invasiva (2025) para Pathsline
   Se carga DESPUÉS de los CSS originales y los sobrescribe sin tocar
   la estructura HTML ni los plugins. Quitar el <link> revierte todo.
   Marca: rojo #f10202 conservado.
   ===================================================================== */

:root {
    --brand: #f10202;
    --brand-dark: #c40000;
    --brand-soft: rgba(241, 2, 2, .08);

    --ink: #2b3245;          /* títulos */
    --text: #4a5468;         /* cuerpo */
    --muted: #8a93a6;        /* secundario */

    --bg: #ffffff;
    --bg-soft: #f7f8fa;      /* secciones suaves */
    --bg-softer: #fbfbfd;
    --border: #e8eaf0;

    --radius: 14px;
    --radius-sm: 10px;
    --shadow-sm: 0 2px 8px rgba(20, 28, 48, .06);
    --shadow: 0 10px 30px rgba(20, 28, 48, .08);
    --shadow-lg: 0 18px 50px rgba(20, 28, 48, .12);

    --font-body: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-head: 'Poppins', var(--font-body);

    --transition: all .25s cubic-bezier(.4, 0, .2, 1);
}

/* ------------------------------ Base ------------------------------
   Tipografía suave: solo cambia la familia y mejora un poco el
   interlineado. NO se reescriben colores ni tamaños de cada heading
   (los maneja el CSS original) para no alterar el texto del sitio. */
body {
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a:hover, a:focus { text-decoration: none; }

img { max-width: 100%; }

/* CAUSA RAÍZ de los textos rotos: mixitup.min.css trae una regla global
   `p { width: 500px }` que fija el ancho de TODOS los párrafos (los hace
   desbordar columnas angostas y ocupar media pantalla en las anchas).
   refresh.css carga después, así que esto lo neutraliza en todo el sitio. */
p { width: auto; }

/* Encabezados de sección centrados con acento (solo feature-head) */
.feature-head h1,
.gray-box .feature-head h1 {
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
    margin-bottom: 22px;
}
.feature-head h1::after,
.gray-box .feature-head h1::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--brand);
}

/* ------------------------------ Navbar ------------------------------ */
.head-section {
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.head-section .navbar { min-height: 72px; }
.head-section .navbar-nav > li { padding-top: 22px; padding-bottom: 22px; }
.navbar-brand { margin-top: 8px; }
.navbar-brand > img { width: 230px; max-width: 60vw; }

.head-section .nav li a {
    font-family: var(--font-head);
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    position: relative;
}
.head-section .navbar-nav > li > a { padding: 8px 14px; }

/* Subrayado animado de marca (en lugar de fondo rojo macizo) */
.head-section .navbar-nav > li > a::after {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 2px;
    height: 2px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition);
}
.head-section .nav li a:hover,
.head-section .nav li a:focus,
.head-section .nav li.active > a {
    color: var(--brand);
    background: transparent;
}
.head-section .navbar-nav > li > a:hover::after,
.head-section .navbar-nav > li.active > a::after { transform: scaleX(1); }

.navbar-toggle {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-top: 18px;
}
.navbar-toggle .icon-bar { background: var(--ink); }

/* ------------------------------ Botones ------------------------------ */
a.btn-purchase,
.btn-info,
.btn-purchase {
    background: var(--brand);
    border: none;
    color: #fff;
    border-radius: 999px;
    padding: 12px 28px;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: .01em;
    box-shadow: 0 6px 16px rgba(241, 2, 2, .25);
    transition: var(--transition);
}
a.btn-purchase:hover, a.btn-purchase:focus,
.btn-info:hover, .btn-info:focus,
.btn-purchase:hover, .btn-purchase:focus {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(241, 2, 2, .32);
}

/* ------------------------- Features (bienvenida) -------------------------
   Las 3 columnas del original no están dentro de un .row y sus párrafos se
   solapan (bug previo del template). Se contiene con flex sin tocar el HTML. */
.feature-box {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
}
.feature-box > div {
    float: none;
    flex: 1 1 0;
    min-width: 0;        /* permite que el texto envuelva en la columna */
}
.feature-box-heading img { transition: var(--transition); }
.feature-box-heading h4 { margin-top: 14px; }

@media (max-width: 767px) {
    .feature-box > div { flex: 1 1 100%; }
}

/* Principios (home-services) — solo cosmético; el layout y el padding
   de los hijos los maneja el CSS original */
.h-service {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: var(--transition);
}
.h-service:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.icon-wrap.ico-bg {
    background: var(--brand) !important;
    color: #fff;
    box-shadow: 0 8px 20px rgba(241, 2, 2, .25);
}
.icon-wrap.round-fifty, .icon-wrap.round-five { border-radius: 50%; }

/* --------------------------- Secciones / fondos --------------------------- */
.property {
    background: var(--bg-soft);
    padding: 40px 0;
    margin-bottom: 50px;
}
.bg-lg { background: var(--bg-soft); padding: 60px 0; }
.gray-box { background: var(--bg-soft); padding: 56px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.property hr { border-color: var(--border); }
.property i { color: var(--brand); }

.property > .container > .row > .text-center img,
.property .col-lg-7 img,
.recent .item img { border-radius: var(--radius); }

/* Separador decorativo (.hr) */
.hr { margin: 10px 0; }
.hr .hr-inner { background: var(--border); }

/* ------------------------------ Tabs ------------------------------ */
.tab { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.tab .panel-heading { padding: 0; }
.tab .nav-tabs { border: none; background: var(--bg-soft); }
.tab .nav-tabs > li > a {
    border: none;
    border-radius: 0;
    color: var(--muted);
    font-family: var(--font-head);
    font-weight: 600;
    padding: 16px;
}
.tab .nav-tabs > li.active > a,
.tab .nav-tabs > li.active > a:hover,
.tab .nav-tabs > li.active > a:focus {
    color: var(--brand);
    background: #fff;
    border: none;
    box-shadow: inset 0 -3px 0 var(--brand);
}
.tab .panel-body { padding: 8px 18px; }
.tab .media { padding: 14px 0; }
.tab .media-body.b-btm { border-bottom: 1px solid var(--border); padding-bottom: 14px; }
.tab .p-head { color: var(--ink); font-weight: 700; font-family: var(--font-head); }

/* --------------------------- Testimonios ---------------------------
   Se respeta el layout/medidas originales (imagen flotante 100x100,
   caja .about-testimonial-content). Solo se refresca color y bordes. */
.about-testimonial.boxed-style .about-testimonial-content {
    border-color: var(--border);
    border-radius: var(--radius-sm);
}
.about-testimonial-author { color: var(--ink); font-weight: 700; font-family: var(--font-head); }
.about-testimonial-company { color: var(--muted); }
.about-testimonial-content p { color: var(--text); }

/* ------------------------------ Breadcrumbs ------------------------------ */
.breadcrumbs {
    background: var(--bg-soft);
    border-bottom: 1px solid var(--border);
    padding: 28px 0;
}
.breadcrumbs h1 { margin: 0; font-size: 26px; }
.breadcrumb { background: transparent; margin: 0; }
.breadcrumb > li + li::before { color: var(--muted); }
.breadcrumb > .active { color: var(--brand); }

/* --------------------------- Clientes / works --------------------------- */
.our-clients .clients-list img { border-radius: var(--radius-sm); }
.recent .item { padding: 6px; }
.recent .item img { box-shadow: var(--shadow-sm); transition: var(--transition); }
.recent .item:hover img { box-shadow: var(--shadow); transform: translateY(-3px); }

/* --------------------------- Listas y justificado --------------------------- */
/* bootstrap-reset.css pone ul{padding-left:0}, lo que deja las viñetas colgando
   fuera del bloque de texto. Se restituye la sangría en las listas de contenido. */
.about ul,
.services .content ul { padding-left: 22px; }
.about ul li,
.services .content ul li { padding-left: 4px; }

/* Texto justificado con silabeo (necesita lang="es" en <html> para cortar bien).
   En pantallas chicas la columna es angosta y el justificado abre huecos feos,
   así que ahí se vuelve a alineación izquierda. */
/* Se apunta a p/li ademas del contenedor: style.css trae `p{text-align:left}`,
   y una regla directa sobre el elemento le gana siempre al valor heredado. */
.text-justify,
.text-justify p,
.text-justify li { text-align: justify; hyphens: auto; -webkit-hyphens: auto; -ms-hyphens: auto; }
@media (max-width: 767px) {
    .text-justify,
    .text-justify p,
    .text-justify li { text-align: left; hyphens: manual; -webkit-hyphens: manual; -ms-hyphens: manual; }
}

/* ------------------------------ Formularios ------------------------------ */
.contact-form .form-control,
.form-control {
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: none;
    padding: 12px 14px;
    height: auto;
    color: var(--text);
    transition: var(--transition);
}
.form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}
.contact-form label,
.address h4, .address h4.title { color: var(--ink); font-family: var(--font-head); }

/* ------------------------------ Footer ------------------------------ */
.footer {
    background: #1c2230;
    color: #c4cad7;
    padding: 56px 0 36px;
}
.footer h1 {
    color: #fff;
    font-size: 18px;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 14px;
}
.footer h1::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 44px; height: 3px;
    border-radius: 3px;
    background: var(--brand);
}
.footer p, .footer address { color: #aeb6c6; }
.footer i { color: var(--brand); }
.footer address a { color: #fff !important; font-weight: 600; font-size: inherit !important; }
.footer address a:hover { color: var(--brand) !important; }
.page-footer-list li { padding: 4px 0; }
.page-footer-list a { color: #aeb6c6; }
.page-footer-list a:hover { color: #fff; padding-left: 4px; }
.page-footer-list i { color: var(--brand); margin-right: 8px; }

.footer-small {
    background: #161b27;
    padding: 18px 0;
    border-top: 1px solid rgba(255, 255, 255, .06);
}
.footer-small .copyright p { color: #8993a6; margin: 6px 0; }
.social-link-footer li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: var(--transition);
}
.social-link-footer li a:hover { background: var(--brand); transform: translateY(-3px); }

/* ------------------------------ Responsive ------------------------------ */
@media (max-width: 991px) {
    .head-section { position: static; }
    .head-section .navbar-nav > li { padding-top: 0; padding-bottom: 0; }
    .head-section .navbar-nav > li > a::after { display: none; }
    .head-section .nav li a:hover,
    .head-section .nav li.active > a { background: var(--brand-soft); border-radius: var(--radius-sm); }
}
@media (max-width: 768px) {
    body { font-size: 14px; }
    .property, .bg-lg, .gray-box { padding: 36px 0; }
    .breadcrumb.pull-right { float: left !important; }
    .breadcrumbs h1 { font-size: 22px; }
    .h-service, .feature-box > div { margin-bottom: 16px; }
}

/* ===================================================================
   AÑADIDOS 2026 — Sello del Colegio, Avales y WhatsApp
   =================================================================== */

/* ----- Tagline de posicionamiento (home) ----- */
.home-tagline {
    max-width: 720px;
    margin: 6px auto 0;
    font-family: var(--font-head);
    font-size: 18px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--muted);
}
@media (max-width: 768px) {
    .home-tagline { font-size: 15.5px; }
}

/* ----- Sello del Colegio (tarjeta de Nosotros) ----- */
.colegio-badge {
    display: block;
    margin-top: 16px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}
.colegio-badge:hover {
    border-color: var(--brand);
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}
.colegio-badge img { display: block; margin: 0 auto; max-width: 240px; width: 100%; }
.colegio-badge-text {
    display: block;
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.4;
    color: var(--muted);
    text-align: center;
}
.colegio-badge:hover .colegio-badge-text { color: var(--brand); }

/* ----- Retratos circulares de Nuestro equipo (Nosotros) ----- */
.thumbnail img.team-avatar {
    display: block;
    width: 180px;
    height: 180px;
    margin: 24px auto 0;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow);
}
.thumbnail img.team-avatar--lead { width: 220px; height: 220px; }
.team-card .caption > h4,
.team-card .caption > small { display: block; text-align: center; }
/* Mas especifico que "#tourpackages-carousel > .row > div > .thumbnail > .caption > small" de style.css */
#tourpackages-carousel .team-row > div > .thumbnail.team-card > .caption > small { display: block; margin-bottom: 14px; }
.team-card-link { font-weight: 600; color: var(--brand); }
.team-card-link:hover { color: var(--brand-dark); }
/* Las dos fichas de la fila quedan de igual alto en desktop */
@media (min-width: 992px) {
    .team-row { display: flex; flex-wrap: wrap; }
    .team-row > div > .thumbnail { height: calc(100% - 30px); }
}

/* ----- Sello del Colegio en el footer ----- */
.footer-colegio {
    display: inline-block;
    margin-top: 20px;
    padding: 10px 12px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}
.footer-colegio:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.footer-colegio img { display: block; max-width: 210px; width: 100%; }
.footer-colegio span {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .02em;
    color: #2b3245;
}

/* ----- Bloque Avales y Certificaciones (home) ----- */
.avales {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    background: #fff;
}
.avales .aval-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px 20px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: var(--transition);
}
.avales .aval-item:last-child { border-bottom: none; }
a.aval-item { text-decoration: none; }
a.aval-item:hover { background: var(--bg-soft); }
.aval-icon {
    flex: 0 0 52px;
    width: 52px; height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--brand-soft);
    color: var(--brand);
    font-size: 22px;
}
.aval-media {
    flex: 0 0 96px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.aval-media img { max-width: 96px; width: 100%; }
.aval-text { display: block; line-height: 1.45; font-size: 13.5px; }
.aval-text strong {
    display: block;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 15px;
    margin-bottom: 3px;
}
a.aval-item:hover .aval-text strong { color: var(--brand); }

@media (max-width: 768px) {
    .avales .aval-item { gap: 12px; padding: 14px 14px; }
    .aval-media { flex-basis: 72px; }
    .aval-media img { max-width: 72px; }
}

/* ----- Botón flotante de WhatsApp (todas las páginas) ----- */
.wa-float {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 1040;
    width: 56px; height: 56px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
    transition: var(--transition);
    animation: wa-pulse 2.4s infinite;
}
.wa-float:hover {
    background: #1ebe5b;
    color: #fff;
    transform: scale(1.08);
}
.wa-float svg { display: block; }
@keyframes wa-pulse {
    0%   { box-shadow: 0 8px 22px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, .45); }
    70%  { box-shadow: 0 8px 22px rgba(37, 211, 102, .45), 0 0 0 16px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 8px 22px rgba(37, 211, 102, .45), 0 0 0 0 rgba(37, 211, 102, 0); }
}
@media (max-width: 768px) {
    .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
    .wa-float { animation: none; }
}

/* ------------------------- Hero / Sequence.js -------------------------
   style.min.css, en @media (max-width:768px), oculta las imagenes del hero
   y fuerza left:10px !important en .intro/.slide2/.slide3, pero solo le da
   width:100% a .intro. .slide2 (400px) y .slide3 (360px) se quedan con su
   ancho de desktop y se recortan contra el overflow:hidden de
   #sequence-theme en pantallas de 320-375px.
   Se iguala el ancho al viewport dejando el mismo gutter de 10px que el
   left. calc(100% - 20px) y no 100%, porque con left:10px ya aplicado un
   100% se iria 10px por derecha (es el bug residual que hoy tiene .intro).
   Especificidad 1 id + 3 clases, para ganarle al !important de la regla
   vieja; ademas refresh.css carga ultimo. */
@media (max-width: 768px) {
    #sequence .sequence-canvas > li > .intro,
    #sequence .sequence-canvas > li > .slide2,
    #sequence .sequence-canvas > li > .slide3 {
        width: calc(100% - 20px) !important;
        max-width: calc(100% - 20px) !important;
        box-sizing: border-box;
    }
}

/* El texto del slide 3 arrancaba en top:220px mientras la imagen (.ipad)
   entra en top:134px, asi que el bloque quedaba 86px mas abajo que la foto.
   Se igualan los dos topes. Se toca tambien animate-out para que la salida
   siga siendo un desplazamiento horizontal puro, sin salto vertical.
   El theme (sequencejs-theme.apple-style.css:689 y :704) se carga en el
   {% block css %} de index.html; refresh.css va despues, asi que con el
   mismo selector alcanza el orden de carga. */
#sequence .animate-in .slide2,
#sequence .animate-out .slide2 {
    top: 134px;
}
