.contacto-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.contacto-hero {
  text-align: center;
  padding: 40px 20px;
  border-radius: 10px;
  margin-bottom: 40px;
}

.contacto-hero h1 {
  color: #2c5e2e;
  font-size: 2.2rem;
  margin-bottom: 15px;
}

.contacto-hero p {
  color: #555;
  font-size: 1.1rem;
  max-width: 800px;
  margin: 0 auto;
  line-height: 1.6;
}

.contacto-contenido {
  display: flex;
  flex-direction: column;
  gap: 40px;
  margin-bottom: 60px;
}

.informacion-contacto {
  display: flex;
  justify-content: center;
  align-items: center;
}

.formulario-contacto {
  background-color: #fff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
}

.info-card {
  background-color: #fff;
  border-radius: 8px;
  padding: 25px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

.info-icon {
  color: #4caf50;
  margin-bottom: 15px;
}

.info-icon i {
  width: 24px;
  height: 24px;
  stroke-width: 1.5;
}

.info-card h3 {
  color: #2c5e2e;
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.info-card p {
  color: #333;
  margin-bottom: 5px;
  font-weight: 500;
}

.info-detalle {
  color: #666 !important;
  font-size: 0.9rem;
  font-weight: normal !important;
  margin-top: 8px;
}

/* Estilos del formulario */
.formulario-contacto h2 {
  color: #2c5e2e;
  margin-bottom: 10px;
  font-size: 1.8rem;
  text-align: center;
}

.formulario-contacto > p {
  color: #666;
  margin-bottom: 25px;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #444;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-family: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #4caf50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.checkbox {
  display: flex;
  align-items: center;
}

.checkbox input {
  width: auto;
  margin-right: 10px;
}

.checkbox label {
  margin-bottom: 0;
}

.btn-enviar {
  background-color: #75aa52;
  color: white;
  border: none;
  padding: 14px 30px;
  border-radius: 30px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    background-color 0.3s,
    transform 0.2s;
  width: 100%;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
}

.btn-enviar:hover {
  background-color: #457724;
  transform: translateY(-2px);
}

.btn-enviar:active {
  transform: translateY(0);
}

/* FAQ */
.faq-contacto {
  margin-bottom: 60px;
}

.faq-contacto h2 {
  text-align: center;
  color: #2c5e2e;
  margin-bottom: 30px;
  font-size: 1.8rem;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.faq-pregunta {
  background-color: #f5f5f5;
  padding: 18px 20px;
  margin: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.1rem;
  color: #333;
  transition: background-color 0.3s;
}

.faq-pregunta:hover {
  background-color: #e8f5e9;
}

.faq-icon {
  color: #4caf50;
  transition: transform 0.3s ease;
}

.faq-item.activo .faq-icon {
  transform: rotate(180deg);
}

.faq-respuesta {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.3s ease,
    padding 0.3s ease;
}

.faq-item.activo .faq-respuesta {
  padding: 20px;
  max-height: 300px;
}

.faq-respuesta p {
  color: #555;
  line-height: 1.6;
  margin: 0;
}

.mensaje-enviado {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.15);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.mensaje-enviado p {
  color: #2c5e2e;
  font-size: 1.2rem;
  margin-bottom: 20px;
}

#cerrarMensaje {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 10px 25px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}

#cerrarMensaje:hover {
  background-color: #3d8b40;
}

@media (max-width: 768px) {
  .contacto-hero h1 {
    font-size: 1.8rem;
  }

  .contacto-hero p {
    font-size: 1rem;
  }

  .redes-container {
    gap: 20px;
  }

  .faq-pregunta {
    font-size: 1rem;
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .contacto-container {
    padding: 15px;
  }

  .contacto-hero {
    padding: 25px 15px;
  }

  .formulario-contacto {
    padding: 20px;
  }

  .redes-container {
    gap: 15px;
  }

  .red-social i {
    width: 20px;
    height: 20px;
  }

  .red-social span {
    font-size: 0.8rem;
  }
}

.contador-caracteres {
  text-align: right;
  font-size: 0.85rem;
  color: #666;
  margin-top: 5px;
}

.contador-caracteres span {
  font-weight: bold;
  color: #4caf50;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ff4444 !important;
  background-color: #fff8f8;
}

.error-mensaje {
  color: #ff4444 !important;
  font-size: 0.85rem !important;
  margin-top: 5px !important;
  display: none !important;
}

.info-legal {
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eee;
  color: #666;
  font-size: 0.9rem;
  text-align: center;
}

.mensaje-exito {
  background-color: #f0f9f0;
  border: 2px solid #4caf50;
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}

.mensaje-error {
  background-color: #fff8f8;
  border: 2px solid #ff4444;
  border-radius: 10px;
  padding: 40px 30px;
  text-align: center;
  margin-top: 20px;
  animation: fadeIn 0.5s ease;
}

.exito-icono,
.error-icono {
  margin-bottom: 20px;
}

.exito-icono i {
  width: 64px;
  height: 64px;
  color: #4caf50;
}

.error-icono i {
  width: 64px;
  height: 64px;
  color: #ff4444;
}

.mensaje-exito h3,
.mensaje-error h3 {
  color: #2c5e2e;
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.mensaje-error h3 {
  color: #d32f2f;
}

.mensaje-exito p,
.mensaje-error p {
  color: #555;
  margin-bottom: 10px;
  line-height: 1.6;
}

.btn-volver {
  background-color: #4caf50;
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-volver:hover {
  background-color: #3d8b40;
}

.btn-volver i {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  margin-bottom: 0;
}

.btn-enviar:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #4caf50;
  text-decoration: none;
  margin: 0 10px;
}

.footer-links a:hover {
  text-decoration: underline;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============ RESPONSIVE ============ */

@media (max-width: 768px) {
  .contacto-contenido {
    flex-direction: column;
  }

  .redes-container {
    flex-direction: column;
    gap: 15px;
  }

  .red-social {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
  }

  .mensaje-exito,
  .mensaje-error {
    padding: 30px 20px;
  }

  .exito-icono i,
  .error-icono i {
    width: 48px;
    height: 48px;
  }
}

@media (max-width: 480px) {
  .contacto-hero h1 {
    font-size: 1.5rem;
  }

  .formulario-contacto {
    padding: 20px 15px;
  }

  .btn-enviar,
  .btn-volver {
    width: 100%;
  }

  .footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .footer-links a {
    margin: 0;
  }
}
