/* SECCIÓN: CONTACTO */

#contacto {
  background: #3c4a57 url('../img/background.jpg') no-repeat center center;
  background-size: cover;
  position: relative;
  width: 100%;
  padding: 100px 0;
  color: #ffffff;
  font-family: 'IBM Plex Sans', sans-serif;
}

/* Contenedor principal alineado con el resto de las secciones */
.contacto-container {
  max-width: 1512px;
  margin: 0 auto;
  padding: 0 48px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
  align-items: start;
}

/* ─── COLUMNA IZQUIERDA: INFORMACIÓN ─── */
.contacto-info-col {
  display: flex;
  flex-direction: column;
}

.contacto-info-col h2 {
  font-size: 3rem;
  font-weight: 300;
  line-height: 1.25;
  margin: 0 0 24px 0;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.contacto-title-bold {
  font-weight: 500;
}

.contacto-subtitle {
  font-size: 1.25rem;
  font-weight: 300;
  line-height: 1.5;
  color: #cfd8dc;
  margin: 0 0 48px 0;
}

.contacto-detalles {
  margin-bottom: 32px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contacto-direccion,
.contacto-ciudad,
.contacto-arrow {
  font-size: 0.875rem;
  margin: 4px 0;
  color: #B5A89F;
  font-weight: 400;
}

.contacto-arrow {
  display: flex;
  align-items: center;
}

.contacto-redes {
  display: flex;
  align-items: center;
  justify-content: start;
  gap: 1rem;
}

.contacto-redes a {
  display: flex;
  align-items: center;
}

.contacto-redes a img {
  height: 32px;
  width: 32px;
}

.contacto-redes .divider-v {
  height: 32px;
  width: 1px;
  background-color: #717F8B;
}

/* ─── COLUMNA DERECHA: TARJETA FORMULARIO ─── */
.contacto-form-col {
  display: flex;
  justify-content: flex-end;
}

.form-card {
  background-color: #F6F6F7;
  border-radius: 4px;
  padding: 40px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
  color: #1a1f27;
}

/* Campos de Formulario */
.form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
  position: relative;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-card label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: capitalize;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  margin-left: 12px;
  color: #3F3B38;
}

.form-card label .opcional {
  text-transform: lowercase;
  font-weight: 400;
  color: #718096;
}

/* Inputs y Textarea */
.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="tel"],
.form-card textarea {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 0.875rem;
  font-weight: 400;
  padding: 16px;
  border: 1px solid #DAD3CF;
  border-radius: 2px;
  background-color: #ffffff;
  color: #3F3B38;
  outline: none;
  transition: border-color 0.2s;
}

.form-card input:focus,
.form-card textarea:focus {
  border-color: #718096;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
  color: #DAD3CF;
}

.form-card textarea {
  height: 120px;
  resize: none;
}

.char-counter {
  font-size: 0.75rem;
  color: #B5A89F;
  text-align: right;
  margin-top: 4px;
}

/* ─── SISTEMA DE CHIPS (ASUNTO) ─── */
.asunto-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip-label input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.chip-label input[type="radio"]:focus-visible + span {
  outline: 2px solid #718096; 
  outline-offset: 3px;
}

.chip-label {
  margin: 0 !important;
}

/* Estilo visual del chip plano */
.chip-label span {
  display: inline-block;
  padding: 4px 16px;
  background-color: #DAD3CF;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #B5A89F;
  cursor: pointer;
  letter-spacing: 0.02em;
  transition: all 0.2s ease;
}

.chip-label span:hover {
  background-color: #cbd5e0;
}

/* Estado seleccionado (cuando el radio nativo está activo) */
.chip-label input[type="radio"]:checked+span {
  background-color: #d2c5bc;
  color: #3F3B38;
  border-color: #b98b673b;
}

/* ─── BOTÓN ENVIAR (HABLEMOS) ─── */
.btn-hablemos:disabled {
  background-color: #DAD3CF !important;
  color: #B5A89F !important;
  cursor: not-allowed;
  opacity: 0.7;
}

.btn-hablemos {
  font-family: var(--font);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: #FF8873;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  padding: 16px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: background-color 0.2s;
  padding: 12px 10px;
  height: 56px;
  margin-bottom: 0.25rem;
}

.btn-hablemos:hover {
  background-color: #e06f58;
}

.btn-hablemos .material-symbols-rounded {
  font-size: 24px;
}

.text-small {
  color: #766D67;
  font-weight: 400;
  font-family: var(--font);
  font-size: 0.75rem;
}

/* RESPONSIVE DESIGN (960px)*/
@media (max-width: 960px) {
  #contacto {
    padding: 60px 0;
  }

  .contacto-container {
    grid-template-columns: 1fr;
    gap: 48px;
    padding: 0 24px;
  }

  .contacto-info-col h2 {
    font-size: 2rem;
  }

  .contacto-subtitle {
    margin-bottom: 32px;
  }

  .contacto-mapa-wrapper {
    max-width: 100%;
    /* El mapa ocupa todo el ancho adaptativo en móviles */
  }

  .contacto-form-col {
    justify-content: center;
  }

  .form-card {
    max-width: 100%;
    padding: 30px 20px;
    /* Reducción de espacio interno para pantallas compactas */
  }
}

@media (max-width: 480px) {

  /* En teléfonos muy delgados dividimos la fila de Email y Teléfono en dos líneas */
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}