@charset "UTF-8";

@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter/Inter-VariableFont_opszwght.ttf') format('truetype-variations'),
    url('../fonts/Inter/Inter-VariableFont_opszwght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --ink: #191919;
    --muted: #686868;
    --line: #e8e8e8;
    --surface: #ffffff;
    --soft: #f7f7f5;
    --accent: #0066B1;
    --accent-dark: #004A81;
    --highlight: #E9B872;
    --radius-sm: 8px;
    --radius-md: 14px;
    --shadow: 0 8px 24px rgba(25, 25, 25, .06);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; background: var(--surface); color: var(--ink); line-height: 1.6; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; }
h1 { font-size: 2.5rem; } h2 { font-size: 2rem; } h3 { font-size: 1.35rem; } h4 { font-size: 1rem; }
p { color: var(--muted); margin-bottom: 1rem; }
a { color: inherit; text-decoration: none; transition: color .2s ease, border-color .2s ease, background-color .2s ease; }
ul, ol { margin-block-end: 1rem; padding-inline-start: 40px; }
li { color: var(--muted); }
button, input { font: inherit; }
:focus-visible { outline: 3px solid rgba(0, 102, 177, .35); outline-offset: 3px; }

.header { position: sticky; top: 0; z-index: 998; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
.header-container { max-width: 1180px; margin: auto; padding: 1.1rem 1.5rem; display: flex; align-items: center; gap: 2rem; }
.header-container .nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: var(--ink); padding: .25rem .5rem; }
.logo h1, .logo-name { font-size: 1.2rem; letter-spacing: -.02em; white-space: nowrap; font-weight: 600; }
.logo img { display: block; width: 142px; height: 62px; object-fit: contain; object-position: left center; }
.nav { display: flex; justify-content: center; gap: 1.6rem; flex: 1; }
.nav-link { color: var(--muted); font-size: .9rem; }
.nav-link:hover { color: var(--ink); }
.header-contact { display: flex; }
.phone-link { border: 1px solid var(--ink); border-radius: 999px; padding: .55rem 1rem; font-size: .85rem; font-weight: 600; }
.phone-link:hover { background: var(--ink); color: white; }

.anniversary-banner { padding: 1.5rem 0; background: var(--soft); }
.anniversary-content { max-width: 1180px; min-height: 255px; margin: auto; padding: 0 1.5rem; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .82fr); gap: 2rem; align-items: stretch; }
.anniversary-copy { position: relative; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 2.2rem 2.4rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.anniversary-copy::after { content: ""; position: absolute; right: -28px; bottom: -42px; width: 118px; height: 118px; border: 18px solid rgba(233,184,114,.22); border-radius: 50%; }
.anniversary-mark { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: .9rem; border: 2px solid var(--highlight); border-radius: 50%; color: #8a641e; font-size: 1.25rem; font-weight: 700; line-height: 1; }
.anniversary-copy h2 { max-width: 470px; color: var(--ink); font-size: clamp(1.45rem, 3vw, 2.25rem); letter-spacing: -.045em; margin-bottom: .65rem; }
.anniversary-copy p { max-width: 480px; font-size: .9rem; margin: 0 0 1rem; }
.anniversary-kicker { color: var(--accent) !important; font-size: .68rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .45rem !important; }
.anniversary-link { position: relative; z-index: 1; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: .15rem; font-size: .82rem; font-weight: 600; }
.anniversary-link:hover { color: var(--accent-dark); border-color: var(--accent-dark); }
.anniversary-visual { min-height: 255px; overflow: hidden; border-radius: var(--radius-md); background: #dfeaf1; }
.anniversary-visual img { display: block; width: 100%; height: 100%; min-height: 255px; object-fit: cover; object-position: center; }

.hero { padding: 2.5rem 0 3.5rem; background: var(--soft); }
.carousel-container { position: relative; max-width: 1180px; margin: auto; padding: 0 1.5rem; }
.carousel { position: relative; height: 390px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.carousel-slide { position: absolute; inset: 0; display: flex; align-items: flex-end; justify-content: flex-start; padding: 2rem clamp(3rem, 7vw, 6rem); background-position: center; background-size: cover; opacity: 0; visibility: hidden; transition: opacity .45s ease; }
.carousel-slide.active { opacity: 1; visibility: visible; }
.slide-content { position: relative; z-index: 1; max-width: 470px; text-align: left; }
.slide-kicker { color: var(--highlight); text-transform: uppercase; letter-spacing: .14em; font-size: .68rem; font-weight: 700; margin-bottom: .55rem; }
.slide-content h1, .slide-content h2, .slide-content p { color: white; font-size: clamp(1.65rem, 4vw, 2.65rem); letter-spacing: -.045em; margin-bottom: .65rem; }
.slide-content p { color: #E9B872; font-weight: 600; line-height: 1.5rem; margin-bottom: 1rem; }
.carousel-btn { position: absolute; z-index: 20; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; background: white; color: var(--ink); cursor: pointer; }
.carousel-btn:hover { border-color: var(--ink); }
.carousel-prev { left: 2rem; } .carousel-next { right: 2rem; }
.carousel-dots { display: flex; justify-content: center; gap: .5rem; margin-top: 1.2rem; }
.dot { width: 8px; height: 8px; border: 0; border-radius: 50%; background: #d1d1d1; cursor: pointer; }
.dot.active { background: var(--accent); }

/* Portada de ancho completo. El logo se escala aparte de los fondos sin marca. */
.hero.hero--full { --hero-gutter: clamp(4.5rem, 7.1vw, 10rem); padding: 0; }
.hero--full .carousel-container { max-width: none; padding: 0; }
.hero--full .carousel { display: grid; height: auto; min-height: clamp(32.5rem, 33.3625vw, 50rem); border: 0; border-radius: 0; background: #101820; }
.hero--full .carousel-slide { position: relative; inset: auto; grid-area: 1 / 1; min-width: 0; padding: clamp(10rem, 12vw, 14rem) var(--hero-gutter) clamp(4.5rem, 6.3vw, 7.5rem); }
.hero-logo { position: absolute; top: clamp(2rem, 3vw, 3.75rem); left: var(--hero-gutter); z-index: 2; display: block; width: clamp(11.25rem, 14vw, 21.25rem); height: auto; pointer-events: none; }
.hero--full .slide-content { width: 100%; max-width: 470px; }
.hero--full .slide-content h1, .hero--full .slide-content h2 { margin-bottom: 0; }
.hero--full .slide-content p { line-height: 1.2; margin-bottom: clamp(2rem, 3.7vw, 4.5rem); }
.hero--full .carousel-dots { position: absolute; z-index: 2; bottom: 1rem; left: 50%; transform: translateX(-50%); margin: 0; gap: .25rem; }
.hero--full .dot { width: 24px; height: 24px; background: transparent; display: grid; place-items: center; }
.hero--full .dot::before { content: ""; width: 8px; height: 8px; border: 1px solid white; border-radius: 50%; background: rgba(0, 0, 0, .35); }
.hero--full .dot.active::before { background: white; }
.hero--full :focus-visible { outline-color: white; }

@media (max-width: 800px) {
    .hero.hero--full { --hero-gutter: 3.5rem; }
    .hero--full .carousel { min-height: 36rem; }
    .hero--full .carousel-slide { padding: 10rem var(--hero-gutter) 5rem; background-position: 80% center; }
    .hero--full .carousel-slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(0, 0, 0, .15) 25%, rgba(0, 0, 0, .8) 100%); }
    .hero--full .carousel-prev { left: .5rem; }
    .hero--full .carousel-next { right: .5rem; }
    .hero--full .slide-content h1, .hero--full .slide-content h2, .hero--full .slide-content p { font-size: clamp(1.65rem, 4.5vw, 2.25rem); }
}

@media (max-width: 520px) {
    .hero.hero--full { --hero-gutter: 1.5rem; }
    .hero--full .carousel { min-height: 36rem; }
    .hero--full .carousel-slide { padding: 10rem var(--hero-gutter) 6rem; }
    .hero--full .carousel-btn { top: auto; bottom: 1rem; transform: none; }
    .hero--full .carousel-prev { left: var(--hero-gutter); }
    .hero--full .carousel-next { right: var(--hero-gutter); }
    .hero--full .carousel-dots { bottom: 1.5rem; }
}

.btn { display: inline-flex; align-items: center; justify-content: center; padding: .75rem 1.2rem; border: 1px solid transparent; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: .9rem; }
.btn-primary { background: var(--accent); color: white; } .btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: white; color: var(--ink); border-color: var(--ink); } .btn-secondary:hover { background: var(--ink); color: white; }
.btn-accent { background: var(--highlight); color: white; }

.section { max-width: 1180px; margin: auto; padding: 5rem 1.5rem; }
.section-header { margin-bottom: 2.5rem; max-width: 680px; }
.section-header h2 { letter-spacing: -.04em; margin-bottom: .65rem; }
.section-header p { margin: 0; }
.header-line { width: 42px; height: 3px; background: var(--accent); margin-top: 1.25rem; }
.services { background: white; }
.services-grid, .testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card, .testimonial-card { border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.6rem; background: white; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; overflow: hidden; }
.service-card:hover, .testimonial-card:hover, .branch-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #d5d5d5; }
.service-icon { color: var(--highlight); font-size: 1.8rem; font-weight: 700; margin-bottom: 1.2rem; }
.service-card h3 { margin-bottom: .7rem; } .service-card p { font-size: .92rem; min-height: 4.5rem; }
.service-card.image { padding: 0; display: flex; flex-direction: column; height: 100%; }
.service-card.image .img { width: 100%; height: 165px; display: flex; justify-content: flex-start; align-items: flex-end; background-repeat: no-repeat; background-size: cover; flex-shrink: 0; }
.service-card.image .img h3 { color: white; margin-left: 1.6rem; margin-bottom: 1rem; }
.service-card.image .info { padding: 1.6rem; display: grid; grid-template-rows: auto 1fr auto; gap: 1rem; height: 100%; }
.service-card.image .info h4 { font-size: 1rem; font-weight: 700; margin: 0; min-height: 2.8rem; }
.service-card.image .info a { font-size: .92rem; margin-top: 0; align-self: end; }

.link-arrow { color: var(--accent); font-size: .9rem; font-weight: 600; } .link-arrow:hover { color: var(--accent-dark); }
.process { background: var(--soft); max-width: none; padding-left: max(1.5rem, calc((100% - 1150px) / 2)); padding-right: max(1.5rem, calc((100% - 1150px) / 2)); }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.process-step { padding: 1.4rem 0; border-top: 1px solid var(--ink); }
.step-number { color: var(--highlight); font-weight: 700; font-size: .9rem; margin-bottom: 1.2rem; }
.process-step h3 { font-size: 1.05rem; margin-bottom: .6rem; } .process-step p { font-size: .9rem; }
.testimonials { background: white; } .stars { color: var(--highlight); letter-spacing: .12em; margin-bottom: 1rem; }
.testimonial-text { font-size: .95rem; font-style: italic; } .testimonial-author { color: var(--ink); font-size: .85rem; font-weight: 600; margin: 0; }
.faq-container { max-width: 760px; } .faq-item { border-top: 1px solid var(--line); } .faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-question { display: flex; justify-content: space-between; gap: 1rem; padding: 1.25rem 0; cursor: pointer; font-weight: 600; list-style: none; }
.faq-question::-webkit-details-marker { display: none; } .faq-question::after { content: "+"; color: var(--accent); font-size: 1.3rem; } .faq-item[open] .faq-question::after { content: "−"; }
.faq-answer { max-width: 680px; padding: 0 2rem 1.25rem 0; font-size: .92rem; }

.branches { background: var(--soft); max-width: none; padding-left: max(1.5rem, calc((100% - 1150px) / 2)); padding-right: max(1.5rem, calc((100% - 1150px) / 2)); }
.branches-intro { max-width: 650px; }
.branch-search { position: relative; max-width: 620px; margin-bottom: 1.5rem; }
.branch-search label { display: block; font-size: .8rem; font-weight: 600; margin-bottom: .5rem; }
.branch-search input { width: 100%; border: 1px solid #d8d8d8; border-radius: 999px; background: white; padding: .9rem 1.1rem .9rem 2.8rem; color: var(--ink); }
.branch-search input:focus { border-color: var(--accent); outline: 3px solid rgba(0,102,177,.14); }
.search-icon { position: absolute; left: 1rem; bottom: .85rem; color: var(--muted); }
.branch-carousel { position: relative; }
.branch-viewport { padding: 8px 0; margin: -8px 0; overflow: hidden; }
.branches-grid { display: flex; gap: 1rem; transition: transform .35s ease; }
.branch-item { flex: 0 0 calc((100% - 2rem) / 3); min-height: 190px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 1.35rem; background: white; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; cursor: pointer; }
.branch-item:hover, .branch-item.active { border-color: var(--accent); box-shadow: 0 6px 20px rgba(0, 102, 177, .12); }
.branch-number { display: block; color: #8a641e; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.branch-item h4 { margin: .45rem 0 .35rem; font-size: 1.05rem; }
.branch-item p { font-size: .85rem; margin-bottom: .2rem; } .branch-hours { color: var(--accent) !important; font-weight: 600; margin-top: .8rem !important; }
.branch-controls { display: flex; gap: .5rem; margin-top: 1.2rem; } .branch-control { width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; } .branch-control:hover { border-color: var(--ink); }
.branch-status { color: var(--muted); font-size: .82rem; margin: 1rem 0 0; }
.branch-empty { display: none; padding: 1rem; border: 1px dashed #ccc; color: var(--muted); }
.branch-empty.visible { display: block; }
.branch-map { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(290px, .75fr); gap: 1.25rem; margin-top: 2rem; align-items: stretch; }
.map-surface { position: relative; min-height: 380px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #eef3f6; }
.map-surface::after { content: "MAPA DE SUCURSALES"; position: absolute; top: 1rem; left: 1rem; color: rgba(25,25,25,.38); font-size: .68rem; font-weight: 700; letter-spacing: .12em; }
.map-marker { position: absolute; z-index: 2; width: 25px; height: 25px; border: 3px solid white; border-radius: 50% 50% 50% 0; background: var(--accent); box-shadow: 0 3px 8px rgba(0,0,0,.18); transform: rotate(-45deg); cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.map-marker::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: white; }
.map-marker:hover, .map-marker.active { background: var(--accent-dark); transform: rotate(-45deg) scale(1.18); }
.map-marker[data-branch="1"] { left: 13%; top: 30%; } .map-marker[data-branch="2"] { left: 27%; top: 20%; } .map-marker[data-branch="3"] { left: 37%; top: 43%; } .map-marker[data-branch="4"] { left: 48%; top: 28%; } .map-marker[data-branch="5"] { left: 60%; top: 57%; } .map-marker[data-branch="6"] { left: 70%; top: 36%; } .map-marker[data-branch="7"] { left: 80%; top: 66%; } .map-marker[data-branch="8"] { left: 20%; top: 68%; } .map-marker[data-branch="9"] { left: 44%; top: 68%; } .map-marker[data-branch="10"] { left: 87%; top: 23%; } .map-marker[data-branch="11"] { left: 32%; top: 73%; } .map-marker[data-branch="12"] { left: 57%; top: 20%; } .map-marker[data-branch="13"] { left: 66%; top: 76%; } .map-marker[data-branch="14"] { left: 9%; top: 52%; } .map-marker[data-branch="15"] { left: 75%; top: 15%; }

/* Tarjeta lateral con Carrusel de sucursal */
.map-details { display: flex; flex-direction: column; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; overflow: hidden; box-shadow: var(--shadow); }
.branch-gallery { position: relative; width: 100%; height: 195px; background: #191919; overflow: hidden; }
.branch-gallery-viewport { width: 100%; height: 100%; position: relative; }
.branch-gallery-slides { width: 100%; height: 100%; position: relative; }
.branch-gallery-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .4s ease-in-out; pointer-events: none; }
.branch-gallery-slide.active { opacity: 1; pointer-events: auto; }
.branch-gallery-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.branch-gallery-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border-radius: 50%; background: rgba(0,0,0,.5); color: white; border: 0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.15rem; transition: background .2s ease; z-index: 3; line-height: 1; }
.branch-gallery-btn:hover { background: rgba(0,0,0,.85); }
.branch-gallery-prev { left: 8px; }
.branch-gallery-next { right: 8px; }
.branch-gallery-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.branch-gallery-dot { width: 7px; height: 7px; border-radius: 50%; border: 0; background: rgba(255,255,255,.55); cursor: pointer; padding: 0; transition: transform .2s ease, background-color .2s ease; }
.branch-gallery-dot.active { background: white; transform: scale(1.35); }

.map-details-body { padding: 1.25rem 1.35rem; display: flex; flex-direction: column; gap: .3rem; flex: 1; }
.map-details-body .branch-number { display: block; margin-bottom: .25rem; font-size: .72rem; color: #8a641e; font-weight: 700; letter-spacing: .08em; }
.map-details-body .map-details-title { font-size: 1.2rem; font-weight: 700; margin: 0 0 .15rem; color: var(--ink); line-height: 1.25; }
.map-details-body .map-details-address { font-size: .88rem; color: var(--muted); margin: 0; line-height: 1.4; }
.map-details-body .map-details-hours { color: var(--accent) !important; font-weight: 600; font-size: .84rem; margin-top: .3rem !important; }

.branch-contact-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); gap: .55rem; margin-top: .8rem; }
.btn-branch-contact { display: flex; align-items: center; justify-content: flex-start; gap: .65rem; min-width: 0; min-height: 64px; padding: .75rem; border-radius: var(--radius-sm); font-size: .8rem; font-weight: 600; text-decoration: none; transition: background-color .2s ease, color .2s ease; border: 1px solid transparent; text-align: left; }
.btn-branch-contact[hidden] { display: none; }
.btn-branch-contact svg { flex: 0 0 18px; width: 18px; height: 18px; }
.branch-contact-text { display: flex; flex-direction: column; min-width: 0; }
.branch-contact-label { font-size: .72rem; font-weight: 500; }
.branch-contact-number { font-size: .84rem; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.btn-contact-whatsapp { background: #e8f8f0; color: #0d7f57; border-color: #b7e9d2; }
.btn-contact-whatsapp:hover { background: #25D366; color: white; border-color: #25D366; box-shadow: 0 4px 12px rgba(37, 211, 102, .25); }
.btn-contact-phone { background: #eaf3fa; color: var(--accent); border-color: #c4def3; }
.btn-contact-phone:hover { background: var(--accent); color: white; border-color: var(--accent); box-shadow: 0 4px 12px rgba(0, 102, 177, .25); }

.map-details-directions.btn-directions { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; width: 100%; margin-top: .6rem; padding: .65rem 1rem; background: var(--accent); color: white; border-radius: var(--radius-sm); font-size: .86rem; font-weight: 600; text-decoration: none; transition: background .2s ease, transform .15s ease, box-shadow .2s ease; text-align: center; }
.map-details-directions.btn-directions:hover { background: var(--accent-dark); color: white; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0, 74, 129, .2); }

.leaflet-map { background: #eef3f6; }
.leaflet-map::after { display: none; }
.leaflet-container { font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--ink); }
.leaflet-control-zoom a { color: var(--ink) !important; }
.leaflet-control-attribution { font-size: .65rem; }
.confia-marker-wrap { background: transparent; border: 0; }
.confia-marker { display: block; width: 24px; height: 24px; border: 3px solid white; border-radius: 50% 50% 50% 0; background: var(--accent); box-shadow: 0 3px 8px rgba(0,0,0,.22); transform: rotate(-45deg); transition: background-color .2s ease, transform .2s ease; }
.confia-marker-wrap:hover .confia-marker { background: var(--accent-dark); transform: rotate(-45deg) scale(1.15); }

/* Tooltip / Popup con fotos en el mapa */
.confia-leaflet-popup .leaflet-popup-content-wrapper { padding: 0; overflow: hidden; border-radius: var(--radius-md); box-shadow: 0 8px 24px rgba(0,0,0,.16); }
.confia-leaflet-popup .leaflet-popup-content { margin: 0 !important; width: 220px !important; }
.confia-map-popup .popup-thumb { width: 100%; height: 105px; object-fit: cover; display: block; }
.confia-map-popup .popup-info { padding: .7rem .85rem; display: flex; flex-direction: column; gap: .2rem; }
.confia-map-popup strong { font-size: .9rem; color: var(--ink); line-height: 1.25; }
.confia-map-popup .popup-address { font-size: .78rem; color: var(--muted); margin: 0; line-height: 1.35; }
.confia-map-popup .popup-hours { font-size: .74rem; font-weight: 600; color: var(--accent); margin: .1rem 0 0; }
.confia-map-popup .popup-directions { font-size: .76rem; font-weight: 600; color: var(--accent); text-decoration: none; margin-top: .35rem; display: inline-flex; align-items: center; gap: .2rem; }
.confia-map-popup .popup-directions:hover { color: var(--accent-dark); text-decoration: underline; }

.footer { background: var(--ink); color: white; padding: 3rem 1.5rem 1rem; }
.footer-content { max-width: 1180px; margin: auto; display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 2rem; margin-bottom: 2rem; }
.footer-logo { display: block; width: 170px; height: 76px; object-fit: contain; object-position: left center; margin-bottom: .8rem; }
.social-links { display: flex !important; flex-wrap: wrap; gap: .8rem; margin-top: 1rem; }
.social-links a { display: inline-block !important; color: white !important; font-size: .78rem !important; border-bottom: 1px solid #666; padding-bottom: .15rem; }
.social-links a:hover { color: var(--highlight) !important; border-color: var(--highlight); }
.footer h3, .footer h4 { color: white; margin-bottom: .8rem; } .footer p, .footer a { color: #bcbcbc; font-size: .88rem; display: block; margin-bottom: .4rem; } .footer a:hover { color: white; }
.footer-bottom { max-width: 1180px; margin: auto; padding-top: 1rem; border-top: 1px solid #3d3d3d; color: #888; font-size: .8rem; }

/* Componentes de la guía visual */
.design-system { max-width: 1180px; margin: auto; padding: 2rem 1.5rem 4rem; }
.design-system .header { margin: -2rem -1.5rem 2rem; } .design-system .hero { margin: 0 -1.5rem 2rem; padding: 2rem 1.5rem; }
.component-section { margin-bottom: 1rem; padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.component-section h2 { margin-bottom: .6rem; } .component-section h3 { font-size: 1.05rem; margin: 1.8rem 0 .7rem; }
.component-section > p { max-width: 720px; } .component-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; margin: 1.4rem 0; }
.component-label { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.color-swatch { width: 112px; height: 88px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .78rem; font-weight: 600; }
.color-ink { background: var(--ink); color: white; } .color-accent { background: var(--accent); color: white; } .color-surface { background: white; } .color-soft { background: var(--soft); } .color-line { background: var(--line); }
.type-sample { padding: 1rem 0; border-bottom: 1px solid var(--line); } .type-sample:last-child { border: 0; }
.rule-list { padding-left: 1.2rem; color: var(--muted); line-height: 1.9; } .rule-list strong { color: var(--ink); }
.card-variations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; } .demo-card { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius-md); } .demo-card-dark { background: var(--ink); color: white; } .demo-card-dark p { color: #cfcfcf; } .demo-card-accent { border-top: 3px solid var(--accent); }
.divider { height: 1px; background: var(--line); margin: 1.5rem 0; } .icon-grid { display: flex; flex-wrap: wrap; gap: 1rem; } .icon-item { min-width: 100px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 1rem; text-align: center; } .icon-item p { font-size: 1.5rem; margin: 0; }
.shadow-box { padding: 2rem; border: 1px solid var(--line); border-radius: var(--radius-md); } .shadow-subtle { box-shadow: var(--shadow); }
.radius-box { padding: 1.5rem; border: 1px solid var(--accent); text-align: center; } .radius-sm { border-radius: var(--radius-sm); } .radius-md { border-radius: var(--radius-md); } .radius-pill { border-radius: 999px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; color: var(--muted); font-size: .9rem; } .breadcrumb a { color: var(--accent); }
.tooltip { border-bottom: 1px dotted var(--accent); cursor: help; position: relative; } .tooltiptext { position: absolute; visibility: hidden; bottom: 140%; left: 50%; width: 190px; padding: .7rem; transform: translateX(-50%); border-radius: var(--radius-sm); background: var(--ink); color: white; font-size: .75rem; text-align: center; } .tooltip:hover .tooltiptext { visibility: visible; }

/* Página de créditos */
.credit-page { background: var(--surface); }
.credit-breadcrumb { max-width: 1180px; margin: auto; padding: 1.3rem 1.5rem 0; display: flex; gap: .5rem; color: var(--muted); font-size: .82rem; }
.credit-breadcrumb a { color: var(--accent); }
.credit-hero { max-width: 1180px; margin: auto; padding: 3rem 1.5rem 5rem; display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr); gap: 3rem; align-items: center; }
.credit-hero-copy { padding: 1rem 0; }
.credit-hero-copy h1 { max-width: 580px; margin: .55rem 0 1rem; line-height: 4.3rem; color: var(--ink); font-size: clamp(2.4rem, 5vw, 4.4rem); letter-spacing: -.06em; }
.credit-hero-copy > p { max-width: 510px; font-size: 1.05rem; }
.credit-hero-copy small { display: block; max-width: 440px; margin-top: 1rem; color: var(--muted); font-size: .74rem; }
.credit-hero-media { position: relative; min-height: 390px; overflow: hidden; border-radius: var(--radius-md); background: var(--soft); }
.credit-hero-image { display: block; width: 100%; height: 100%; min-height: 390px; object-fit: cover; }
.credit-image-note { position: absolute; inset: auto 1rem 1rem; display: grid; gap: .25rem; padding: .9rem 1rem; border: 1px solid rgba(255,255,255,.55); border-radius: var(--radius-sm); background: rgba(25,25,25,.82); color: white; font-size: .72rem; line-height: 1.4; }
.credit-image-note strong { color: var(--highlight); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.credit-image-note span { color: rgba(255,255,255,.82); }
.credit-hero-media:has(.credit-hero-image:not([hidden])) .credit-image-note { opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.credit-hero-media:hover .credit-image-note { opacity: 1 !important; }
.credit-intro { max-width: 900px; padding-top: 0; text-align: center; }
.credit-intro h2, .credit-requirements h2 { margin: .55rem auto .85rem; color: var(--ink); letter-spacing: -.04em; }
.credit-intro h2 { max-width: 620px; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.credit-intro p { max-width: 640px; margin: 0 auto; font-size: .98rem; }
.credit-label { color: var(--accent); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.credit-process { background: var(--soft); max-width: none; padding-left: max(1.5rem, calc((100% - 1150px) / 2)); padding-right: max(1.5rem, calc((100% - 1150px) / 2)); }
.credit-requirements { background: white; max-width: none; padding-left: max(1.5rem, calc((100% - 1150px) / 2)); padding-right: max(1.5rem, calc((100% - 1150px) / 2)); }
.credit-requirements-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.requirements-card { padding: 1.6rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--soft); }
.requirements-card ul { display: grid; gap: 1rem; list-style: none; }
.requirements-card li { display: flex; gap: .8rem; align-items: flex-start; }
.requirements-card li > span { display: grid; flex: 0 0 25px; place-items: center; width: 25px; height: 25px; border-radius: 50%; background: var(--highlight); color: #6f5018; font-weight: 700; }
.requirements-card strong, .requirements-card small { display: block; } .requirements-card strong { font-size: .9rem; } .requirements-card small { margin-top: .15rem; color: var(--muted); font-size: .78rem; }
.credit-benefit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.credit-benefit-grid article { padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); }
.benefit-symbol { display: block; margin-bottom: 1rem; color: var(--accent); font-size: 1.5rem; }
.credit-benefit-grid h3 { margin-bottom: .5rem; font-size: 1.05rem; } .credit-benefit-grid p { font-size: .9rem; margin: 0; }
.credit-cta { max-width: 1180px; margin: 0 auto 5rem; padding: 2.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--soft); display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.credit-cta h2 { margin: .4rem 0 .5rem; color: var(--ink); letter-spacing: -.04em; } .credit-cta p { margin: 0; }

/* Página legal */
.legal-page { background: var(--soft); min-height: 70vh; }
.legal-hero { border-bottom: 1px solid var(--line); background: white; }
.legal-hero-inner { max-width: 1180px; margin: auto; padding: 4.5rem 1.5rem 3.5rem; }
.legal-hero h1 { margin: .4rem 0 .8rem; letter-spacing: -.05em; }
.legal-hero p { max-width: 620px; font-size: 1.05rem; margin-bottom: .5rem; }
.legal-hero .legal-updated { color: var(--muted); font-size: .8rem; margin-top: 1.5rem; }
.legal-layout { max-width: 1180px; margin: auto; padding: 3rem 1.5rem 5rem; display: grid; grid-template-columns: 190px minmax(0, 760px); gap: 4rem; align-items: start; }
.legal-index { position: sticky; top: 9rem; border-left: 2px solid var(--line); padding-left: 1rem; }
.legal-index-title { color: var(--ink); font-size: .75rem; font-weight: 700; margin-bottom: .8rem; }
.legal-index a { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-bottom: .7rem; }
.legal-index a:hover { color: var(--accent); }
.legal-document { padding: 2.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
.legal-document + .legal-document { margin-top: 1rem; }
.legal-kicker { color: var(--accent); font-size: .7rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .7rem !important; }
.legal-document h2 { color: var(--ink); font-size: 1.8rem; letter-spacing: -.035em; margin-bottom: 1.1rem; }
.legal-document h3 { color: var(--ink); font-size: 1rem; margin: 1.8rem 0 .55rem; }
.legal-document p, .legal-document ul li, .legal-document ol li { font-size: .92rem; line-height: 1.75; }
.legal-document ol li > ul { margin-bottom: 0; }
.legal-contact { margin-top: 1rem; padding: 2rem; border: 1px solid var(--accent); border-radius: var(--radius-md); background: white; }
.legal-contact h2 { font-size: 1.35rem; margin-bottom: .5rem; }
.legal-contact p { margin-bottom: 1rem; }
.legal-contact-links { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; }
.legal-contact-links a { color: var(--accent); font-weight: 600; font-size: .9rem; }

@media (max-width: 800px) { .header-container { flex-wrap: wrap; justify-content: space-between; gap: .75rem; padding: .8rem 1rem; } .header-container .nav-toggle { display: block; order: 2; } .phone-link { display: none; } .header-contact { display: none; order: 3; } .nav { order: 4; flex-basis: 100%; display: none; flex-direction: column; align-items: flex-start; gap: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); } .nav.is-open { display: flex; } .services-grid, .testimonials-grid, .card-variations, .credit-benefit-grid { grid-template-columns: 1fr; } .process-grid { grid-template-columns: repeat(2, 1fr); } .branch-item { flex-basis: calc((100% - 1rem) / 2); } .branch-map { grid-template-columns: 1fr; } .footer-content { grid-template-columns: 1fr 1fr; } .legal-layout { grid-template-columns: 1fr; gap: 1.5rem; } .legal-index { position: static; display: flex; flex-wrap: wrap; gap: .7rem 1rem; border-left: 0; border-bottom: 1px solid var(--line); padding: 0 0 1rem; } .legal-index-title { flex-basis: 100%; margin-bottom: 0; } .legal-index a { margin: 0; } .credit-hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 2rem; } .credit-hero-media { min-height: 300px; } .credit-hero-image { min-height: 300px; } .credit-intro, .credit-requirements-grid { grid-template-columns: 1fr; gap: 1.5rem; } .credit-cta { margin-left: 1.5rem; margin-right: 1.5rem; } }
@media (max-width: 520px) { h1 { font-size: 2rem; } h2 { font-size: 1.65rem; } .logo img { width: 122px; height: 52px; } .anniversary-content { grid-template-columns: 1fr; gap: 1rem; } .anniversary-copy { padding: 1.7rem; } .anniversary-visual { min-height: 190px; } .anniversary-visual img { min-height: 190px; } .anniversary-mark { width: 44px; height: 44px; font-size: 1.1rem; } .hero { padding: 1rem 0 2rem; } .carousel { height: 350px; } .carousel-slide { padding: 2rem 3rem; } .carousel-prev { left: .7rem; } .carousel-next { right: .7rem; } .section { padding-top: 3.5rem; padding-bottom: 3.5rem; } .process-grid { grid-template-columns: 1fr; } .branch-item { flex-basis: 100%; } .branch-contact-actions { grid-template-columns: 1fr; } .footer-content { grid-template-columns: 1fr; } .component-section { padding: 1.3rem; } .credit-hero-copy h1 { font-size: 2.5rem; } .credit-hero-media { min-height: 240px; } .credit-hero-image { min-height: 240px; } .credit-cta { flex-direction: column; align-items: flex-start; padding: 1.5rem; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; } }

/* Guía visual y catálogo de componentes */
.site-guide { --guide-max: 1180px; background: var(--soft); min-height: 100vh; }
        .guide-hero { padding: clamp(3rem, 8vw, 6rem) 1.5rem; background: var(--ink); color: white; }
        .guide-hero-inner, .guide-layout { width: min(100%, var(--guide-max)); margin-inline: auto; }
        .guide-eyebrow { color: var(--highlight); font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
        .guide-hero h1 { max-width: 820px; margin: .7rem 0 1rem; font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.045em; }
        .guide-hero p { max-width: 720px; margin: 0; color: #dedede; font-size: 1.08rem; }
        .guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; padding: 2rem 1.5rem 5rem; align-items: start; }
        .guide-nav { position: sticky; top: 7rem; padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
        .guide-nav strong { display: block; margin-bottom: .65rem; }
        .guide-nav a { display: block; padding: .35rem 0; color: var(--muted); font-size: .88rem; }
        .guide-nav a:hover { color: var(--accent); }
        .guide-content { min-width: 0; }
        .guide-section { margin-bottom: 1rem; padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius-md); background: white; scroll-margin-top: 6rem; }
        .guide-section h2 { margin-bottom: .6rem; letter-spacing: -.025em; }
        .guide-section h3 { margin: 1.5rem 0 .5rem; font-size: 1.08rem; }
        .guide-section p { max-width: 78ch; }
        .guide-section p:last-child { margin-bottom: 0; }
        .guide-note { padding: 1rem 1.1rem; border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #eef5fa; color: var(--ink); }
        .guide-note p { margin: 0; color: inherit; }
        .guide-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
        .guide-card { padding: 1.2rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
        .guide-card h3 { margin: 0 0 .45rem; }
        .guide-card p { margin: 0; }
        .guide-list { padding-left: 1.25rem; color: var(--muted); line-height: 1.8; }
        .guide-list strong { color: var(--ink); }
        .logo-showcase { display: flex; flex-wrap: wrap; gap: 1rem; align-items: stretch; }
        .logo-surface { display: grid; flex: 1 1 240px; min-height: 145px; place-items: center; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; }
        .logo-surface img { display: block; width: min(100%, 220px); height: 90px; object-fit: contain; }
        .logo-surface--dark { background: var(--ink); }
        .logo-caption { align-self: end; width: 100%; color: var(--muted); font-size: .8rem; }
        .logo-surface--dark .logo-caption { color: #dedede; }
        .swatch-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(155px, 1fr)); gap: .75rem; }
        .swatch { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-sm); }
        .swatch-color { min-height: 72px; }
        .swatch-color--accent { background: #0066B1; }
        .swatch-color--accent-dark { background: #004A81; }
        .swatch-color--highlight { background: #E9B872; }
        .swatch-color--ink { background: #191919; }
        .swatch-color--muted { background: #686868; }
        .swatch-color--soft { background: #F7F7F5; }
        .swatch-color--line { background: #E8E8E8; }
        .swatch-color--surface { background: #FFFFFF; }
        .swatch-info { padding: .7rem; font-size: .82rem; }
        .swatch-info strong, .swatch-info span { display: block; }
        .swatch-info span { color: var(--muted); }
        .type-demo { padding: 1rem 0; border-bottom: 1px solid var(--line); }
        .type-demo:last-child { border-bottom: 0; }
        .type-demo h1 { font-size: 2.5rem; }
        .type-demo h2 { font-size: 2rem; }
        .type-demo h3 { font-size: 1.35rem; }
        .type-demo p { margin: 0; font-size: 1rem; line-height: 1.6; }
        .type-demo small { color: var(--muted); }
        .do-dont { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
        .example { display: grid; min-height: 150px; place-items: center; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius-md); text-align: center; }
        .example--good { background: var(--soft); }
        .example--good img, .example--bad img { width: min(100%, 190px); height: 76px; object-fit: contain; }
        .example--bad { position: relative; overflow: hidden; background: #f2f2f2; }
        .logo-overlap-label { position: absolute; padding: .2rem .45rem; background: rgba(255,255,255,.9); color: #a32020; font-size: .8rem; font-weight: 700; }
        .catalog-grid { column-count: 2; column-gap: 1rem; }
        .catalog-item { display: inline-block; width: 100%; margin: 0 0 1rem; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: white; break-inside: avoid; vertical-align: top; }
        .catalog-preview { min-height: 155px; display: grid; align-content: center; gap: .8rem; padding: 1.25rem; background: var(--soft); }
        .catalog-preview .service-card { max-width: 320px; }
        .catalog-preview .branch-item { flex: initial; min-height: auto; cursor: default; }
        .catalog-preview .process-step { max-width: 340px; }
        .catalog-preview .credit-cta { margin: 0; padding: 1rem; }
        .catalog-item > h3 { margin: 0; padding: 1rem 1rem 0; }
        .catalog-item > p { padding: 0 1rem; font-size: .88rem; }
        .catalog-item pre { overflow-x: auto; margin: 0; padding: 1rem; background: #191919; color: #f2f2f2; font: .78rem/1.55 Consolas, Monaco, monospace; white-space: pre; }
        .radius-guide { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
        .radius-sample { min-height: 90px; display: grid; place-items: center; padding: .75rem; border: 2px solid var(--accent); background: var(--soft); text-align: center; font-size: .82rem; }
        .radius-sample--sm { border-radius: var(--radius-sm); }
        .radius-sample--md { border-radius: var(--radius-md); }
        .radius-sample--pill { border-radius: 999px; }
        .guide-footer { padding: 1.5rem; color: var(--muted); text-align: center; font-size: .85rem; }
        @media (max-width: 800px) { .guide-layout { grid-template-columns: 1fr; } .guide-nav { position: static; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .8rem; } .guide-nav strong { grid-column: 1 / -1; } }
        @media (max-width: 800px) { .catalog-grid { column-count: 1; } }
        @media (max-width: 520px) { .guide-grid, .do-dont, .radius-guide { grid-template-columns: 1fr; } .guide-nav { grid-template-columns: 1fr; } }
        @media (max-width: 520px) { .type-demo h1 { font-size: 2rem; } .type-demo h2 { font-size: 1.65rem; } }
