@import "../fonts/circular/circular.css";
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap");
:root { --fq: #006d4e; --fq-light: #4ed176; --fq-line: #169179; --fq-smoke: #f4fbf8; --fq-blue: #079def; }
.fq-body { margin: 0; font-family: "Circular", Arial, sans-serif; color: var(--fq); background: #fff; }
.fq-top { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 24px; background: #fff; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.fq-top-line nav { display: flex; gap: 18px; text-align: center; font-size: 14px; }
.fq-top-line a { color: var(--fq); text-decoration: none; }
main { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 48px; }
h1, h2, h3 { color: var(--fq); font-weight: 700; }
h1 { font-size: 2.25rem; line-height: 1.25; }
h2 { font-size: 1.875rem; line-height: 1.3; }
h3 { font-size: 1rem; }
.fq-hero, .fq-split > div, .fq-session-box, .fq-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.fq-lead { font-size: 1.25rem; }
.fq-pill { display: inline-block; background: var(--fq); color: #fff; text-decoration: none; border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.fq-pill-line { background: #fff; color: var(--fq-line); border: 2px solid var(--fq-line); }
.fq-video { min-height: 220px; border-radius: 16px; background: #d7efe6; display: grid; place-items: center; font-weight: 700; }
.fq-band { background: var(--fq-smoke); border-radius: 16px; padding: 28px; margin: 28px 0; }
.fq-lines, .fq-benefits, .fq-logos, .fq-story-track, .fq-highlights, .fq-mosaic { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }
.fq-line { width: 180px; text-align: center; }
.fq-line img, .fq-slider img, .fq-benefits img, .fq-hero-line img, .fq-mosaic img { width: 100%; border-radius: 16px; display: block; }
.fq-line-open { border: 0; padding: 0; background: none; cursor: pointer; position: relative; }
.fq-line-open span { position: absolute; left: 12px; right: 12px; bottom: 12px; background: var(--fq); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; }
.fq-line-panel { text-align: left; background: #fff; border: 2px solid rgba(0, 109, 78, .25); border-radius: 12px; padding: 16px 14px; margin-top: 16px; box-shadow: 0 4px 6px rgba(0, 0, 0, .1); line-height: 1.45; }
.fq-line-panel p { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #4ed176; }
.fq-line-panel ul { margin: 0; padding-left: 18px; }
.fq-line-panel li { margin: 0 0 10px; font-size: 14px; line-height: 1.4; }
.fq-line-panel li:last-child { margin-bottom: 0; }
.fq-costs { max-width: 420px; margin: 0 auto; display: grid; gap: 10px; }
.fq-costs p, .fq-cost-total { display: flex; justify-content: space-between; border: 2px solid var(--fq-light); border-radius: 999px; padding: 10px 18px; font-weight: 700; }
.fq-cost-total { background: var(--fq); color: #fff; border-color: var(--fq); }
.fq-pills { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.fq-pills span, .fq-pill-soc { width: 110px; height: 110px; border-radius: 50%; background: var(--fq); color: #fff; display: grid; place-items: center; text-align: center; padding: 8px; }
.fq-table { width: 100%; border-collapse: collapse; border: 2px solid var(--fq-line); }
.fq-table th { background: var(--fq); color: #fff; padding: 10px; }
.fq-table td { border-top: 1px solid var(--fq-line); padding: 8px 12px; }
.fq-table tr:nth-child(odd) { background: var(--fq-smoke); }
.fq-desk { display: block; } .fq-mobile { display: none; }
.fq-story-track figure, .fq-benefits figure { width: 240px; margin: 0; }
.fq-story-track a { display: block; background: var(--fq); color: #fff; text-align: center; padding: 48px 12px; border-radius: 16px; text-decoration: none; font-weight: 700; }
.fq-benefits figcaption { background: var(--fq); color: #fff; text-align: center; margin-top: -8px; padding: 10px; border-radius: 0 0 16px 16px; }
.fq-faq { border: 1px solid var(--fq); border-radius: 12px; margin: 10px 0; }
.fq-faq button { width: 100%; text-align: left; background: var(--fq); color: #fff; border: 0; padding: 12px 16px; font: inherit; font-weight: 700; cursor: pointer; }
.fq-faq div { padding: 12px 16px; }
.fq-form, .fq-form-card { display: grid; gap: 12px; }
.fq-form-card { background: var(--fq-smoke); border-radius: 16px; padding: 24px; }
.fq-form label, .fq-form fieldset { display: grid; gap: 6px; }
.fq-form input, .fq-form select { padding: 10px; border: 1px solid #d5dde8; border-radius: 8px; font: inherit; }
.fq-form fieldset { border: 0; padding: 0; }
.fq-form fieldset label { display: flex; gap: 8px; align-items: center; }
.fq-form button, .fq-tagline { background: var(--fq-light); color: #fff; border: 0; border-radius: 8px; padding: 12px; font: inherit; font-weight: 700; cursor: pointer; }
.fq-social { display: flex; gap: 8px; flex-wrap: wrap; }
.fq-social a, .fq-float a { width: 42px; height: 42px; border-radius: 50%; background: var(--fq); color: #fff; display: grid; place-items: center; text-decoration: none; }
.fq-float { position: fixed; right: 16px; top: 40%; display: grid; gap: 8px; }
.fq-float a:nth-child(1) { background: #4ec876; } .fq-float a:nth-child(2) { background: #4ac1ec; }
.fq-logos img { width: auto; height: 28px; border-radius: 0; }
.fq-logos span { border: 1px solid var(--fq); border-radius: 8px; padding: 6px 10px; font-weight: 700; }
.fq-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; }
.fq-slider img { scroll-snap-align: center; height: 220px; object-fit: cover; }
.fq-highlights article { width: 240px; background: var(--fq-smoke); border-radius: 12px; padding: 16px; text-align: center; }
.fq-highlights img { width: 28px; height: 28px; margin: 0 auto 8px; border-radius: 50%; }
.fq-hero-line { position: relative; }
.fq-hero-line figcaption { position: absolute; left: 24px; bottom: 24px; max-width: 280px; font-weight: 700; }
.fq-footer, .fq-tagline { background: var(--fq); color: #fff; text-align: center; padding: 12px; margin: 0; }
.fq-mosaic img { width: calc(50% - 8px); height: 120px; object-fit: cover; }

/* Inicio de franquicias: mismo lienzo que producción. */
body:has(.fq-hero) main { width: 100%; margin: 0; padding: 0 0 40px; }
body:has(.fq-hero) .fq-top { padding: 12px 40px; }
body:has(.fq-hero) .fq-top img { height: 56px; width: auto; }
body:has(.fq-hero) .fq-top .fq-pill { font-size: 14px; font-weight: 700; padding: 6px 16px; }
.fq-hero { width: min(1280px, calc(100% - 64px)); margin: 0 auto; padding: 56px 0 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.fq-hero h1 { max-width: 480px; margin: 0 0 8px; font-size: 36px; font-weight: 700; line-height: 1.25; }
.fq-hero .fq-lead { max-width: 480px; margin: 0 0 40px; font-size: 1.65rem; font-weight: 400; line-height: 1.35; }
.fq-hero h2 { margin: 56px 0 16px; font-size: 16px; font-weight: 700; }
.fq-hero .fq-pill-line { color: var(--fq-blue); border-color: var(--fq-blue); font-size: 24px; padding: 8px 32px; }
.fq-hero .fq-social a { width: 48px; height: 48px; }
.fq-video { position: relative; width: 100%; aspect-ratio: 16 / 9; min-height: 0; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .3); display: block; color: transparent; font-size: 0; }
.fq-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
body:has(.fq-hero) .fq-band { width: 100%; max-width: none; margin: 0; border-radius: 0; padding: 128px 0 64px; text-align: center; background: #f1f2f7; }
body:has(.fq-hero) .fq-band > * { width: min(1280px, calc(100% - 48px)); margin-left: auto; margin-right: auto; }
body:has(.fq-hero) .fq-band h2 { font-size: 26.4px; line-height: 1.3; margin: 0 0 40px; }
body:has(.fq-hero) .fq-band .fq-lead { width: min(768px, 100%); font-size: 1.25rem; font-weight: 400; }
body:has(.fq-hero) .fq-band > .fq-costs { width: min(448px, calc(100% - 48px)); }
body:has(.fq-hero) .fq-band > p:not(.fq-lead) { width: min(576px, calc(100% - 48px)); max-width: 576px; font-size: 18px; line-height: 1.6; text-align: center; }
body:has(.fq-hero) .fq-session,
body:has(.fq-hero) .fq-split,
body:has(.fq-hero) .fq-route,
body:has(.fq-hero) .fq-stories,
body:has(.fq-hero) > section:not(.fq-band) { width: min(1100px, calc(100% - 48px)); margin: 48px auto; }
body:has(.fq-hero) .fq-lines { width: min(1280px, calc(100% - 48px)); flex-wrap: wrap; gap: 28px 32px; justify-content: center; }
.fq-line { width: 230px; flex: 0 0 230px; padding: 0; box-sizing: border-box; }
.fq-line-open { display: block; width: 100%; }
.fq-line img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; object-fit: cover; }
.fq-line h3 { margin: 12px 0 0; font-size: 16px; font-weight: 700; }
.fq-line-open span { left: 50%; right: auto; bottom: 8px; transform: translateX(-50%); width: auto; padding: 4px 8px; font-size: 10.4px; font-weight: 700; letter-spacing: 0.26px; text-transform: uppercase; line-height: 1; box-shadow: 0 4px 6px rgba(0, 0, 0, .25); white-space: nowrap; }
.fq-line-open span::before { content: ""; display: inline-block; width: 0; height: 0; margin-right: 4px; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid #fff; vertical-align: middle; }
.fq-costs { width: 448px; max-width: 100%; gap: 16px; margin-bottom: 40px; }
.fq-costs p { background: #fff; color: #006d4e; border: 2px solid #4ed176; box-shadow: 0 4px 6px rgba(0, 0, 0, .2); padding: 8px 32px; font-size: 20px; height: 48px; align-items: center; box-sizing: border-box; }
.fq-costs .fq-cost-total { background: #006d4e; color: #fff; border-color: #006d4e; }
.fq-costs .fq-cost-total span { background: transparent; color: #fff; }
body:has(.fq-hero) .fq-line:nth-child(4) h3 { font-size: 0; }
body:has(.fq-hero) .fq-line:nth-child(4) h3::after { content: "Patrimonial"; font-size: 16px; font-weight: 700; }
.fq-pills { display: grid; grid-template-columns: repeat(3, 150px); justify-content: center; gap: 18px; }
.fq-pills span { width: 140px; height: 140px; }
.fq-pills span:nth-child(4) { grid-column: 2; grid-row: 2; width: 160px; height: 160px; }
.fq-pills span:nth-child(5) { grid-column: 1; grid-row: 2; }
.fq-pills span:nth-child(6) { grid-column: 3; grid-row: 2; }
.fq-pills span:nth-child(7) { grid-column: 2; grid-row: 3; }
.fq-story-track img { width: 100%; height: 146px; object-fit: cover; border-radius: 16px 16px 0 0; }
.fq-story-track a { border-radius: 0 0 16px 16px; padding: 16px 12px; }
/* Líneas empresarial y seguros: lienzo de producción (max-w-5xl, hero y ficha). */
body:has(.fq-line-page) { color: #40516f; background: #fff; font-family: "Montserrat", Arial, sans-serif; }
body:has(.fq-line-page) .fq-top { position: fixed; left: 0; right: 0; width: auto; padding: 16px max(16px, calc((100% - 1024px) / 2)); box-shadow: 0 4px 6px rgba(0, 0, 0, .1); }
body:has(.fq-line-page) .fq-top > a { width: min(256px, 28%); }
body:has(.fq-line-page) .fq-top img { width: 100%; height: auto; }
body:has(.fq-line-page) .fq-top-line nav { display: grid; grid-template-columns: repeat(3, auto); gap: 32px; font-size: 16px; }
body:has(.fq-line-page) .fq-top-line a { color: #006d4e; }
body:has(.fq-line-page) .fq-line-page { width: min(1024px, calc(100% - 32px)); margin: 160px auto 64px; padding: 0; }
.fq-line-page h1 { margin: 0 0 80px; font-size: 48px; line-height: 1.15; text-align: center; }
.fq-line-page .fq-hero-line { margin: 0; }
.fq-line-page .fq-hero-line img { width: 100%; height: auto; border-radius: 0; }
.fq-line-page .fq-hero-line figcaption { left: 40px; right: auto; bottom: auto; top: 50%; transform: translateY(-50%); max-width: 384px; color: #40516f; font-size: 30px; line-height: 1.25; }
.fq-line-page .fq-form-card { margin-top: 96px; background: #f0f6fd; color: #40516f; border-radius: 6px; padding: 48px 80px; }
.fq-line-page .fq-form-card h2 { margin: 0 0 44px; font-size: 20px; text-align: center; color: #40516f; }
.fq-line-page .fq-form { grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.fq-line-page .fq-form fieldset, .fq-line-page .fq-form button { grid-column: 1 / -1; }
.fq-line-page .fq-highlights { margin-top: 48px; gap: 24px; }
.fq-line-page .fq-highlights article { width: min(100%, 180px); }
.fq-line-page h2 { text-align: center; }
.fq-line-page .fq-logos img { height: 48px; width: auto; }
@media (max-width: 800px) {
    .fq-hero, .fq-split > div, .fq-session-box, .fq-contact, .fq-top-line { display: block; }
    .fq-desk { display: none; } .fq-mobile { display: block; width: min(100%, 420px); margin: 0 auto; }
    .fq-table thead { display: none; }
    .fq-table, .fq-table tbody, .fq-table tr, .fq-table td { display: block; width: 100%; }
    .fq-table tr { border: 2px solid var(--fq-line); border-radius: 10px; margin-bottom: 12px; overflow: hidden; }
    .fq-table td:first-child { background: var(--fq); color: #fff; font-weight: 700; }
}
