/* Estilos personalizados para Formación de Transporte */
/* Compatible con Odoo 19 (DartSass + Bootstrap 5.3) */
/* GSAP Parallax + Animations */

.text-ft-granate {
    color: #8B1A2B !important;
}

.bg-ft-granate {
    background-color: #8B1A2B !important;
}

.bg-ft-granate-light {
    background-color: #fdf0f2 !important;
}

.border-ft-granate {
    border-color: #8B1A2B !important;
}

/* Botón granate */
.btn-ft-granate {
    background-color: #8B1A2B;
    border-color: #8B1A2B;
    color: #fff;
    font-weight: 700;
}

.btn-ft-granate:hover,
.btn-ft-granate:focus {
    background-color: #6d1522;
    border-color: #65131f;
    color: #fff;
}

/* Hero y trust bar: ver static/src/css/page_hero.css (carga directa, evita error Sass con min/clamp) */

/* Parallax backgrounds (legado — imágenes en secciones internas) */
.ft-parallax-bg {
    background-attachment: fixed;
    will-change: background-position;
}

@media (max-width: 768px) {
    .ft-parallax-bg {
        background-attachment: scroll;
    }
}

/* Image zoom container */
.ft-img-zoom {
    overflow: hidden;
    border-radius: 1rem;
}

.ft-img-zoom img {
    transition: transform 0.3s ease;
    will-change: transform;
}

/* Cards con hover effect */
.card.shadow-sm,
.card.border-0.shadow-sm {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card.shadow-sm:hover,
.card.border-0.shadow-sm:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.12) !important;
}

/* Formulario de contacto */
.s_website_form .form-control,
.s_website_form .form-select {
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    transition: border-color 0.3s ease;
}

.s_website_form .form-control:focus,
.s_website_form .form-select:focus {
    border-color: #0d6efd;
}

/* Animated elements (initial state for no-JS fallback) */
.ft-animate {
    opacity: 1;
}

/* Botones CTA */
.btn-lg {
    border-radius: 0.5rem;
    font-weight: 600;
    padding: 0.875rem 2rem;
}

/* Stats counter */
.ft-counter {
    font-variant-numeric: tabular-nums;
}

/* FAQ accordion styling */
.accordion-button:not(.collapsed) {
    font-weight: 600;
}

/* Testimonios (3 tarjetas visibles, estilo Google Reviews) */
.ft-testimonials {
    background: #f8f9fb;
}

.ft-testimonials-kicker {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.8rem;
    font-weight: 700;
    color: #8B1A2B;
}

.ft-testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}

.ft-testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 0.75rem;
    padding: 1.5rem;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.06);
    transition: box-shadow 0.25s ease;
}

.ft-testimonial-card:hover {
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.1);
}

.ft-testimonial-google {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #5f6368;
    margin-bottom: 0.5rem;
}

.ft-testimonial-google .fa-google {
    color: #4285f4;
    font-size: 1rem;
}

.ft-testimonial-stars {
    display: flex;
    gap: 0.15rem;
    margin-bottom: 0.85rem;
    line-height: 1;
}

.ft-testimonial-stars .fa-star {
    color: #fbbc04;
    font-size: 1.1rem;
}

.ft-testimonial-text {
    flex: 1 1 auto;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #3c4043;
    margin-bottom: 1rem;
}

.ft-testimonial-footer {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: auto;
}

.ft-testimonial-avatar {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border: 2px solid #e8eaed;
    border-radius: 50%;
    object-fit: cover;
    background: #f1f5f9;
}

.ft-testimonial-author {
    font-weight: 700;
    font-size: 0.9rem;
    color: #202124;
    margin-bottom: 0;
    text-align: left;
}

@media (max-width: 991px) {
    .ft-testimonials-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .display-3 {
        font-size: 2.2rem;
    }

    .display-4 {
        font-size: 1.75rem;
    }

    section[style*="min-height: 80vh"] {
        min-height: 60vh !important;
    }
}

/* Botón WhatsApp flotante (todas las páginas) */
.ft-whatsapp-float {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    background-color: #25d366;
    color: #fff !important;
    font-size: 2rem;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ft-whatsapp-float:hover,
.ft-whatsapp-float:focus {
    color: #fff !important;
    transform: scale(1.06);
    box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.ft-whatsapp-float .fa-whatsapp {
    margin-top: 0.1rem;
}

@media (max-width: 576px) {
    .ft-whatsapp-float {
        width: 3.25rem;
        height: 3.25rem;
        font-size: 1.75rem;
        right: 1rem;
        bottom: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
}

/* Botón flotante «Solicitar información gratis» (páginas con #formulario) */
.ft-cta-float {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    z-index: 1039;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(-50%);
    padding: 0.7rem 1.35rem;
    border-radius: 2rem;
    background-color: #8B1A2B;
    color: #fff !important;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(139, 26, 43, 0.45);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.25s ease, visibility 0.25s ease;
}

.ft-cta-float:hover,
.ft-cta-float:focus {
    color: #fff !important;
    transform: translateX(-50%) scale(1.03);
    box-shadow: 0 6px 28px rgba(139, 26, 43, 0.55);
}

.ft-cta-float--hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.ft-cta-float .fa {
    font-size: 1.1rem;
}

@media (max-width: 576px) {
    .ft-cta-float {
        left: 1rem;
        right: 4.5rem;
        bottom: 1rem;
        bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
        transform: none;
        justify-content: center;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
        white-space: normal;
        text-align: center;
    }

    .ft-cta-float:hover,
    .ft-cta-float:focus {
        transform: scale(1.02);
    }

    .ft-cta-float span {
        max-width: 11rem;
    }
}

/* Logos «Nuestras referencias» — marco blanco uniforme (estilo temario) */
.ft-referencias__item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 5.5rem;
    padding: 1rem 0.75rem;
    background-color: #fff;
}

.ft-referencias__img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 3rem;
    object-fit: contain;
}

@media (min-width: 768px) {
    .ft-referencias__item {
        min-height: 6.25rem;
        padding: 1.25rem 1rem;
    }

    .ft-referencias__img {
        max-height: 3.25rem;
    }
}

/* Formulario de matrícula */
.ft-matricula-form .card {
    border-radius: 0.5rem;
}

.ft-matricula-form .ft-matricula-cursos .form-check {
    padding: 0.5rem 0.75rem;
    background: #fff;
    border-radius: 0.375rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

/* Site layout extras — menú estilo mockup */
.ft-site-header {
    background: #fff;
    border-bottom: 1px solid #eef1f4;
    position: sticky;
    top: 0;
    z-index: 1030;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}
.ft-site-header .navbar {
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}
.ft-site-header .ft-nav-wrap {
    gap: 0.75rem;
}
.ft-site-header .navbar-brand {
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.02em;
    margin-right: 0.5rem;
}
.ft-site-header .ft-nav-logo {
    max-height: 44px;
    width: auto;
    height: auto;
}
.ft-site-header .ft-nav-brand-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #111827;
    letter-spacing: -0.03em;
}
.ft-site-header .ft-nav-brand-de {
    font-weight: 500;
    color: #8B1A2B;
}
.ft-site-header .ft-nav-links {
    gap: 0.15rem;
}
.ft-site-header .ft-nav-links .nav-link {
    color: #1f2937;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.45rem 0.7rem;
}
.ft-site-header .ft-nav-links .nav-link:hover,
.ft-site-header .ft-nav-links .nav-link:focus,
.ft-site-header .ft-nav-links .nav-link.active {
    color: #8B1A2B;
}
.ft-site-header .ft-nav-links .dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.15em;
    border-top-width: 0.32em;
    border-right-width: 0.32em;
    border-left-width: 0.32em;
    opacity: 0.75;
}
.ft-site-header .ft-nav-ctas {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-left: 0.85rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}
.ft-site-header .ft-nav-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.48rem 0.95rem;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.ft-site-header .ft-nav-btn .fa {
    font-size: 0.95em;
}
.ft-site-header .ft-nav-btn--campus {
    background: #e8f1fe;
    color: #1d4ed8;
    border: 1px solid transparent;
}
.ft-site-header .ft-nav-btn--campus:hover,
.ft-site-header .ft-nav-btn--campus:focus {
    background: #dbe7fd;
    color: #1e40af;
}
.ft-site-header .ft-nav-btn--info {
    background: #fff;
    color: #8B1A2B;
    border: 1.5px solid #8B1A2B;
}
.ft-site-header .ft-nav-btn--info:hover,
.ft-site-header .ft-nav-btn--info:focus {
    background: #fdf0f2;
    color: #6d1522;
    border-color: #6d1522;
}
.ft-site-header .ft-nav-btn--matricula {
    background: #8B1A2B;
    color: #fff;
    border: 1.5px solid #8B1A2B;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(139, 26, 43, 0.22);
}
.ft-site-header .ft-nav-btn--matricula:hover,
.ft-site-header .ft-nav-btn--matricula:focus {
    background: #6d1522;
    border-color: #6d1522;
    color: #fff;
}
.ft-site-header .btn-ft-granate {
    font-size: 0.95rem;
    padding: 0.45rem 0.95rem;
}

@media (min-width: 992px) {
    .ft-site-header .navbar-collapse {
        display: flex !important;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: flex-end;
        gap: 0.15rem;
    }
    .ft-site-header .ft-nav-links {
        margin-left: auto !important;
    }
    .ft-site-header .ft-nav-ctas {
        flex-shrink: 0;
        padding-top: 0;
        padding-bottom: 0;
    }
}

@media (max-width: 991.98px) {
    .ft-site-header .ft-nav-links {
        margin-top: 0.5rem;
        padding-top: 0.35rem;
        border-top: 1px solid #eef1f4;
    }
    .ft-site-header .ft-nav-links .nav-link {
        padding: 0.65rem 0;
    }
    .ft-site-header .ft-nav-ctas {
        margin-left: 0;
        margin-top: 0.35rem;
        padding-top: 0.75rem;
        border-top: 1px solid #eef1f4;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
    }
    .ft-site-header .ft-nav-btn {
        width: 100%;
        justify-content: center;
        padding: 0.7rem 1rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    .ft-site-header .ft-nav-btn {
        padding: 0.42rem 0.72rem;
        font-size: 0.8rem;
    }
    .ft-site-header .ft-nav-ctas {
        gap: 0.35rem;
        margin-left: 0.45rem;
    }
    .ft-site-header .ft-nav-links .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
    }
}
.ft-site-footer { background: #1a1a1a; color: #ccc; padding: 3rem 0 1.5rem; margin-top: 0; }
.ft-site-footer a { color: #ddd; text-decoration: none; }
.ft-site-footer a:hover { color: #fff; }
.ft-whatsapp-float { position: fixed; right: 1.25rem; bottom: 1.25rem; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.75rem; z-index: 1040; box-shadow: 0 4px 14px rgba(0,0,0,.25); }
.ft-whatsapp-float:hover { color: #fff; transform: scale(1.05); }

/* GEO — resumen citables (desplegable; contenido siempre en el HTML) */
.ft-geo-answer {
    padding: 1.25rem 0 2rem;
}
.ft-geo-answer__box {
    max-width: 44rem;
    margin: 0 auto;
    padding: 0.85rem 1.1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.65rem;
    background: #f8fafc;
}
.ft-geo-answer__q {
    cursor: pointer;
    list-style: none;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 650;
    color: #334155;
    line-height: 1.4;
}
.ft-geo-answer__q::-webkit-details-marker {
    display: none;
}
.ft-geo-answer__q::before {
    content: "▸ ";
    color: #64748b;
    font-weight: 700;
}
.ft-geo-answer__box[open] .ft-geo-answer__q::before {
    content: "▾ ";
}
.ft-geo-answer__body {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}
.ft-geo-answer__a {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #475569;
}
.ft-geo-answer__facts {
    margin: 0.65rem 0 0;
    padding-left: 1.1rem;
    color: #64748b;
    font-size: 0.88rem;
}
.ft-geo-answer__facts li {
    margin-bottom: 0.2rem;
}

/* Breadcrumbs SEO */
.ft-breadcrumbs {
    padding: 0.65rem 0;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.82rem;
}
.ft-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.35rem;
    list-style: none;
    margin: 0;
    padding: 0;
    align-items: center;
    color: #64748b;
}
.ft-breadcrumbs__item:not(:last-child)::after {
    content: "›";
    margin-left: 0.35rem;
    color: #94a3b8;
}
.ft-breadcrumbs__item a {
    color: #475569;
    text-decoration: none;
}
.ft-breadcrumbs__item a:hover {
    color: #7a1f2b;
    text-decoration: underline;
}
.ft-breadcrumbs__item [aria-current="page"] {
    color: #334155;
    font-weight: 600;
}

/* Metodología: 4 tiles numerados */
.ft-metodologia-tile {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 0.4rem;
    overflow: hidden;
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.ft-metodologia-tile:hover {
    border-color: #8B1A2B;
    box-shadow: 0 8px 24px rgba(139, 26, 43, 0.08);
}
.ft-metodologia-tile__head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1rem;
    background: #1e293b;
    color: #fff;
}
.ft-metodologia-tile__media {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 10rem;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid #e2e8f0;
    background: #fff;
}
.ft-metodologia-tile__media img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.ft-metodologia-tile__num {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    padding: 0 0.35rem;
    background: #8B1A2B;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.ft-metodologia-tile__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.2;
}
.ft-metodologia-tile__list {
    margin: 0;
    padding: 1rem 1.1rem 1.15rem 1.35rem;
    list-style: none;
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.45;
    flex: 1 1 auto;
}
.ft-metodologia-tile__list li {
    position: relative;
    padding-left: 0.85rem;
    margin-bottom: 0.55rem;
}
.ft-metodologia-tile__list li:last-child {
    margin-bottom: 0;
}
.ft-metodologia-tile__list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 0.35rem;
    height: 0.35rem;
    background: #8B1A2B;
}

/* —— CTA intermedio (ancla al formulario) —— */
.ft-cta-mid {
    padding: 1.75rem 0;
}
.ft-cta-mid--soft {
    background: linear-gradient(180deg, #f8f9fa 0%, #f1f3f5 100%);
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}
.ft-cta-mid--brand {
    background: #8B1A2B;
    color: #fff;
}
.ft-cta-mid__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.5rem;
    max-width: 920px;
    margin: 0 auto;
}
.ft-cta-mid__copy {
    flex: 1 1 16rem;
    min-width: 0;
}
.ft-cta-mid__title {
    margin: 0 0 0.25rem;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.35;
    color: #1e293b;
}
.ft-cta-mid--brand .ft-cta-mid__title {
    color: #fff;
}
.ft-cta-mid__text {
    margin: 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.4;
}
.ft-cta-mid--brand .ft-cta-mid__text {
    color: rgba(255, 255, 255, 0.85);
}
.ft-cta-mid__btn {
    flex: 0 0 auto;
    white-space: nowrap;
    padding: 0.7rem 1.35rem;
    border-radius: 0.35rem;
}
.ft-cta-mid--soft .ft-cta-mid__btn {
    background-color: #8B1A2B;
    border-color: #8B1A2B;
    color: #fff;
}
.ft-cta-mid--soft .ft-cta-mid__btn:hover,
.ft-cta-mid--soft .ft-cta-mid__btn:focus {
    background-color: #6e1422;
    border-color: #6e1422;
    color: #fff;
}
.ft-cta-mid--brand .ft-cta-mid__btn {
    background-color: #fff;
    border-color: #fff;
    color: #8B1A2B;
}
.ft-cta-mid--brand .ft-cta-mid__btn:hover,
.ft-cta-mid--brand .ft-cta-mid__btn:focus {
    background-color: #f8f9fa;
    border-color: #f8f9fa;
    color: #6e1422;
}
@media (max-width: 575.98px) {
    .ft-cta-mid__inner {
        flex-direction: column;
        text-align: center;
    }
    .ft-cta-mid__btn {
        width: 100%;
    }
}

/* Libro viajeros: PNG con fondo transparente */
.ft-libro-img--nobg {
    background: transparent;
    box-shadow: none;
    border-radius: 0;
}

