/* =========================
   RESET BÁSICO
========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* =========================
   BASE HTML / BODY
========================= */
html, body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  display: flex;
  flex-direction: column;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Ubuntu, sans-serif;
  color: #111827;
  background-color: #ffffff;
  line-height: 1.75;
  font-size: 18px;
}

/* =========================
   MAIN (CLAVE PARA FOOTER)
========================= */
main {
  flex: 1;
}

/* =========================
   TIPOGRAFÍA
========================= */
h1, h2, h3 {
  letter-spacing: -0.02em;
}

p {
  max-width: 65ch;
}


/* =========================
   VARIABLES
========================= */
:root {
  --green: #16a34a;
  --green-dark: #15803d;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
}

/* =========================
   CONTENEDORES
========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* =========================
   HEADER
========================= */
.header {
  border-bottom: 1px solid var(--gray-200);
  background: #fff;
}

.header-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo img {
  height: 56px;
  width: auto;
}


.nav {
  display: flex;
  gap: 24px;
}

.nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--gray-700);
  transition: color 0.2s ease;
}

.nav a:hover {
  color: var(--green);
}

/* =========================
   BOTONES
========================= */
.btn {
  display: inline-block;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-primary {
  background: var(--green);
  color: #fff;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn-outline {
  border: 1px solid var(--green);
  color: var(--green);
  background: transparent;
}

.btn-outline:hover {
  background: #ecfdf5;
}

/* =========================
   HERO
========================= */
.hero {
  padding: 64px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero-text h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 16px;
}

.hero-text p {
  font-size: 16px;
  color: var(--gray-600);
  max-width: 520px;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-image {
  background: var(--gray-100);
  border-radius: 20px;
  overflow: hidden;
}

.hero-image img {
  width: 100%;
  height: auto;
  display: block;
}
/* HERO ACTIONS */
.hero-actions {
  display: flex;
  gap: 14px;
}

/* MOBILE */
@media (max-width: 768px) {
  .hero-actions {
    flex-direction: column;
    align-items: center;
    margin-top: 24px;
  }

  .hero-actions .btn {
    width: 100%;
    max-width: 300px;
    text-align: center;
  }
  .hero {
  padding: 20px 0;
}
}

/* =========================
   SECCIÓN ACCIONES
========================= */
.actions {
  background: var(--gray-50);
  padding: 64px 0;
}

.actions h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 40px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.card {
  background: #fff;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  transition: box-shadow 0.2s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}

.card h3 {
  font-size: 18px;
  margin-bottom: 10px;
}

.card p {
  color: var(--gray-600);
  margin-bottom: 16px;
}

.card a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
}

.card a:hover {
  text-decoration: underline;
}

/* =========================
   FOOTER
========================= */
.footer {
  background: #0f172a;
  color: #cbd5f5;
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.footer h4 {
  color: #fff;
  margin-bottom: 12px;
  font-size: 14px;
}

.footer p,
.footer li {
  font-size: 13px;
  color: #94a3b8;
}

.footer ul {
  list-style: none;
}

.footer a {
  color: #94a3b8;
  text-decoration: none;
}

.footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: 32px;
  padding-top: 16px;
  font-size: 12px;
  color: #64748b;
  text-align: center;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-text h1 {
    font-size: 34px;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 500px) {
  .nav {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   POSTULACIONES
========================= */
.bg-light {
  background: var(--gray-50);
}

.postulaciones {
  padding: 48px 0;
}

.postulaciones-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}

/* SIDEBAR */
.sidebar {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 96px;
  height: fit-content;
  box-shadow: 0 6px 20px rgba(0,0,0,0.04);
}

.sidebar h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: var(--gray-900);
}

.sidebar-nav a {
  display: block;
  padding: 8px 10px;
  font-size: 13.5px;
  color: var(--gray-700);
  text-decoration: none;
  border-radius: 6px;
}

.sidebar-nav a:hover {
  background: var(--gray-100);
  color: var(--green);
}

@media (max-width: 900px) {
  .sidebar {
    display: none;
  }
}

/* BENEFICIOS */
.benefits-header h1 {
  font-size: 34px;
  font-weight: 700;
}


.benefits-header p {
  color: var(--gray-600);
  margin: 8px 0 24px;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* TARJETAS */
.benefit-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 16px;
  overflow: visible; /* ✅ CLAVE */
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.benefit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.06);
}

.benefit-header {
  display: flex;
  align-items: center;
  gap: 8px;
   padding: 18px 20px;
  background: var(--gray-100);
  border-top: 4px solid var(--green);
}

.benefit-header span {
  width: 10px;
  height: 10px;
  background: var(--green);
  border-radius: 50%;
}

.benefit-header h3 {
  font-size: 19px;
  font-weight: 600;
}

.benefit-card ul {
  padding: 24px 28px 28px;
  padding-left: 32px;
}


.benefit-card li {
  margin-bottom: 12px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--gray-700);
}


/* RESPONSIVE */
@media (max-width: 1000px) {
  .postulaciones-grid {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: relative;
    top: 0;
  }

  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .benefits-grid {
    grid-template-columns: 1fr;
  }
}
/* === POSTULACIONES: SOLO 2 TARJETAS === */
.benefits-grid.two-columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 920px;
  margin: 32px auto 0;
}

/* Responsive */
@media (max-width: 768px) {
  .benefits-grid.two-columns {
    grid-template-columns: 1fr;
  }
}
.benefits {
  padding-bottom: 80px;
  max-width: 760px;
}
.sidebar-nav a.active {
  background: #ecfdf5;
  color: var(--green);
  font-weight: 500;
  border-left: 3px solid var(--green);
}
.sidebar-nav a.active {
  background: #ecfdf5;
  color: var(--green);
  font-weight: 500;
  border-left: 3px solid var(--green);
}
.benefit-subtitle {
  font-size: 18px;
  font-weight: 500;
  color: var(--gray-600);
  margin-top: 6px;
}
.benefit-section p {
  font-size: 17px;
  line-height: 1.8;
  color: var(--gray-700);
  margin-bottom: 16px;
}
.benefit-section p strong {
  color: var(--gray-900);
}


.benefit-section {
  margin-bottom: 48px;
}

.benefit-section h3 {
  font-size: 22px;
  margin-bottom: 16px;
}

.benefit-highlight {
  background: #fff1f1;
  border-left: 6px solid #f87171;
  padding: 28px 32px;
  border-radius: 12px;
  margin: 48px 0;
}

.benefit-highlight h3 {
  margin-bottom: 12px;
}


.benefit-info-box {
  background: #e6f4f7;
  border-left: 6px solid #38bdf8;
  padding: 32px;
  border-radius: 14px;
  margin: 56px 0;
}

.benefit-info-box h3 {
  margin-bottom: 14px;
}


.doc-list {
  list-style: none;
  padding-left: 0;
}

.doc-list li {
  padding: 10px 14px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  margin-bottom: 10px;
  font-size: 15px;
}

.benefit-section ul,
.benefit-section ol {
  margin-left: 18px;
  margin-top: 16px;
}

.benefit-section li {
  margin-bottom: 12px;
  line-height: 1.7;
  color: var(--gray-700);
}
.sidebar-nav hr {
  border: none;
  border-top: 1px solid var(--gray-200);
  margin: 12px 0;
}
.benefit-links {
  list-style: none;
  padding-left: 0;
}

.benefit-links li {
  margin-bottom: 12px;
}

.benefit-links a {
  display: block;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  background: #fff;
  transition: all 0.2s ease;
}

.benefit-links a:hover {
  border-color: var(--green);
  color: var(--green);
  background: #ecfdf5;
}
.benefit-links small {
  display: block;
  margin-top: 4px;
  font-size: 14px;
  color: var(--gray-600);
}
.sidebar-title {
  display: block;
  margin-top: 12px;
  font-weight: 500;
  font-size: 14px;
  color: var(--gray-900);
}

.sidebar-submenu {
  list-style: none;
  padding-left: 12px;
  margin: 6px 0 14px;
}

.sidebar-submenu li {
  margin-bottom: 6px;
}

.sidebar-submenu a {
  font-size: 13px;
  color: var(--gray-600);
  text-decoration: none;
}

.sidebar-submenu a:hover {
  color: var(--green);
}
.benefit-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 32px;
}

.benefit-table th,
.benefit-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--gray-200);
}

.benefit-table th {
  background: var(--gray-100);
  text-align: left;
}
section[id] {
  scroll-margin-top: 120px;
}
.benefit-table td:last-child {
  font-weight: 600;
  color: var(--gray-900);
}

.benefit-table tr:hover {
  background: var(--gray-50);
}
.benefit-info-box p {
  font-size: 17px;
  font-weight: 500;
}
.breadcrumbs {
  font-size: 14px;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.breadcrumbs a {
  color: var(--gray-500);
  text-decoration: none;
  font-weight: 400;
}

.breadcrumbs a:hover {
  color: var(--green);
  text-decoration: underline;
}

.breadcrumbs span {
  color: var(--gray-400);
}

.breadcrumbs a + span,
.breadcrumbs span + a {
  margin: 0 6px;
}
@media (max-width: 395px) {
  .header-inner {
    gap: 12px;
  }

  .btn-primary {
    padding: 8px 12px;
    font-size: 13px;
    white-space: nowrap;
  }

  .logo img {
    height: 48px;
  }
}
/* =========================
   MENÚ MOBILE (DRAWER PROFESIONAL)
========================= */

/* Overlay oscuro elegante */
.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45); /* azul oscuro elegante */
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 9999;
}

.mobile-menu-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

/* Panel del menú */
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 72%;
  max-width: 360px;
  background: #ffffff;
  z-index: 10000;

  padding: 24px;
  display: flex;
  flex-direction: column;

  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  box-shadow: -8px 0 24px rgba(0,0,0,0.15);
}

.mobile-menu.active {
  transform: translateX(0);
}

/* Botón cerrar */
.menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--gray-600);
}

/* Navegación */
.mobile-menu ul {
  list-style: none;
  margin: 48px 0;
  padding: 0;
}

.mobile-menu li {
  padding: 12px 0;
}

.mobile-menu li:not(:last-child) {
  border-bottom: 1px solid var(--gray-100);
}

.mobile-menu a {
  font-size: 18px;
  text-decoration: none;
  color: var(--gray-900);
  display: block;
}

/* CTA */
.mobile-cta {
  margin-top: auto;
  text-align: center;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {
  .nav {
    display: none;
  }

  .menu-toggle {
    display: block;
  }
}
@media (max-width: 900px) {
  .desktop-cta {
    display: none;
  }
}
/* =========================
   ICONO MENÚ HAMBURGUESA
========================= */

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-900);
  margin: 5px 0;
  border-radius: 2px;
}

/* Mostrar solo en mobile */
@media (max-width: 900px) {
  .menu-toggle {
    display: block;
  }
}
/* =========================
   CONTENEDORES DE CONTENIDO
========================= */

/* Card base para secciones */
.benefit-section {
  background: #ffffff;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 32px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* Títulos dentro de cards */
.benefit-section h3 {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 22px;
}

/* Texto */
.benefit-section p {
  margin-bottom: 16px;
  color: #374151;
}

/* Listas */
.benefit-section ul,
.benefit-section ol {
  padding-left: 20px;
  margin-bottom: 0;
}

.benefit-section li {
  margin-bottom: 10px;
}

/* =========================
   BLOQUE DESTACADO
========================= */

.benefit-highlight {
  background: linear-gradient(180deg, #eaf7ef, #f6fbf8);
  border-left: 5px solid var(--green);
  border-radius: 16px;
  padding: 32px;
  margin: 40px 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

/* =========================
   TABLAS
========================= */

.benefit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.benefit-table thead th {
  background: #f3f4f6;
  padding: 14px;
  text-align: left;
  font-weight: 600;
}

.benefit-table td {
  padding: 14px;
  border-top: 1px solid #e5e7eb;
  vertical-align: top;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {
  .benefit-section,
  .benefit-highlight {
    padding: 22px;
    border-radius: 14px;
  }
}
.financiamiento-imagen {
  text-align: center;
  margin-top: 1.5rem;
}

.financiamiento-imagen img {
  max-width: 100%;
  height: auto;
}

.financiamiento-imagen figcaption {
  font-size: 0.9rem;
  color: #555;
  margin-top: 0.5rem;
}
.benefit-image {
  margin-top: 1rem;
}

.benefit-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

.benefit-image figcaption {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #555;
}
.doc-list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.doc-list i.fa-file-pdf {
  color: #d32f2f; /* rojo PDF */
  font-size: 1.1rem;
}
/* =========================
   ACTION CARDS LIMPIAS
   ========================= */

:root {
  --brand-green: #16a34a;
  --brand-green-soft: #dcfce7;
}

/* GRID */
.home-actions {
  margin-top: 3rem;
}

/* CARD */
.action-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f1f1f1;
  box-shadow: 0 12px 30px rgba(0,0,0,.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.action-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px rgba(0,0,0,.12);
   border-color: #bbf7d0;
}

/* LINK CONTENEDOR (NEUTRO TOTAL) */
.card-link {
  display: block;
  padding: 2.5rem 2.2rem;
  text-align: left;
  text-decoration: none;
  
  margin-left: 0;
}

/* 🔴 ANULA COMPLETAMENTE ESTILOS DE LINK */
.card-link,
.card-link * {
  
  text-decoration: none !important;
}

/* ICONO */
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: var(--brand-green-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-icon i {
  font-size: 1.3rem;
  color: var(--brand-green);
}

/* TEXTO */
.action-card h3 {
  font-size: 1.25rem;
  margin-bottom: .5rem;
  color: #1f2937;
  font-weight: 700;
}

.action-card p {
  color: #4b5563;
  line-height: 1.5;
}

/* CTA VISUAL (NO LINK REAL) */
.card-cta {
  margin-top: 1rem;
  font-weight: 600;
  color: var(--brand-green);
}

/* CURSOR */
.action-card {
  cursor: pointer;
}
/* =========================
   CONTACTO
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  margin-top: 40px;
}

/* FORMULARIO */
.contact-form-wrapper {
  background: #fff;
  padding: 32px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
  box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 14px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  font-size: 14px;
  font-family: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form button {
  margin-top: 16px;
}

/* MENSAJES */
.form-success {
  background: #ecfdf5;
  color: var(--green);
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

.form-error {
  background: #fff1f2;
  color: #b91c1c;
  padding: 12px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* INFO */
.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-card {
  background: #fff;
  padding: 28px;
  border-radius: 16px;
  border: 1px solid var(--gray-200);
}

.contact-info-card h3 {
  margin-bottom: 14px;
}

.contact-info-card p {
  margin-bottom: 12px;
  line-height: 1.6;
}

/* MAPA */
.contact-map iframe {
  width: 100%;
  height: 320px;
  border: none;
  border-radius: 16px;
}

/* MOBILE */
@media (max-width: 768px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   CONTACTO – ESTILO PRO
========================= */

.contact-section {
  padding: 80px 0;
}

/* GRID */
.contact-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
}

/* ---------- FORMULARIO ---------- */

.contact-form-wrapper {
  background: #fff;
  padding: 40px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.02);
}

.contact-form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  display: block;
  margin-bottom: 18px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  margin-top: 8px;
  padding: 14px 14px;
  border-radius: 10px;
  border: 1px solid var(--gray-200);
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  transition: border-color .2s ease, box-shadow .2s ease;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(22,163,74,0.12);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 24px;
  padding: 14px 24px;
  font-size: 15px;
}

/* ---------- MENSAJES ---------- */

.form-success,
.form-error {
  padding: 14px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
}

.form-success {
  background: #ecfdf5;
  color: var(--green-dark);
}

.form-error {
  background: #fff1f2;
  color: #b91c1c;
}

/* ---------- INFO ---------- */

.contact-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.contact-info-card {
  background: #fff;
  padding: 36px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.02);
}

.contact-info-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
}

.contact-info-card p {
  font-size: 15px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 14px;
}

/* ---------- MAPA ---------- */

.contact-map {
  background: #fff;
  padding: 14px;
  border-radius: 20px;
  border: 1px solid var(--gray-200);
  box-shadow:
    0 10px 25px rgba(0,0,0,0.04),
    0 2px 8px rgba(0,0,0,0.02);
}

.contact-map iframe {
  width: 100%;
  height: 300px;
  border: none;
  border-radius: 14px;
}

/* ---------- BOTÓN MAPA ---------- */

.contact-map .btn {
  margin-top: 14px;
  font-weight: 500;
}

/* ---------- MOBILE ---------- */

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form-wrapper,
  .contact-info-card,
  .contact-map {
    padding: 28px;
    border-radius: 18px;
  }
}
/* =========================
   CONTACTO – MOBILE PRO
========================= */

@media (max-width: 768px) {

  /* Contenedor general */
  .contact-section {
    padding: 48px 0 64px;
  }

  /* Título */
  .contact-section h1 {
    font-size: 28px;
    line-height: 1.2;
    margin-bottom: 12px;
  }

  /* Texto introductorio */
  .contact-section > p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 28px;
  }

  /* GRID */
  .contact-grid {
    margin-top: 24px;
    gap: 32px;
  }

  /* FORMULARIO */
  .contact-form-wrapper {
    padding: 28px 22px;
    border-radius: 18px;
  }

  .contact-form label {
    font-size: 13px;
    margin-bottom: 16px;
  }

  .contact-form input,
  .contact-form select,
  .contact-form textarea {
    padding: 14px 14px;
    font-size: 16px; /* evita zoom iOS */
    border-radius: 12px;
  }

  .contact-form textarea {
    min-height: 110px;
  }

  /* BOTÓN */
  .contact-form button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border-radius: 14px;
    margin-top: 20px;
  }

  /* INFO */
  .contact-info-card {
    padding: 24px;
    border-radius: 18px;
  }

  .contact-info-card h3 {
    font-size: 18px;
    margin-bottom: 16px;
  }

  .contact-info-card p {
    font-size: 14.5px;
    margin-bottom: 12px;
  }

  /* MAPA */
  .contact-map {
    padding: 10px;
    border-radius: 18px;
  }

  .contact-map iframe {
    height: 240px;
    border-radius: 14px;
  }

  .contact-map .btn {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    font-size: 15px;
  }

}
/* =========================
   FIX ESPACIADO MOBILE CONTACTO
========================= */

@media (max-width: 768px) {

  /* Más aire lateral general */
  .contact-section.container {
    padding-left: 20px;
    padding-right: 20px;
  }

  /* Evita que las cards toquen el borde visual */
  .contact-form-wrapper,
  .contact-info-card,
  .contact-map {
    margin-left: 5px;
    margin-right: 5px;
  }

}
@media (max-width: 768px) {

  /* Fondo suave detrás para contraste */
  main.bg-light {
    background: linear-gradient(
      180deg,
      #f9fafb 0%,
      #f3f4f6 100%
    );
  }

}
/* =========================
   CONTACTO – TÍTULO MOBILE
========================= */

@media (max-width: 768px) {

  /* Centrar título y texto */
  .contact-section h1 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .contact-section > p {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
    max-width: 320px; /* mejora lectura */
  }

}
.contact-form button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}
/* =========================
   MÁS INFORMACIÓN (CIERRE CONTENIDO)
========================= */

.more-info {
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--gray-200);
}

/* Contenedor alineado al contenido */
.more-info-inner {
  max-width: 100%;
}

/* Título discreto, tipo epílogo */
.more-info h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 16px;
}

/* GRID PROPORCIONAL */
.more-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* ITEM BASE */
.info-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* ICONOS */
.info-item > i {
  font-size: 20px;
  color: var(--green);
  margin-top: 2px;
}

/* TEXTO */
.info-item strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.info-item a {
  font-size: 15px;
  font-weight: 500;
  color: var(--green);
  text-decoration: none;
}

.info-item a:hover {
  text-decoration: underline;
}

/* COMPARTIR */
.share-buttons {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.share-buttons a {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gray-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-700);
  font-size: 14px;
  transition: all 0.2s ease;
}

.share-buttons a:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-1px);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 640px) {
  .more-info-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .more-info {
    margin-top: 20px;
    padding-top: 16px;
  }

  .more-info h3 {
    font-size: 15px;
    margin-bottom: 12px;
  }
}


/* =========================
   DS49 - Paso a paso
========================= */

.ds49-steps {
  padding: 38px 0;
}

.ds49-steps__header {
  margin-bottom: 18px;
}

.ds49-steps__header h2 {
  margin: 0 0 6px;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.15;
  color: #0f2f1e;
}

.ds49-steps__subtitle {
  margin: 0;
  color: #3f5a4d;
  max-width: 72ch;
}

.ds49-steps__grid {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  position: relative;
}

/* línea tipo "timeline" (solo desktop) */
@media (min-width: 900px) {
  .ds49-steps__grid::before {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    top: 46%;
    height: 2px;
    background: rgba(22, 163, 74, 0.18);
  }
}

/* Card */
.ds49-step {
  background: #fff;
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 16px;
  padding: 16px 16px 14px;
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.06);
  position: relative;
  overflow: hidden;
}

.ds49-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 10%, rgba(22, 163, 74, 0.10), transparent 55%);
  pointer-events: none;
}

.ds49-step__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #14532d;
  border: 1px solid rgba(22, 163, 74, 0.18);
}

.ds49-step__icon {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin: 12px 0 10px;
  display: grid;
  place-items: center;
  background: rgba(22, 163, 74, 0.10);
  border: 1px solid rgba(22, 163, 74, 0.16);
  color: #16a34a;
}

.ds49-step__icon svg {
  width: 28px;
  height: 28px;
}

.ds49-step__title {
  margin: 0 0 6px;
  font-size: 16px;
  line-height: 1.25;
  color: #0f2f1e;
}

.ds49-step__text {
  margin: 0;
  color: #3f5a4d;
  line-height: 1.55;
  font-size: 14px;
}

.ds49-step__text strong {
  color: #0f2f1e;
}

/* Responsive: 2 columnas */
@media (max-width: 899px) {
  .ds49-steps__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Responsive: 1 columna (mobile) */
@media (max-width: 560px) {
  .ds49-steps {
    padding: 28px 0;
  }
  .ds49-steps__grid {
    grid-template-columns: 1fr;
  }
}
/* =========================
   LI cliqueable WhatsApp
========================= */

.li-whatsapp {
  list-style: none;
  margin: 0;
  padding: 0;
}

.li-whatsapp a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;

  padding: 14px 16px;
  border-radius: 10px;

  text-decoration: none;
  color: inherit;

  background: #f8faf9;
  border: 1px solid rgba(0, 0, 0, 0.06);

  transition: background 0.25s ease, box-shadow 0.25s ease;
}

.li-whatsapp a:hover {
  background: #ecfdf3;
  box-shadow: 0 6px 18px rgba(22, 163, 74, 0.15);
}

/* Texto */
.li-whatsapp .li-text {
  flex: 1;
}

/* Icono WhatsApp */
.li-whatsapp .li-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 34px;
  height: 34px;
  border-radius: 50%;

  background: #25d366;
  color: #fff;
  font-size: 18px;

  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

/* Mostrar icono al hover */
.li-whatsapp a:hover .li-icon {
  opacity: 1;
  transform: translateX(0);
}

/* Mobile: icono siempre visible */
@media (max-width: 768px) {
  .li-whatsapp .li-icon {
    opacity: 1;
    transform: none;
  }
}
#requisitos ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

#requisitos li {
  display: flex;
  gap: 12px;
  align-items: flex-start;

  padding: 14px 16px;
  border-radius: 12px;

  background: #f9fafb;
  border: 1px solid rgba(0,0,0,0.06);

  line-height: 1.55;
}

#requisitos li::before {
  content: "✔";
  flex-shrink: 0;

  width: 24px;
  height: 24px;
  border-radius: 50%;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  background: #e8f7ef;
  color: #16a34a;
  font-weight: 700;
  font-size: 14px;
}

/* Tooltip WhatsApp */
.whatsapp-tooltip {
  position: fixed;
  right: 90px;
  bottom: 32px;
  background: #ffffff;
  color: #1f2937;
  padding: 14px 16px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
  font-size: 14px;
  line-height: 1.4;
  max-width: 260px;
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.35s ease;
  z-index: 999;
  pointer-events: none;
}

.whatsapp-tooltip strong {
  color: #16a34a; /* verde profesional */
  font-weight: 600;
}

/* Mostrar tooltip */
.whatsapp-tooltip.show {
  opacity: 1;
  transform: translateY(0);
}

/* Ocultar al interactuar */
.whatsapp-float:hover ~ .whatsapp-tooltip {
  opacity: 0;
}

@media (max-width: 768px) {
  .whatsapp-tooltip {
    display: block;
    right: 16px;
    bottom: 80px;
    max-width: calc(100vw - 32px);
    font-size: 13px;
    padding: 16px 18px 14px;
    border-radius: 14px;
    z-index: 9999;
  }
}


/* =========================
   PREVIEW IMAGEN AL HOVER
   (POSTULACIONES – MEJORAR VIVIENDA)
========================= */

/* Item base */
.benefit-item-preview {
  position: relative;
  overflow: visible;
}

/* Contenedor imagen flotante */
.benefit-preview-image {
  position: absolute;
  top: 50%;
  left: calc(100% + 44px);

  transform: translateY(-50%) translateX(-6px) scale(0.96);

  width: 300px;
  height: 190px;
  padding: 8px;

  background: linear-gradient(180deg, #ffffff, #f9fafb);
  border-radius: 18px;

 box-shadow:
  0 24px 60px rgba(0,0,0,0.20),
  0 12px 24px rgba(0,0,0,0.10);

  opacity: 0;
  pointer-events: none;

  transition:
    opacity 0.25s ease,
    transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);

  z-index: 100;
}

/* Imagen */
.benefit-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 14px;
  background: #f3f4f6;
  display: block;
}

/* Hover */
.benefit-item-preview:hover .benefit-preview-image {
  opacity: 1;
  transform: translateY(-52%) translateX(0) scale(1);

}

/* Desactivar en mobile */
@media (max-width: 900px) {
  .benefit-preview-image {
    display: none;
  }
}


/* =========================
   HERO PROGRAMA
========================= */

.program-hero {
  margin: 24px 0 48px;
}

.program-hero img {
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: cover;
  border-radius: 18px;
  display: block;
  box-shadow: 0 16px 40px rgba(0,0,0,0.12);
}

.program-hero figcaption {
  margin-top: 10px;
  font-size: 14px;
  color: var(--gray-600);
  text-align: center;
}
@media (max-width: 768px) {
  .program-hero {
    margin: 16px 0 32px;
  }

  .program-hero img {
    max-height: 320px;
    border-radius: 14px;
  }
}
/* =========================
   FIX GRID POSTULACIONES MOBILE
========================= */
@media (max-width: 900px) {

  .postulaciones-grid {
    display: block; /* 🔥 mata el grid */
  }

}
.benefits {
  padding-bottom: 0px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 768px) {
  .benefits {
    max-width: 100%;
    padding-left: 0px;
    padding-right: 0px;
  }
}
@media (max-width: 768px) {

  .benefit-highlight,
  .benefit-info-box {
    border-left-width: 4px; /* reduce */
    padding-left: 20px;
    padding-right: 20px;
  }

}
/* Evita cualquier cálculo fuera del viewport */
main,
.postulaciones,
.benefits {
  max-width: 100%;
  overflow-x: clip;
}
/* =========================
   REQUISITOS – LAYOUT RESPONSIVE
========================= */

/* DESKTOP */
@media (min-width: 769px) {

  #requisitos > ul > li {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
    align-items: start;
  }

  /* Requisitos normales sin sublista */
  #requisitos > ul > li:not(:has(ul)) {
    display: flex;
  }

  /* Sublista a la derecha */
  #requisitos li ul {
    margin: 0;
    padding: 0;
  }
}

/* MOBILE */
@media (max-width: 768px) {

  #requisitos > ul > li {
    display: flex !important;
    flex-direction: column;
    gap: 12px;
  }

  #requisitos li ul {
    width: 100%;
    padding-left: 0;
  }

  #requisitos li ul li {
    padding-left: 0;
  }

}

/* =========================
   TABLA RESPONSIVE (SCROLL HORIZONTAL SOLO AQUÍ)
========================= */

.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch; /* scroll suave iOS */
}

/* Evita que la tabla se comprima */
.table-responsive table {
  min-width: 680px; /* fuerza ancho mínimo */
  border-collapse: collapse;
}

/* Mobile: mejora visual del scroll */
@media (max-width: 768px) {

  .table-responsive {
    margin-left: -16px;
    margin-right: -16px;
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Indicador visual de scroll */
  .table-responsive::after {
    content: "← Desliza para ver más →";
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--gray-600);
    margin-top: 8px;
  }
}
/* =========================
   MORE INFO – MOBILE FINAL FIX
========================= */
@media (max-width: 768px) {

  .more-info {
    margin: 24px 0 16px;
    padding-top: 16px;
  }

  .more-info-inner {
    max-width: 100%;
    margin: 0 auto;
    padding: 20px 16px;
  }

  .more-info h3 {
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 24px;
    color: var(--gray-700);
  }

  /* Grid en columna */
  .more-info-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
    align-items: center;
  }

  /* Cada bloque */
  .info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;

    width: 100%;
    max-width: 320px;
    gap: 10px;
  }

  /* Ícono */
  .info-item > i {
    font-size: 26px;
    color: var(--green);
    margin-bottom: 2px;
  }

  /* Título */
  .info-item strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
  }

  /* Teléfono */
  .info-item a {
    font-size: 16px;
    font-weight: 600;
    color: var(--green);
  }

  /* Compartir */
  .share-buttons {
    justify-content: center;
    margin-top: 6px;
  }

  .share-buttons a {
    width: 36px;
    height: 36px;
    font-size: 15px;
  }

}
/* =========================
   AJUSTE ESPACIO MORE-INFO / FOOTER (MOBILE)
========================= */
@media (max-width: 768px) {

  /* Reduce espacio inferior del bloque */
  .more-info {
    margin-bottom: 8px;
  }

  .more-info-inner {
    padding-bottom: 0px;
  }

  /* Compensa espacio superior del footer */
  .footer {
    padding-top: 32px; /* antes era mucho más */
  }

}
/* =========================
   FINANCIAMIENTO – MOBILE SIN BORDE IZQUIERDO
========================= */
@media (max-width: 768px) {

  #financiamiento.benefit-highlight {
    border-left: none;        /* quita la línea verde */
    padding-left: 24px;       /* compensa el espacio */
  }

}
/* =========================
   IMAGEN FULLSCREEN MOBILE
========================= */
@media (max-width: 768px) {

  .financiamiento-imagen img {
    cursor: zoom-in;
  }

  .image-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 16px;
  }

  .image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 12px;
  }

  .image-lightbox::after {
    content: "✕";
    position: absolute;
    top: 18px;
    right: 20px;
    font-size: 28px;
    color: #fff;
    opacity: 0.85;
  }
}
#scrollTopBtn {
  position: fixed;
  left: 20px;
  bottom: 90px;

  width: 44px;
  height: 44px;
  border-radius: 50%;

  background: #16a34a;
  color: #fff;

  font-size: 22px;
  font-weight: 600;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;

  box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);

  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;

  z-index: 999;
}

/* visible */
#scrollTopBtn.show {
  opacity: 1;
  transform: translateY(0);
}
/* =====================================================
   ESTILOS EXCLUSIVOS — nosotros.php
   Página: Nosotros | PROVECSO SPA
   ===================================================== */

/* =========================
   FIX BOTÓN VOLVER ARRIBA (MOBILE)
   Mantener alineado con WhatsApp
========================= */
#scrollTopBtn {
  bottom: 24px;
  left: 20px;
  z-index: 10001;
  pointer-events: auto;
  touch-action: manipulation;
}

/* =========================
   HEADER NOSOTROS
========================= */
.benefits-header {
  margin-bottom: 32px;
}

.benefits-header h1 {
  max-width: 780px;
}

.benefits-header p {
  max-width: 720px;
}

/* =========================
   IMAGEN PRINCIPAL (HERO NOSOTROS)
========================= */
.program-hero {
  margin-bottom: 48px;
}

.program-hero img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

.program-hero figcaption {
  margin-top: 10px;
  color: #374151; /* gris institucional */
  font-size: 14px;
  text-align: center;
}

/* =========================
   SECCIONES CONTENIDO NOSOTROS
========================= */
.benefit-section {
  margin-bottom: 48px;
}

/* =========================
   LINKS CONTENIDO (INSTITUCIONAL)
========================= */
.benefit-section a {
  color: var(--green);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease, text-decoration 0.2s ease;
}

.benefit-section a:hover {
  color: var(--green-dark);
  text-decoration: underline;
}

/* =========================
   SUBTÍTULOS DENTRO DE NOSOTROS
   (Servicios / Bloques internos)
========================= */
.benefit-section p strong,
#servicios p strong {
  display: block;
  margin-top: 20px;
  margin-bottom: 6px;
  font-size: 17px;
  font-weight: 600;
  color: #111827;
}

/* =========================
   LISTAS INSTITUCIONALES (Trayectoria / Equipo)
========================= */
.benefit-section ul {
  list-style: none;
  padding-left: 0;
  margin-top: 16px;
}

.benefit-section li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 12px;
  line-height: 1.6;
}

.benefit-section li::before {
  content: "✔";
  color: var(--green);
  font-weight: 700;
  margin-top: 2px;
}

/* =========================
   SIDEBAR — ITEM ACTIVO
========================= */
.sidebar-nav a.active {
  background: linear-gradient(90deg, #ecfdf5, #ffffff);
  border-left: 4px solid var(--green);
  font-weight: 600;
}

/* =========================
   CTA FINAL NOSOTROS
========================= */
.benefit-highlight {
  background: linear-gradient(180deg, #f8fafc, #ffffff);
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 32px;
  text-align: center;
}

.benefit-highlight h3 {
  margin-bottom: 12px;
}

.benefit-highlight p {
  max-width: 600px;
  margin: 0 auto 20px;
}

