/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #222;
    background-color: #f7f9fa;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* HEADER */
.header {
    background: linear-gradient(90deg, #2a4d59, #4caf50);
    padding: 1rem 0;
    color: white;
    position: sticky;
    top: 0;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

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

/* MENU NORMAL */
.nav {
    display: flex;
}

.nav a {
    color: white;
    text-decoration: none;
    margin: 0 1rem;
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav a:hover,
.nav a:focus {
    color: #a9d18e;
    outline: none;
}

/* Botón bloqueado */
.btn-disabled {
    background: #a9d18e99;
    border: none;
    color: #e0e0e0;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: not-allowed;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

/* HERO */
.hero {
    position: relative;
    background: url('images/somos.jpeg') center/cover no-repeat;
    height: 450px;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
    padding: 0 1rem;
}

.hero .overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 40, 70, 0.7);
    z-index: 0;
}

.hero-content {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    z-index: 1;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.7);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.4;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.7);
}

/* Botón primario */
.btn-primary {
    display: inline-block;
    background-color: #4caf50;
    color: white;
    padding: 0.9rem 1.8rem;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.3s ease;
    box-shadow: 0 5px 10px rgba(76, 175, 80, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: #3a8e3a;
    outline: none;
    box-shadow: 0 7px 14px rgba(58, 142, 58, 0.6);
}

/* SECCIONES */
.section {
    padding: 4rem 1rem;
    background-color: white;
    color: #222;
}

.section-light {
    background-color: #f0f7f0;
}

.narrow {
    max-width: 700px;
    margin: 0 auto;
}

.section h2 {
    font-size: 2.4rem;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #2a4d59;
    font-weight: 700;
}

/* Cards Programas */
.cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem 1.3rem;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #2a4d59;
}

.card:hover,
.card:focus-within {
    transform: translateY(-6px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
    outline: none;
}

.card h3 {
    margin-bottom: 1rem;
    font-weight: 700;
}

/* CONTACT FORM */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input,
.contact-form textarea {
    padding: 0.9rem 1rem;
    border: 1.8px solid #4caf50;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3a8e3a;
    outline: none;
}

.contact-form button {
    align-self: flex-start;
}

/* FOOTER */
.footer {
    background-color: #2a4d59;
    color: white;
    padding: 1rem 0;
    text-align: center;
    font-size: 0.9rem;
}

/* RESPONSIVE GENERAL */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 0.7rem;
        text-align: center;
    }

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

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

    .cards {
        grid-template-columns: 1fr 1fr;
    }
}

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

/* BOTÓN HAMBURGUESA */
.btn-menu {
  display: none;
  background: none;
  border: none;
  font-size: 2.5rem;
  color: white;
  cursor: pointer;
  position: relative;
  z-index: 10001;
}

/* En móvil: menú lateral derecho */
/* Menú oculto y posicionado para desplegar debajo del botón */
@media (max-width: 768px) {
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.5rem;
    position: relative;
  }

  .nav {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;      /* justo debajo del header-content */
    right: 1.5rem;  /* alineado a la derecha, igual que el botón */
    background-color: #2a4d59;
    border-radius: 8px;
    width: 180px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    padding: 0.5rem 0;
    z-index: 10000;
  }

  .nav.active {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 1rem;
    color: white;
    font-weight: 600;
    text-align: left;
    border-bottom: 1px solid #4caf50;
  }

  .nav a:last-child {
    border-bottom: none;
  }

  .btn-menu {
    display: block;
  }

  .btn-disabled {
    display: none;
  }
}
.contact-form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #2a4d59;
  margin-top: 1rem;
}

.contact-form select {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1.8px solid #4caf50;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.3s ease;
}

.contact-form select:focus {
  border-color: #3a8e3a;
  outline: none;
}
/* Contenedor del formulario */
#form-registro {
  display: none; /* Oculto inicialmente */
  margin-top: 2rem;
  background-color: white;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Estilo general de inputs, selects y textarea */
#form-registro input,
#form-registro select,
#form-registro textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  border: 1.5px solid #4caf50;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  transition: all 0.3s ease;
}

/* Focus suave */
#form-registro input:focus,
#form-registro select:focus,
#form-registro textarea:focus {
  border-color: #3a8e3a;
  box-shadow: 0 0 8px rgba(76, 175, 80, 0.3);
  outline: none;
}

/* Labels opcionales encima de los campos (si quieres agregarlos) */
#form-registro label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 600;
  color: #2a4d59;
}

/* Botón de envío */
#form-registro button {
  display: inline-block;
  padding: 1rem 2rem;
  font-size: 1.1rem;
  font-weight: 700;
  border-radius: 30px;
  border: none;
  background-color: #4caf50;
  color: white;
  cursor: pointer;
  box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
  transition: all 0.3s ease;
}

#form-registro button:hover,
#form-registro button:focus {
  background-color: #3a8e3a;
  box-shadow: 0 7px 18px rgba(58, 142, 58, 0.5);
  outline: none;
}

/* Responsivo */
@media (max-width: 768px) {
  #form-registro {
    padding: 1.5rem 1.8rem;
  }

  #form-registro button {
    width: 100%;
    text-align: center;
  }
}
