/* ct-canales — retícula de canales sobre crema #FBF8F4 (el hero es tinta y el formulario blanco).
   WhatsApp en tinta como canal principal; el resto, tarjetas blancas. Hover: sube, borde naranja y flecha en naranja. */

.ctc { position: relative; padding: clamp(64px, 8vw, 120px) max(var(--m), calc((100vw - 1320px) / 2)); background: #FBF8F4; color: #121011; }
.ctc__cab { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 12px clamp(24px, 5vw, 80px); align-items: end; margin-bottom: clamp(32px, 4vw, 56px); }
.ctc__ceja { grid-column: 1 / -1; margin: 0; color: #C8410F; font-size: 14px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.ctc__cab h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.02; }
.ctc__intro { margin: 0; color: #4A4547; font-size: clamp(16px, 1.3vw, 18.5px); line-height: 1.55; }

/* ── Retícula (escritorio: 12 columnas) ── */
.ctc__red { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-flow: dense; gap: clamp(12px, 1.4vw, 18px); }
.ctc__card { position: relative; grid-column: span 3; display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: clamp(20px, 2vw, 28px); border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px #ECE5DC; color: #121011; text-decoration: none; transition: transform .45s var(--ease), box-shadow .35s, background-color .35s; }
a.ctc__card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1.5px #FF5B23, 0 22px 40px -26px rgba(18, 16, 17, .45); }
.ctc__card:focus-visible, .ctc__btn:focus-visible, .ctc__dato--correo:focus-visible { outline: 3px solid #FF5B23; outline-offset: 3px; }
.ctc__card--wa { grid-column: span 5; grid-row: span 2; }
.ctc__card--correo { grid-column: span 4; }
.ctc__card--horario { grid-column: span 7; }
.ctc__card--donde { grid-column: span 6; overflow: hidden; }

.ctc__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: auto; padding-bottom: 18px; }
.ctc__ico { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: #F4F1EC; color: #121011; transition: background-color .35s, color .35s; }
.ctc__ir { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; box-shadow: inset 0 0 0 1px #E2D8CC; color: #121011; transition: background-color .35s, color .35s, box-shadow .35s, transform .45s var(--ease); }
.ctc__ir svg { width: 18px; height: 18px; }
a.ctc__card:hover .ctc__ir { background: #FF5B23; box-shadow: none; color: #fff; transform: rotate(45deg); }
a.ctc__card:hover .ctc__ico { background: #121011; color: var(--lima); }

.ctc__et { color: #6C6A6C; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ctc__dato { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; letter-spacing: -.015em; line-height: 1.25; overflow-wrap: anywhere; }
.ctc__txt { color: #4A4547; font-size: 15px; line-height: 1.5; }

/* ── WhatsApp: tinta, número grande, estado en vivo ── */
.ctc__card--wa { gap: 10px; padding: clamp(24px, 2.6vw, 40px); background: radial-gradient(90% 70% at 100% 0%, rgba(255, 91, 35, .28), rgba(18, 16, 17, 0) 70%), radial-gradient(70% 60% at 0% 100%, rgba(210, 251, 140, .12), rgba(18, 16, 17, 0) 70%), #121011; box-shadow: none; color: #fff; overflow: hidden; }
.ctc__card--wa::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.3px); background-size: 18px 18px; }
.ctc__card--wa > * { position: relative; z-index: 1; }
.ctc__card--wa:hover { box-shadow: inset 0 0 0 1.5px var(--lima), 0 30px 60px -30px rgba(18, 16, 17, .8); }
.ctc__ico--wa { width: 56px; height: 56px; border-radius: 18px; background: var(--lima); color: #121011; }
a.ctc__card--wa:hover .ctc__ico--wa { background: var(--lima); color: #121011; }
.ctc__card--wa .ctc__et { color: rgba(255, 255, 255, .62); }
.ctc__dato--grande { font-family: 'Marko Display', var(--f); font-size: clamp(32px, 3.4vw, 50px); font-weight: 800; letter-spacing: -.01em; line-height: 1.05; white-space: nowrap; }
.ctc__card--wa .ctc__txt { max-width: 34ch; color: rgba(255, 255, 255, .72); }
.ctc__abrir { display: inline-flex; align-items: center; align-self: flex-start; gap: 10px; min-height: 52px; margin-top: 18px; padding: 0 22px 0 26px; border-radius: 999px; background: #FF5B23; color: #fff; font-weight: 600; transition: background-color .3s, color .3s, gap .35s var(--ease); }
.ctc__abrir svg { width: 18px; height: 18px; }
.ctc__card--wa:hover .ctc__abrir { gap: 16px; background: var(--lima); color: #121011; }

/* Vista previa del chat: llena el centro de la tarjeta y repite la idea del hero */
.ctc__vista { display: grid; gap: 8px; margin: -4px 0 auto; padding-bottom: 22px; font-size: 13.5px; line-height: 1.4; }
.ctc__vista i { max-width: 82%; padding: 9px 13px; border-radius: 16px; font-style: normal; }
.ctc__vista i:first-child { justify-self: end; border-bottom-right-radius: 4px; background: var(--lima); color: #121011; }
.ctc__vista i:last-child { justify-self: start; border-bottom-left-radius: 4px; background: rgba(251, 248, 244, .1); color: rgba(255, 255, 255, .88); }

/* Estado en vivo (texto lo pone ct-hero.js) */
.ctc__vivo { display: inline-flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .86); font-size: 12.5px; font-weight: 500; line-height: 1.25; text-align: right; }
.ctc__vivo i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .5); }
.ct--abierto .ctc__vivo i { background: var(--lima); box-shadow: 0 0 0 3px rgba(210, 251, 140, .25); }
.ct--cerrado .ctc__vivo i { background: #FF5B23; }
.ctc__vivo--claro { background: #F4F1EC; color: #121011; }
.ct--abierto .ctc__vivo--claro i { background: #3E8E1E; box-shadow: 0 0 0 3px rgba(62, 142, 30, .18); }

/* ── Correo: copiar ── */
.ctc__dato--correo { align-self: flex-start; color: #121011; text-decoration: none; background: linear-gradient(#FF5B23, #FF5B23) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .3s; }
.ctc__dato--correo:hover { color: #C8410F; background-size: 100% 2px; }
.ctc__botones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ctc__btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: transparent; box-shadow: inset 0 0 0 1.5px #121011; color: #121011; font: 600 15px/1 var(--f); text-decoration: none; cursor: pointer; transition: background-color .3s, color .3s, box-shadow .3s, transform .3s var(--ease); }
.ctc__btn:hover { background: #121011; color: #fff; transform: translateY(-2px); }
.ctc__btn--tinta { background: #121011; color: #fff; }
.ctc__btn--tinta:hover { background: #C8410F; box-shadow: inset 0 0 0 1.5px #C8410F; color: #fff; }
.ctc__btn.is-copiado, .ctc__btn.is-copiado:hover { background: var(--lima); box-shadow: inset 0 0 0 1.5px var(--lima); color: #121011; }

/* ── Horario: semana en fichas, hoy resaltado ── */
.ctc__semana { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.ctc__semana li { position: relative; display: grid; place-items: center; height: 46px; border-radius: 12px; background: #F4F1EC; color: #121011; font-weight: 700; font-size: 15px; }
.ctc__semana li.is-cierra { background: transparent; box-shadow: inset 0 0 0 1px #ECE5DC; color: #6C6A6C; font-weight: 500; }
.ctc__semana li.is-hoy { background: #121011; box-shadow: none; color: #fff; }
.ctc__semana li.is-hoy::after { content: "hoy"; position: absolute; top: -9px; left: 50%; padding: 1px 6px; border-radius: 6px; background: #FF5B23; color: #fff; font-size: 10px; font-weight: 700; line-height: 1.5; text-transform: uppercase; letter-spacing: .06em; transform: translateX(-50%); }
.ct--abierto .ctc__semana li.is-hoy { background: var(--lima); color: #121011; }
.ctc__horas { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-top: 14px; }
.ctc__horas b { font-size: clamp(18px, 1.5vw, 22px); font-weight: 600; }
.ctc__horas span { color: #6C6A6C; font-size: 14px; }
.ctc__horas time { color: #121011; font-weight: 600; font-variant-numeric: tabular-nums; }
.ctc__sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Dónde estamos: trazo de cerro con punto que late ── */
.ctc__card--donde .ctc__txt { max-width: 26ch; }
.ctc__mapa { position: absolute; right: -6px; bottom: 6px; width: min(46%, 240px); height: auto; color: #FF5B23; fill: #FF5B23; opacity: .9; }
.ctc__eco { fill: none; stroke: #FF5B23; stroke-width: 1.2; transform-box: fill-box; transform-origin: center; animation: ctc-eco 2.6s ease-out infinite; }
@keyframes ctc-eco { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(4); } }

/* ── Aviso «Correo copiado» ── */
.ctc__toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 90; margin: 0; padding: 12px 20px; border-radius: 999px; background: #121011; color: #fff; font-size: 15px; font-weight: 500; box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .6); opacity: 0; pointer-events: none; transform: translate(-50%, 16px); transition: opacity .3s, transform .4s var(--ease); }
.ctc__toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.ctc__toast::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--lima); vertical-align: 1px; }

/* ── Tablet ── */
@media (max-width: 1100px) {
	.ctc__card--wa { grid-column: span 12; grid-row: auto; }
	.ctc__card--tel { grid-column: span 5; }
	.ctc__card--correo { grid-column: span 7; }
	.ctc__card--horario { grid-column: span 12; }
	.ctc__card--wa .ctc__txt { max-width: 46ch; }
}
@media (max-width: 760px) {
	.ctc__cab { grid-template-columns: minmax(0, 1fr); }
}
/* ── Móvil: 2 columnas; WhatsApp, correo y horario a lo ancho; lo demás en pares ── */
@media (max-width: 600px) {
	.ctc { padding-top: 56px; padding-bottom: 64px; }
	.ctc__red { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.ctc__card { grid-column: span 1 !important; padding: 16px; border-radius: 20px; }
	.ctc__card--wa, .ctc__card--correo, .ctc__card--horario { grid-column: span 2 !important; }
	.ctc__card--wa { order: 1; padding: 22px; }
	.ctc__vista { display: none; }
	.ctc__card--correo { order: 2; }
	.ctc__card--tel { order: 3; }
	.ctc__card--donde { order: 4; }
	.ctc__card--horario { order: 5; }
	.ctc__card--red { order: 6; }
	.ctc__top { padding-bottom: 12px; }
	.ctc__ico { width: 40px; height: 40px; border-radius: 12px; }
	.ctc__ico svg { width: 20px; height: 20px; }
	.ctc__ir { width: 34px; height: 34px; }
	.ctc__dato { font-size: 16.5px; }
	.ctc__dato--grande { font-size: clamp(28px, 8.4vw, 36px); }
	.ctc__card--wa .ctc__txt { font-size: 14.5px; }
	.ctc__abrir { align-self: stretch; justify-content: center; margin-top: 10px; }
	.ctc__card--correo { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; align-items: center; }
	.ctc__card--correo .ctc__top { grid-row: span 2; padding: 0; }
	.ctc__card--correo .ctc__botones { grid-column: 1 / -1; margin-top: 12px; }
	.ctc__card--correo .ctc__botones > * { flex: 1; }
	.ctc__card--donde .ctc__txt { font-size: 13.5px; }
	.ctc__mapa { display: none; }
	.ctc__card--horario .ctc__top { padding-bottom: 8px; }
	.ctc__semana li { height: 40px; }
	.ctc__horas b { font-size: 17px; }
	.ctc__horas span { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
	.ctc *, .ctc *::before, .ctc *::after { animation: none !important; transition: none !important; }
}
