@media screen and (max-width: 767px) {
  #formulario-contacto {
    padding-top: 2em;
  }
  .contacto {
    text-align: center;
  }
}

/*Página Contacto*/
.google-map {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.btn.btn-dark {
  background-color: rgb(46, 46, 45);
}



/* Then style the iframe to fit in the container div with full height and width */
.mapa {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.container {
  flex: 1;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.contact-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
  height: 100%;
  align-items: start;
}

.map-col,
.form-col {
  flex: 1;
}

/* Form Styling */
.form-col {
  background: #fff;
  padding: 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.form-group {
  margin-bottom: 1.8rem;
  text-align: left;
}

.form-group label {
  display: block;
  margin-bottom: 0.8rem;
  font-weight: 500;
  color: #333;
  font-size: 1.1rem;
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 1rem 1.2rem;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #f8f9fa;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: #2e2e2d;
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 4px rgba(46, 46, 45, 0.1);
}

.form-text {
  font-size: 0.9rem;
  color: #666;
  margin-top: 0.7rem;
  font-style: italic;
}

button[type="submit"] {
  width: 100%;
  padding: 1rem;
  background: #2e2e2d;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

button[type="submit"]::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    120deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: 0.5s;
}

button[type="submit"]:hover::before {
  left: 100%;
}

button[type="submit"]:hover {
  background: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

button[type="submit"]:active {
  transform: translateY(0);
}

/* Alert Styling */
.alert {
  padding: 1rem;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  font-weight: 500;
  opacity: 0;
  transform: translateY(-10px);
  animation: slideIn 0.3s forwards;
}

.alert-success {
  background: #e8f5e9;
  border-left: 4px solid #4caf50;
  color: #1b5e20;
}

.alert-error {
  background: #ffebee;
  border-left: 4px solid #f44336;
  color: #b71c1c;
}

@keyframes slideIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .container {
    padding: 1rem;
  }

  .contact-row {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .google-map {
    min-height: 300px;
  }

  .form-col {
    padding: 1.5rem;
  }
}

@media screen and (max-width: 480px) {
  .form-col {
    padding: 1.2rem;
  }

  .form-group {
    margin-bottom: 1.5rem;
  }

  .form-group input,
  .form-group textarea {
    padding: 0.875rem 1rem;
  }

  button[type="submit"] {
    padding: 0.875rem;
    font-size: 1rem;
  }
}
