/* ==========================================================================
   Cirumax Group — hoja de estilos global
   Paleta: azul marino #1B2F6B · azul claro #1B9BD8 · gris #808285 · fondo #F5F7FA
   ========================================================================== */

:root {
  --navy: #1B2F6B;
  --navy-dark: #142352;
  --blue: #1B9BD8;
  --gray: #808285;
  --bg-light: #F5F7FA;
  --white: #FFFFFF;
  --text: #2B2B2E;
  --text-soft: #55565A;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 4px 18px rgba(27, 47, 107, 0.10);
  --shadow-lg: 0 10px 30px rgba(27, 47, 107, 0.16);
  --max-width: 1180px;
  --header-h: 76px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: 'Poppins', 'Inter', sans-serif;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 0.6em;
}

p {
  margin: 0 0 1em;
}

ul {
  margin: 0;
  padding: 0;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 56px 0;
}

.section--muted {
  background: var(--bg-light);
}

.section-title {
  font-size: 28px;
  text-align: center;
  margin-bottom: 8px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 auto 36px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--navy);
  color: var(--white);
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 0 0 8px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Botones ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.2;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--primary {
  background: var(--blue);
  color: var(--white);
}

.btn--primary:hover {
  background: #178cc4;
}

.btn--on-navy {
  background: var(--white);
  color: var(--navy);
}

.btn--on-navy:hover {
  background: #e9edf7;
}

.btn--outline-white {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.75);
}

.btn--outline-white:hover {
  background: rgba(255,255,255,0.12);
}

.btn--block {
  width: 100%;
}

.btn--small {
  padding: 9px 18px;
  font-size: 14px;
}

/* ==========================================================================
   Encabezado
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(27,47,107,0.08);
  height: var(--header-h);
  display: flex;
  align-items: center;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand img {
  height: 48px;
  width: auto;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1100;
}

.nav-toggle .bar {
  position: relative;
  width: 26px;
  height: 2px;
  background: var(--navy);
  display: block;
}

.nav-toggle .bar::before,
.nav-toggle .bar::after {
  content: "";
  position: absolute;
  left: 0;
  width: 26px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease;
}

.nav-toggle .bar::before { top: -8px; }
.nav-toggle .bar::after { top: 8px; }

.main-nav {
  position: fixed;
  inset: 0 0 0 30%;
  background: var(--navy);
  padding: calc(var(--header-h) + 20px) 24px 24px;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.main-nav.is-open {
  transform: translateX(0);
}

.main-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.main-nav a {
  display: block;
  color: var(--white);
  font-weight: 600;
  padding: 14px 10px;
  border-radius: var(--radius-sm);
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(255,255,255,0.12);
  color: var(--white);
}

.main-nav a[aria-current="page"] {
  border-left: 4px solid var(--blue);
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    inset: auto;
    background: transparent;
    padding: 0;
    transform: none;
    overflow: visible;
  }

  .main-nav ul {
    flex-direction: row;
    gap: 4px;
  }

  .main-nav a {
    color: var(--navy);
    padding: 10px 14px;
  }

  .main-nav a:hover,
  .main-nav a[aria-current="page"] {
    background: var(--bg-light);
    color: var(--navy);
  }

  .main-nav a[aria-current="page"] {
    border-left: none;
    border-bottom: 3px solid var(--blue);
  }
}

body.nav-open {
  overflow: hidden;
}

.header-hours {
  display: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

@media (min-width: 900px) {
  .header-hours {
    display: block;
  }
}

/* ==========================================================================
   Banner dividido (componente compartido)
   ========================================================================== */

.banner {
  background: var(--navy);
}

.banner__inner {
  display: flex;
  flex-direction: column;
}

.banner__media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 280px;
  overflow: hidden;
  background: #cfd4dc;
}

.banner__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b4f57;
  font-weight: 600;
  text-align: center;
  padding: 20px;
  background: repeating-linear-gradient(45deg, #d7dbe2, #d7dbe2 12px, #cfd4dc 12px, #cfd4dc 24px);
}

.banner__panel {
  background: var(--navy);
  color: var(--white);
  padding: 32px 20px 40px;
}

.banner__eyebrow {
  width: 56px;
  height: 4px;
  background: var(--blue);
  border-radius: 2px;
  margin: 10px 0 16px;
}

.banner__title {
  color: var(--white);
  font-size: 32px;
  margin-bottom: 12px;
}

.banner__desc {
  color: rgba(255,255,255,0.85);
  font-size: 16px;
  max-width: 46ch;
  margin-bottom: 0;
}

.banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.banner--noimage .banner__panel {
  padding: 48px 20px;
}

@media (min-width: 900px) {
  .banner__inner {
    flex-direction: row;
    height: 520px;
  }

  .banner--home .banner__inner {
    height: 640px;
  }

  .banner__panel {
    width: 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 56px;
  }

  .banner__media {
    width: 55%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    order: 2;
  }

  .banner__title {
    font-size: 48px;
  }

  .banner__desc {
    font-size: 18px;
  }

  .banner--noimage .banner__inner {
    height: auto;
    min-height: 280px;
  }

  .banner--noimage .banner__panel {
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .banner--noimage .banner__desc {
    max-width: 60ch;
  }
}

/* ==========================================================================
   Franja de datos rápidos (home)
   ========================================================================== */

.quick-facts {
  background: var(--bg-light);
  padding: 28px 0;
}

.quick-facts__grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  text-align: center;
}

.quick-fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.quick-fact__icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.quick-fact strong {
  color: var(--navy);
}

@media (min-width: 700px) {
  .quick-facts__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ==========================================================================
   Tarjetas / cuadrículas
   ========================================================================== */

.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .card-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .card-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(27,155,216,0.12);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 6px;
}

.card__title {
  font-size: 19px;
  margin-bottom: 4px;
}

.card__link {
  margin-top: auto;
  font-weight: 600;
}

.nav-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Tarjeta de servicio */

.service-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.service-card__icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--navy);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 8px;
}

.service-card__title {
  font-size: 19px;
  margin-bottom: 2px;
}

.service-card dl {
  margin: 10px 0 6px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 10px;
  font-size: 14px;
}

.service-card dt {
  font-weight: 700;
  color: var(--navy);
}

.service-card dd {
  margin: 0;
  color: var(--text-soft);
}

.service-card__price {
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 8px 0 4px;
}

.service-group-title {
  font-size: 22px;
  margin: 40px 0 20px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(27,47,107,0.12);
}

.service-group-title:first-of-type {
  margin-top: 0;
}

.price-jump {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 32px;
  -webkit-overflow-scrolling: touch;
}

.price-jump a {
  flex-shrink: 0;
  background: var(--bg-light);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.price-jump a:hover {
  background: rgba(27,155,216,0.15);
}

.price-category {
  margin-bottom: 40px;
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.price-category__title {
  font-size: 20px;
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(27,47,107,0.12);
}

.price-list {
  list-style: none;
  margin: 0 0 18px;
}

.price-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid #e3e6ec;
  font-size: 15px;
}

.price-list li:last-child {
  border-bottom: none;
}

.price-list__price {
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
  flex-shrink: 0;
}

.note-box {
  background: var(--bg-light);
  border-left: 4px solid var(--blue);
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  color: var(--text-soft);
  font-size: 14px;
  margin-top: 28px;
}

.pending-box {
  background: repeating-linear-gradient(45deg, #fff7e6, #fff7e6 12px, #fdedc8 12px, #fdedc8 24px);
  border: 2px dashed #d8a72c;
  border-radius: var(--radius);
  padding: 20px;
  color: #6b5210;
  font-size: 14px;
  font-weight: 600;
}

.pending-box strong {
  color: #6b5210;
}

/* ==========================================================================
   CTA banda
   ========================================================================== */

.cta-band {
  background: var(--navy);
  color: var(--white);
  padding: 48px 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--white);
  font-size: 26px;
}

.cta-band p {
  color: rgba(255,255,255,0.85);
  max-width: 520px;
  margin: 0 auto 24px;
}

/* ==========================================================================
   Contacto
   ========================================================================== */

.contact-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.map-frame {
  width: 100%;
  height: 400px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.contact-info-list {
  list-style: none;
  margin: 18px 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-info-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.contact-info-list .icon {
  color: var(--blue);
  font-size: 20px;
  flex-shrink: 0;
}

.hours-table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0;
  font-size: 15px;
}

.hours-table th,
.hours-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e3e6ec;
}

.hours-table th {
  color: var(--navy);
}

.contact-form {
  margin-top: 48px;
  background: var(--bg-light);
  border-radius: var(--radius);
  padding: 28px;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .form-grid--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-field label {
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
}

.form-field input,
.form-field select,
.form-field textarea {
  padding: 12px 14px;
  border: 1px solid #ccd2dc;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  background: var(--white);
  width: 100%;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text-soft);
}

.form-checkbox input {
  margin-top: 4px;
}

.form-status {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  display: none;
}

.form-status.is-visible {
  display: block;
}

.form-status--success {
  background: #e5f6ea;
  color: #1c6b34;
  border: 1px solid #b7e3c4;
}

/* ==========================================================================
   Galería instalaciones
   ========================================================================== */

.gallery-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 700px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gallery-item {
  border: none;
  padding: 0;
  cursor: pointer;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  background: #cfd4dc;
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b4f57;
  font-weight: 600;
  font-size: 13px;
  text-align: center;
  padding: 10px;
  background: repeating-linear-gradient(45deg, #d7dbe2, #d7dbe2 12px, #cfd4dc 12px, #cfd4dc 24px);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(10, 16, 40, 0.88);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 24px;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-sm);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: none;
  font-size: 20px;
  cursor: pointer;
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq-item {
  background: var(--white);
  border: 1px solid #e3e6ec;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 16px 20px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 22px;
  color: var(--blue);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-item p {
  padding: 0 20px 18px;
  color: var(--text-soft);
  margin: 0;
}

/* ==========================================================================
   Transparencia
   ========================================================================== */

.doc-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.doc-card__icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fdeaea;
  color: #c0392b;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

/* ==========================================================================
   Equipo (nosotros)
   ========================================================================== */

.team-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}

.team-card__photo {
  aspect-ratio: 1 / 1;
  background: repeating-linear-gradient(45deg, #d7dbe2, #d7dbe2 12px, #cfd4dc 12px, #cfd4dc 24px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4b4f57;
  font-weight: 600;
  font-size: 13px;
  padding: 10px;
}

.team-card__body {
  padding: 18px;
}

.team-card__name {
  font-size: 17px;
  margin-bottom: 2px;
}

.team-card__role {
  color: var(--blue);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 6px;
}

.team-card__reg {
  color: var(--text-soft);
  font-size: 13px;
  margin: 0;
}

/* ==========================================================================
   Pie de página
   ========================================================================== */

.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.85);
  padding: 56px 0 24px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-col h3 {
  color: var(--white);
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col a {
  color: rgba(255,255,255,0.8);
}

.footer-col a:hover {
  color: var(--white);
}

.footer-brand img {
  height: 40px;
  margin-bottom: 12px;
}

.footer-social {
  display: flex;
  gap: 12px;
  margin-top: 14px;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.footer-social a:hover {
  background: var(--blue);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  margin-top: 40px;
  padding-top: 20px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: space-between;
  color: rgba(255,255,255,0.6);
}

/* ==========================================================================
   WhatsApp flotante
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  z-index: 1500;
  font-size: 28px;
}

.whatsapp-float:hover {
  filter: brightness(1.05);
}

/* ==========================================================================
   Bloque "Nosotros" — texto principal
   ========================================================================== */

.about-copy {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  color: var(--text-soft);
}

.about-copy strong {
  color: var(--navy);
}
