:root {
  --primario: #37bbe1;
  --secundario: #0c7dc2;
  --claro: #f5f5f5;
  --oscuro: #1d1d1d;
  --texto-claro: #fff;
  --texto-oscuro: #1e1e1e;

  --amarillo: #00d1f6;       /* navbar claro */
  --amarillo-oscuro: #17b6d2; /* navbar en modo oscuro */
  --primario-oscuro: #2ca1c2; /* celeste más oscuro */
}

* {
  box-sizing: border-box;
}

body {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  background: var(--claro);
  color: var(--texto-oscuro);
  margin: 0;
  padding: 0 10px;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

body.dark {
  background: var(--oscuro);
  color: var(--texto-claro);
  --primario: var(--primario-oscuro); /* celeste más apagado */
}

.header {
  background: var(--primario);
  color: white;
  padding: 1rem;
  text-align: center;
}

form {
  max-width: 600px;
  margin: 20px auto;
  background: white;
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

body.dark form {
  background: #2c2c2c;
}

input, select, textarea {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  font-size: 14px;
}

textarea {
  resize: vertical;
  max-width: 100%;
  min-height: 120px;
}

button {
  background: #ffcc00;
  color: white;
  padding: 10px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

button:hover {
  background: var(--primario);
}

.form-section {
  display: none;
}

.form-section.active {
  display: block;
}

.form-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
}

.progress-container {
  width: 100%;
  background: #ccc;
  height: 10px;
}

.progress-bar {
  width: 0%;
  height: 10px;
  background: #ffcc00;
  transition: width 0.3s;
}

.mensaje-exito {
  background-color: #E6F0FA;
  border-left: 5px solid #005BAC;
  color: #003366;
  padding: 20px;
  margin-top: 20px;
  border-radius: 6px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  font-family: 'Segoe UI', sans-serif;
  animation: fadeIn 0.6s ease-in-out;
}

.mensaje-exito h4 {
  color: #005BAC;
  margin-bottom: 5px;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer-conadecus {
  background-color: #37bbe1;
  color: #ffffff;
  padding: 30px 20px 10px;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}

.footer-info,
.footer-contacto,
.footer-enlaces {
  flex: 1;
  min-width: 200px;
}

.footer-info h3 {
  color: #ffffff;
  margin-bottom: 10px;
}

.footer-enlaces a {
  color: #ffffff;
  text-decoration: none;
}

.footer-enlaces a:hover {
  text-decoration: underline;
  color: #ffffff;
  cursor:pointer;
}

.footer-bottom {
  text-align: center;
  margin-top: 20px;
  border-top: 1px solid #ffffff33;
  padding-top: 10px;
  font-size: 13px;
}

/* Mobile fix */
@media (max-width: 600px) {
  form {
    padding: 15px;
    margin: 10px;
  }

  textarea {
    font-size: 14px;
    padding: 10px;
    max-width: 100%;
    resize: vertical;
  }
}
.logo-conadecus {
  width: 140px;
  height: auto;
  max-width: 100%;
  background-color: #ffffff; /* Fondo blanco */
  padding: 6px;              /* Espacio interno opcional */
  border-radius: 6px;        /* Bordes redondeados opcional */
  transition: transform 0.3s ease, background-color 0.3s ease;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1); /* Sombra sutil */
}

.logo-conadecus:hover {
  transform: scale(1.05);
}

/* NAVBAR - Modo claro */
header {
  background-color: var(--amarillo);
  box-shadow: 0 6px 14px rgba(0,0,0,0.2);
  opacity: 0.95; /* un poco transparente */
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* NAVBAR - Modo oscuro */
body.dark header {
  background-color: var(--amarillo-oscuro);
  box-shadow: 0 6px 14px rgba(0,0,0,0.4);
  opacity: 0.95;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 40px;
  max-width: 1200px;
  margin: 0 auto;
}

.logo-img {
  height: 50px;
  transition: transform 0.3s ease;
}

.logo-img:hover {
  transform: scale(1.05);
}

/* NAV MENU */
.nav-links ul {
  list-style: none;
  display: flex;
  gap: 30px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  font-size: 22px;
  transition: color 0.3s;
}

.nav-links a:hover {
  color: #ffcc00;
}

/* HERO / TÍTULOS */
.hero {
  text-align: center;
  background-color: var(--primario);
  color: white;
  padding: 40px 20px 60px;
}

.hero h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
}

.hero h1 span {
  color: #2c2c2cdc;
}

.hero h2 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero p {
  max-width: 700px;
  margin: 0 auto 20px;
  line-height: 1.5;
  font-size: 16px;
}

.modo-btn {
  background-color:#ffcc00;
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}

.modo-btn:hover {
  background-color: #0071bc;
}

/* Estilos para pantallas pequeñas (celulares) */
@media (max-width: 768px) {
  .navbar {
    flex-direction: column;
    padding: 5px;
    text-align: center;
  }

  .nav-links ul {
    flex-direction: column;
    gap: 20px;
  }

  .logo-img {
    height: 50px;
    margin-bottom: 10px;
  }

  section, header, footer, main {
    padding: 5px 5px;
  }

  .hero{
    padding: 6px;
  }

  h1 {
    font-size: 1.5rem;
    text-align: center;
  }

  p {
    font-size: 1rem;
  }
}
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

@media (max-width: 480px) {
  /* Ajustes generales para pantallas muy pequeñas */
  body {
    padding: 0 5px;
    font-size: 15px;
  }

  form {
    padding: 10px;
  }

  .form-navigation {
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
  }

  .form-navigation button {
    width: 100%;
  }

  .mensaje-exito {
    font-size: 14px;
    padding: 16px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .hero h2 {
    font-size: 16px;
  }

  .hero p {
    font-size: 14px;
  }

  .modo-btn {
    width: 100%;
    padding: 10px;
    font-size: 16px;
  }

  .footer-container {
    flex-direction: column;
    gap: 10px;
    padding: 10px;
  }

  .footer-info,
  .footer-contacto,
  .footer-enlaces {
    min-width: auto;
    width: 100%;
  }

  .nav-links ul {
    gap: 10px;
  }

  .nav-links a {
    font-size: 15px;
  }
}
@media (max-width: 480px) {
  .hero {
    padding: 10px 5px 10px; 
  }
}
.custom-alert {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}

.alert-content {
  background: white;
  color: #003366;
  padding: 25px 30px;
  border-radius: 8px;
  text-align: center;
  max-width: 90%;
  width: 400px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: fadeInAlert 0.5s ease;
}

.alert-content button {
  margin-top: 15px;
  background-color: #ffcc00;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
}

.alert-content button:hover {
  background-color: #0c7dc2;
}

@keyframes fadeInAlert {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
