/* ============================================================
   FSM Seguros — web-2026
   Identidad: azul #015FC9 · navy #15233C · acento teal #009FA8
   ============================================================ */

:root {
    --fsm-blue: #015FC9;
    --fsm-blue-dark: #014a9e;
    --fsm-navy: #15233C;
    --fsm-teal: #009FA8;
    --fsm-gold: #E3A857;
    --fsm-light: #F6F7FC;
    --fsm-muted: #696E77;
    --fsm-border: #e3e9f2;
    --fsm-radius: 14px;
    --fsm-shadow: 0 10px 30px rgba(21, 35, 60, .08);
}

body {
    font-family: 'Roboto', system-ui, sans-serif;
    color: #44515e;
}

h1, h2, h3, h4, h5, h6, .navbar-brand {
    font-family: 'Poppins', system-ui, sans-serif;
    color: var(--fsm-navy);
}

a { color: var(--fsm-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--fsm-blue-dark); }

/* Accesibilidad: enlace para saltar al contenido */
.skip-link {
    position: absolute;
    left: -999px;
    top: 0;
    background: var(--fsm-navy);
    color: #fff;
    padding: .6rem 1rem;
    z-index: 2000;
    border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* ── Topbar ─────────────────────────────────────────────── */
.topbar {
    background: var(--fsm-navy);
    color: rgba(255, 255, 255, .9);
    font-size: .88rem;
    padding: .6rem 0;
}
.topbar span i { color: #7fd6de; }
.topbar a.topbar-social {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .25);
    color: rgba(255, 255, 255, .92);
    font-size: .92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.topbar a.topbar-social:hover { color: #fff; transform: translateY(-1px); }
.topbar a.topbar-social.fs-ig:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}
.topbar a.topbar-social.fs-fb:hover { background: #1877F2; border-color: #1877F2; }
.topbar a.topbar-social.fs-wa:hover { background: #25d366; border-color: #25d366; }

/* ── Navbar ────────────────────────────────────────────── */
.site-header {
    background: #fff;
    box-shadow: 0 2px 14px rgba(21, 35, 60, .06);
    transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(21, 35, 60, .12); }
.site-header .navbar { padding-top: .22rem; padding-bottom: .22rem; }
.brand-logo { max-height: 72px; width: auto; }
.navbar .nav-link {
    color: var(--fsm-navy);
    font-weight: 500;
    padding: .55rem .85rem;
    border-radius: 8px;
}
.navbar .nav-link:hover,
.navbar .nav-link.active { color: var(--fsm-blue); background: rgba(1, 95, 201, .07); }
.dropdown-menu {
    border: 0;
    box-shadow: var(--fsm-shadow);
    border-radius: 10px;
    overflow: hidden;
}
.dropdown-item { padding: .55rem 1.1rem; }
.dropdown-item:hover { background: var(--fsm-light); color: var(--fsm-blue); }

/* Botones */
.btn-brand {
    background: var(--fsm-blue);
    border: 0;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
}
.btn-brand:hover { background: var(--fsm-blue-dark); color: #fff; }
.btn-outline-brand {
    border: 2px solid var(--fsm-blue);
    color: var(--fsm-blue);
    font-weight: 600;
    border-radius: 10px;
    background: transparent;
}
.btn-outline-brand:hover { background: var(--fsm-blue); color: #fff; }
.btn-teal {
    background: var(--fsm-teal);
    border: 0;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
}
.btn-teal:hover { background: #00838b; color: #fff; }

/* ── Hero (carrusel del inicio) ─────────────────────────── */
.hero-carousel .carousel-item { max-height: 620px; }
.hero-carousel img { width: 100%; height: 620px; object-fit: cover; }
.hero-carousel::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(13, 27, 42, .82) 0%, rgba(13, 27, 42, .45) 45%, rgba(13, 27, 42, .05) 100%);
    pointer-events: none;
}
.hero-carousel { position: relative; }
.hero-caption {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    z-index: 5;
}
.hero-caption h1 {
    color: #fff;
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    max-width: 640px;
    text-shadow: 0 2px 18px rgba(0, 0, 0, .35);
}
.hero-caption p {
    color: rgba(255, 255, 255, .92);
    font-size: 1.15rem;
    max-width: 560px;
}
.hero-carousel .carousel-control-prev,
.hero-carousel .carousel-control-next { z-index: 6; }

/* ── Cabecera de páginas internas ──────────────────────── */
.page-header {
    background:
        linear-gradient(115deg, rgba(1, 95, 201, .92) 0%, rgba(21, 35, 60, .94) 100%),
        url('../images/carousel-22.jpg') center / cover no-repeat;
    color: #fff;
    padding: 3.2rem 0;
}
.page-header h1 { color: #fff; font-weight: 700; }
.page-header .breadcrumb { margin: 0; }
.page-header .breadcrumb-item a { color: rgba(255, 255, 255, .8); }
.page-header .breadcrumb-item.active { color: rgba(255, 255, 255, .95); }

/* ── Secciones ─────────────────────────────────────────── */
.section-padding { padding: 4.5rem 0; }
.section-light { background: var(--fsm-light); }
.section-navy { background: var(--fsm-navy); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(255, 255, 255, .88); }

.section-kicker {
    display: inline-block;
    color: var(--fsm-teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: .78rem;
    margin-bottom: .5rem;
}
.section-title { font-weight: 700; font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.section-lead { font-size: 1.05rem; color: var(--fsm-muted); }

/* ── Tarjetas de ramos/productos ───────────────────────── */
.card-ramo {
    background: #fff;
    border: 1px solid var(--fsm-border);
    border-radius: var(--fsm-radius);
    padding: 1.9rem;
    height: 100%;
    box-shadow: var(--fsm-shadow);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card-ramo:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 38px rgba(21, 35, 60, .13);
}
.card-ramo .icon-wrap {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--fsm-blue), var(--fsm-teal));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    margin-bottom: 1.1rem;
}

/* ── Tarjetas genéricas (features / beneficios) ────────── */
.feature-card {
    background: #fff;
    border: 1px solid var(--fsm-border);
    border-radius: var(--fsm-radius);
    padding: 1.6rem;
    height: 100%;
    box-shadow: var(--fsm-shadow);
}
.feature-card i.accent {
    color: var(--fsm-teal);
    font-size: 1.7rem;
    margin-bottom: .9rem;
    display: inline-block;
}

/* ── Franja de cifras ──────────────────────────────────── */
.stats-strip { padding: 3.2rem 0; }
.stat-box h3 {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--fsm-teal);
    margin-bottom: .2rem;
}
.stat-box p { color: #fff; margin: 0; }

/* ── Banner CTA ────────────────────────────────────────── */
.cta-banner {
    background: linear-gradient(115deg, var(--fsm-blue) 0%, #014294 100%);
    color: #fff;
    border-radius: var(--fsm-radius);
    padding: 2.6rem;
    box-shadow: var(--fsm-shadow);
}
.cta-banner h2 { color: #fff; font-weight: 700; }
.cta-banner p { color: rgba(255, 255, 255, .88); font-size: 1.05rem; }

/* ── Equipo ────────────────────────────────────────────── */
.team-card {
    background: #fff;
    border-radius: var(--fsm-radius);
    overflow: hidden;
    box-shadow: var(--fsm-shadow);
    border: 1px solid var(--fsm-border);
}
.team-card img {
    width: 100%;
    aspect-ratio: 4 / 4.4;
    object-fit: cover;
    object-position: top;
}
.team-card .team-info { padding: 1.15rem 1.25rem; text-align: center; }
.team-card .team-info h5 { margin-bottom: .15rem; font-size: 1.05rem; }
.team-card .team-info p { color: var(--fsm-muted); margin: 0; font-size: .92rem; }

/* ── Testimonios ───────────────────────────────────────── */
.testimonial-card {
    background: #fff;
    border: 1px solid var(--fsm-border);
    border-radius: var(--fsm-radius);
    box-shadow: var(--fsm-shadow);
    padding: 2rem 1.8rem;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}
.testimonial-card img {
    width: 84px;
    height: 84px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--fsm-light);
    margin-bottom: 1rem;
}
.testimonial-card .stars { color: var(--fsm-gold); margin-bottom: .8rem; }
.testimonial-carousel .carousel-control-prev,
.testimonial-carousel .carousel-control-next { width: 5%; color: var(--fsm-blue); }

/* ── Planes (vida / autos) ─────────────────────────────── */
.plan-card {
    border-radius: var(--fsm-radius);
    overflow: hidden;
    height: 100%;
    color: #fff;
    box-shadow: var(--fsm-shadow);
    display: flex;
    flex-direction: column;
}
.plan-card.acento-primario { background: linear-gradient(160deg, var(--fsm-blue), #014a9e); }
.plan-card.acento-dorado { background: linear-gradient(160deg, #d99b46, #b97f2e); }
.plan-card img { width: 100%; height: 190px; object-fit: cover; }
.plan-card .plan-body { padding: 1.6rem; flex: 1; }
.plan-card h3 { color: #fff; font-weight: 700; }
.plan-card h4 { color: rgba(255, 255, 255, .85); font-size: 1.05rem; }
.plan-card p { color: rgba(255, 255, 255, .92); }
.plan-card .plan-item strong { color: #fff; }
.plan-card .plan-lista {
    list-style: none;
    padding: 0;
    margin: 0;
}
.plan-card .plan-lista li {
    padding: .45rem 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: .95rem;
}

/* Lista con checks */
.lista-check { list-style: none; padding: 0; }
.lista-check li {
    padding: .55rem 0 .55rem 2.1rem;
    position: relative;
    border-bottom: 1px dashed var(--fsm-border);
}
.lista-check li:last-child { border-bottom: 0; }
.lista-check li::before {
    content: "\f058";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: var(--fsm-teal);
    position: absolute;
    left: 0;
    top: .6rem;
}

/* ── Formularios ───────────────────────────────────────── */
.form-brand .form-control,
.form-brand .form-select {
    border-radius: 10px;
    border: 1px solid var(--fsm-border);
    padding: .8rem 1rem;
}
.form-brand .form-control:focus,
.form-brand .form-select:focus {
    border-color: var(--fsm-blue);
    box-shadow: 0 0 0 .2rem rgba(1, 95, 201, .12);
}
.form-brand label { font-weight: 500; color: var(--fsm-navy); }
.form-card {
    background: #fff;
    border-radius: var(--fsm-radius);
    box-shadow: var(--fsm-shadow);
    padding: 2rem;
    border: 1px solid var(--fsm-border);
}
.captcha-box {
    background: var(--fsm-light);
    border: 1px dashed var(--fsm-border);
    border-radius: 10px;
    padding: .8rem 1rem;
}

/* ── Franja de contacto (fondo imagen) ─────────────────── */
.appointment {
    background:
        linear-gradient(115deg, rgba(1, 95, 201, .93) 0%, rgba(0, 159, 168, .88) 100%),
        url('../images/feature.jpg') center / cover no-repeat fixed;
    color: #fff;
}
.appointment h1, .appointment h2 { color: #fff; }
.appointment p { color: rgba(255, 255, 255, .9); }

/* ── Página de empresa: valores ────────────────────────── */
.valor-card {
    background: #fff;
    border-radius: var(--fsm-radius);
    box-shadow: var(--fsm-shadow);
    border: 1px solid var(--fsm-border);
    padding: 1.9rem;
    height: 100%;
}
.valor-card i { font-size: 1.9rem; color: var(--fsm-blue); margin-bottom: 1rem; display: inline-block; }

/* ── Tarjetas de asesor (tag_*.php) ────────────────────── */
.tarjeta-asesor-foto {
    border-radius: var(--fsm-radius);
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    object-position: top;
    box-shadow: var(--fsm-shadow);
}

/* ── Pie de página ─────────────────────────────────────── */
.site-footer { background: var(--fsm-navy); color: rgba(255, 255, 255, .75); }
.footer-logo { max-height: 52px; width: auto; }
.site-footer p { color: rgba(255, 255, 255, .75); }
.footer-title {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: .85rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.footer-links li { padding: .22rem 0; }
.footer-links a { color: rgba(255, 255, 255, .75); }
.footer-links a:hover { color: #fff; }
.footer-contact li {
    display: flex;
    gap: .7rem;
    align-items: flex-start;
    padding: .28rem 0;
    color: rgba(255, 255, 255, .75);
}
.footer-contact i { color: var(--fsm-teal); margin-top: .3rem; }
.footer-contact a { color: rgba(255, 255, 255, .75); }
.footer-contact a:hover { color: #fff; }
.footer-social {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.footer-social:hover { color: #fff; transform: translateY(-3px); }
.footer-social.fs-ig:hover {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    border-color: transparent;
}
.footer-social.fs-fb:hover { background: #1877F2; border-color: #1877F2; }
.footer-social.fs-wa:hover { background: #25d366; border-color: #25d366; }
.footer-super { font-size: .82rem; }
/* Logo blanco transparente: directo sobre el navy del pie (como el sitio original) */
.footer-super-logo { max-width: 120px; height: auto; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); }
.footer-bottom,
.footer-bottom a { color: rgba(255, 255, 255, .6); font-size: .88rem; }
.footer-bottom a:hover { color: #fff; }
.credito a { color: #7fd6de; }

/* ── Botones flotantes ─────────────────────────────────── */
.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 92px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 0;
    background: var(--fsm-blue);
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
    transform: translateY(8px);
    z-index: 1050;
    box-shadow: 0 8px 20px rgba(1, 95, 201, .35);
}
.back-to-top.visible { opacity: 1; pointer-events: auto; transform: none; }
.back-to-top:hover { background: var(--fsm-blue-dark); }

.whatsapp-float {
    position: fixed;
    right: 22px;
    bottom: 26px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #25d366;
    color: #fff;
    font-size: 1.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    box-shadow: 0 8px 22px rgba(37, 211, 102, .45);
    transition: transform .15s ease;
}
.whatsapp-float:hover { color: #fff; transform: scale(1.07); }

/* ── Animación de aparición al hacer scroll ────────────── */
.reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .55s ease, transform .55s ease;
}
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Utilidades ────────────────────────────────────────── */
.text-teal { color: var(--fsm-teal); }
.bg-brand-light { background: var(--fsm-light); }
.rounded-brand { border-radius: var(--fsm-radius); }
.img-cover {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
    border-radius: var(--fsm-radius);
}
.mapa iframe {
    width: 100%;
    min-height: 400px;
    border: 0;
    border-radius: var(--fsm-radius);
    display: block;
}

/* ── Móvil ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .brand-logo { max-height: 56px; }
    .hero-carousel img { height: 480px; }
    .hero-carousel .carousel-item { max-height: 480px; }
    .section-padding { padding: 3rem 0; }
    .form-card { padding: 1.4rem; }
}
