/* Reset básico */
*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  color: #222;
  background: #ffffff;
}

/* =========================
   HEADER / HERO
   ========================= */

.hero {
  background: #0f69b4;
  color: #fff;
  padding: 50px 20px;   /* <- menos padding para que el card quede más cerca */
  text-align: center;
}

.hero-small {
  padding: 40px 20px;
}

.hero-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Contenido central ocupa más espacio que los logos */
.hero-content {
  flex: 1;
}

.hero h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 20px;
}

/* Logos: no deben deformar ni crecer demasiado */
.hero-logo img {
  max-height: 120px;
  width: auto;
  display: block;
}

/* Botones en el hero */
.hero-actions {
  margin-top: 15px;
}

.hero-actions a {
  display: inline-block;
  margin: 5px;
}

/* Botón secundario en header */
.btn-secondary {
  padding: 10px 18px;
  border-radius: 4px;
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
  margin-right: 5px;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Responsive: apilar logo y texto en pantallas pequeñas */
@media (max-width: 768px) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-logo {
    margin-bottom: 15px;
  }

  .hero-content {
    order: 1;
  }
}

/* =========================
   SECCIONES GENERALES
   ========================= */

.section {
  padding: 50px 20px;
  max-width: 1000px;
  margin: 0 auto;
}

.section-alt {
  background: #f5f5f5;
}

h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 1.8rem;
}

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

.card {
  border-radius: 8px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,.05);
}

.steps {
  padding-left: 18px;
}

/* =========================
   FORMULARIOS
   ========================= */

.form-row {
  margin-bottom: 15px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

input,
select,
textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font: inherit;
}

textarea {
  resize: vertical;
}

/* Mensajes del formulario */
.form-message {
  margin-top: 10px;
  font-size: 0.9rem;
}

.form-message.success {
  color: #0a7b24;
}

.form-message.error {
  color: #c0392b;
}

/* Honeypot oculto para humanos */
.hidden-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  visibility: hidden;
}

/* =========================
   BOTONES GENERALES
   ========================= */

.btn-primary,
.btn-whatsapp {
  padding: 10px 18px;
  border-radius: 4px;
  border: none;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-block;
}

.btn-primary {
  background: #1a73e8;
  color: #fff;
}

.btn-whatsapp {
  background: #25D366;
  color: #fff;
}

.btn-primary:hover,
.btn-whatsapp:hover {
  opacity: 0.9;
}

/* =========================
   FOOTER
   ========================= */

.footer {
  text-align: center;
  padding: 20px;
  font-size: 0.9rem;
  background: #0b172a;
  color: #fff;
}

/* =========================
   FONDEPORTE 2026
   ========================= */

/* Sección a 100% ancho, pero contenido centrado.
   Reducimos padding-top para que quede más cerca del header. */
.section-full {
  width: 100%;
  padding: 30px 0 60px 0; /* <- 30 arriba, 60 abajo */
}

/* Fondo suave para diferenciar la sección */
.fondeporte-section {
  background: #f7f9fc;
}

/* Contenedor centrado como en el hero */
.fondeporte-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Card centrado y limpio */
.fondeporte-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 30px 20px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  text-align: center;
}

/* Imagen */
.fondeporte-img {
  text-align: center;
  margin-bottom: 20px;
}

.fondeporte-img img {
  max-width: 50%;
  height: auto;
  display: inline-block;
}

/* Textos */
.fondeporte-card h2 {
  font-size: 2rem;
  margin-bottom: 10px;
  color: #004aad;
}

.fondeporte-card .subtitulo {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.fondeporte-card h3 {
  margin-top: 25px;
  font-size: 1.3rem;
  color: #004aad;
}

/* Listas centradas visualmente */
.fondeporte-card ul {
  max-width: 600px;
  margin: 0 auto 15px auto;
  text-align: left;
}

/* Nota (si la usas en algún momento) */
.nota {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 20px;
}

/* Botón centrado */
.btn-container {
  margin-top: 25px;
}

/* Bloque destacado */
.fondeporte-destacado {
  background: #e8f1ff;             /* Azul suave */
  border-left: 6px solid #004aad;  /* Azul IND */
  padding: 15px 20px;
  margin: 20px auto;
  max-width: 600px;
  border-radius: 6px;
  text-align: left;
}

.fondeporte-destacado .dest-titulo {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  color: #004aad;
}

.fondeporte-destacado .dest-plazo {
  font-size: 1rem;
  margin: 5px 0 0 0;
  color: #0d3b66;
}

/* =========================
   RESPONSIVE FONDEPORTE
   ========================= */

@media (max-width: 768px) {
  .fondeporte-card {
    padding: 30px 20px;
  }
}

/* =========================
   BLOQUE DE REQUISITOS
   ========================= */

.fondeporte-requisitos {
  background: #fff8e6;               /* Amarillo suave */
  border-left: 6px solid #d19300;    /* Tono dorado/IND */
  padding: 15px 20px;
  margin: 25px auto;
  max-width: 600px;
  border-radius: 6px;
  text-align: left;
}

.fondeporte-requisitos .req-titulo {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 0 10px 0;
  color: #8a5a00;
}

.fondeporte-requisitos ul {
  margin: 0;
  padding-left: 20px;
}

.fondeporte-requisitos ul li {
  margin-bottom: 6px;
}

/* ========================================
   BOTÓN FLOTANTE WHATSAPP (FontAwesome)
   ======================================== */

.whatsapp-float {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 60px;
  height: 60px;
  background: #25D366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  opacity: 0.95;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 18px rgba(0,0,0,0.35);
  opacity: 1;
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 15px;
    bottom: 15px;
    width: 55px;
    height: 55px;
    font-size: 28px;
  }
}


/* =========================
   OPTIMIZACIÓN MOBILE
   ========================= */

@media (max-width: 768px) {
  /* Header más compacto en móvil */
  .hero {
    padding: 35px 16px;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-logo img {
    max-height: 80px;
  }

  /* Sección Fondeporte más compacta */
  .section-full {
    padding: 20px 0 40px 0;
  }

  .fondeporte-card {
    padding: 24px 18px;
  }

  .fondeporte-card h2 {
    font-size: 1.6rem;
  }

  .fondeporte-card .subtitulo {
    font-size: 1rem;
  }

  .fondeporte-card ul {
    font-size: 0.95rem;
  }

  /* Botones más cómodos para tap en móvil */
  .btn-primary,
  .btn-whatsapp,
  .btn-secondary {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .hero-actions a {
    margin: 4px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .fondeporte-card h2 {
    font-size: 1.45rem;
  }
}



/* =========================
   ANIMACIONES SUAVES
   ========================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-inner,
.fondeporte-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Pequeña diferencia de delay para el card */
.fondeporte-card {
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

/* Transiciones suaves generales */
.btn-primary,
.btn-secondary,
.btn-whatsapp {
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Card con leve hover en escritorio */
@media (min-width: 769px) {
  .fondeporte-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .fondeporte-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }
}


/* =========================
   OPTIMIZACIÓN MOBILE
   ========================= */

/* Tablets y móviles medianos */
@media (max-width: 768px) {
  /* Header más compacto */
  .hero {
    padding: 35px 16px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-logo img {
    max-height: 80px;
  }

  /* Card Fondeporte más cómodo en móvil */
  .section-full {
    padding: 20px 0 40px 0;
  }

  .fondeporte-card {
    padding: 24px 18px;
  }

  .fondeporte-card h2 {
    font-size: 1.7rem;
  }

  .fondeporte-card .subtitulo {
    font-size: 1rem;
  }

  .fondeporte-card ul {
    font-size: 0.95rem;
  }

  /* Botones más amigables para tap */
  .btn-primary,
  .btn-whatsapp,
  .btn-secondary {
    padding: 10px 14px;
    font-size: 0.95rem;
  }

  .hero-actions a {
    margin: 4px;
  }
}

/* Móviles pequeños */
@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.6rem;
  }

  .fondeporte-card h2 {
    font-size: 1.5rem;
  }
}


/* =========================
   ANIMACIONES SUAVES
   ========================= */

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Animación de entrada para header y card principal */
.hero-inner,
.fondeporte-card {
  animation: fadeInUp 0.6s ease-out;
}

/* Leve delay para el card */
.fondeporte-card {
  animation-delay: 0.1s;
  animation-fill-mode: both;
}

/* Transiciones en botones */
.btn-primary,
.btn-secondary,
.btn-whatsapp {
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease,
    box-shadow 0.15s ease;
}

.btn-primary:hover,
.btn-secondary:hover,
.btn-whatsapp:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(0,0,0,0.15);
}

/* Hover suave en el card Fondeporte (solo escritorio) */
@media (min-width: 769px) {
  .fondeporte-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .fondeporte-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  }
}


.toast-message {
  white-space: nowrap !important;
}

.toast {
  width: auto !important;
  max-width: 600px !important; /* pon el ancho que necesites */
}

.fondeporte-ayuda {
  margin: 28px auto 22px auto;
  max-width: 720px;
  background: #f4f8ff;
  border-left: 6px solid #1a73e8;
  padding: 18px 22px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.fondeporte-ayuda h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: #1a3d7c;
}

.fondeporte-ayuda p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: #333;
}