* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; background: #fff; color: #102521; font-family: "Nunito Sans", Arial, sans-serif; }
body.menu-abierto { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.salto-contenido { position: fixed; z-index: 9999; top: 8px; left: 8px; padding: 10px 15px; border-radius: 8px; background: #fff; color: #073f39; font-weight: 800; transform: translateY(-150%); }
.salto-contenido:focus { transform: none; }
:focus-visible { outline: 3px solid #62d2bd; outline-offset: 3px; }

/* Encabezado */
.encabezado-contacto { position: relative; z-index: 100; background: #fff; }
.barra-contacto { min-height: 46px; display: flex; align-items: center; background: #073f39; color: #fff; }
.barra-contacto-interior { display: flex; align-items: center; justify-content: space-between; gap: 26px; }
.barra-contacto a { min-width: 0; display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; }
.barra-contacto a:hover { color: #ffc323; }
.barra-contacto svg { width: 18px; height: 18px; flex: 0 0 18px; color: #ffc323; }
.barra-contacto a span { min-width: 0; overflow-wrap: anywhere; }
.navegacion-envolvente { background: #fff; border-bottom: 1px solid #e7eeeb; }
.navegacion { min-height: 106px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.logo-contacto { flex: 0 0 286px; }
.logo-contacto picture { display: block; }
.logo-contacto img { width: 272px; height: 91px; object-fit: contain; background: #fff; }
.menu-contacto { display: flex; align-items: center; gap: 28px; }
.menu-contacto > ul { margin: 0; padding: 0; display: flex; align-items: center; gap: clamp(24px, 2.4vw, 44px); list-style: none; }
.menu-contacto li { position: relative; }
.menu-contacto a, .menu-contacto button { padding: 12px 0; border: 0; display: flex; align-items: center; gap: 6px; background: transparent; font: 700 15px "Montserrat", sans-serif; white-space: nowrap; }
.menu-contacto a:hover, .menu-contacto button:hover, .menu-contacto .activo { color: #e5aa00; }
.con-submenu > button span { font-size: 18px; transition: transform .2s ease; }
.con-submenu > ul { position: absolute; z-index: 20; top: calc(100% + 6px); left: -18px; width: 260px; margin: 0; padding: 9px 18px; border: 1px solid #e3ece8; border-radius: 10px; background: #fff; box-shadow: 0 15px 34px rgba(3,58,53,.13); list-style: none; opacity: 0; visibility: hidden; transform: translateY(8px); transition: .22s ease; }
.con-submenu:hover > ul, .con-submenu:focus-within > ul, .con-submenu.abierto > ul { opacity: 1; visibility: visible; transform: none; }
.con-submenu.abierto > button span { transform: rotate(180deg); }
.con-submenu > ul a { padding: 11px 2px; white-space: normal; }
.portal-menu { display: none; }
.boton-menu { display: none; }

/* Miga de pan */
.hero-interior { position: relative; min-height: 270px; overflow: hidden; display: flex; align-items: center; background: #06483f; color: #fff; }
.hero-interior-fondo { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(3,58,53,.98), rgba(3,58,53,.78) 55%, rgba(3,58,53,.72)), url("../recursos/imagenes/hero/hero-asesoria-gael-optimizado.jpg") center 38% / cover no-repeat; }
.hero-interior::before { content: ""; position: absolute; inset: 0; opacity: .12; background: repeating-linear-gradient(135deg, transparent 0 20px, rgba(255,255,255,.18) 20px 21px); }
.hero-interior-contenido { position: relative; z-index: 2; }
.hero-interior h1 { margin: 0; font: 800 clamp(38px, 4vw, 56px)/1.1 "Montserrat", sans-serif; }
.miga-pan { margin-top: 14px; display: flex; align-items: center; gap: 13px; font: 700 16px "Montserrat", sans-serif; }
.miga-pan a:hover { color: #ffc323; }
.miga-pan span:last-child { color: #ffc323; }
.miga-pan > span:first-of-type { color: rgba(255,255,255,.72); font-size: 26px; line-height: 1; }
.hero-geometria { position: absolute; z-index: 1; right: 4%; bottom: -24px; width: 210px; height: 180px; opacity: .9; }
.hero-geometria i { position: absolute; width: 0; height: 0; border-left: 34px solid transparent; border-right: 34px solid transparent; border-bottom: 58px solid #ffc323; filter: drop-shadow(0 5px 6px rgba(0,0,0,.12)); }
.hero-geometria i:nth-child(1) { top: 4px; right: 5px; transform: scale(.72); }
.hero-geometria i:nth-child(2) { top: 54px; right: 42px; border-bottom-color: #55d8b5; }
.hero-geometria i:nth-child(3) { top: 101px; right: 5px; border-bottom-color: #0b7868; }
.hero-geometria i:nth-child(4) { top: 103px; right: 80px; border-bottom-color: #132f52; }
.hero-geometria i:nth-child(5) { top: 55px; right: 118px; border-bottom-color: #ffc323; transform: scale(.55); }
.hero-geometria i:nth-child(6) { top: 8px; right: 83px; border-bottom-color: #16425b; }

/* Contacto */
.seccion-contacto { position: relative; padding: 76px 0 84px; overflow: hidden; background: linear-gradient(180deg, #fff, #fbfdfc); }
.contacto-cabecera { position: relative; z-index: 2; max-width: 930px; text-align: center; }
.contacto-cabecera h2, .mapa-cabecera h2 { margin: 18px 0 12px; color: #062a25; font: 800 clamp(34px, 4vw, 50px)/1.12 "Montserrat", sans-serif; text-wrap: balance; }
.contacto-cabecera h2 em, .mapa-cabecera h2 em { position: relative; color: #16823b; font-style: normal; }
.contacto-cabecera h2 em::after, .mapa-cabecera h2 em::after { content: ""; position: absolute; left: 5%; right: 5%; bottom: -7px; height: 3px; border-radius: 3px; background: #ffc323; transform: scaleX(0); transform-origin: left; animation: subrayar 3.6s ease-in-out infinite; }
.contacto-cabecera > p:last-child { max-width: 720px; margin: 0 auto; color: #52635f; font-size: 18px; line-height: 1.55; }
.contacto-cuadricula { position: relative; z-index: 2; margin-top: 46px; display: grid; grid-template-columns: minmax(330px, .82fr) minmax(580px, 1.42fr); align-items: stretch; gap: 30px; }
.informacion-contacto, .formulario-tarjeta { border: 1px solid #dce9e5; border-radius: 20px; background: #fff; }
.informacion-contacto { padding: 34px 30px 14px; display: flex; flex-direction: column; box-shadow: 0 18px 42px rgba(3,58,53,.08); }
.informacion-sello { color: #16823b; font: 800 11px "Montserrat", sans-serif; letter-spacing: .08em; }
.informacion-introduccion h2 { margin: 11px 0 12px; color: #073f39; font: 800 29px/1.18 "Montserrat", sans-serif; }
.informacion-introduccion p { margin: 0; color: #566863; font-size: 16px; line-height: 1.55; }
.datos-contacto { margin-top: 27px; display: grid; gap: 12px; }
.datos-contacto a { min-width: 0; padding: 14px 13px; border: 1px solid #e1ece8; border-radius: 13px; display: flex; align-items: center; gap: 14px; background: #fbfdfc; transition: transform .2s ease, border-color .2s ease, background-color .2s ease; }
.datos-contacto a:hover { border-color: #70caa0; background: #f2faf6; transform: translateX(3px); }
.dato-icono { width: 45px; height: 45px; flex: 0 0 45px; border-radius: 50%; display: grid; place-items: center; background: #eaf7ef; color: #087442; }
.dato-icono svg { width: 23px; height: 23px; }
.datos-contacto a > span:last-child { min-width: 0; }
.datos-contacto small { display: block; color: #687a75; font-size: 13px; }
.datos-contacto strong { display: block; margin-top: 2px; color: #0a3d35; font-size: 15px; line-height: 1.35; overflow-wrap: anywhere; }
.horario-contacto { margin: auto -16px 0; padding: 18px; border-left: 4px solid #ffc323; border-radius: 13px; background: linear-gradient(115deg, #073f39, #086051); color: #fff; }
.horario-titulo { display: flex; align-items: center; gap: 10px; }
.horario-titulo svg { width: 25px; height: 25px; color: #ffc323; }
.horario-titulo h3 { margin: 0; font: 800 16px "Montserrat", sans-serif; }
.horario-contacto dl { margin: 15px 0 0; display: grid; gap: 10px; }
.horario-contacto dl div { display: flex; justify-content: space-between; gap: 14px; }
.horario-contacto dt { color: rgba(255,255,255,.78); }
.horario-contacto dd { margin: 0; color: #ffc323; font-weight: 800; text-align: right; }
.boton-whatsapp { min-height: 52px; margin-top: auto; padding: 0 18px; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 10px; background: #087a45; color: #fff; font: 800 14px "Montserrat", sans-serif; animation: agitar-suave 3s .7s ease-in-out infinite; }
.boton-whatsapp:hover { background: #056638; animation-play-state: paused; }
.boton-whatsapp svg { width: 25px; height: 25px; }

/* Formulario */
.formulario-tarjeta { overflow: hidden; background: linear-gradient(145deg, #f8fcfa, #edf8f2); box-shadow: 0 18px 42px rgba(3,58,53,.08); }
.formulario-titulo { padding: 28px 30px 23px; border-bottom: 1px solid #d8e8e2; display: flex; align-items: center; gap: 16px; background: rgba(255,255,255,.68); }
.formulario-icono { width: 54px; height: 54px; flex: 0 0 54px; border-radius: 14px; display: grid; place-items: center; background: #073f39; color: #ffc323; }
.formulario-icono svg { width: 29px; height: 29px; }
.formulario-titulo > div > span { color: #16823b; font: 800 11px "Montserrat", sans-serif; letter-spacing: .09em; }
.formulario-titulo h2 { margin: 4px 0 3px; color: #073f39; font: 800 27px "Montserrat", sans-serif; }
.formulario-titulo p { margin: 0; color: #5b6d68; font-size: 14px; }
#formularioContacto { padding: 26px 30px 30px; }
fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
fieldset + fieldset { margin-top: 20px; }
legend { margin-bottom: 10px; color: #0b443b; font: 800 13px "Montserrat", sans-serif; }
.tipo-persona > div { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tipo-persona label { cursor: pointer; }
.tipo-persona input { position: absolute; opacity: 0; pointer-events: none; }
.tipo-persona label span { min-height: 50px; padding: 9px 14px; border: 1px solid #cadcd6; border-radius: 11px; display: flex; align-items: center; justify-content: center; gap: 9px; background: #fff; color: #38544d; font: 700 14px "Montserrat", sans-serif; transition: .2s ease; }
.tipo-persona label svg { width: 22px; height: 22px; }
.tipo-persona input:checked + span { border-color: #16823b; background: #073f39; color: #fff; box-shadow: 0 8px 18px rgba(3,58,53,.14); }
.tipo-persona input:focus-visible + span { outline: 3px solid #62d2bd; outline-offset: 2px; }
.grupo-campos { margin-top: 20px; padding-top: 18px; border-top: 1px solid #d7e6e1; }
.campos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.campos-grid label { min-width: 0; display: flex; flex-direction: column; gap: 7px; color: #28463f; font-size: 13px; font-weight: 700; }
.campos-grid label > span b, .aceptacion b { color: #c48700; }
.campos-grid label > span small { color: #71827d; font-weight: 600; }
.campo-completo { grid-column: 1 / -1; }
input, select, textarea { width: 100%; border: 1px solid #cdded8; border-radius: 10px; background: rgba(255,255,255,.94); transition: border-color .2s ease, box-shadow .2s ease; }
input, select { min-height: 47px; padding: 0 13px; }
textarea { min-height: 106px; padding: 12px 13px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: #16823b; outline: 0; box-shadow: 0 0 0 3px rgba(22,130,59,.1); }
input.invalido, select.invalido, textarea.invalido { border-color: #bb3d3d; }
.campo-error { min-height: 0; color: #a52d2d; font-size: 12px; font-weight: 700; }
.campo-error:not(:empty) { min-height: 16px; }
.aceptacion { margin-top: 19px; display: flex; align-items: flex-start; gap: 10px; color: #526761; font-size: 13px; line-height: 1.4; cursor: pointer; }
.aceptacion input { width: 18px; min-height: 18px; height: 18px; flex: 0 0 18px; margin: 1px 0 0; accent-color: #087a45; }
.turnstile-seguridad { margin-top: 14px; }
.campo-trampa { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.boton-enviar:disabled { cursor: wait; opacity: .65; animation: none; }
.seguridad-formulario { margin: 11px 0 0; display: flex; align-items: center; justify-content: center; gap: 7px; color: #547069; font-size: 12px; text-align: center; }
.seguridad-formulario svg { width: 17px; height: 17px; flex: 0 0 17px; color: #087a45; }
.formulario-resultado { min-height: 0; margin-top: 12px; padding: 0; border-radius: 9px; text-align: center; font-weight: 700; }
.formulario-resultado:not(:empty) { padding: 11px 13px; }
.formulario-resultado.exito { background: #dff5e8; color: #075d35; }
.formulario-resultado.error { background: #fbe7e7; color: #922f2f; }

/* Partículas */
.particulas-contacto { position: absolute; z-index: 1; inset: 0; pointer-events: none; }
.particulas-contacto span { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #ffc323; opacity: .66; animation: flotar 6s ease-in-out infinite; }
.particulas-contacto span:nth-child(1) { left: 3%; top: 10%; }
.particulas-contacto span:nth-child(2) { left: 8%; top: 44%; width: 5px; height: 5px; background: #16823b; animation-delay: -1.1s; }
.particulas-contacto span:nth-child(3) { left: 2%; bottom: 13%; width: 6px; height: 6px; animation-delay: -2.5s; }
.particulas-contacto span:nth-child(4) { right: 4%; top: 9%; background: #16823b; animation-delay: -3.3s; }
.particulas-contacto span:nth-child(5) { right: 8%; top: 42%; width: 5px; height: 5px; animation-delay: -.6s; }
.particulas-contacto span:nth-child(6) { right: 3%; bottom: 12%; animation-delay: -4.2s; }
.particulas-contacto span:nth-child(7) { left: 19%; top: 3%; width: 5px; height: 5px; background: #16823b; animation-delay: -2s; }
.particulas-contacto span:nth-child(8) { right: 20%; top: 4%; width: 6px; height: 6px; animation-delay: -4.8s; }
.particulas-contacto span:nth-child(9) { left: 28%; bottom: 4%; animation-delay: -3.7s; }
.particulas-contacto span:nth-child(10) { right: 29%; bottom: 3%; width: 5px; height: 5px; background: #16823b; animation-delay: -1.6s; }
.particulas-contacto span:nth-child(11) { left: 48%; top: 18%; width: 5px; height: 5px; animation-delay: -5.1s; }
.particulas-contacto span:nth-child(12) { right: 47%; bottom: 16%; width: 6px; height: 6px; background: #16823b; animation-delay: -.9s; }

/* Mapa */
.seccion-mapa { position: relative; padding: 72px 0 84px; background: #f2f7f5; }
.mapa-cabecera { text-align: center; }
.mapa-cabecera h2 { font-size: clamp(32px, 3.5vw, 46px); }
.mapa-cabecera > p:last-child { margin: 0; color: #5a6c67; font-size: 17px; }
.mapa-marco { position: relative; height: 480px; margin-top: 35px; border: 5px solid #fff; border-radius: 20px; overflow: hidden; background: #dce8e4; box-shadow: 0 20px 45px rgba(3,58,53,.15); }
.mapa-marco iframe { width: 100%; height: 100%; border: 0; }
.mapa-dato { position: absolute; z-index: 2; left: 22px; bottom: 22px; width: min(535px, calc(100% - 44px)); min-height: 78px; padding: 12px 13px; border: 1px solid rgba(255,255,255,.65); border-radius: 14px; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 8px; background: rgba(255,255,255,.94); box-shadow: 0 12px 30px rgba(3,58,53,.18); backdrop-filter: blur(8px); }
.mapa-dato > span { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #073f39; color: #ffc323; }
.mapa-dato svg { width: 25px; height: 25px; }
.mapa-dato strong { color: #073f39; font: 800 15px "Montserrat", sans-serif; }
.mapa-dato p { margin: 3px 0 0; color: #60716c; font-size: 13px; }
.mapa-dato a { min-height: 40px; padding: 0 10px; border-radius: 9px; display: flex; align-items: center; gap: 5px; background: #ffc323; color: #073f39; font-weight: 800; }
.mapa-dato a:hover { color: #fff; }

/* Pie y flotante */
.pie-contacto { padding: 40px 0; background: #073f39; color: #fff; }
.pie-interior { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pie-interior img { width: 230px; height: 78px; object-fit: contain; background: #fff; border-radius: 9px; }
.pie-interior > p { max-width: 620px; margin: 18px auto 12px; color: rgba(255,255,255,.8); }
.pie-interior > div { display: flex; align-items: center; justify-content: center; gap: 9px; flex-wrap: wrap; color: #ffc323; font-weight: 700; }
.pie-interior small { margin-top: 17px; color: rgba(255,255,255,.65); }
.whatsapp-flotante-contacto { position: fixed; z-index: 80; right: 20px; bottom: 20px; width: 58px; height: 58px; border: 3px solid #fff; border-radius: 50%; display: grid; place-items: center; background: #17b861; color: #fff; box-shadow: 0 9px 24px rgba(3,58,53,.24); animation: pulso-whatsapp 2.8s ease-in-out infinite; }
.whatsapp-flotante-contacto svg { width: 31px; height: 31px; }

@keyframes flotar { 0%,100% { transform: translate3d(0,0,0); } 50% { transform: translate3d(7px,-16px,0); } }
@keyframes subrayar { 0%,12% { transform: scaleX(0); opacity: 0; } 28%,78% { transform: scaleX(1); opacity: 1; } 92%,100% { transform: scaleX(1); opacity: 0; } }
@keyframes agitar-suave {
  0%, 62%, 100% { transform: translateX(0) rotate(0); }
  68% { transform: translateX(-4px) rotate(-.7deg); }
  73% { transform: translateX(5px) rotate(.8deg); }
  78% { transform: translateX(-3px) rotate(-.5deg); }
  83% { transform: translateX(2px) rotate(.3deg); }
  89% { transform: translateX(0) rotate(0); }
}
@keyframes pulso-whatsapp { 0%,78%,100% { box-shadow: 0 9px 24px rgba(3,58,53,.24); } 88% { box-shadow: 0 0 0 8px rgba(23,184,97,.17), 0 9px 24px rgba(3,58,53,.24); } }

@media (max-width: 1180px) {
  .barra-contacto-interior { gap: 16px; }
  .barra-contacto a { font-size: 12px; }
  .logo-contacto { flex-basis: 245px; }
  .logo-contacto img { width: 232px; height: 82px; }
  .menu-contacto { gap: 18px; }
  .menu-contacto > ul { gap: 22px; }
  .menu-contacto a, .menu-contacto button { font-size: 13px; }
  .boton-cabecera { padding-inline: 16px !important; }
  .contacto-cuadricula { grid-template-columns: minmax(300px,.78fr) minmax(520px,1.35fr); gap: 22px; }
}

@media (max-width: 960px) {
  .barra-contacto { display: none; }
  .navegacion { min-height: 94px; }
  .logo-contacto { position: relative; z-index: 103; flex-basis: 258px; }
  .logo-contacto img { width: 246px; height: 84px; }
  .boton-menu { position: relative; z-index: 103; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 9px; display: grid; place-content: center; gap: 5px; background: #fff0c9; }
  .boton-menu span { width: 25px; height: 2px; border-radius: 2px; display: block; background: #073f39; transition: .25s ease; }
  .boton-menu[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .boton-menu[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .boton-menu[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .menu-contacto { position: fixed; inset: 0; z-index: 102; min-height: 100vh; min-height: 100dvh; padding: 116px 28px 30px; display: none; flex-direction: column; justify-content: center; background: linear-gradient(155deg,#fff 0 70%,#eef7f2); overflow-y: auto; }
  .menu-contacto.abierto { display: flex; }
  .menu-contacto > ul { width: min(100%,650px); margin-inline: auto; flex-direction: column; align-items: stretch; gap: 0; }
  .menu-contacto a, .menu-contacto button { width: 100%; padding: 15px 8px; border-bottom: 1px solid #e2ebe8; justify-content: center; font-size: 16px; text-align: center; }
  .con-submenu > ul { position: static; width: 100%; padding: 0 14px; border: 0; border-radius: 0; display: none; box-shadow: none; opacity: 1; visibility: visible; transform: none; }
  .con-submenu:hover > ul, .con-submenu:focus-within > ul { display: none; }
  .con-submenu.abierto > ul { display: block; }
  .con-submenu > ul a { font-size: 14px; }
  .portal-menu { display: block; margin-top: 17px; }
  .portal-menu a { min-height: 58px; border: 0; border-radius: 12px; gap: 11px; background: linear-gradient(105deg,#07594c,#087a45); color: #fff; box-shadow: 0 12px 25px rgba(3,58,53,.18); }
  .portal-menu a:hover { color: #ffc323; }
  .portal-menu svg { width: 24px; height: 24px; color: #ffc323; }
  .boton-cabecera { display: none !important; }
  .hero-interior { min-height: 230px; }
  .contacto-cuadricula { grid-template-columns: 1fr; }
  .informacion-contacto { min-height: 0; }
  .boton-whatsapp { margin-top: 22px; }
}

@media (max-width: 720px) {
  .contenedor { width: calc(100% - 32px); }
  .navegacion { min-height: 88px; gap: 10px; }
  .logo-contacto { flex-basis: 220px; }
  .logo-contacto img { width: 218px; height: 80px; }
  .menu-contacto { padding: 105px 20px 25px; }
  .hero-interior { min-height: 205px; }
  .hero-interior h1 { font-size: 37px; }
  .miga-pan { font-size: 14px; }
  .hero-geometria { right: -65px; opacity: .5; transform: scale(.72); }
  .seccion-contacto { padding: 56px 0 58px; }
  .contacto-cabecera h2 { font-size: 32px; }
  .contacto-cabecera h2 br { display: none; }
  .contacto-cabecera > p:last-child { font-size: 16px; }
  .contacto-cuadricula { margin-top: 32px; gap: 18px; }
  .informacion-contacto { padding: 26px 18px 12px; border-radius: 16px; }
  .informacion-introduccion h2 { font-size: 25px; }
  .datos-contacto a { padding: 12px 10px; gap: 11px; }
  .dato-icono { width: 42px; height: 42px; flex-basis: 42px; }
  .datos-contacto strong { font-size: 14px; }
  .horario-contacto dl div { flex-direction: column; gap: 2px; }
  .horario-contacto { margin-inline: -6px; }
  .horario-contacto dd { text-align: left; }
  .formulario-tarjeta { border-radius: 16px; }
  .formulario-titulo { padding: 23px 18px 19px; align-items: flex-start; }
  .formulario-icono { width: 47px; height: 47px; flex-basis: 47px; }
  .formulario-titulo h2 { font-size: 23px; }
  #formularioContacto { padding: 21px 16px 24px; }
  .tipo-persona > div, .campos-grid { grid-template-columns: 1fr; }
  .campo-completo { grid-column: auto; }
  .tipo-persona label span { min-height: 48px; font-size: 13px; }
  input, select { min-height: 49px; }
  .seguridad-formulario { align-items: flex-start; }
  .particulas-contacto span:nth-child(7), .particulas-contacto span:nth-child(8), .particulas-contacto span:nth-child(11), .particulas-contacto span:nth-child(12) { display: none; }
  .seccion-mapa { padding: 54px 0 58px; }
  .mapa-cabecera h2 { font-size: 31px; }
  .mapa-cabecera > p:last-child { font-size: 15px; line-height: 1.45; }
  .mapa-marco { width: calc(100% - 20px); height: 440px; margin-top: 27px; border-width: 3px; border-radius: 15px; }
  .mapa-dato { left: 10px; bottom: 10px; width: calc(100% - 20px); padding: 12px; grid-template-columns: 42px minmax(0,1fr); }
  .mapa-dato > span { width: 42px; height: 42px; }
  .mapa-dato a { grid-column: 1 / -1; justify-content: center; }
  .pie-contacto { padding-bottom: 88px; }
  .pie-interior img { width: 210px; height: 72px; }
  .whatsapp-flotante-contacto { right: 15px; bottom: 15px; width: 52px; height: 52px; }
}

@media (max-width: 390px) {
  .navegacion { width: calc(100% - 12px); gap: 6px; }
  .logo-contacto { flex-basis: 196px; }
  .logo-contacto img { width: 196px; height: 72px; }
.hero-interior h1 { font-size: 33px; }
  .contacto-cabecera h2 { font-size: 29px; }
  .informacion-introduccion h2 { font-size: 23px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .particulas-contacto span, .boton-cabecera, .boton-whatsapp, .boton-enviar, .whatsapp-flotante-contacto, .contacto-cabecera h2 em::after, .mapa-cabecera h2 em::after { animation: none; }
  .contacto-cabecera h2 em::after, .mapa-cabecera h2 em::after { opacity: 1; transform: scaleX(1); }
}




/* =========================================================
   V29 — Contacto: columna izquierda más ancha SOLO PC/laptop
   ========================================================= */
@media (min-width: 1121px) {
  .contacto-cuadricula {
    grid-template-columns: minmax(420px, .96fr) minmax(0, 1.42fr);
    gap: 26px;
  }

  .datos-contacto strong {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
  }
}


/* =========================================================
   V30 — más espacio entre aceptación de política y botón
   ========================================================= */
.grupo-politica,
.campo-politica,
.aceptacion-politica,
.check-politica,
.form-check,
.checkbox-politica {
  margin-bottom: 16px !important;
}

/* Fallback seguro para la estructura actual del formulario */
.formulario-contacto label:has(input[type="checkbox"]),
.contacto-formulario label:has(input[type="checkbox"]) {
  margin-bottom: 16px !important;
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

/* Si el botón sigue inmediatamente al bloque del checkbox */
.formulario-contacto label:has(input[type="checkbox"]) + .boton-enviar,
.contacto-formulario label:has(input[type="checkbox"]) + .boton-enviar {
  margin-top: 8px !important;
}

/* V53 · Iconos personalizados de contacto, usando la escala global aprobada. */
.dato-icono.dato-icono--imagen{
  width:var(--gael-icono-estandar)!important;
  height:var(--gael-icono-estandar)!important;
  flex:0 0 var(--gael-icono-estandar)!important;
  padding:0!important;
  overflow:hidden!important;
  background:transparent!important;
  border-radius:50%!important;
}
.dato-icono--imagen img{
  width:100%!important;
  height:100%!important;
  display:block!important;
  object-fit:contain!important;
  object-position:center!important;
  image-rendering:auto!important;
}
@media (max-width:1024px){.dato-icono.dato-icono--imagen{width:var(--gael-icono-estandar-tablet)!important;height:var(--gael-icono-estandar-tablet)!important;flex-basis:var(--gael-icono-estandar-tablet)!important}}
@media (max-width:760px){.dato-icono.dato-icono--imagen{width:var(--gael-icono-estandar-movil)!important;height:var(--gael-icono-estandar-movil)!important;flex-basis:var(--gael-icono-estandar-movil)!important}}

/* V58 · Contacto: reducir ligeramente los tres iconos informativos */
.dato-icono.dato-icono--imagen{
  width:48px!important;
  height:48px!important;
  flex:0 0 48px!important;
}
@media (max-width:1024px){
  .dato-icono.dato-icono--imagen{
    width:46px!important;
    height:46px!important;
    flex-basis:46px!important;
  }
}
@media (max-width:760px){
  .dato-icono.dato-icono--imagen{
    width:44px!important;
    height:44px!important;
    flex-basis:44px!important;
  }
}


/* =========================================================
   V71 — Contacto: formulario más compacto y cierre inferior contenido
   ========================================================= */
@media (min-width: 961px) {
  .contacto-cuadricula {
    width: min(100%, 960px);
    margin-left: auto;
    margin-right: auto;
    grid-template-columns: minmax(300px, 350px) minmax(0, 520px);
    justify-content: center;
    align-items: start;
    gap: 22px;
  }

  .formulario-tarjeta {
    width: 100%;
    max-width: 520px;
    justify-self: center;
  }

  .formulario-titulo {
    padding: 20px 22px 17px;
    gap: 13px;
  }

  .formulario-icono {
    width: 46px;
    height: 46px;
    flex-basis: 46px;
  }

  .formulario-icono svg {
    width: 24px;
    height: 24px;
  }

  .formulario-titulo h2 {
    font-size: 24px;
  }

  #formularioContacto {
    padding: 20px 22px 24px;
  }

  .tipo-persona label span {
    min-height: 44px;
    padding: 8px 12px;
  }

  .grupo-campos {
    margin-top: 16px;
    padding-top: 14px;
  }

  fieldset + fieldset {
    margin-top: 16px;
  }

  .campos-grid {
    gap: 11px 12px;
  }

  input, select {
    min-height: 43px;
  }

  textarea {
    min-height: 84px;
  }

  .aceptacion {
    margin-top: 22px;
  }

  .error-aceptacion {
    display: block;
    margin-top: 2px;
  }

  .boton-enviar {
    width: auto !important;
    min-width: 172px;
    max-width: max-content;
    margin: 20px auto 0 !important;
    padding: 11px 24px !important;
    display: flex !important;
    justify-content: center;
  }

  .seguridad-formulario {
    margin-top: 10px;
  }
}

@media (min-width: 961px) and (max-width: 1180px) {
  .contacto-cuadricula {
    width: min(100%, 900px);
    grid-template-columns: minmax(280px, 325px) minmax(0, 500px);
    gap: 18px;
  }
  .formulario-tarjeta {
    max-width: 500px;
  }
}

@media (max-width: 960px) {
  .contacto-cuadricula {
    width: min(100%, 720px);
    margin-left: auto;
    margin-right: auto;
  }
  .formulario-tarjeta {
    width: min(100%, 620px);
    margin-inline: auto;
  }
  .aceptacion {
    margin-top: 22px;
  }
  .boton-enviar {
    width: auto !important;
    min-width: 168px;
    max-width: calc(100% - 32px);
    margin: 22px auto 0 !important;
    padding: 11px 22px !important;
    display: flex !important;
    justify-content: center;
  }
}

/* =========================================================
   V72 — Contacto: reducción VERTICAL real del formulario
   Objetivo: compactar el formulario sin recortar contenido.
   ========================================================= */
@media (min-width: 768px) {
  /* Cabecera más compacta */
  .formulario-tarjeta .formulario-titulo {
    padding: 14px 18px 12px !important;
    gap: 10px !important;
  }
  .formulario-tarjeta .formulario-icono {
    width: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    border-radius: 11px !important;
  }
  .formulario-tarjeta .formulario-icono svg {
    width: 21px !important;
    height: 21px !important;
  }
  .formulario-tarjeta .formulario-titulo > div > span {
    font-size: 10px !important;
  }
  .formulario-tarjeta .formulario-titulo h2 {
    margin: 2px 0 1px !important;
    font-size: 20px !important;
    line-height: 1.08 !important;
  }
  .formulario-tarjeta .formulario-titulo p {
    font-size: 11.5px !important;
    line-height: 1.25 !important;
  }

  /* Cuerpo: menos altura por espacios, no por ocultamiento */
  #formularioContacto {
    padding: 12px 18px 14px !important;
  }
  #formularioContacto fieldset {
    padding: 0 !important;
  }
  #formularioContacto fieldset + fieldset,
  #formularioContacto .grupo-campos {
    margin-top: 9px !important;
    padding-top: 8px !important;
  }
  #formularioContacto legend {
    margin-bottom: 6px !important;
    font-size: 11.5px !important;
    line-height: 1.2 !important;
  }
  #formularioContacto .tipo-persona > div {
    gap: 8px !important;
  }
  #formularioContacto .tipo-persona label span {
    min-height: 34px !important;
    padding: 5px 9px !important;
    font-size: 11px !important;
  }
  #formularioContacto .tipo-persona label svg {
    width: 15px !important;
    height: 15px !important;
  }

  #formularioContacto .campos-grid {
    gap: 7px 9px !important;
  }
  #formularioContacto .campos-grid label {
    gap: 3px !important;
  }
  #formularioContacto .campos-grid label > span {
    font-size: 10.8px !important;
    line-height: 1.18 !important;
  }
  #formularioContacto input:not([type="checkbox"]):not([type="radio"]),
  #formularioContacto select {
    min-height: 34px !important;
    height: 34px !important;
    padding: 5px 8px !important;
    font-size: 11.5px !important;
    line-height: 1.15 !important;
  }
  #formularioContacto textarea {
    min-height: 56px !important;
    height: 56px !important;
    padding: 7px 8px !important;
    font-size: 11.5px !important;
    line-height: 1.25 !important;
    resize: vertical !important;
  }
  #formularioContacto .campo-error {
    min-height: 0 !important;
    margin-top: 0 !important;
    font-size: 9.5px !important;
    line-height: 1.1 !important;
  }

  /* Parte inferior: checkbox y botón DENTRO de la tarjeta y con separación */
  #formularioContacto .aceptacion {
    margin-top: 13px !important;
    gap: 7px !important;
    align-items: flex-start !important;
    font-size: 10.5px !important;
    line-height: 1.25 !important;
  }
  #formularioContacto .aceptacion input[type="checkbox"] {
    margin-top: 1px !important;
    width: 15px !important;
    height: 15px !important;
    flex: 0 0 15px !important;
  }
  #formularioContacto .error-aceptacion {
    margin-top: 2px !important;
  }
  #formularioContacto .boton-enviar {
    min-width: 158px !important;
    width: auto !important;
    min-height: 38px !important;
    margin: 15px auto 0 !important;
    padding: 8px 20px !important;
    font-size: 12px !important;
    line-height: 1.1 !important;
  }
  #formularioContacto .seguridad-formulario {
    margin: 7px 0 0 !important;
    font-size: 9.5px !important;
    line-height: 1.2 !important;
  }
  #formularioContacto .seguridad-formulario svg {
    width: 13px !important;
    height: 13px !important;
    flex-basis: 13px !important;
  }
  #formularioContacto .formulario-resultado {
    margin-top: 6px !important;
  }
}

/* Tablet: conservar la compactación pero con controles cómodos al tacto */
@media (min-width: 768px) and (max-width: 960px) {
  #formularioContacto input:not([type="checkbox"]):not([type="radio"]),
  #formularioContacto select {
    min-height: 36px !important;
    height: 36px !important;
  }
  #formularioContacto textarea {
    min-height: 60px !important;
    height: 60px !important;
  }
  #formularioContacto .boton-enviar {
    min-height: 40px !important;
  }
}

/* =========================================================
   V73 — Contacto: proporciones finales de columnas y alineación inferior
   Solicitud: ampliar panel informativo, reducir formulario y alinear bases.
   ========================================================= */
@media (min-width: 1181px) {
  .contacto-cuadricula {
    width: min(100%, 930px) !important;
    grid-template-columns: minmax(0, 390px) minmax(0, 455px) !important;
    gap: 24px !important;
    justify-content: center !important;
    align-items: stretch !important;
  }

  .informacion-contacto {
    width: 100% !important;
    max-width: 390px !important;
    height: 100% !important;
    justify-self: stretch !important;
  }

  .formulario-tarjeta {
    width: 100% !important;
    max-width: 455px !important;
    height: 100% !important;
    justify-self: stretch !important;
    align-self: stretch !important;
  }
}

@media (min-width: 961px) and (max-width: 1180px) {
  .contacto-cuadricula {
    width: min(100%, 860px) !important;
    grid-template-columns: minmax(0, 350px) minmax(0, 438px) !important;
    gap: 20px !important;
    justify-content: center !important;
    align-items: stretch !important;
  }

  .informacion-contacto {
    width: 100% !important;
    max-width: 350px !important;
    height: 100% !important;
  }

  .formulario-tarjeta {
    width: 100% !important;
    max-width: 438px !important;
    height: 100% !important;
  }
}

/* Mantener el bloque inferior totalmente contenido dentro del formulario. */
@media (min-width: 768px) {
  #formularioContacto .aceptacion {
    margin-top: 11px !important;
  }
  #formularioContacto .boton-enviar {
    margin-top: 13px !important;
  }
  #formularioContacto .seguridad-formulario {
    margin-top: 6px !important;
    margin-bottom: 0 !important;
  }
}
