/* Estilos generales */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.high {
  color: #4caf50;
}

.title-underline {
  display: block;
  width: 180px;
  height: 4px;
  background-color: rgb(255, 174, 0);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Hero Section */
.hero-contacto {
  height: 250px;
  background: url("../Photos/infoteca/fondo_infoteca.jpg");
  background-size: 100%;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-align: center;
}

.hero-overlay h1 {
  font-size: 48px;
  margin-bottom: 10px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  background-color: #27272793;
}

.hero-overlay p {
  font-size: 22px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Sección Principal de Contacto */
.contacto-main {
  padding: 60px 20px;
  background: #fff;
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-top: 20px;
}

.title-underline {
  display: block;
  width: 180px;
  height: 4px;
  background-color: rgb(255, 174, 0);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* Formulario */
.formulario-container h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 30px;
}

.contact-form {
  background: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 25px;
}

.form-group label {
  display: block;
  font-weight: 600;
  color: #555;
  margin-bottom: 8px;
  font-size: 15px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #ddd;
  border-radius: 5px;
  font-size: 15px;
  font-family: inherit;
  transition: border-color 0.3s;
  box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #1a7a4f;
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn-submit {
  width: 100%;
  padding: 15px;
  background: #1a7a4f;
  color: white;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
  font-family: 'Montserrat', sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn-submit:hover {
  background: #115c3a;
}

.form-status {
  margin-top: 15px;
  padding: 12px;
  border-radius: 5px;
  text-align: center;
  font-size: 14px;
  display: none;
}

.form-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

/* Información de Contacto */
.info-contacto h2 {
  font-size: 32px;
  color: #333;
  margin-bottom: 30px;
}

.info-item {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 10px;
  transition: transform 0.3s;
}

.info-item:hover {
  transform: translateX(5px);
}

.info-icon {
  font-size: 36px;
  flex-shrink: 0;
}

.info-content h3 {
  font-size: 18px;
  color: #1a7a4f;
  margin-bottom: 8px;
}

.info-content p {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.info-content a {
  color: #4caf50;
  text-decoration: none;
}

.info-content a:hover {
  text-decoration: underline;
}

/* Redes Sociales */
.redes-sociales {
  margin-top: 40px;
  padding: 25px;
  background: #1a7a4f;
  border-radius: 10px;
  text-align: center;
}

.redes-sociales h3 {
  color: white;
  font-size: 20px;
  margin-bottom: 20px;
}

.social-icons {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  font-size: 24px;
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
}

/* Colores oficiales de redes sociales */
.social-icon .fa-facebook {
  color: #1877f2;
}

.social-icon .fa-instagram {
  background: linear-gradient(
    45deg,
    #f09433 0%,
    #e6683c 25%,
    #dc2743 50%,
    #cc2366 75%,
    #bc1888 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.social-icon .fa-researchgate {
  color: #00d0b1;
}

.social-icon .fa-graduation-cap {
  color: #4285f4;
}

.social-icon:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Mapa */
.mapa-section {
  padding: 60px 20px;
  background: #f5f5f5;
}

.mapa-section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
}

.mapa-container {
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
}

.indicaciones {
  background: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.indicaciones h3 {
  font-size: 22px;
  color: #4caf50;
  margin-bottom: 15px;
}

.indicaciones p {
  font-size: 16px;
  color: #555;
  line-height: 1.8;
}

/* Únete al Equipo */
.unete-equipo {
  padding: 60px 20px;
  background: #fff;
}

.unete-equipo h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
}

.unete-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.unete-card {
  background: #f9f9f9;
  padding: 35px;
  border-radius: 10px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 2px solid transparent;
}

.unete-card:hover {
  transform: translateY(-5px);
  border-color: #1a7a4f;
  box-shadow: 0 6px 16px rgba(26, 122, 79, 0.2);
}

.unete-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

.unete-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1a7a4f 0%, #115c3a 100%);
  padding: 15px 20px;
  border-radius: 8px;
  position: relative;
  text-align: center;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: 0 4px 12px rgba(26, 122, 79, 0.3);
  transition: all 0.3s ease;
  text-transform: uppercase;
  font-family: 'Montserrat', sans-serif;
}

.unete-card h3::before {
  content: '';
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 60%;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 2px;
}

.unete-card:hover h3 {
  background: linear-gradient(135deg, #115c3a 0%, #1a7a4f 100%);
  box-shadow: 0 6px 20px rgba(26, 122, 79, 0.5);
  transform: translateY(-2px);
}

.unete-card p {
  font-size: 15px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.unete-card ul {
  list-style: none;
  padding: 0;
  text-align: left;
}

.unete-card li {
  font-size: 14px;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.unete-card li:last-child {
  border-bottom: none;
}

.unete-card li::before {
  content: "✓ ";
  color: #4caf50;
  font-weight: bold;
  margin-right: 8px;
}

/* Proceso de Aplicación */
.proceso-aplicacion {
  background: linear-gradient(135deg, #1a7a4f 0%, #115c3a 100%);
  padding: 40px;
  border-radius: 10px;
  margin-top: 40px;
}

.proceso-aplicacion h3 {
  color: white;
  font-size: 28px;
  text-align: center;
  margin-bottom: 40px;
}

.pasos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
}

.paso {
  text-align: center;
  color: white;
}

.paso-numero {
  width: 60px;
  height: 60px;
  background: white;
  color: #1a7a4f;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: bold;
  margin: 0 auto 15px auto;
}

.paso p {
  font-size: 16px;
  line-height: 1.5;
}

/* FAQ */
.faq-section {
  padding: 60px 20px;
  background: #f5f5f5;
}

.faq-section h2 {
  font-size: 36px;
  margin-bottom: 40px;
  text-align: center;
}

.faq-container {
  max-width: 900px;
  margin: 0 auto;
}

.faq-item {
  background: white;
  margin-bottom: 15px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 25px 30px;
  cursor: pointer;
  transition: background 0.3s;
}

.faq-question:hover {
  background: #f9f9f9;
}

.faq-question h3 {
  font-size: 18px;
  color: #333;
  margin: 0;
  flex: 1;
}

.faq-toggle {
  font-size: 28px;
  color: #4caf50;
  font-weight: bold;
  transition: transform 0.3s;
  user-select: none;
}

.faq-item.active .faq-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
  padding: 0 30px;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 30px 25px 30px;
}

.faq-answer p {
  font-size: 15px;
  color: #555;
  line-height: 1.8;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-overlay h1 {
    font-size: 32px;
  }

  .hero-overlay p {
    font-size: 18px;
  }

  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .contact-form {
    padding: 25px;
  }

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

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

@media (max-width: 480px) {
  .formulario-container h2,
  .info-contacto h2 {
    font-size: 24px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 14px;
  }

  .social-icon {
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}

/*--------------------------Sección Únete (con botones)------------------------------------*/
.unete-seccion {
  padding: 80px 20px;
  background-color: #ffffff;
  text-align: center;
}

.unete-seccion h2 {
  font-size: 2.5rem;
  color: #000000be;
  margin-bottom: 20px;
}

.unete-seccion p {
  font-size: 1.1rem;
  color: #66686a;
  max-width: 700px;
  margin: 0 auto 40px;
  line-height: 1.8;
}

.botones-unete {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.btn-primario,
.btn-secundario {
  padding: 15px 35px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-primario {
  background-color: rgb(255, 174, 0);
  color: #000000be;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.btn-primario:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.btn-secundario {
  background-color: transparent;
  color: #000000be;
  border: 2px solid rgb(255, 174, 0);
}

.btn-secundario:hover {
  background-color: rgb(255, 174, 0);
  transform: translateY(-3px);
}

@media (max-width: 600px) {
  .botones-unete {
    flex-direction: column;
    align-items: center;
  }

  .btn-primario,
  .btn-secundario {
    width: 100%;
    max-width: 300px;
  }

  .unete-seccion h2 {
    font-size: 2rem;
  }

  .unete-seccion p {
    font-size: 1rem;
  }
}
