/* styles.css */
body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  padding: 0; 
  background: #f8f9fb;
  color: #222;
}

.hero {
  background-color: white;
  padding: 10px 40px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

/* Estilos base */
.hamburger {
  display: none;
  font-size: 2rem;
  background: none;
  border: none;
  color: #000;
  cursor: pointer;
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: white;
  padding: 10px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  flex-wrap: wrap;
}

.nav-links {
  display: flex;
  list-style: none;
  /*flex-direction: row-reverse;*/
  gap: 25px;
  margin: 0;
  padding: 0;
}

/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    margin-top: 1rem;
    background-color: #ffffff;
    padding: 1rem;
    border-top: 1px solid #ccc;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    margin: 10px 0;
  }
}

.logo-container {
  flex: 0 0 auto;
}

.logo {
  height: 50px;
}

.nav-links li a {
  text-decoration: none;
  font-weight: 500;
  color: #333;
  font-size: 1rem;
  transition: color 0.3s ease;
}

.nav-links li a:hover {
  color: #005aa7;
}

/* HOME SECTION */
.home-section {
  background: linear-gradient(135deg, #1096d0, #1ab3b1, #1eb8ab, #0ea8bc);
  height: 100vh;
  width: 100%;
  color: white;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.home-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  width: 100%;
  padding: 0 60px;
  box-sizing: border-box;
}

.home-text {
  flex: 1;
  max-width: 600px;
  z-index: 2;
}

.home-text h1 {
  font-size: 3rem;
  margin-bottom: 20px;
  line-height: 1.2;
}

.home-text p {
  font-size: 1.1rem;
  margin-bottom: 25px;
  max-width: 500px;
}

.btn {
  display: inline-block;
  background-color: white;
  color: #0ea8bc;
  padding: 12px 24px;
  text-decoration: none;
  font-weight: bold;
  border-radius: 6px;
  transition: background 0.3s, color 0.3s;
}

.btn:hover {
  background-color: #f0f0f0;
  color: #1096d0;
}

.home-img {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: relative;
  z-index: 1;
}

.home-img img {
  width: 80%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Para móviles */
@media screen and (max-width: 768px) {
  .home-section {
    flex-direction: column;
    height: auto;
    padding: 80px 20px 40px;
  }

  .home-content {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .home-img {
    justify-content: center;
  }

  .home-img img {
    width: 80%;
    max-height: 300px;
  }

  .home-section::after {
    height: 30px;
  }
}

/* SERVICIOS SECTION */
.servicios {
  background-color: #f6fafd;
  padding: 4rem 2rem;
}

.contenedor {
  max-width: 1200px;
  margin: 0 auto;
}

/* Introducción */

/* Recuadro general */
/* Ajustar recuadro para reducir espacio superior */
.recuadro {
  padding: 1rem 2rem 2rem 2rem; /* Menos espacio arriba */
  background-color: #f9fbfd;
  border-radius: 8px;
}

/* Ajustar título */
.recuadro h3 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  margin: 1rem 0 2rem; /* margen superior reducido */
}


/* Servicios */
.grid-servicios {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2.5rem;
}

.servicio {
  background: #ffffff;
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

/* Iconos */
.icono {
  background-color: #0ea8bc;
  padding: 1rem;
  border-radius: 25px;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.icono img {
  width: 50px;
  height: auto;
}

/* Titulares y texto */
.servicio h4 {
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.servicio p {
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.servicio ul {
  padding-left: 1.2rem;
  list-style-type: disc;
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Sección principal con fondo */
.standards-wrapper {
  background: url('../images/portada2.png') no-repeat center center;
  background-size: cover;
  padding: 0px 0px;
  position: relative;
}

/* Capa semitransparente para legibilidad */
.standards-overlay {
  background-color: rgba(231, 222, 243, 0.85);
  padding: 40px 30px;
  border-radius: 0px;
}

/* Contenedor del contenido */
.standards-section {
  max-width: 1200px;
  margin: 0 auto;
  color: #000;
}

/* Títulos */
.standards-section h2 {
  font-size: 2rem;
  text-align: center;
  margin-bottom: 30px;
}

.standards-section h3 {
  font-size: 1.3rem;
  margin-bottom: 20px;
}

/* Por qué certificarte */
.porque-section {
  margin-bottom: 40px;
}

.porque-section ul {
  list-style: none;
  padding-left: 20px;
}

.porque-section ul li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 25px;
  font-size: 0.95rem;
}

.porque-section ul li::before {
  content: "✔";
  position: absolute;
  left: 0;
  color: #25a18e;
  font-weight: bold;
}

/* Tarjetas */
.standards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.standard-card {
  background-color: #fff;
  border: 2px solid transparent;
  border-left-width: 6px;
  border-radius: 10px;
  padding: 16px;
  font-size: 0.95rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

.standard-card:hover {
  transform: translateY(-4px);
}

.standard-card h3 {
  font-size: 1.05rem;
  font-weight: bold;
  margin-bottom: 8px;
}

.standard-card .desc {
  font-weight: 600;
  margin-bottom: 8px;
}

.standard-card .details {
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Colores de borde */
.border-green  { border-color: #25a18e; }
.border-orange { border-color: #f7951e; }
.border-blue   { border-color: #0099ff; }
.border-purple { border-color: #9246ff; }

/* Responsivo */
@media (max-width: 768px) {
  .standards-section h2 {
    font-size: 1.5rem;
  }

  .porque-section ul li {
    font-size: 0.9rem;
  }

  .standard-card {
    padding: 14px;
  }
}

/* Proceso de certificación */
.intro-proceso .wrap{
  max-width: 900px; margin: 0 auto;
  color:#0f172a; font-size:1.05rem; line-height:1.7;
  padding: 12px 16px 4px;
}

.certification-flow {
  background: #f8f4ffc5;
  padding: 50px 30px;
  text-align: center;
}

.certification-flow h2 {
  color: #633abfff;
  font-size: 2rem;
  margin-bottom: 0px;
  animation: fadeInDown 1s ease;
}

.flow-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

/* Paso principal */
.flow-step {
  background: #fff;
  border: 3px solid #633abfff;
  border-radius: 12px;
  padding: 18px;
  width: 240px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin: 10px auto;
  animation: fadeInUp 0.7s ease;
}

.flow-step h3 {
  color: #5f259f;
  font-size: 1.1rem;
  margin: 10px 0;
}

.flow-step p {
  font-size: 0.92rem;
  color: #333;
}

.flow-step .icon {
  font-size: 2rem;
  color: #633abfff;
  margin-bottom: 8px;
}

.flow-step.success {
  border-color: #5fdd90;
  background-color: #ecfff2;
}

.flow-step.warning {
  border-color: #ff8a8a;
  background-color: #fff1f1;
}

.flow-step.optional {
  border-style: dashed;
  background-color: #f7f0ff;
}

/* Flechas */
.arrow-right, .arrow-down {
  width: 0;
  height: 0;
  margin: 10px auto;
}

.arrow-right {
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 15px solid #633abfff;
  animation: pulseArrow 1.2s infinite;
}

.arrow-down {
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-top: 15px solid #633abfff;
  animation: pulseArrowDown 1.2s infinite;
}

/* Rama con dos caminos */
.branch {
  display: flex;
  justify-content: center;
  gap: 60px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.branch-option {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.label {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 0.9rem;
}

.label.yes {
  color: #25a18e;
}

.label.no {
  color: #d9534f;
}

/* Animaciones */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseArrow {
  0% { transform: translateX(0); opacity: 0.5; }
  50% { transform: translateX(4px); opacity: 1; }
  100% { transform: translateX(0); opacity: 0.5; }
}

@keyframes pulseArrowDown {
  0% { transform: translateY(0); opacity: 0.5; }
  50% { transform: translateY(4px); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.5; }
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .branch {
    flex-direction: column;
    gap: 30px;
  }
}

.flow-note {
  margin-top: 3rem;
  background-color: #f8f4ffc7;
  border-left: 5px solid #4b1fa4;
  padding: 1.5rem 2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  border-radius: 8px;
  font-size: 1.05rem;
  color: #333;
  text-align: center;
}

.flow-note a {
  color: #4b1fa4;
  text-decoration: underline;
  font-weight: 600;
}

/* Estado base */
.proceso-paso{
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  will-change: transform;
}

/* Hover/focus: sutil “elevación” */
.proceso-paso:hover,
.proceso-paso:focus-within{
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0,0,0,.10);
  border-color: #7c3aed; /* o tu color de acento */
}

/* Icono animado opcional dentro del paso */
.proceso-paso .icon{
  transition: transform .18s ease;
}
.proceso-paso:hover .icon,
.proceso-paso:focus-within .icon{
  transform: scale(1.06) rotate(-2deg);
}

/* Flechita/indicador sutil (si usas flechas entre pasos) */
.proceso-flecha{
  opacity:.6; transition: opacity .18s ease, transform .18s ease;
}
.proceso-paso:hover + .proceso-flecha{ 
  opacity:1; transform: translateY(-2px);
}

/* Nosotros Section */
.quienes-somos {
  background: #fff;
  padding: 4rem 2rem;
}

.intro-nosotros {
  text-align: center;
  max-width: 850px;
  margin: 0 auto 1.0rem;
}

.intro-nosotros h2 {
  font-size: 2.4rem;
  color: #0c0c0c;
  margin-bottom: 1rem;
  font-weight: 700;
}

.intro-nosotros p {
  font-size: 1.1rem;
  color: #333;
  line-height: 1.7;
}

.intro {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0rem;
  text-align: left;
}

.intro-texto {
  flex: 1 1 40%;
}

.intro-texto h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.intro-descripcion {
  flex: 1 1 55%;
  font-size: 1rem;
}

.destacamos-nosotros h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2.5rem;
  color: #000;
}

.pilares {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 950px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .pilares {
    grid-template-columns: 1fr;
  }
}

.pilar {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #f4f8fb;
  padding: 1.5rem;
  border-left: 6px solid #12acb8;
  border-radius: 8px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.icono-pilar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.icono-pilar img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.contenido-pilar h4 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #0a0a0a;
}

.contenido-pilar p {
  font-size: 1rem;
  color: #444;
  line-height: 1.5;
}

.respaldo-institucional {
  margin-top: 4rem;
  text-align: center;
}

.respaldo-institucional h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #000;
  margin-bottom: 0.6rem;
}

.respaldo-institucional p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 1.5rem;
}

.logos-nosotros {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logos-nosotros img {
  height: 60px;
  transition: transform 0.3s ease;
}

.logos-nosotros img:hover {
  transform: scale(1.1);
}

.cierre-emocional {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 2px solid #2fa4c2;
  text-align: center;
  color: #0e2b3a;
  font-weight: 700;
  font-size: 1.1rem;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  margin-top: 50px;
}

/* Sección Costos */
.seccion-costos {
  background: #f0f8fb;
  padding: 72px 20px 40px;
  position: relative;
  display: flex;
  justify-content: center;
}

.contenedor-costos {
  max-width: 1300px;
  display: flex;
  gap: 40px;
  align-items: center; /* alineación vertical */
  flex-wrap: wrap;

  align-items:flex-start;
  margin:0 auto;
}

.imagen-costos img {
  max-width: 300px;
  width: 100%;
  height: auto;
  border-radius: 0; /* sin bordes redondeados */
  box-shadow: none;  /* sin sombra */
  object-fit: contain;
}

.contenido-costos {
  flex: 1;
  min-width: 300px;
}

.contenido-costos h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #111827;
}

.tabla-costos {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow:0 8px 24px rgba(0,0,0,.06);
}

.tabla-costos th{ background:#2fa4c2; color:#fff }

.tabla-costos th,
.tabla-costos td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.tabla-costos th {
  background-color: #2fa4c2;
  color: #fff;
}

.tabla-costos tr:last-child td {
  border-bottom: none;
}

.nota-costos {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 12px;
}

/* Banda con slogan centrado (separador visual) */
.banda-slogan{
  display:flex; justify-content:center; align-items:center;
  padding: 20px 10px 30px;          /* espacio antes de Contacto */
}
.banda-slogan img{
  max-width:min(900px, 92vw);
  width:100%;
  height:auto;
  opacity:.9;
}

/* Sección Contacto */
/*
-- Opción de diseño 1 --
.seccion-contacto {
  background-color: #ffffff;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
}

.contenedor-contacto {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  min-height: 600px;
}

.imagen-contacto {
  flex: 1;
  max-width: 360px;
  height: auto;
  display: flex;
}

.imagen-contacto img {
  width: 100%;
  height: 100%;
  border-radius: 2px;
  object-fit: cover;
}

.formulario-contacto {
  flex: 1;
  min-width: 320px;
}

.formulario-contacto h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: 700;
  color: #111827;
}

.formulario-contacto form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.formulario-contacto label {
  display: flex;
  flex-direction: column;
  font-size: 0.95rem;
  color: #374151;
}

.formulario-contacto input,
.formulario-contacto select {
  margin-top: 6px;
  padding: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.95rem;
}

.formulario-contacto button {
  background-color: #289ac2ff;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.formulario-contacto button:hover {
  background-color: #2fa5c2da;
}

.formulario-contacto a {
  color: #289ac2ff;
  text-decoration: underline;
  font-size: 0.9rem;
}*/

/* =======================
   ESTILOS CONTACTO (NUEVO)
======================= */
.contacto-hero{
  background: linear-gradient(180deg, #fefefe 0%, #f5f7fa 100%);
  padding: clamp(48px, 7vw, 84px) 20px;
  color:#fff;
}
.contacto-wrap{
  max-width:1200px; margin:0 auto;
  display:grid; grid-template-columns: 1.1fr 1.2fr; gap:32px;
  align-items:stretch;
}
@media (max-width: 980px){
  .contacto-wrap{ grid-template-columns: 1fr; }
}

/* Columna izquierda */
.contacto-info{
  background: #175b8b;
  border: 1px solid rgba(255,255,255,.16);
  backdrop-filter: blur(6px);
  border-radius: 16px;
  padding: 24px;
}
.contacto-info h2{
  margin:0 0 6px; font-size: clamp(24px,3vw,32px); font-weight:800;
}
.contacto-sub{ margin:0 0 16px; color:#eaf7fb; max-width:50ch; }

.contacto-lista{ list-style:none; padding:0; margin:0 0 14px; display:grid; gap:10px; }
.contacto-lista li{ display:grid; grid-template-columns: 110px 1fr; gap:10px; align-items:center; }
.ci-etiqueta{ opacity:.85; font-weight:600; }
.ci-valor a, .ci-valor{ color:#fff; text-decoration:none; }
.ci-valor a:hover{ text-decoration:underline; }

.contacto-cta{
  display:flex; gap:10px; flex-wrap:wrap;
  justify-content:center;            /* ← centrados */
  margin-top:12px;
}

/* Quitar subrayado a los enlaces-botón en todos los estados */
.contacto-cta a{
  text-decoration:none !important;   /* ← sin subrayado */
}

.btn-sec{
  background:#00a6c8; color:#fff; border:none; border-radius:10px; padding:10px 14px;
  font-weight:700; box-shadow:0 10px 24px rgba(0,166,200,.28);display:inline-block;
}
.btn-ghost{
  background:transparent; color:#fff; border:1px solid rgba(255,255,255,.5);
  border-radius:10px; padding:10px 14px; font-weight:700;display:inline-block;
}
.contacto-sello{ display:flex; align-items:center; gap:10px; margin-top:18px; }
.contacto-sello img{ width:20%; height:auto;  }

/* Card del formulario */
.contacto-card{
  background: #ffffff;
  color:#0f172a;
  border-radius: 16px;
  padding: 22px;
  border:1px solid #e6edf3;
  box-shadow: 0 20px 60px rgba(0,0,0,.25);
}
.contacto-card h3{
  margin:0 0 6px; font-size: clamp(22px,2.8vw,28px); font-weight:900; color:#102a3a;
}
.contacto-card form{ display:flex; flex-direction:column; gap:12px; }
.grid-2{ display:grid; grid-template-columns: 1fr 1fr; gap:12px; }
@media (max-width:700px){ .grid-2{ grid-template-columns:1fr; } }

.contacto-card label{ display:flex; flex-direction:column; font-weight:600; }
.contacto-card input,
.contacto-card select,
.contacto-card textarea{
  margin-top:6px; padding:11px 12px; border:1px solid #cbd5e1; border-radius:10px;
  font-size:15px; background:#fff; width:100%; box-sizing:border-box;
}
.contacto-card textarea{ resize:vertical; }

.btn-prim{
  background:#0e9cc3; color:#fff; border:none; border-radius:12px; padding:12px 16px;
  font-weight:800; cursor:pointer; transition: transform .05s ease, opacity .2s ease;
  box-shadow: 0 5px 5px rgba(14,156,195,.30);
}
.btn-prim:hover{ opacity:.95 }
.btn-prim:active{ transform: scale(.98); }

.aviso-priv{ font-size:.9rem; color:#475569; text-align: center;}
.aviso-priv a{ color:#0e9cc3; text-decoration:underline; }


/* POPUP */
.popup {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #e3f0f2;
  color: #000;
  padding: 16px 24px;
  border-radius: 8px;
  font-size: 1rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.popup.mostrar {
  opacity: 1;
  pointer-events: auto;
}

/* Footer */

footer {
  background: #fff;
  color: #000;
  padding: 30px 20px;
  font-size: 0.9rem;
}

.footer-contenido {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  text-align: center;
}

.footer-contenido p {
  margin: 0;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-links a {
  color: #000;
  text-decoration: none;
  font-weight: 500;
  transition: opacity 0.2s ease-in-out;
}

.footer-links a:hover {
  opacity: 0.8;
}

.footer-links img {
  width: 20px;
  height: 20px;
}


.nota-descuento {
  margin-top: 20px;
  background-color:  #fbfeff;
  border-left: 4px solid #12acb8;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

.nota-descuento strong {
  color: #111827;
}

/* QUEJAS Y SUGERENCIAS */
 /* Banner */
.qs-banner{
  background: linear-gradient(135deg, #004677ff, #0ea8bc, #004677ff, #004677ff);
  color:#fff;
  border-radius: 0;
  padding: clamp(20px, 5vw, 36px);
  margin: 0;
}
.qs-contenido{
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  max-width: 1160px; margin: 0 auto;
}
.qs-texto{flex:1; min-width: 280px;}
.qs-texto h2{margin:0 0 8px; font-size:clamp(22px, 3vw, 32px); font-weight:700;}
.qs-descripcion{margin:0 0 16px; font-size:clamp(14px, 1.6vw, 16px); line-height:1.6;}
.qs-boton{
  background:#004677ff; color:#fff; border:none; border-radius:10px; padding:12px 18px;
  font-weight:600; cursor:pointer; transition:transform .05s ease, opacity .2s ease;
  box-shadow:0 6px 16px rgba(0,0,0,.18);
}
.qs-boton:hover{opacity:.95}
.qs-boton:active{transform:scale(.98)}
.qs-imagen{flex:0 0 360px; display:flex; justify-content:flex-end}
.qs-imagen img{max-width:40%; height:auto; }

@media (max-width: 900px){
  .qs-contenido{flex-direction:column; text-align:center}
  .qs-imagen{flex-basis:auto; justify-content:center}
}

/* Modal */
.qs-modal[hidden]{display:none}
.qs-modal{
  position:fixed; inset:0; z-index:1000; display:grid; place-items:center;
}
.qs-modal-overlay{ position:absolute; inset:0; background:rgba(0,0,0,.45); }

.qs-modal-contenido{
  position:relative; z-index:1; background:#fff; color:#222;
  width:min(820px, 92vw);
  max-height:90vh;                 /* evita rebasar el alto del viewport */
  overflow-y:auto;                 /* scroll interno si se necesita */
  border-radius:14px;
  padding:22px;
  box-shadow:0 20px 60px rgba(0,0,0,.35);
  scrollbar-width:thin;            /* Firefox */
}
/* Scrollbar WebKit/Chromium (opcional estético) */
.qs-modal-contenido::-webkit-scrollbar{width:8px}
.qs-modal-contenido::-webkit-scrollbar-thumb{background:#cfd6de; border-radius:8px}

.qs-modal-cerrar{
  position:absolute; top:10px; right:10px; width:38px; height:38px;
  border:none; border-radius:50%; background:#f1f3f5; cursor:pointer; font-size:20px;
}
.qs-modal-desc{margin-top:4px; color:#475569}

/* Formulario */
.qs-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* columnas adaptativas */
  gap:14px;
}
.qs-full{grid-column:1 / -1;}
.qs-field label{display:block; font-weight:600; margin-bottom:6px;}

.qs-field input[type="text"],
.qs-field input[type="email"],
.qs-field input[type="tel"],
.qs-field input[type="file"],
.qs-field select,
.qs-field textarea{
  width:100%;
  max-width:100%;                 /* evita desbordes */
  box-sizing:border-box;          /* padding no suma al ancho */
  border:1px solid #cfd6de; border-radius:8px;
  padding:10px 12px; font-size:15px; background:#fff;
}
.qs-field textarea{resize:vertical}

.qs-check{display:flex; gap:10px; align-items:flex-start}
.qs-check a{color:#004677ff; text-decoration:underline}
.qs-error{display:block; color:#b00020; font-size:12px; min-height:16px; margin-top:4px}

.qs-acciones{display:flex; justify-content:flex-end; gap:10px; margin-top:10px}
.qs-btn-prim{background:#004677ff; color:#fff; border:none; padding:10px 16px; border-radius:8px; cursor:pointer; font-weight:600}
.qs-btn-sec{background:#e9edf1; color:#1f2937; border:none; padding:10px 16px; border-radius:8px; cursor:pointer}
.qs-exito{margin-top:10px; color:#0f8b3d; font-weight:600}

/* Pantallas pequeñas */
@media (max-width: 680px){
  .qs-grid{grid-template-columns:1fr;} /* (seguirá activo por auto-fit, pero aseguramos) */
  .qs-modal-contenido{
    width:95vw;
    max-height:95vh;
    padding:16px;
  }
}