/* ===== Botones ===== */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem; padding: 0.95rem 1.7rem; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 0.97rem; line-height: 1.2; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; white-space: nowrap; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--red); color: var(--white); box-shadow: 0 8px 20px rgba(210, 31, 26, 0.32); }
.btn-primary:hover { background: var(--red-dark); box-shadow: 0 12px 26px rgba(210, 31, 26, 0.4); }
.btn-blue { background: var(--blue-700); color: var(--white); box-shadow: 0 8px 20px rgba(20, 82, 189, 0.3); }
.btn-blue:hover { background: var(--navy-800); }
.btn-light { background: var(--white); color: var(--navy-900); }
.btn-light:hover { background: var(--blue-100); }
.btn-outline { border: 2px solid rgba(255, 255, 255, 0.7); color: var(--white); padding: calc(0.95rem - 2px) calc(1.7rem - 2px); }
.btn-outline:hover { background: var(--white); color: var(--navy-900); }
.btn-outline-dark { border: 2px solid var(--blue-700); color: var(--blue-700); padding: calc(0.95rem - 2px) calc(1.7rem - 2px); }
.btn-outline-dark:hover { background: var(--blue-700); color: var(--white); }
.btn-wa { background: #1fa855; color: var(--white); }
.btn-wa:hover { background: #178a44; }
.btn-sm { padding: 0.65rem 1.2rem; font-size: 0.9rem; }
.btn-block { width: 100%; }
.phone-link { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; color: var(--navy-900); }
.phone-link svg { width: 18px; height: 18px; color: var(--blue-600); }
.phone-link:hover { color: var(--blue-700); }

/* ===== Selector de idioma ===== */
.lang-switch { display: inline-flex; gap: 0.4rem; align-items: center; }
.lang-btn { width: 34px; height: 24px; border-radius: 5px; overflow: hidden; border: 2px solid transparent; padding: 0; filter: saturate(0.25) brightness(0.9); opacity: 0.75; transition: filter 0.25s ease, opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease; box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25); }
.lang-btn svg { width: 100%; height: 100%; display: block; }
.lang-btn:hover { opacity: 1; transform: translateY(-1px); }
.lang-btn.is-active { filter: none; opacity: 1; border-color: var(--white); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5), 0 2px 8px rgba(0, 0, 0, 0.3); }
.mobile-drawer .lang-btn.is-active { border-color: var(--blue-600); }

/* ===== Tarjetas de servicio ===== */
.service-card { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--blue-200); }
.service-card-img { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--blue-100); }
.service-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.service-card:hover .service-card-img img { transform: scale(1.06); }
.service-card-body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.service-card-body p { color: var(--muted); font-size: 0.95rem; flex: 1; }
.service-card-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--blue-700); font-size: 0.93rem; }
.service-card-link svg { width: 16px; height: 16px; transition: transform 0.25s ease; }
.service-card:hover .service-card-link svg { transform: translateX(5px); }
.service-card a.stretched::after { content: ''; position: absolute; inset: 0; }
.related-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--white); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card img { aspect-ratio: 4 / 3; width: 100%; object-fit: cover; }
.related-card span { padding: 0.8rem 1rem; font-weight: 650; font-size: 0.93rem; }
.badge-illus { position: absolute; left: 0.7rem; bottom: 0.7rem; padding: 0.22rem 0.65rem; border-radius: 999px; background: rgba(6, 26, 68, 0.78); color: var(--white); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.02em; pointer-events: none; }

/* ===== Galería + lightbox ===== */
.gal-item { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--blue-100); cursor: zoom-in; box-shadow: var(--shadow-sm); aspect-ratio: 4 / 3; padding: 0; width: 100%; transition: transform 0.3s ease, box-shadow 0.3s ease; }
.is-portrait .gal-item, .gal-item.is-portrait { aspect-ratio: 3 / 4; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.gal-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.gal-item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 400; background: rgba(4, 16, 42, 0.94); display: flex; align-items: center; justify-content: center; padding: 3.5rem 1rem; opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s; }
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1200px, 100%); max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.lb-btn { position: absolute; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: var(--white); display: flex; align-items: center; justify-content: center; transition: background 0.2s ease; }
.lb-btn:hover { background: rgba(255, 255, 255, 0.3); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lb-count { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); color: rgba(255, 255, 255, 0.8); font-size: 0.85rem; }

/* ===== Acordeón ===== */
.accordion { display: grid; gap: 0.8rem; max-width: 820px; }
.acc-item { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.acc-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: 1.1rem 1.4rem; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; text-align: left; }
.acc-head svg { width: 18px; height: 18px; flex-shrink: 0; color: var(--blue-600); transition: transform 0.3s ease; }
.acc-item.is-open .acc-head svg { transform: rotate(180deg); }
.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.acc-body p { padding: 0 1.4rem 1.3rem; color: var(--muted); }

/* ===== WhatsApp flotante y barra móvil ===== */
.wa-float { position: fixed; right: 1.3rem; bottom: 1.3rem; z-index: 150; width: 60px; height: 60px; border-radius: 50%; background: #25d366; color: var(--white); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 26px rgba(0, 0, 0, 0.28); transition: transform 0.25s ease; }
.wa-float:hover { transform: scale(1.09); }
.wa-float svg { width: 32px; height: 32px; }
.mobile-bar { display: none; }
@media (max-width: 640px) {
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 140; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; padding: 0.6rem 0.8rem calc(0.6rem + env(safe-area-inset-bottom)); background: var(--white); box-shadow: 0 -6px 20px rgba(10, 38, 98, 0.16); }
  .mobile-bar .btn { padding: 0.8rem 0.6rem; font-size: 0.93rem; }
  /* La barra inferior ya lleva WhatsApp: ocultamos la burbuja flotante para no duplicarlo */
  .wa-float { display: none; }
}

/* ===== Cookies, mapa y aviso ===== */
.cookie-banner { position: fixed; left: 50%; bottom: 1rem; z-index: 350; width: min(920px, calc(100% - 1.6rem)); display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.1rem 1.4rem; background: var(--navy-950); color: rgba(255, 255, 255, 0.9); border-radius: var(--radius); box-shadow: var(--shadow-lg); transform: translate(-50%, 160%); visibility: hidden; transition: transform 0.5s cubic-bezier(.2, .7, .2, 1), visibility 0.5s; }
.cookie-banner.is-visible { transform: translate(-50%, 0); visibility: visible; }
.cookie-banner p { font-size: 0.86rem; line-height: 1.55; max-width: 62ch; }
.cookie-banner a { color: var(--blue-200); text-decoration: underline; }
.cookie-actions { display: flex; gap: 0.7rem; flex-shrink: 0; }
@media (max-width: 640px) { .cookie-banner { flex-direction: column; text-align: center; bottom: 4.9rem; } }
.map-consent-wrap { position: relative; min-height: 340px; background: var(--blue-100); border-radius: var(--radius); overflow: hidden; }
.map-consent-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: none; }
.map-consent-wrap.is-loaded iframe { display: block; }
.map-consent-wrap.is-loaded .map-placeholder { display: none; }
.map-placeholder { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.9rem; padding: 1.4rem; text-align: center; color: var(--ink); }
.map-placeholder p { max-width: 42ch; font-size: 0.93rem; color: var(--muted); }
.map-placeholder-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }
.toast { position: fixed; left: 50%; bottom: 6.2rem; z-index: 500; max-width: calc(100% - 2rem); padding: 0.9rem 1.5rem; border-radius: 999px; background: var(--navy-900); color: var(--white); font-weight: 600; font-size: 0.93rem; box-shadow: var(--shadow-lg); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: opacity 0.3s ease, transform 0.3s ease; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
.credit a { text-decoration: underline; }
.skip-link { position: absolute; left: -999px; top: 0.5rem; z-index: 999; background: var(--white); color: var(--navy-900); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 0.5rem; }
