/* ============================================================
   contacto.css — Estilos específicos de /contacto
   Depende de: tokens.css, base.css, layout.css, carreras.css
   ============================================================ */

/* ── HERO sin imagen ──────────────────────────────────────── */
.contacto-hero {
  position: relative;
  background: var(--cft-black, #0d0d0d);
  overflow: hidden;
}

/* Fondo de imagen se oculta; el patrón reemplaza */
.contacto-hero .page-hero-bg {
  display: none;
}

.contacto-hero-pattern {
  position: absolute;
  inset: 0;
  background-image: url('../img/pattern-chorreras.svg');
  background-size: 480px auto;
  background-repeat: repeat;
  opacity: 0.08;
  pointer-events: none;
  z-index: 0;
}

.contacto-hero .page-hero-inner {
  position: relative;
  z-index: 1;
}

/* ── SECCIÓN PRINCIPAL ────────────────────────────────────── */
.contacto-section {
  background: #f5f5f5;
  padding-block: 4rem 5rem;
}

/* ── LAYOUT 2 COLUMNAS ────────────────────────────────────── */
.contacto-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

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

/* ── FORMULARIO ───────────────────────────────────────────── */
.contacto-form-col h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  font-weight: 700;
  margin-bottom: 1.75rem;
  color: var(--cft-black, #0d0d0d);
}

.contacto-form {
  background: #fff;
  border-radius: 16px;
  padding: 2rem 2rem 2.25rem;
  box-shadow: 0 2px 20px rgba(0,0,0,.07);
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (max-width: 480px) {
  .contacto-form {
    padding: 1.25rem;
  }
}

/* ── CAMPO GENÉRICO ───────────────────────────────────────── */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #2d2d2d;
  line-height: 1.3;
}

.form-field .req {
  color: var(--cft-red, #A83030);
  margin-left: 1px;
}

.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: #fff;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  padding: 0.625rem 0.875rem;
  transition: border-color 0.18s, box-shadow 0.18s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}

.form-field input[type="text"]:focus,
.form-field input[type="email"]:focus,
.form-field input[type="tel"]:focus,
.form-field textarea:focus {
  border-color: var(--cft-red, #A83030);
  box-shadow: 0 0 0 3px rgba(168,48,48,.15);
}

.form-field input[type="text"]:invalid:not(:placeholder-shown),
.form-field input[type="email"]:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}

.form-field textarea {
  resize: vertical;
  min-height: 120px;
  line-height: 1.55;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #aaa;
}

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

.select-wrapper select {
  font-family: inherit;
  font-size: 0.9375rem;
  color: #1a1a1a;
  background: #fff;
  border: 1.5px solid #d0d0d0;
  border-radius: 8px;
  padding: 0.625rem 2.5rem 0.625rem 0.875rem;
  width: 100%;
  appearance: none;
  outline: none;
  cursor: pointer;
  transition: border-color 0.18s, box-shadow 0.18s;
}

.select-wrapper select:focus {
  border-color: var(--cft-red, #A83030);
  box-shadow: 0 0 0 3px rgba(168,48,48,.15);
}

.select-wrapper select option[value=""][disabled] {
  color: #aaa;
}

.select-chevron {
  position: absolute;
  right: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #666;
  pointer-events: none;
}

/* ── CHECKBOX ─────────────────────────────────────────────── */
.form-field--check {
  margin-top: 0.25rem;
}

.check-label {
  display: flex;
  gap: 0.625rem;
  align-items: flex-start;
  cursor: pointer;
  font-size: 0.875rem;
  color: #444;
  line-height: 1.45;
}

.check-label input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--cft-red, #A83030);
  cursor: pointer;
}

.check-label a {
  color: var(--cft-red, #A83030);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.check-label a:hover {
  text-decoration: none;
}

/* ── BOTÓN FULL WIDTH ─────────────────────────────────────── */
.btn-full {
  width: 100%;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

/* ── COLUMNA INFO ─────────────────────────────────────────── */
.contacto-info-col {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.info-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ── INFO CARD ────────────────────────────────────────────── */
.info-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: #fff;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.info-card--address {
  margin-bottom: 0.75rem;
}

.info-card-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: rgba(168,48,48,.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cft-red, #A83030);
}

.info-card-icon svg {
  width: 22px;
  height: 22px;
}

/* WhatsApp icon uses fill, not stroke */
.info-card-icon--wa {
  background: rgba(37,211,102,.1);
  color: #25d366;
}

.info-card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.info-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
}

.info-card-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: #1a1a1a;
  word-break: break-word;
  text-decoration: none;
  transition: color 0.15s;
}

a.info-card-value:hover {
  color: var(--cft-red, #A83030);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── SEPARADOR ────────────────────────────────────────────── */
.info-divider {
  border: none;
  border-top: 1.5px solid #e8e8e8;
  margin: 1.5rem 0;
}

/* ── MAPA ─────────────────────────────────────────────────── */
.mapa-wrapper {
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e8e8e8;
  box-shadow: 0 2px 16px rgba(0,0,0,.1);
}

.mapa-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* ── REDES SOCIALES ───────────────────────────────────────── */
.redes-section {
  background: #fff;
  padding-block: 4rem;
  text-align: center;
}

.redes-titulo {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--cft-black, #0d0d0d);
}

.redes-bajada {
  font-size: 1rem;
  color: #666;
  margin-bottom: 2.5rem;
}

.redes-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.red-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  background: #f5f5f5;
  border-radius: 20px;
  padding: 2rem 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  min-width: 160px;
}

.red-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 28px rgba(0,0,0,.12);
  background: #fff;
}

.red-card-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.red-card-icon svg {
  width: 32px;
  height: 32px;
}

/* Instagram */
.red-card-icon--ig {
  background: linear-gradient(135deg, #f9ce34, #ee2a7b, #6228d7);
  color: #fff;
}

/* Facebook */
.red-card-icon--fb {
  background: #1877f2;
  color: #fff;
}

/* YouTube */
.red-card-icon--yt {
  background: #ff0000;
  color: #fff;
}

.red-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
}

.red-card-handle {
  font-size: 0.8125rem;
  color: #888;
}

/* ── ACCESIBILIDAD: foco visible ──────────────────────────── */
.contacto-form input:focus-visible,
.contacto-form textarea:focus-visible,
.contacto-form select:focus-visible {
  outline: 3px solid var(--cft-red, #A83030);
  outline-offset: 2px;
}

.red-card:focus-visible,
.info-card a:focus-visible {
  outline: 3px solid var(--cft-red, #A83030);
  outline-offset: 3px;
  border-radius: 4px;
}
