/* Sección general */
.contact-section {
  padding: 60px 20px;
  background: linear-gradient(to right, #f5f5f5, #ffffff);
  font-family: 'Montserrat', sans-serif;
   padding-top: 120px;
}

/* Contenedor con flex para alineación lado a lado */
.contact-section .container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}

/* Información de contacto */
.contact-info {
  background-color: #ffffff;
  border-left: 5px solid #2c3e50;
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  flex: 1 1 45%;
  box-sizing: border-box;
}

.contact-info h2 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.contact-info h3 {
  color: #7f8c8d;
  margin-top: 20px;
}

.contact-info p {
  margin-top: 10px;
  font-size: 15px;
}

.contact-info table {
  width: 100%;
  margin-top: 10px;
}

.contact-info table td {
  padding: 8px 5px;
  font-size: 15px;
  color: #34495e;
}

/* Formulario */
.formulario-container {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(44, 62, 80, 0.1);
  max-width: 600px;
  flex: 1 1 45%;
  box-sizing: border-box;
}

.formulario-container h2 {
  text-align: center;
  color: #2c3e50;
  margin-bottom: 20px;
  font-weight: 700;
}

label {
  display: block;
  margin-top: 15px;
  color: #34495e;
  font-weight: 600;
}

.required-asterisk {
  color: red;
  cursor: help;
  position: relative;
}

.required-asterisk::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background-color: black;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease-in-out;
}

.required-asterisk:hover::after {
  opacity: 1;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 12px;
  margin-top: 5px;
  border: 1px solid #bdc3c7;
  border-radius: 6px;
  background-color: #f9f9f9;
  font-size: 15px;
  transition: border 0.3s;
}

input:focus,
textarea:focus {
  border: 1px solid #3498db;
  outline: none;
}

textarea {
  resize: vertical;
  min-height: 100px;
}

button[type="submit"] {
  margin-top: 25px;
  width: 100%;
  background-color: #2c3e50;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

button[type="submit"]:hover {
  background-color: #34495e;
}

/* Mensaje de respuesta */
.mensaje {
  margin-top: 20px;
  padding: 12px;
  border-radius: 8px;
  font-weight: bold;
  text-align: center;
  display: none;
}

.exito {
  background-color: #c8f8f5;
  color: #27ae60;
}

.error {
  background-color: #fdedec;
  color: #e74c3c;
}

/* Responsive */
@media (max-width: 768px) {
  .contact-section .container {
    flex-direction: column;
  }

  .formulario-container,
  .contact-info {
    flex: 1 1 100%;
  }

  .formulario-container {
    padding: 20px;
  }
}

