/* ============================================================
   COECO CREATIVE — Página Contacto
   Todo prefijado .ct- para no chocar con los estilos globales
   ============================================================ */

.ct-wrap {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-px);
}

.ct-kicker {
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: 13px;
  font-weight: 700;
  color: var(--orange);
  display: block;
}

/* ── Animación de entrada ── */
.rv {
  opacity: 0;
  transform: translateY(34px) scale(.99);
  transition: opacity .95s cubic-bezier(.16, 1, .3, 1),
              transform .95s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i, 0) * .1s);
}
.rv.in { opacity: 1; transform: none; }

/* ── Hero ── */
.ct-hero {
  padding: clamp(96px, 11vw, 150px) 0 clamp(30px, 4vw, 46px);
  text-align: center;
}
.ct-hero h1 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: .96;
  font-size: clamp(46px, 8vw, 104px);
  color: var(--brown);
  margin-top: 20px;
}
.ct-sub {
  font-family: var(--font-display);
  font-size: clamp(16px, 1.8vw, 21px);
  font-weight: 400;
  opacity: .66;
  max-width: 42ch;
  margin: 22px auto 0;
}

/* ── Bloque principal ── */
.ct-main { padding: clamp(30px, 5vw, 60px) 0 clamp(70px, 9vw, 120px); }

.ct-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 76px);
  align-items: start;
}

.ct-left h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.03em;
  line-height: 1.02;
  font-size: clamp(30px, 4vw, 52px);
  color: var(--brown);
  margin-top: 18px;
}
.ct-tagline {
  font-family: var(--font-display);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  opacity: .62;
  max-width: 42ch;
  margin: 20px 0 32px;
}

/* ── Datos de contacto ── */
.ct-details {
  margin-top: 44px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.ct-detail {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.ct-dicon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--imgbg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--orange);
}
.ct-dicon svg { width: 16px; height: 16px; }

.ct-dlabel {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.ct-dvalue {
  display: block;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
}
.ct-dvalue a { transition: color .2s var(--ease); }
.ct-dvalue a:hover { color: var(--orange); }
.ct-maplink {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 44px;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--orange);
  text-decoration: none;
}
.ct-maplink:hover { color: var(--brown); }

/* ── Tarjeta del formulario ── */
.ct-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(26px, 3.4vw, 42px);
  box-shadow: 0 30px 60px -52px rgba(63, 39, 24, .45);
}
.ct-card h3 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -.02em;
  color: var(--brown);
  margin-bottom: 24px;
}

.ct-fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.ct-field--full { grid-column: span 2; }

.ct-field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 7px;
}

.ct-field input,
.ct-field select,
.ct-field textarea {
  width: 100%;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 15px;
  outline: none;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  -webkit-appearance: none;
  appearance: none;
}
.ct-field textarea {
  resize: vertical;
  min-height: 130px;
  line-height: 1.55;
}
.ct-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%236E6E73' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 12px;
  padding-right: 38px;
}
.ct-field input::placeholder,
.ct-field textarea::placeholder { color: var(--muted); opacity: .7; }

.ct-field input:focus,
.ct-field select:focus,
.ct-field textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(234, 106, 30, .14);
}

.ct-field input.error,
.ct-field textarea.error,
.ct-field select.error {
  border-color: #c0392b;
  box-shadow: 0 0 0 3px rgba(192, 57, 43, .14);
}

/* ── Casilla de privacidad ── */
.ct-check {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-family: var(--font-display);
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
  cursor: pointer;
  text-transform: none;
  letter-spacing: normal;
  font-weight: 400;
  margin-bottom: 0;
}
.ct-check input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin-top: 2px;
  flex-shrink: 0;
  accent-color: var(--orange);
  cursor: pointer;
}
.ct-check input[type="checkbox"].error {
  outline: 2px solid #c0392b;
  outline-offset: 2px;
  border-radius: 3px;
}
.ct-check a {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ── Confirmación ── */
.ct-confirm {
  display: flex;
  align-items: center;
  gap: 11px;
  background: rgba(234, 106, 30, .08);
  border: 1px solid rgba(234, 106, 30, .3);
  color: var(--brown);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
}
.ct-confirm[hidden] { display: none; }
.ct-confirm svg { width: 20px; height: 20px; flex-shrink: 0; color: var(--orange); }

/* ── Botones ── */
.ct-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 16px 30px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: transform .3s cubic-bezier(.16, 1, .3, 1),
              background .3s, border-color .3s;
}
.ct-btn--primary { background: var(--orange); color: #fff; }
.ct-btn--primary:hover { background: var(--brown); transform: translateY(-3px); }

.ct-btn--ghost {
  background: transparent;
  color: var(--brown);
  border: 1px solid var(--line);
}
.ct-btn--ghost:hover { transform: translateY(-3px); border-color: var(--brown); }

.ct-btn--wa { background: #25D366; color: #fff; }
.ct-btn--wa:hover { background: #1fae55; transform: translateY(-3px); }
.ct-btn--wa svg { width: 21px; height: 21px; }

.ct-submit { width: 100%; margin-top: 22px; }

/* ── Cierre ── */
.ct-close {
  background: var(--brown-dark);
  color: #fff;
  padding: clamp(70px, 10vw, 130px) 0;
  text-align: center;
}
.ct-close h2 {
  font-family: var(--font-display);
  font-weight: 900;
  letter-spacing: -.035em;
  line-height: .97;
  font-size: clamp(34px, 5.6vw, 76px);
}
.ct-close .ct-sub { opacity: .6; }
.ct-ct {
  margin-top: 34px;
  display: flex;
  gap: 15px;
  justify-content: center;
  flex-wrap: wrap;
}
.ct-close .ct-btn--ghost {
  color: #fff;
  border-color: var(--line-dark);
}
.ct-close .ct-btn--ghost:hover { border-color: #fff; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .ct-grid { grid-template-columns: 1fr; }
  .ct-left h2 br { display: none; }
}
@media (max-width: 560px) {
  .ct-fgrid { grid-template-columns: 1fr; }
  .ct-field--full { grid-column: span 1; }
  .ct-close h2 br { display: none; }
}

/* ── Accesibilidad ── */
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .ct-btn { transition: none; }
}
