/* Contacto. Usa inicio.css (ix-*) y pauta.css (pa-*) y agrega sus piezas (ct-*). */

/* ── Portada con formulario ── */
.ct-hero { position: relative; min-height: max(100svh, 760px); display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); align-items: center; gap: 4vw;
  padding: 130px 4vw 80px; overflow: hidden; isolation: isolate; background: radial-gradient(55% 60% at 80% 50%, rgba(201,168,76,.15), transparent 70%), #0A0A0A; }
.ct-hero-txt { position: relative; z-index: 2; }
.ct-hero .pa-h1 { font-size: clamp(40px, 5vw, 78px); }
.ct-hero .pa-lead { margin: 22px 0 30px; }
.ct-form { padding: 30px; border-radius: 22px; background: rgba(18,18,17,.75); box-shadow: inset 0 0 0 1px rgba(201,168,76,.25); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  animation: ce-sube .9s cubic-bezier(.2,.8,.2,1) .6s both; }
@keyframes ce-sube { from { opacity: 0; transform: translateY(40px); } }
.ct-opciones { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ct-opciones > span { width: 100%; margin-bottom: 4px; font-size: 13px; color: rgba(244,239,227,.55); }
.ct-opciones label { position: relative; cursor: pointer; }
.ct-opciones input { position: absolute; opacity: 0; pointer-events: none; }
.ct-opciones b { display: inline-block; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; box-shadow: inset 0 0 0 1px rgba(244,239,227,.25); color: rgba(244,239,227,.8);
  transition: background .3s, color .3s, box-shadow .3s, transform .3s; }
.ct-opciones label:hover b { box-shadow: inset 0 0 0 1px #C9A84C; }
.ct-opciones input:checked + b { background: #C9A84C; color: #0A0A0A; box-shadow: none; transform: scale(1.05); }
.ct-opciones input:focus-visible + b { outline: 2px solid #E8C96A; outline-offset: 2px; }

.ct-escena { position: relative; height: min(76vh, 680px); min-height: 520px; }
.ct-arco { position: absolute; left: 12%; right: 8%; bottom: 0; top: 8%; border-radius: 999px 999px 0 0; background: linear-gradient(180deg, #C9A84C, #8F7430);
  transform: scaleY(0); transform-origin: bottom; animation: pa-subir 1.4s cubic-bezier(.7,0,.2,1) .2s forwards; }
.ct-escena > img { position: absolute; left: 12%; right: 8%; bottom: 0; top: 8%; width: 80%; height: 92%; object-fit: cover; object-position: center 15%; border-radius: 999px 999px 0 0;
  opacity: 0; animation: pa-lore 1.4s cubic-bezier(.2,.8,.2,1) .8s forwards; }
.ct-chat { position: absolute; left: -8%; bottom: 8%; z-index: 3; width: min(330px, 90%); padding: 0 0 14px; border-radius: 18px; overflow: hidden; background: #ECE5DD; color: #0A0A0A;
  box-shadow: 0 40px 70px rgba(0,0,0,.5); opacity: 0; animation: pa-entra .9s cubic-bezier(.2,.9,.25,1.2) 1.6s forwards, pa-flotar 7s ease-in-out 2.6s infinite; }
.ct-chat-cab { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #075E54; color: #fff; font-size: 14px; }
.ct-chat-cab small { margin-left: auto; font-size: 11px; opacity: .85; }
.ct-b { max-width: 84%; margin: 8px 12px 0; padding: 9px 12px; border-radius: 12px; font-size: 13px; line-height: 1.4; box-shadow: 0 1px 1px rgba(0,0,0,.1); opacity: 0; transform: translateY(10px) scale(.92);
  transition: opacity .4s, transform .5s cubic-bezier(.2,.9,.3,1.3); }
.ct-in { background: #fff; border-top-left-radius: 2px; margin-right: auto; transform-origin: 0 100%; }
.ct-out { background: #DCF8C6; border-top-right-radius: 2px; margin-left: auto; transform-origin: 100% 100%; }
.ct-b.ct-on { opacity: 1; transform: none; }
.ct-chat { display: flex; flex-direction: column; }
.ct-escribe { display: flex; gap: 4px; margin: 8px 12px 0; padding: 10px 12px; width: fit-content; border-radius: 12px; background: #fff; opacity: 0; transition: opacity .3s; }
.ct-escribe.ct-on { opacity: 1; }
.ct-escribe i { width: 6px; height: 6px; border-radius: 50%; background: #9a9a9a; animation: pa-punto 1.2s ease-in-out infinite; }
.ct-escribe i:nth-child(2) { animation-delay: .15s; } .ct-escribe i:nth-child(3) { animation-delay: .3s; }

/* ── Llamada de 30 minutos ── */
.ct-llamada { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 6vw; align-items: center; padding: 140px 4vw; background: #F4EFE3; color: #0A0A0A; }
.ct-reloj { position: relative; width: min(100%, 380px); justify-self: center; }
.ct-reloj svg { display: block; width: 100%; transform: rotate(-90deg); }
.ct-pista { fill: none; stroke: rgba(10,10,10,.1); stroke-width: 10; }
.ct-arco-p { fill: none; stroke: #C9A84C; stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--p, 0)); }
.ct-reloj > div { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ct-reloj b { font: 700 clamp(70px, 9vw, 120px)/1 'Playfair Display', serif; }
.ct-reloj span { font-size: 14px; color: #6b6a64; letter-spacing: 1px; }
.ct-pasos { list-style: none; margin: 34px 0 0; padding: 0; border-top: 1px solid rgba(10,10,10,.2); }
.ct-pasos li { padding: 24px 0; border-bottom: 1px solid rgba(10,10,10,.12); font-size: 15.5px; line-height: 1.65; color: #8a8982; transition: color .4s; }
.ct-pasos span { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase; color: rgba(143,116,48,.5); transition: color .4s; }
.ct-pasos b { display: block; font: 700 24px/1.2 'Playfair Display', serif; color: rgba(10,10,10,.35); transition: color .4s; }
.ct-pasos li.ct-on { color: #3B3A36; } .ct-pasos li.ct-on span { color: #8F7430; } .ct-pasos li.ct-on b { color: #0A0A0A; }

/* ── Canales ── */
.ct-canales { padding: 140px 4vw 120px; background: #0A0A0A; }
.ct-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.ct-canal { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 230px; padding: 30px 28px; border-radius: 22px; background: #121211; color: #F4EFE3; text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(201,168,76,.2); overflow: hidden; isolation: isolate; transition: box-shadow .4s; }
.ct-canal::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #C9A84C; clip-path: circle(0% at 100% 0%); transition: clip-path .7s cubic-bezier(.7,0,.2,1); }
.ct-canal:hover::before, .ct-canal:focus-visible::before { clip-path: circle(150% at 100% 0%); }
.ct-canal:hover, .ct-canal:focus-visible { color: #0A0A0A; }
.ct-canal.ix-rv:nth-child(2) { transition-delay: .08s; } .ct-canal.ix-rv:nth-child(3) { transition-delay: .16s; } .ct-canal.ix-rv:nth-child(4) { transition-delay: .24s; }
.ct-canal svg { width: 44px; height: 44px; margin-bottom: auto; fill: none; stroke: #C9A84C; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .4s, transform .5s cubic-bezier(.2,.9,.3,1.4); }
.ct-canal:hover svg { stroke: #0A0A0A; transform: scale(1.12) rotate(-6deg); }
.ct-canal small { margin-top: 30px; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: #C9A84C; transition: color .4s; }
.ct-canal:hover small { color: rgba(10,10,10,.7); }
.ct-canal b { font: 700 22px/1.2 'Playfair Display', serif; overflow-wrap: anywhere; }
.ct-canal .ct-correo { font-size: 15px; font-family: 'DM Sans', sans-serif; }
.ct-ir { position: absolute; right: 24px; top: 24px; font-size: 22px; transform: rotate(-45deg); transition: transform .4s; }
.ct-canal:hover .ct-ir { transform: none; }
.ct-wa { background: #0F1A13; box-shadow: inset 0 0 0 1px rgba(37,211,102,.35); }
.ct-donde { margin: 40px 0 0; text-align: center; font-size: 15px; color: rgba(244,239,227,.55); }

@media (max-width: 980px) {
  .ct-hero, .ct-llamada { grid-template-columns: minmax(0, 1fr); }
  .ct-hero { padding-top: 120px; }
  .ct-form { padding: 22px 18px; }
  .ct-escena { height: 470px; min-height: 0; max-width: 420px; width: 100%; margin: 0 auto; }
  .ct-escena { margin-bottom: 70px; }
  .ct-chat { left: 50%; margin-left: -135px; bottom: -60px; width: 270px; }
  .ct-b { font-size: 12px; }
  .ct-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ct-reloj { width: 260px; }
}
@media (max-width: 520px) { .ct-grid { grid-template-columns: minmax(0, 1fr); } .ct-canal { min-height: 170px; } }
@media (prefers-reduced-motion: reduce) and (max-width: 1px) {
  .ct-arco { animation: none; transform: none; } .ct-escena > img, .ct-chat, .ct-form { animation: none !important; opacity: 1; }
  .ct-b { opacity: 1; transform: none; } .ct-arco-p { stroke-dashoffset: 0; }
}
