/* Estilos globales */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #023047; /* azul profundo */
  --secondary-color: #fb8500; /* naranja brillante */
  --accent-color: #219ebc; /* turquesa */
  --light-bg: #f1f5f9; /* gris muy claro */
  --dark-text: #1d3557; /* azul oscuro */
  --body-font: 'Karla', sans-serif;
  --heading-font: 'Raleway', sans-serif;
}

body {
  font-family: var(--body-font);
  color: var(--dark-text);
  line-height: 1.6;
  background-color: var(--light-bg);
}

h1, h2, h3 {
  font-family: var(--heading-font);
  margin-bottom: 0.5em;
}

/* Hero */
.hero {
  background: url('images/hero_bg.png') center/cover no-repeat;
  height: 80vh;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-overlay {
  background: rgba(2, 48, 71, 0.6);
  padding: 3rem;
  text-align: center;
  border-radius: 8px;
  color: #fff;
  max-width: 90%;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.hero p {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
}
.btn-cta {
  background-color: var(--secondary-color);
  color: #fff;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.3s ease;
}
.btn-cta:hover {
  background-color: var(--accent-color);
}

/* Sections */
section {
  padding: 4rem 0;
}
.contenedor {
  width: 90%;
  max-width: 1100px;
  margin: 0 auto;
}

.sobre p {
  margin-bottom: 1.2rem;
  font-size: 1.1rem;
}

/* Program cards */
.programas .tarjetas {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}
.tarjeta {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.tarjeta:hover {
  transform: translateY(-5px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.tarjeta h3 {
  font-size: 1.4rem;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}
.tarjeta p {
  flex-grow: 1;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}
.precio {
  font-weight: 700;
  color: var(--secondary-color);
}

/* Gallery */
.galeria-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.galeria-grid img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* Contact */
.contacto form {
  margin-top: 1.5rem;
}
.campo {
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}
.campo label {
  margin-bottom: 0.4rem;
  font-weight: 600;
}
.campo input[type="text"],
.campo input[type="email"],
.campo input[type="tel"],
.campo textarea {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
  font-family: var(--body-font);
}
.campo textarea {
  resize: vertical;
}
.campo.checkbox {
  flex-direction: row;
  align-items: center;
}
.campo.checkbox input[type="checkbox"] {
  margin-right: 0.6rem;
}
.btn-enviar {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.7rem 1.5rem;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  cursor: pointer;
  margin-top: 0.5rem;
  transition: background 0.3s ease;
}
.btn-enviar:hover {
  background-color: var(--secondary-color);
}

/* Opinions */
.opiniones ul {
  list-style: none;
  margin-bottom: 2rem;
}
.opiniones li {
  background-color: #fff;
  margin-bottom: 1rem;
  padding: 1rem;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.opiniones form {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 600px;
  margin-bottom: 1rem;
}

/* Popup */
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.popup.hidden {
  display: none;
}
.popup-contenido {
  background-color: #fff;
  padding: 2rem;
  border-radius: 8px;
  text-align: center;
}

/* Footer */
.footer {
  background-color: var(--primary-color);
  color: #fff;
  padding: 2rem 0;
  font-size: 0.9rem;
}
.footer a {
  color: var(--secondary-color);
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 1rem;
  }
  section {
    padding: 3rem 0;
  }
  .programas .tarjetas {
    grid-template-columns: 1fr;
  }
  .galeria-grid {
    grid-template-columns: 1fr 1fr;
  }
}