
/* =========================================================
   GM ALL QUALITY SERVICES
   CSS PRINCIPAL - VERSION 21
   Accesibilidad WAVE / axe
   ========================================================= */

/* 01. VARIABLES Y ESTRUCTURA */

:root {
  --teal: #006967;
  --deep: #005a59;
  --mint: #98ded6;
  --text: #203038;
  --muted: #65747e;
  --stroke: #dcebec;
  --footer-bg: #006967;
  --footer-text: #ffffff;
  --footer-muted: #d2ebe7;
  --focus: #ffbf47;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 95px; }

body {
  margin: 0;
  font-family: "Manrope", Arial, sans-serif;
  color: var(--text);
  background: #ffffff;
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 26px;
}

h1, h2, h3 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -.027em;
  line-height: 1.11;
}

h2 {
  margin: 20px 0 12px;
  font-size: clamp(34px, 3.5vw, 48px);
  color: var(--teal);
}

h3, p { margin: 0; }
.section { padding-top: 100px; padding-bottom: 105px; }

.eyebrow {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .26em;
}

.eyebrow-light { color: var(--mint); }
.center { text-align: center; }

/* =========================================================
   02. HEADER Y NAVEGACION
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #ffffff;
  box-shadow: 0 3px 20px #0b515010;
}

.header-inner {
  max-width: 1350px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 20px;
}

.brand img {
  width: 165px;
  max-height: 55px;
  object-fit: contain;
}

.main-nav { display: flex; align-items: center; gap: 31px; }
.main-nav a { color: #5f6b72; font-size: 13px; }
.main-nav a:hover { color: var(--teal); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--stroke);
  border-radius: 35px;
}

.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--teal);
  padding: 4px 10px;
  border-radius: 30px;
  font-size: 12px;
}

.lang-switch button[aria-pressed="true"] {
  background: var(--teal);
  color: #ffffff;
}

.circle-link {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--stroke);
  border-radius: 50%;
  color: var(--teal);
  font-size: 20px;
}

.mobile-toggle { display: none; }

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 99;
  padding: 12px 18px;
  background: #ffffff;
  color: var(--deep);
}

.skip:focus {
  position: fixed;
  left: 10px;
  top: 10px;
  border: 2px solid var(--deep);
  border-radius: 6px;
}

/* =========================================================
   03. BOTONES
   ========================================================= */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 28px;
  border-radius: 40px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  transition: transform .2s ease, background .2s ease;
}

.button:hover { transform: translateY(-2px); }

.button-dark { background: var(--teal); color: #ffffff; }
.button-dark:hover { background: #004f4e; color: #ffffff; }

.header-cta { padding: 12px 20px; min-height: 42px; }

.button-mint { background: var(--mint); color: #004d4a; }
.button-mint:hover { background: #b2ede5; }

.button-outline {
  border: 1px solid #ffffffb8;
  color: #ffffff;
  background: #ffffff08;
}

.button-outline:hover { background: #ffffff1c; }

/* =========================================================
   04. HERO - FOTO REAL DE GM
   ========================================================= */

#inicio.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 560px;
  overflow: hidden;
  color: #ffffff;
  background-color: #005a59;
  background-image:
    linear-gradient(
      90deg,
      rgba(0,57,60,.97) 0%,
      rgba(0,70,73,.94) 25%,
      rgba(0,82,85,.75) 43%,
      rgba(0,89,91,.30) 64%,
      rgba(0,89,91,0) 86%
    ),
    url("../images/professional_office_consultation.jpg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center 45%;
}

#inicio .hero-overlay {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: none;
}

#inicio .hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1450px;
  margin-inline: auto;
  padding: 48px 38px 52px;
}

#inicio .hero-eyebrow {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.5);
  background: rgba(0,65,65,.25);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .17em;
}

#inicio .hero-content h1 {
  max-width: 650px;
  margin: 25px 0 20px;
  font-size: clamp(43px, 5vw, 69px);
  line-height: 1.08;
  color: #ffffff;
}

#inicio .hero-content h1 em {
  color: #a8e8df;
  font-weight: 600;
}

#inicio .hero-subtitle {
  max-width: 540px;
  margin: 0;
  color: #eaf8f6;
  font-size: 16px;
  line-height: 1.65;
}

#inicio .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 28px 0 34px;
}

#inicio .hero-note {
  margin: 0;
  color: #e0f1ef;
  font-size: 12px;
  line-height: 1.6;
}

#inicio .hero-note::before {
  content: "";
  display: inline-block;
  width: 34px;
  border-top: 1px solid rgba(255,255,255,.65);
  margin-right: 12px;
  vertical-align: middle;
}

/* =========================================================
   05. SERVICIOS - ESTRUCTURA
   ========================================================= */

.section-lead { color: var(--muted); margin-bottom: 49px; }
.services { padding-bottom: 110px; }

.featured-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 252px;
  padding: 30px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
  color: #ffffff;
}

.service-primary { background: #006e6b; }

.realty-card {
  background:
    linear-gradient(0deg,#005f5be6,#00625d35),
    url("https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?auto=format&fit=crop&w=1000&q=85")
    center / cover;
}

.service-card h3 { font-size: 25px; }

.service-card p {
  margin: 9px 0 14px;
  font-size: 13px;
  line-height: 1.6;
  max-width: 520px;
}

.service-icon, .small-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: #ffffff22;
  font-size: 24px;
}

/* WAVE: mayor contraste de las flechas */
.service-arrow {
  position: absolute;
  right: 28px;
  top: 22px;
  color: #004b49;
  font-size: 23px;
}

/* WAVE: texto mas legible */
.more {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
}

/* =========================================================
   06. TARJETAS PRINCIPALES - TAXES Y TRAINING
   ========================================================= */

#servicios .gm-featured-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 20px;
  margin: 36px 0 18px;
  align-items: stretch;
}

#servicios .gm-featured-grid > .gm-spotlight-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: stretch;
  width: 100%;
  min-width: 0;
  min-height: 310px;
  padding: 30px;
  border-radius: 16px;
  text-decoration: none;
  overflow: hidden;
  visibility: visible;
  opacity: 1;
  transition: transform .2s ease, box-shadow .2s ease;
}

#servicios .gm-featured-grid > .gm-tax-card {
  background: #006967;
  color: #ffffff;
}

#servicios .gm-featured-grid > .gm-training-card {
  background: #d7f3ee;
  color: #006967;
}

#servicios .gm-card-top,
#servicios .gm-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  min-width: 0;
}

#servicios .gm-card-content { margin-top: 30px; }

#servicios .gm-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255,255,255,.14);
  font-size: 24px;
  line-height: 1;
}

#servicios .gm-training-card .gm-card-icon {
  background: rgba(0,105,103,.10);
}

/* WAVE: etiquetas mas grandes */
#servicios .gm-card-label {
  font-family: Manrope,Arial,sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  line-height: 1.5;
}

#servicios .gm-tax-card .gm-card-label { color: #a8e8df; }
#servicios .gm-training-card .gm-card-label { color: #006967; }

#servicios .gm-card-content h3 {
  margin: 0;
  font-family: "Playfair Display",Georgia,serif;
  font-size: clamp(25px,2.7vw,34px);
  font-weight: 600;
  line-height: 1.2;
  color: inherit;
}

#servicios .gm-card-content p {
  margin: 0;
  max-width: 440px;
  color: inherit;
  font-size: 13px;
  line-height: 1.7;
}

#servicios .gm-card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 12px;
  padding: 11px 22px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
}

#servicios .gm-tax-card .gm-card-button {
  background: #a1e0d8;
  color: #003f3e;
}

#servicios .gm-training-card .gm-card-button {
  background: #006967;
  color: #ffffff;
}

#servicios .gm-spotlight-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0,70,70,.14);
}

/* =========================================================
   07. SERVICIOS SECUNDARIOS
   ========================================================= */

.secondary-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
  margin-top: 18px;
}

.small-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 266px;
  padding: 28px;
  border: 1px solid var(--stroke);
  border-radius: 14px;
}

.small-card h3 {
  color: var(--teal);
  font-size: 24px;
  margin: 5px 0 10px;
}

.small-card p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}

.small-card .more { color: var(--teal); }
.small-icon { background: #eef5f5; color: var(--teal); }

.business-card {
  background: var(--mint);
  border-color: var(--mint);
}

.business-card p { color: #12423e; }
.business-card .more { color: #003f3e; }
.business-card .small-icon { background: #77c9c0; }

/* =========================================================
   08. IMPUESTOS DESTACADOS
   ========================================================= */

.tax-highlight {
  padding: 110px 0;
  background: linear-gradient(120deg,#007672,#005d5c);
  color: #ffffff;
}

.tax-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 68px;
}

.tax-visual { position: relative; }

.tax-visual img {
  width: 100%;
  height: 385px;
  object-fit: cover;
  border-radius: 17px;
}

.image-chip {
  position: absolute;
  right: -14px;
  bottom: -15px;
  padding: 15px 27px;
  background: var(--mint);
  color: #003f3e;
  border-radius: 13px;
  font: 700 24px "Playfair Display",serif;
  box-shadow: 0 20px 30px #002d2d33;
}

.image-chip small {
  display: block;
  font: 700 12px Manrope,Arial,sans-serif;
  letter-spacing: .1em;
  color: #003f3e;
}

.tax-content h2 { color: #ffffff; margin: 18px 0 20px; }

.tax-content > p {
  color: #cce2e1;
  font-size: 16px;
  margin-bottom: 30px;
}

.tax-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 22px;
  margin-bottom: 33px;
}

.tax-list span {
  border-bottom: 1px solid #ffffff29;
  padding: 13px 0;
  font-size: 12px;
  font-weight: 700;
}

.tax-list span::before {
  content: "✓";
  display: inline-grid;
  place-items: center;
  background: #ffffff21;
  color: #c6eee9;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  margin-right: 10px;
}

/* =========================================================
   09. BENEFICIOS
   ========================================================= */

.benefits { padding-bottom: 60px; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 35px;
  margin-top: 50px;
}

.benefit-grid article {
  border-bottom: 1px solid var(--stroke);
  padding-bottom: 23px;
}

.benefit-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 27px;
  background: var(--teal);
  border-radius: 12px;
  color: #ffffff;
  font-size: 24px;
}

.benefit-grid h3 {
  color: var(--teal);
  font-size: 21px;
  margin-bottom: 11px;
}

.benefit-grid p { color: var(--muted); font-size: 12px; }

/* =========================================================
   10. FOTO DEL AREA DE TRABAJO
   ========================================================= */

.office-gallery.container {
  max-width: 1050px;
  margin: 20px auto 55px;
  padding: 0 24px;
}

.actual-office-showcase { width: 100%; }

.actual-office-photo {
  display: grid;
  grid-template-columns: 310px minmax(0,1fr);
  align-items: center;
  gap: 30px;
  max-width: 780px;
  margin: 0 auto;
  background: #f5faf9;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  overflow: hidden;
}

.actual-office-photo img {
  width: 310px;
  height: 240px;
  max-height: 240px;
  object-fit: cover;
  object-position: center 58%;
}

.actual-office-label {
  position: static;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 25px 18px 0;
  background: transparent;
  color: var(--teal);
}

.actual-office-label strong {
  font-family: "Playfair Display",serif;
  font-size: 25px;
  line-height: 1.2;
}

.actual-office-label span {
  color: #52676a;
  font-size: 14px;
  line-height: 1.6;
}

/* =========================================================
   11. NOSOTROS
   ========================================================= */

.about {
  display: grid;
  grid-template-columns: minmax(0,1fr) 350px;
  align-items: center;
  gap: 48px;
  max-width: 1050px;
  padding-top: 100px;
  padding-bottom: 105px;
}

.about-copy p {
  color: var(--muted);
  margin: 17px 0;
  font-size: 16px;
}

.about-image {
  position: relative;
  width: 100%;
  max-width: 350px;
  height: 290px;
  margin: 0 auto;
}

.about-image img {
  width: 100%;
  height: 290px;
  object-fit: cover;
  object-position: center 52%;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0,70,70,.10);
}

.about-chip {
  position: absolute;
  left: -12px;
  bottom: 15px;
  max-width: 185px;
  padding: 13px 17px;
  background: var(--teal);
  color: #ffffff;
  border-radius: 12px;
  font: 600 14px "Playfair Display",serif;
  box-shadow: 0 8px 24px rgba(0,60,60,.14);
}

.about-chip small {
  display: block;
  margin-top: 6px;
  font: 700 12px Manrope,Arial,sans-serif;
  letter-spacing: .08em;
  color: #ffffff;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 25px;
}

.tags span {
  border: 1px solid var(--stroke);
  padding: 6px 12px;
  border-radius: 40px;
  font-size: 11px;
  color: var(--teal);
}

/* =========================================================
   12. FOTO DEL PROPIETARIO
   ========================================================= */

.leadership { padding-top: 35px; padding-bottom: 65px; }

.leadership-layout {
  display: grid;
  grid-template-columns: 330px minmax(0,1fr);
  gap: 55px;
  align-items: center;
  max-width: 950px;
  margin: 0 auto;
}

.leadership-photo {
  width: 100%;
  max-width: 330px;
  height: 315px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,70,70,.08);
}

.leadership-photo img {
  width: 100%;
  height: 315px;
  object-fit: cover;
  object-position: center 42%;
}

.leadership-content p {
  max-width: 490px;
  margin: 18px 0 24px;
}

/* =========================================================
   13. PREGUNTAS FRECUENTES
   ========================================================= */

.faq { background: #fbfdfd; }
.faq h2 { margin-bottom: 44px; }
.faq-items { max-width: 730px; margin: auto; }

.faq-items details {
  background: #ffffff;
  border: 1px solid var(--stroke);
  border-radius: 14px;
  margin-bottom: 12px;
  padding: 0 23px;
}

.faq-items summary {
  position: relative;
  color: var(--teal);
  font: 600 18px "Playfair Display",serif;
  cursor: pointer;
  list-style: none;
  padding: 20px 32px 20px 6px;
}

.faq-items summary::after {
  content: "⌄";
  position: absolute;
  top: 50%;
  right: 4px;
  transform: translateY(-50%);
  font: 700 18px Manrope,Arial,sans-serif;
}

.faq-items details[open] summary::after {
  transform: translateY(-50%) rotate(180deg);
}

.faq-items summary::-webkit-details-marker { display: none; }

.faq-items details p {
  padding: 0 7px 22px;
  color: var(--muted);
  font-size: 13px;
}

.faq-items details p a {
  color: var(--teal);
  text-decoration: underline;
}

/* =========================================================
   14. CONTACTO Y MAPA
   ========================================================= */

.contact h2 { margin-bottom: 42px; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.contact-panel {
  background: var(--teal);
  border-radius: 14px;
  color: #e3f4f2;
  padding: 40px;
}

.contact-panel h3 {
  font-size: 25px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  gap: 20px;
  margin-bottom: 23px;
}

/* WAVE: 4 iconos de contacto */
.contact-item > span {
  font-size: 22px;
  color: #ffffff;
}

.contact-item small {
  display: block;
  color: #e2f5f2;
  letter-spacing: .06em;
  font-size: 12px;
  margin-bottom: 4px;
}

.contact-item a { font-size: 13px; }
.contact-item a:hover { text-decoration: underline; }

.hours { width: 100%; }

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid #ffffff21;
  padding: 5px 0;
  font-size: 11px;
}

.hours b { font-weight: 700; }

.map-panel {
  position: relative;
  min-height: 435px;
  border-radius: 14px;
  overflow: hidden;
  background: #ebefee;
}

.map-panel iframe {
  width: 100%;
  height: 100%;
  min-height: 435px;
  border: 0;
}

.map-button {
  position: absolute;
  bottom: 17px;
  left: 18px;
}

/* =========================================================
   15. FOTO DE RECEPCION
   ========================================================= */

.reception-showcase {
  display: grid;
  grid-template-columns: 310px minmax(0,1fr);
  gap: 45px;
  align-items: center;
  max-width: 900px;
  margin: 65px auto 0;
}

.reception-photo {
  width: 100%;
  max-width: 310px;
  height: 280px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,70,70,.08);
}

.reception-photo img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  object-position: center 48%;
}

.reception-content { max-width: 480px; }

.reception-content h3 {
  color: var(--teal);
  font-size: clamp(25px,3vw,36px);
  margin: 12px 0 18px;
}

.reception-content p {
  color: var(--muted);
  margin-bottom: 25px;
}

/* =========================================================
   16. FOOTER CORPORATIVO
   ========================================================= */

.footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 68px 0 26px;
  margin: 0;
}

.footer .footer-main {
  display: grid;
  grid-template-columns:
    minmax(0,1.25fr)
    minmax(0,.8fr)
    minmax(0,1.15fr)
    minmax(0,.75fr);
  align-items: start;
  column-gap: 48px;
  row-gap: 34px;
}

.footer .footer-brand {
  min-width: 0;
  max-width: 290px;
}

.footer .footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  min-height: 88px;
  padding: 12px 16px;
  margin: 0 0 22px;
  background: #ffffff;
  border: 1px solid #e3efec;
  border-radius: 12px;
  box-shadow: 0 7px 20px rgba(0,45,45,.12);
}

.footer .footer-logo img {
  display: block;
  width: 190px;
  height: auto;
  max-height: 68px;
  object-fit: contain;
  opacity: 1;
  filter: none;
}

.footer .footer-brand p {
  max-width: 270px;
  margin: 0;
  color: var(--footer-muted);
  font-family: Manrope,Arial,sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.75;
}

.footer .footer-column { min-width: 0; }

.footer .footer-column h3 {
  margin: 5px 0 20px;
  color: #ffffff;
  font-family: Manrope,Arial,sans-serif;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.5;
}

.footer .footer-column h4 {
  margin: 25px 0 12px;
  color: #ffffff;
  font-family: Manrope,Arial,sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.5;
}

.footer .footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}

.footer .footer-links a {
  display: inline-block;
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--footer-text);
  font-family: Manrope,Arial,sans-serif;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.7;
  text-decoration: none;
  overflow-wrap: anywhere;
  transition: color .2s ease;
}

.footer .footer-links a:hover {
  color: #c1f4ec;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer .footer-social-wrap { margin-top: 8px; }

.footer .footer-social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 20px;
}

.footer .footer-social a {
  display: inline-block;
  margin: 0;
  padding: 2px 0;
  color: #ffffff;
  font-family: Manrope,Arial,sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.7;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255,255,255,.55);
  transition: color .2s ease;
}

.footer .footer-social a:hover { color: #c1f4ec; }

.footer .footer-divider {
  display: block;
  width: 100%;
  height: 1px;
  margin: 44px 0 25px;
  background: rgba(255,255,255,.28);
}

/* Copyright centrado */
.footer .footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: 6px;
  margin: 0 auto;
  padding: 0;
  border: none;
  text-align: center;
}

.footer .footer-bottom p {
  width: 100%;
  margin: 0;
  padding: 0;
  color: #e0f0ed;
  font-size: 12px;
  line-height: 1.7;
  text-align: center;
}

.footer .footer-credit {
  color: #d2ebe7;
  font-size: 11px;
}

.footer .footer-credit a {
  display: inline;
  color: #ffffff;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,.65);
  text-underline-offset: 3px;
}

.footer .footer-credit a:hover {
  color: #d7f3ee;
  text-decoration-color: currentColor;
}

.footer .footer-credit a:focus-visible {
  outline: 3px solid #ffbf47;
  outline-offset: 4px;
}

/* =========================================================
   17. WHATSAPP FLOTANTE
   ========================================================= */

.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 22px;
  z-index: 22;
  width: 60px;
  height: 60px;
  padding: 13px;
  display: grid;
  place-items: center;
  background: #22ce67;
  border-radius: 50%;
  box-shadow: 0 8px 28px #0003;
}

.whatsapp-float img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

/* =========================================================
   18. ACCESIBILIDAD GENERAL
   ========================================================= */

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

#main:focus { outline: none; }

.contact-item a:hover,
.footer a:hover { text-underline-offset: 4px; }

/* =========================================================
   19. RESPONSIVE - PANTALLAS MEDIANAS
   ========================================================= */

@media (max-width: 1090px) {
  .main-nav { gap: 15px; }
  .header-cta { display: none; }
  .tax-layout { gap: 35px; }
  .benefit-grid { gap: 16px; }

  .footer .footer-main {
    grid-template-columns: repeat(2,minmax(0,1fr));
    column-gap: 50px;
    row-gap: 38px;
  }
}

/* =========================================================
   20. RESPONSIVE - TABLET
   ========================================================= */

@media (max-width: 800px) {
  .header-inner {
    flex-wrap: wrap;
    min-height: 70px;
  }

  .mobile-toggle {
    display: block;
    order: 3;
    background: #ffffff;
    color: var(--teal);
    font-size: 25px;
    border: 1px solid var(--stroke);
    border-radius: 9px;
    padding: 3px 12px;
  }

  .main-nav {
    display: none;
    order: 4;
    width: 100%;
    padding-bottom: 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .main-nav.open { display: flex; }

  .main-nav a {
    padding: 12px;
    border-bottom: 1px solid var(--stroke);
  }

  .header-actions { margin-left: auto; }
  .circle-link { display: none; }

  .featured-grid,
  .tax-layout,
  .contact-grid { grid-template-columns: 1fr; }

  #servicios .gm-featured-grid { grid-template-columns: 1fr; }
  .secondary-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .benefit-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }

  .about {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .about-image { max-width: 350px; }

  .leadership-layout,
  .reception-showcase {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .leadership-photo,
  .reception-photo { max-width: 330px; }

  .tax-visual img { height: 290px; }
  .tax-content { padding-top: 15px; }

  .footer .footer-main {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 35px;
  }

  /* Hero tablet */
  #inicio.hero {
    min-height: 520px;
    background-position: 60% center;
  }

  #inicio .hero-content { padding: 45px 25px; }

  #inicio .hero-content h1 {
    max-width: 560px;
    font-size: clamp(39px,7vw,56px);
  }
}

/* =========================================================
   21. RESPONSIVE - MOVILES
   ========================================================= */

@media (max-width: 540px) {

  .container { padding-inline: 18px; }

  .section {
    padding-top: 65px;
    padding-bottom: 70px;
  }

  h2 { font-size: 34px; }
  .brand img { width: 128px; }
  .header-inner { gap: 8px; }
  .header-actions { gap: 5px; }
  .lang-switch button { padding: 5px 8px; }

  .button {
    padding: 12px 18px;
    font-size: 12px;
  }

  /* Hero móvil */
  #inicio.hero {
    min-height: 500px;
    background-image:
      linear-gradient(
        90deg,
        rgba(0,57,60,.96) 0%,
        rgba(0,70,73,.90) 58%,
        rgba(0,82,85,.67) 100%
      ),
      url("../images/professional_office_consultation.jpg");
    background-position: 62% center;
  }

  #inicio .hero-content { padding: 42px 18px; }

  #inicio .hero-content h1 {
    max-width: 100%;
    font-size: clamp(36px,9vw,45px);
    line-height: 1.1;
  }

  #inicio .hero-content h1 br { display: none; }
  #inicio .hero-subtitle { font-size: 14px; }

  #inicio .actions {
    gap: 12px;
    margin: 25px 0;
  }

  #inicio .hero-note { font-size: 11px; }

  /* Servicios */
  .featured-grid,
  .secondary-grid,
  .benefit-grid { grid-template-columns: 1fr; }

  #servicios .gm-featured-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  #servicios .gm-spotlight-card {
    min-height: 280px;
    padding: 23px;
  }

  #servicios .gm-card-content h3 { font-size: 27px; }
  .service-card { min-height: 250px; }
  .small-card { min-height: 235px; }

  /* Impuestos */
  .tax-highlight { padding: 65px 0; }

  .tax-list {
    grid-template-columns: 1fr 1fr;
    gap: 0 8px;
  }

  .tax-list span { font-size: 12px; }
  .tax-list span::before { margin-right: 5px; }

  .benefit-grid { gap: 24px; }

  /* Fotografía oficina */
  .office-gallery.container {
    margin: 15px auto 35px;
    padding: 0 18px;
  }

  .actual-office-photo {
    grid-template-columns: 1fr;
    max-width: 420px;
    gap: 0;
  }

  .actual-office-photo img {
    width: 100%;
    height: 220px;
    max-height: 220px;
  }

  .actual-office-label { padding: 18px; }
  .actual-office-label strong { font-size: 22px; }

  /* Nosotros */
  .about { gap: 45px; }

  .about-image {
    max-width: 350px;
    height: 270px;
  }

  .about-image img { height: 270px; }

  .about-chip {
    left: 10px;
    bottom: 10px;
  }

  /* Propietario y recepción */
  .leadership-photo,
  .reception-photo { height: 270px; }

  .leadership-photo img,
  .reception-photo img { height: 270px; }

  .faq-items summary { font-size: 16px; }
  .contact-panel { padding: 26px 22px; }

  .hours div { font-size: 12px; }

  .whatsapp-float {
    width: 54px;
    height: 54px;
    right: 15px;
    bottom: 17px;
  }

  /* Footer móvil: dos columnas */
  .footer { padding: 42px 0 25px; }

  .footer .footer-main {
    display: grid;
    grid-template-columns: minmax(0,1fr) minmax(0,1.15fr);
    grid-template-areas:
      "brand brand"
      "explore contact-title"
      "explore contact-links"
      "social information";
    column-gap: 20px;
    row-gap: 15px;
    align-items: start;
  }

  .footer .footer-brand {
    grid-area: brand;
    max-width: none;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,.25);
  }

  .footer .footer-logo {
    min-height: 75px;
    padding: 10px 14px;
    margin-bottom: 16px;
  }

  .footer .footer-logo img {
    width: 170px;
    max-height: 60px;
  }

  .footer .footer-brand p { max-width: 320px; }

  .footer .footer-main > .footer-column:nth-child(2) {
    grid-area: explore;
  }

  .footer .footer-main > .footer-column:nth-child(3) {
    display: contents;
  }

  .footer .footer-main > .footer-column:nth-child(3) > h3 {
    grid-area: contact-title;
    margin: 0 0 -5px;
  }

  .footer .footer-main > .footer-column:nth-child(3) > .footer-links {
    grid-area: contact-links;
  }

  .footer .footer-main > .footer-column:nth-child(3) > .footer-social-wrap {
    grid-area: social;
    margin-top: 8px;
  }

  .footer .footer-main > .footer-column:nth-child(4) {
    grid-area: information;
    margin-top: 8px;
  }

  .footer .footer-column h3,
  .footer .footer-column h4 {
    font-size: 13px;
    margin: 0 0 12px;
  }

  .footer .footer-links { gap: 10px; }

  .footer .footer-links a,
  .footer .footer-social a {
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
  }

  .footer .footer-social { gap: 8px 14px; }
  .footer .footer-divider { margin: 30px 0 22px; }

  .footer .footer-bottom {
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .footer .footer-bottom p {
    width: 100%;
    font-size: 11px;
    text-align: center;
  }
}

/* =========================================================
   22. MOVIMIENTO REDUCIDO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .button,
  #servicios .gm-spotlight-card,
  .footer .footer-links a,
  .footer .footer-social a {
    transition: none;
  }
}

