.contacto-section {
  padding: 6rem 1.5rem 4rem 1.5rem;
  background-color: #ffffff;
  position: relative;
  overflow: hidden;
}

.contacto-section .container {
  position: relative;
  z-index: 1;
}

.contacto-header {
  text-align: center;
  margin-bottom: 3rem;
}

.contacto-header h1 {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--navy-dark);
  margin-bottom: 0.8rem;
}

.contacto-header p {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.6;
  max-width: 620px;
  margin: 0 auto;
}

.contacto-grid-container {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto 3rem auto;
}

.contacto-form-col {
  display: flex;
  flex-direction: column;
}

.contacto-form {
  background: #f8fafc;
  border: 1.5px solid var(--primary-blue);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  flex: 1;
  transition: border-color 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.contacto-form:hover {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 1px var(--primary-green), var(--shadow-sm);
}

.contacto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.contacto-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contacto-label {
  display: block;
  font-weight: 700;
  color: var(--navy-dark);
  font-size: 0.85rem;
}

.contacto-input,
.contacto-select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  font-family: var(--font-family);
  font-size: 0.95rem;
  color: #1e293b;
  transition: all 0.3s var(--transition-smooth);
}

.contacto-input:focus,
.contacto-select:focus {
  outline: none;
  border-color: var(--primary-blue);
  box-shadow: 0 0 0 4px rgba(0, 115, 255, 0.12);
}

.contacto-input::placeholder {
  color: #94a3b8;
}

.contacto-select {
  appearance: auto;
  cursor: pointer;
}

.contacto-select option {
  background-color: #ffffff;
  color: #1e293b;
  padding: 10px;
}

.contacto-action {
  display: flex;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.btn-contacto-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background-color: var(--primary-green);
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  padding: 0.9rem 2.2rem;
  border-radius: 30px;
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--transition-smooth);
  box-shadow: 0 4px 20px rgba(0, 161, 0, 0.3);
  font-family: var(--font-family);
  width: auto;
}

.btn-contacto-submit i {
  font-size: 1.1rem;
}

.btn-contacto-submit:hover {
  background-color: #008200;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(0, 161, 0, 0.4);
}

.btn-contacto-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.contacto-feedback {
  padding: 0.8rem 1.5rem;
  border-radius: 10px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
}

.contacto-feedback.success {
  background: rgba(0, 161, 0, 0.12);
  border: 1px solid rgba(0, 161, 0, 0.3);
  color: var(--primary-green);
}

.contacto-feedback.error {
  background: rgba(220, 53, 69, 0.1);
  border: 1px solid rgba(220, 53, 69, 0.3);
  color: #c53030;
}

.contacto-help-col {
  display: flex;
  align-items: stretch;
}

.contacto-help-card {
  background: #f8fafc;
  border: 1.5px solid var(--primary-blue);
  border-radius: 12px;
  padding: 2rem;
  text-align: left;
  width: 100%;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s var(--transition-smooth), box-shadow 0.3s var(--transition-smooth);
}

.contacto-help-card:hover {
  border-color: var(--primary-green);
  box-shadow: 0 0 0 1px var(--primary-green), var(--shadow-sm);
}

.contacto-help-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 1rem;
  text-align: center;
}

.contacto-help-card h3 {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 1rem;
  text-align: center;
}

.contacto-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
}

.contacto-benefits li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.5rem 0;
  font-size: 0.95rem;
  color: #475569;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  line-height: 1.4;
}

.contacto-benefits li:last-child {
  border-bottom: none;
}

.contacto-benefits li i {
  color: var(--primary-green);
  font-size: 1rem;
  flex-shrink: 0;
}

.contacto-help-note {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 0.5rem;
  text-align: center;
}

.contacto-help-note a {
  color: var(--primary-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.3s var(--transition-smooth);
}

.contacto-help-note a:hover {
  color: var(--primary-green);
}

.contacto-banner-wrapper {
  max-width: 1100px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.contacto-banner {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.contacto-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeInOverlay 0.3s ease;
}

@keyframes fadeInOverlay {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.contacto-modal {
  background: #ffffff;
  border-radius: 16px;
  padding: 3rem 2.5rem;
  max-width: 480px;
  width: 90%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: scaleIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes scaleIn {
  0% {
    transform: scale(0.8);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.contacto-modal-icon {
  font-size: 4rem;
  color: var(--primary-green);
  margin-bottom: 1rem;
}

.contacto-modal h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-dark);
  margin-bottom: 0.8rem;
}

.contacto-modal p {
  font-size: 1rem;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

.contacto-modal-btn {
  padding: 0.7rem 2.5rem;
  font-size: 0.95rem;
}

@media (max-width: 992px) {
  .contacto-grid-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contacto-help-card {
    padding: 2rem;
  }
}

@media (max-width: 768px) {
  .contacto-section {
    padding: 5rem 1rem 3rem 1rem;
  }
  .contacto-grid {
    grid-template-columns: 1fr;
  }
  .contacto-header h1 {
    font-size: 1.8rem;
  }
  .contacto-help-card h3 {
    font-size: 1.2rem;
    text-align: center;
  }
  .contacto-form {
    padding: 1.5rem;
  }
  .contacto-action {
    justify-content: center;
  }
  .btn-contacto-submit {
    width: 100%;
    justify-content: center;
  }
  .contacto-benefits li {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .contacto-header h1 {
    font-size: 1.5rem;
  }
  .contacto-header p {
    font-size: 0.9rem;
  }
  .contacto-form {
    padding: 1rem;
  }
  .contacto-help-card {
    padding: 1.2rem;
  }
  .contacto-help-icon {
    font-size: 2rem;
  }
  .contacto-help-card h3 {
    font-size: 1.1rem;
  }
  .btn-contacto-submit {
    font-size: 0.85rem;
    padding: 0.75rem 1.5rem;
  }
  .contacto-benefits li {
    font-size: 0.85rem;
  }
  .contacto-help-note {
    font-size: 0.7rem;
    flex-wrap: wrap;
  }
  .contacto-modal {
    padding: 2rem 1.5rem;
  }
  .contacto-modal-icon {
    font-size: 3rem;
  }
  .contacto-modal h3 {
    font-size: 1.3rem;
  }
  .contacto-modal p {
    font-size: 0.9rem;
  }
}