/* ═══════════════════════════════════════════════
   MAGA KITCHEN — contacto.css
═══════════════════════════════════════════════ */

/* ── Nav CTA activo ── */
.nav-active-cta {
  background: var(--black) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
}

/* ══ HERO ══ */
.contact-hero {
  position: relative;
  height: 380px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.contact-hero-bg {
  position: absolute;
  inset: 0;
}

.contact-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  display: block;
}

.contact-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.82) 0%,
    rgba(0,0,0,.45) 55%,
    rgba(0,0,0,.15) 100%
  );
}

.contact-hero-content {
  position: relative;
  z-index: 2;
  padding: 0 40px 48px;
  max-width: 580px;
}

.contact-hero-h1 {
  font-family: 'Playfair Display', serif;
  font-size: 52px;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 12px;
}

.contact-hero-sub {
  font-size: 15px;
  color: rgba(255,255,255,.65);
  line-height: 1.7;
  max-width: 480px;
}

/* ══ CUERPO: 2 columnas ══ */
.contact-body {
  display: grid;
  grid-template-columns: 1fr 600px;
  gap: 0;
  background: var(--white);
  min-height: 600px;
}

/* ── Columna formulario ── */
.contact-form-col {
  padding: 64px 56px 72px 40px;
  border-right: 1px solid var(--border);
}

.contact-intro {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
}

/* ── Reutiliza estilos de cocinas.css ── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 500;
  color: var(--black);
  letter-spacing: .2px;
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: var(--black);
  background: var(--white);
  border: 1px solid var(--border);
  padding: 11px 14px;
  outline: none;
  transition: border-color .2s;
  border-radius: 0;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%236b6560' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--red); }

.form-group input.error,
.form-group select.error { border-color: #c0392b; }

.form-group textarea { resize: vertical; min-height: 100px; line-height: 1.6; }

/* ── Radio group ── */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 4px;
}

.radio-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 13px;
  color: #444;
  user-select: none;
}

.radio-opt input[type="radio"] { display: none; }

.radio-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
  transition: border-color .2s;
}

.radio-opt input:checked ~ .radio-box {
  border-color: var(--red);
}

.radio-opt input:checked ~ .radio-box::after {
  content: '';
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--red);
}

/* ── Checkbox group ── */
.check-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}

.check-opt {
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  color: #444;
  user-select: none;
}

.check-opt input[type="checkbox"] { display: none; }

.check-box {
  width: 16px;
  height: 16px;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  position: relative;
  transition: all .2s;
}

.check-opt input:checked ~ .check-box {
  background: var(--red);
  border-color: var(--red);
}

.check-opt input:checked ~ .check-box::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 1px;
  width: 8px;
  height: 5px;
  border-left: 1.5px solid #fff;
  border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}

.check-opt svg { color: var(--muted); flex-shrink: 0; }
.check-opt:has(input:checked) svg { color: var(--red); }

/* ── Submit button ── */
.btn-submit-contact {
  background: var(--red);
  color: var(--white);
  border: none;
  padding: 15px 28px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  letter-spacing: .3px;
  transition: opacity .2s;
  margin-top: 6px;
  width: 100%;
}

.btn-submit-contact:hover { opacity: .88; }
.btn-submit-contact:disabled { opacity: .5; cursor: not-allowed; }

.form-note {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.5;
}

.form-note svg { flex-shrink: 0; color: var(--red); }

/* Success */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
  border: 1px solid var(--border);
}

.form-success.show { display: block; }

.form-success-icon {
  width: 64px;
  height: 64px;
  background: rgba(128,0,32,.07);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--red);
}

.form-success h3 {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  color: var(--black);
  margin-bottom: 8px;
}

.form-success p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

.btn-wa-success {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: var(--white);
  padding: 11px 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  transition: opacity .2s;
}

.btn-wa-success:hover { opacity: .88; }

/* ── Columna info ── */
.contact-info-col {
  padding: 64px 36px 72px;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.info-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px 22px;
}

.info-card-client {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-left: 3px solid var(--red);
}

.info-card-icon {
  width: 36px;
  height: 36px;
  background: rgba(128,0,32,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 17px;
  color: var(--black);
  margin-bottom: 8px;
  font-weight: 500;
}

.info-card p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 10px;
}

.info-email {
  font-size: 12px;
  color: var(--red);
  word-break: break-all;
  font-weight: 500;
  transition: opacity .2s;
}

.info-email:hover { opacity: .7; }

.info-datos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 4px;
}

.info-dato {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.info-dato-icon {
  width: 32px;
  height: 32px;
  background: rgba(128,0,32,.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--red);
}

.info-dato-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 2px;
}

.info-dato-val {
  font-size: 13px;
  color: var(--black);
  font-weight: 500;
}

.info-link { color: var(--red); transition: opacity .2s; }
.info-link:hover { opacity: .7; }

/* WA directo */
.wa-direct-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #25d366;
  color: var(--white);
  padding: 14px 20px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: .2px;
  transition: opacity .2s;
  text-align: center;
}

.wa-direct-btn:hover { opacity: .88; }

/* Showroom image */
.info-showroom {
  position: relative;
  overflow: hidden;
}

.info-showroom img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.info-showroom-label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: rgba(0,0,0,.65);
  padding: 8px 14px;
  font-size: 11px;
  font-family: 'DM Sans', sans-serif;
  color: rgba(255,255,255,.7);
  letter-spacing: .3px;
}

/* ══════════════════════════════════════════════
   RESPONSIVE — TABLET ≤900px
══════════════════════════════════════════════ */
@media (max-width: 900px) {
  .contact-hero { height: 320px; }
  .contact-hero-h1 { font-size: 40px; }
  .contact-hero-content { padding: 0 24px 40px; }

  .contact-body { grid-template-columns: 1fr; }

  .contact-form-col {
    padding: 48px 24px 56px;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .contact-info-col { padding: 40px 24px 56px; }
}

/* ══════════════════════════════════════════════
   RESPONSIVE — MOBILE ≤600px
══════════════════════════════════════════════ */
@media (max-width: 600px) {
  .contact-hero { height: 280px; }
  .contact-hero-h1 { font-size: 32px; }
  .contact-hero-content { padding: 0 20px 32px; }

  .contact-form-col { padding: 40px 20px 48px; }
  .contact-info-col { padding: 32px 20px 48px; }

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

  .radio-group { gap: 8px; }
  .check-group { gap: 10px; }

  .info-showroom img { height: 160px; }

  .nav { z-index: 401; }
}
