#contacto {
  scroll-margin-top: 100px; /* o el alto de tu menú */
}

.contact-section {
  background-color: #f1f1f1;
  padding: 80px 30px;
  text-align: center;
}

.contact-section h2 {
  font-size: 2.5rem;
  color: #1e2d60;
  margin-bottom: 40px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

.contact-card {
  background-color: #fff;
  border-radius: 10px;
  padding: 25px 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: left;
  transition: transform 0.3s ease;
}

.contact-card:hover {
  transform: translateY(-5px);
}

.contact-card h3 {
  font-size: 1.5rem;
  color: #1e2d60;
  margin-bottom: 5px;
}

.contact-card p {
  font-size: 1rem;
  color: #333;
  margin: 5px 0;
}

.contact-card strong {
  color: #1e2d60;
}

.contact-card img{
  width: 15%;
  position: absolute;
  top: 10px;
  right: 10px;
}




.contacto{
    padding: 2rem 0; 
    background: #f1f1f1;
    
}

.section-title{
  text-align: center;
  margin: 1rem 0;
  font-size: 1.8rem;
  color: #1e2d60;
}

.contact-form {
    background: white;
    padding: 3rem;
    border-radius: 15px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
    font-family: 'Montserrat','Arial', sans-serif;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.submit-btn {
    background: linear-gradient(45deg, #667eea, #1e2d60);
    font-family: 'Montserrat','Arial', sans-serif;
    text-transform: uppercase;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}


  /* Estilos para validación */
.error {
    border-color: #e74c3c !important;
    background: rgba(231, 76, 60, 0.1) !important;
    animation: shake 0.5s;
}

.success {
    border-color: #27ae60 !important;
    background: rgba(39, 174, 96, 0.1) !important;
}

.error-message {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
    animation: fadeIn 0.3s;
}

.success-message {
    background: rgba(39, 174, 96, 0.1);
    color: #27ae60;
    padding: 15px;
    border-radius: 10px;
    text-align: center;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 20px;
    display: none;
    animation: fadeIn 0.5s;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.loading .submit-btn {
    background: #ccc;
}

@keyframes shake {

    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }

}

@keyframes fadeIn {

    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }

}

/* Responsive */
@media (max-width: 768px) {
    .contacto {
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 2em;
    }
}


/* ========== RESPONSIVE (≤768px) ========== */
@media (max-width: 768px) {

  .contact-section h2 {
      font-size: 2rem;

    }

  .contact-grid h3{

    font-size: 1.3rem;
  }

}