/* ===================================================
   CONTACTO CORPORATIVO — contacto.css
   (El hero de preguntas frecuentes fue eliminado)
   =================================================== */

/* ===== SECCIÓN CONTENEDOR PRINCIPAL ===== */
.contacto-section {
  min-height: 100vh;
  background: var(--gray-100);
  padding-bottom: 5rem;
}

/* ===== PAGE HEADER ===== */
.contacto-page-header {
  /*background: linear-gradient(135deg, #213564 0%, #1a2a50 60%, #0f1a33 100%);*/
  padding: 6rem 1rem 4rem;
  background-image: url('../assets/CONTACTO/cotizacion.png');
  background-size: cover;
  background-position: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Decoración de fondo */
.contacto-page-header::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(164, 198, 30, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contacto-page-header::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 260px;
  height: 260px;
  background: radial-gradient(circle, rgba(164, 198, 30, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.contacto-page-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(164, 198, 30, 0.15);
  border: 1px solid rgba(164, 198, 30, 0.35);
  color: #A4C61E;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 0.4rem 1rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.contacto-page-header__title {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
  margin-bottom: 1rem;
  letter-spacing: -0.5px;
}

.contacto-page-header__title--highlight {
  background: linear-gradient(135deg, #A4C61E 0%, #c8e84a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contacto-page-header__subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.7;
  font-weight: 400;
}

/* ===== LAYOUT PRINCIPAL: FORM + INFO ===== */
.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 2.5rem;
  align-items: start;
  padding-top: 3rem;
}

/* ===================================================
   FORMULARIO
   =================================================== */
.contacto-form-wrapper {
  background: var(--white-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contacto-form {
  padding: 0;
}

/* ===== SECCIÓN DEL FORM ===== */
.form-section {
  padding: 2rem 2.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.form-section:last-of-type {
  border-bottom: none;
}

.form-section__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  padding-bottom: 0.875rem;
  border-bottom: 2px solid var(--gray-200);
}

.form-section__icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #A4C61E 0%, #7cb518 100%);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.form-section__title {
  font-size: 1rem;
  font-weight: 700;
  color: #213564;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* ===== GRIDS ===== */
.form-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-grid:last-child {
  margin-bottom: 0;
}

.form-grid--1 {
  grid-template-columns: 1fr;
}

.form-grid--2 {
  grid-template-columns: 1fr 1fr;
}

/* ===== FIELD ===== */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

/* ===== LABEL ===== */
.form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  letter-spacing: 0.3px;
}

.form-label--required::after {
  content: ' *';
  color: #A4C61E;
  font-weight: 700;
}

/* ===== INPUT ===== */
.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  font-size: 0.92rem;
  color: var(--gray-900);
  background: var(--gray-100);
  transition: var(--transition);
  font-family: inherit;
  outline: none;
}

.form-input::placeholder {
  color: var(--gray-300);
  font-weight: 400;
}

.form-input:hover {
  border-color: var(--gray-300);
  background: var(--white-color);
}

.form-input:focus {
  border-color: #A4C61E;
  background: var(--white-color);
  box-shadow: 0 0 0 3px rgba(164, 198, 30, 0.12);
}

/* ===== INPUT CON PREFIJO ===== */
.form-input-prefix-wrapper {
  display: flex;
  align-items: center;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  background: var(--gray-100);
  overflow: hidden;
  transition: var(--transition);
}

.form-input-prefix-wrapper:hover {
  border-color: var(--gray-300);
  background: var(--white-color);
}

.form-input-prefix-wrapper:focus-within {
  border-color: #A4C61E;
  background: var(--white-color);
  box-shadow: 0 0 0 3px rgba(164, 198, 30, 0.12);
}

.form-input-prefix {
  padding: 0.75rem 0.875rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: #213564;
  background: rgba(33, 53, 100, 0.07);
  border-right: 1.5px solid var(--gray-200);
  white-space: nowrap;
  flex-shrink: 0;
}

.form-input--prefixed {
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  flex: 1;
}

.form-input--prefixed:focus {
  border: none;
  box-shadow: none;
}

/* ===== SELECT ===== */
.form-select-wrapper {
  position: relative;
}

.form-select {
  width: 100%;
  padding: 0.75rem 2.5rem 0.75rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  font-size: 0.92rem;
  color: var(--gray-900);
  background: var(--gray-100);
  transition: var(--transition);
  font-family: inherit;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.form-select:hover {
  border-color: var(--gray-300);
  background: var(--white-color);
}

.form-select:focus {
  border-color: #A4C61E;
  background: var(--white-color);
  box-shadow: 0 0 0 3px rgba(164, 198, 30, 0.12);
}

.form-select-arrow {
  position: absolute;
  right: 0.875rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  pointer-events: none;
}

/* ===== TEXTAREA ===== */
.form-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius-sm);
  font-size: 0.92rem;
  color: var(--gray-900);
  background: var(--gray-100);
  transition: var(--transition);
  font-family: inherit;
  outline: none;
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}

.form-textarea::placeholder {
  color: var(--gray-300);
}

.form-textarea:hover {
  border-color: var(--gray-300);
  background: var(--white-color);
}

.form-textarea:focus {
  border-color: #A4C61E;
  background: var(--white-color);
  box-shadow: 0 0 0 3px rgba(164, 198, 30, 0.12);
}

/* ===== SUBMIT AREA ===== */
.form-submit-area {
  padding: 2rem 2.5rem;
  background: #f8fafc;
  border-top: 1px solid var(--gray-200);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.btn--full {
  width: 100%;
  justify-content: center;
  font-size: 1rem;
  letter-spacing: 0.3px;
  gap: 0.6rem;
}

.form-trust-message {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--gray-500);
}

.form-trust-message span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

/* ===================================================
   COLUMNA DERECHA: MAPA + DIRECCIÓN
   =================================================== */
.contacto-info-wrapper {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--white-color);
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: sticky;
  top: 5.5rem;
}

/* ===== MAPA ===== */
.contacto-map {
  width: 100%;
  overflow: hidden;
  line-height: 0;
  border-bottom: 1px solid var(--gray-200);
}

.contacto-map iframe {
  display: block;
  width: 100%;
}

/* ===== DIRECCIÓN ===== */
.contacto-address {
  padding: 1.75rem;
}

.contacto-address__header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--gray-200);
}

.contacto-address__icon-wrap {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, #213564 0%, #2d4a8a 100%);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}

.contacto-address__title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #213564;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* Lista de datos de dirección */
.contacto-address__list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.contacto-address__item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.875rem;
}

.contacto-address__label {
  font-weight: 700;
  color: #213564;
  min-width: 68px;
  flex-shrink: 0;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-top: 0.05rem;
}

.contacto-address__value {
  color: var(--gray-700);
  font-weight: 500;
  line-height: 1.45;
}

.contacto-address__link {
  color: #A4C61E;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.contacto-address__link:hover {
  color: #7cb518;
  text-decoration: underline;
}

/* ===== BADGES DE CONFIANZA ===== */
.contacto-trust-badges {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-700);
  background: rgba(164, 198, 30, 0.07);
  border: 1px solid rgba(164, 198, 30, 0.2);
  padding: 0.5rem 0.875rem;
  border-radius: var(--border-radius-sm);
}

.trust-badge svg {
  color: #A4C61E;
  flex-shrink: 0;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 1024px) {
  .contacto-layout {
    grid-template-columns: 1fr 360px;
    gap: 2rem;
  }
}

@media (max-width: 900px) {
  .contacto-layout {
    grid-template-columns: 1fr;
  }

  .contacto-info-wrapper {
    position: static;
    order: -1; /* Mapa arriba del formulario en mobile */
  }

  .contacto-page-header {
    padding: 5rem 1rem 3rem;
  }
}

@media (max-width: 640px) {
  .form-section {
    padding: 1.5rem 1.25rem;
  }

  .form-submit-area {
    padding: 1.5rem 1.25rem;
  }

  .form-grid--2 {
    grid-template-columns: 1fr;
  }

  .contacto-address {
    padding: 1.25rem;
  }

  .contacto-page-header__title {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .form-trust-message {
    flex-direction: column;
    gap: 0.6rem;
    align-items: flex-start;
  }
}

/* ===================================================
   TOAST NOTIFICATIONS
   =================================================== */
.toast-container {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background: #fff;
  border-radius: var(--border-radius-lg, 12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14), 0 2px 8px rgba(0, 0, 0, 0.08);
  padding: 1rem 1.25rem;
  min-width: 300px;
  max-width: 380px;
  pointer-events: auto;
  border-left: 4px solid transparent;
  opacity: 0;
  transform: translateX(110%);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.toast--visible {
  opacity: 1;
  transform: translateX(0);
}

.toast--hiding {
  opacity: 0;
  transform: translateX(110%);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.toast--success {
  border-left-color: #A4C61E;
}

.toast--error {
  border-left-color: #e53e3e;
}

.toast__icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.toast--success .toast__icon {
  background: rgba(164, 198, 30, 0.12);
  color: #A4C61E;
}

.toast--error .toast__icon {
  background: rgba(229, 62, 62, 0.1);
  color: #e53e3e;
}

.toast__body {
  flex: 1;
  padding-top: 0.1rem;
}

.toast__title {
  font-size: 0.9rem;
  font-weight: 700;
  color: #213564;
  margin: 0 0 0.2rem 0;
}

.toast__message {
  font-size: 0.82rem;
  color: var(--gray-600, #6b7280);
  margin: 0;
  line-height: 1.5;
}

.toast__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-400, #9ca3af);
  padding: 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.2s;
}

.toast__close:hover {
  color: var(--gray-700, #374151);
}

.toast__progress {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  border-radius: 0 0 0 var(--border-radius-lg, 12px);
  animation: toast-progress linear forwards;
}

.toast--success .toast__progress {
  background: #A4C61E;
}

.toast--error .toast__progress {
  background: #e53e3e;
}

@keyframes toast-progress {
  from { width: 100%; }
  to   { width: 0%; }
}

@media (max-width: 480px) {
  .toast-container {
    top: auto;
    bottom: 1.5rem;
    right: 1rem;
    left: 1rem;
  }

  .toast {
    min-width: unset;
    max-width: 100%;
  }
}