/* =========================================================
   CONTACTO — Disfraces Murillo
   Solo se carga en la página de contacto (inc/contact.php).
   ========================================================= */

.ct {
    --ct-teal: #57b6ac;
    --ct-teal-dark: #1f6f68;
    --ct-teal-soft: #e8f6f4;
    --ct-red: #e63e3d;
    --ct-red-soft: #fdecec;
    --ct-yellow: #ffd23f;
    --ct-yellow-soft: #fff7d6;
    --ct-ink: #18181b;
    --ct-muted: #6b6b76;
    --ct-line: #ececef;
    --ct-bg: #faf8f4;
    --ct-radius: 22px;
    --ct-shadow: 0 1px 2px rgba(24, 24, 27, .04), 0 10px 28px rgba(24, 24, 27, .07);
    --ct-confetti:
        radial-gradient(circle at 8% 24%, rgba(255, 210, 63, .95) 0 5px, transparent 6px),
        radial-gradient(circle at 92% 20%, rgba(230, 62, 61, .9) 0 4px, transparent 5px),
        radial-gradient(circle at 84% 78%, rgba(255, 255, 255, .7) 0 4px, transparent 5px),
        radial-gradient(circle at 22% 86%, rgba(255, 255, 255, .55) 0 3px, transparent 4px),
        radial-gradient(circle at 64% 14%, rgba(255, 210, 63, .7) 0 3px, transparent 4px),
        radial-gradient(circle at 40% 60%, rgba(255, 255, 255, .35) 0 2px, transparent 3px),
        radial-gradient(circle at 72% 50%, rgba(230, 62, 61, .55) 0 3px, transparent 4px);
    background: var(--ct-bg);
    padding-bottom: 80px;
    color: var(--ct-ink);
}

.ct-wrap {
    width: min(1180px, 100% - 40px);
    margin-inline: auto;
}

.ct-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ct-yellow);
}

.ct-h2 {
    margin: 0;
    font-size: clamp(24px, 2.8vw, 32px);
    font-weight: 900;
    letter-spacing: -.025em;
    line-height: 1.1;
}

.ct-h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.ct-muted { color: var(--ct-muted); }
.ct-center { text-align: center; }

/* Botones */
.ct-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    border: 2px solid transparent;
    font: inherit;
    font-size: 15px;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s, background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.ct-btn svg { width: 18px; height: 18px; }
.ct-btn:active { transform: translateY(1px); }
.ct-btn--primary { background: var(--ct-red); color: #fff; box-shadow: 0 8px 18px rgba(230, 62, 61, .28); }
.ct-btn--primary:hover { background: #cf2f2e; color: #fff; }
.ct-btn--ghost { background: #fff; border-color: #dcdce1; color: var(--ct-ink); }
.ct-btn--ghost:hover { border-color: var(--ct-ink); color: var(--ct-ink); }
.ct-btn--light { background: #fff; color: var(--ct-teal-dark); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.ct-btn--light:hover { background: var(--ct-yellow); color: var(--ct-ink); }
.ct-btn--block { width: 100%; }

/* ---------- Cabecera ---------- */

.ct-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(44px, 7vw, 88px) 0 clamp(120px, 12vw, 150px);
    color: #fff;
    background: var(--ct-teal-dark);
    background-image: var(--ct-confetti), linear-gradient(125deg, var(--ct-teal) 0%, var(--ct-teal-dark) 72%);
}

/* Guirnalda de banderines en el borde superior */
.ct-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 30px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='30' viewBox='0 0 120 30'%3E%3Cpath d='M0 2 Q60 10 120 2' fill='none' stroke='%23ffffff' stroke-opacity='.6' stroke-width='1.5'/%3E%3Cpath d='M4 3.5 L24 4.5 L14 26 Z' fill='%23ffd23f'/%3E%3Cpath d='M34 5.5 L54 6.2 L44 28 Z' fill='%23e63e3d'/%3E%3Cpath d='M64 6.2 L84 5.5 L74 28 Z' fill='%23ffffff'/%3E%3Cpath d='M94 4.5 L114 3.5 L104 26 Z' fill='%23ffd23f'/%3E%3C/svg%3E") 0 0 / 120px 30px repeat-x;
    opacity: .95;
    pointer-events: none;
}

.ct-title {
    margin: 10px 0 14px;
    max-width: 16ch;
    font-size: clamp(36px, 6vw, 68px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.04em;
    color: #fff;
}

.ct-lead {
    margin: 0;
    max-width: 52ch;
    font-size: clamp(16px, 1.6vw, 19px);
    opacity: .92;
}

.ct-quick {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 34px;
}

.ct-quick-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .22);
    color: #fff;
    text-decoration: none;
    backdrop-filter: blur(4px);
    transition: background .15s, transform .15s;
}
.ct-quick-item:hover { background: rgba(255, 255, 255, .22); transform: translateY(-2px); color: #fff; }
.ct-quick-item small { display: block; font-size: 12px; opacity: .8; font-weight: 600; }
.ct-quick-item strong { display: block; font-size: 16.5px; font-weight: 900; letter-spacing: -.01em; }

.ct-quick-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #fff;
    color: var(--ct-teal-dark);
}
.ct-quick-item--wa .ct-quick-icon { background: #25d366; color: #fff; }

/* ---------- Tienda + mapa ---------- */

.ct-store {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    gap: 0;
    margin-top: -90px;
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 60px rgba(24, 24, 27, .12);
    overflow: hidden;
}

.ct-store-card { padding: clamp(24px, 4vw, 40px); }

.ct-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px 6px 8px;
    margin-bottom: 14px;
    border-radius: 999px;
    background: var(--ct-teal-soft);
    color: var(--ct-teal-dark);
    font-size: 13px;
    font-weight: 800;
}
.ct-badge svg { width: 18px; height: 18px; }

.ct-address {
    margin: 12px 0 22px;
    font-style: normal;
    font-size: 19px;
    line-height: 1.5;
    font-weight: 600;
}

.ct-store-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.ct-store-more {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 14px;
    font-size: 14px;
}
.ct-store-more a,
.ct-store-more button {
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 700;
    color: var(--ct-teal-dark);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
    text-decoration-color: rgba(31, 111, 104, .25);
    cursor: pointer;
}
.ct-store-more a:hover,
.ct-store-more button:hover { color: var(--ct-red); text-decoration-color: currentColor; }
.ct-store-more button.is-done { color: var(--ct-teal); text-decoration: none; }

.ct-hours {
    margin-top: 26px;
    padding-top: 22px;
    border-top: 1px dashed var(--ct-line);
}
.ct-hours ul { list-style: none; margin: 12px 0 0; padding: 0; }
.ct-hours li {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 8px 0;
    border-bottom: 1px solid var(--ct-line);
    font-size: 15px;
}
.ct-hours li:last-child { border-bottom: 0; }
.ct-hours li span { color: var(--ct-muted); }
.ct-hours li strong { font-weight: 800; text-align: right; }
.ct-hours p { margin: 8px 0 0; }
.ct-hours a { color: var(--ct-teal-dark); font-weight: 800; }

.ct-pickup {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 22px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--ct-yellow-soft);
    font-size: 14px;
    color: #5c4a10;
}
.ct-pickup svg { flex: none; width: 20px; height: 20px; color: #8a6500; stroke-width: 2.4; }

/* Mapa: hasta que se pulsa se ve un plano dibujado con CSS */
.ct-map {
    position: relative;
    min-height: 460px;
    background-color: #eef3ef;
    background-image:
        linear-gradient(90deg, transparent 0 46%, #fff 46% 49%, transparent 49%),
        linear-gradient(0deg, transparent 0 58%, #fff 58% 61%, transparent 61%),
        linear-gradient(28deg, transparent 0 70%, #fff 70% 72%, transparent 72%),
        linear-gradient(-62deg, transparent 0 30%, rgba(255, 255, 255, .8) 30% 31.5%, transparent 31.5%),
        repeating-linear-gradient(0deg, transparent 0 46px, rgba(255, 255, 255, .55) 46px 48px),
        repeating-linear-gradient(90deg, transparent 0 62px, rgba(255, 255, 255, .55) 62px 64px),
        radial-gradient(circle at 78% 22%, #d5ead8 0 70px, transparent 71px),
        radial-gradient(circle at 18% 80%, #d5ead8 0 90px, transparent 91px);
}

.ct-map-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 24px;
    text-align: center;
}
.ct-map-placeholder strong { font-size: 18px; font-weight: 900; margin-top: 8px; }
.ct-map-placeholder > span:not(.ct-map-pin) { color: var(--ct-muted); font-weight: 600; margin-bottom: 14px; }
.ct-map-placeholder small { margin-top: 10px; font-size: 12px; color: var(--ct-muted); }

.ct-map-pin {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 50% 50% 50% 6px;
    transform: rotate(-45deg);
    background: var(--ct-red);
    color: #fff;
    box-shadow: 0 10px 24px rgba(230, 62, 61, .35);
    animation: ct-bote 2.4s ease-in-out infinite;
}
.ct-map-pin svg { width: 28px; height: 28px; transform: rotate(45deg); stroke-width: 2.2; }

@keyframes ct-bote {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 -8px; }
}

.ct-map iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.ct-map.is-loaded .ct-map-placeholder { display: none; }

/* ---------- Canales ---------- */

.ct-channels { margin-top: 64px; }
.ct-channel-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-top: 26px;
}

.ct-channel {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--ct-line);
    border-radius: var(--ct-radius);
    box-shadow: var(--ct-shadow);
    transition: transform .15s;
}
.ct-channel:hover { transform: translateY(-3px); }
.ct-channel p { margin: 0 0 8px; color: var(--ct-muted); font-size: 14.5px; flex: 1; }
.ct-channel a {
    font-weight: 800;
    color: var(--ct-teal-dark);
    text-decoration: none;
    word-break: break-all;
}
.ct-channel a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ct-channel a:hover { color: var(--ct-red); }

.ct-channel-icon {
    display: grid;
    place-items: center;
    width: 50px;
    height: 50px;
    margin-bottom: 8px;
    border-radius: 16px;
    background: var(--ct-teal-soft);
    color: var(--ct-teal-dark);
    transform: rotate(-5deg);
}
.ct-channel--yellow .ct-channel-icon { background: var(--ct-yellow-soft); color: #8a6500; }
.ct-channel--red .ct-channel-icon { background: var(--ct-red-soft); color: var(--ct-red); }

/* ---------- Formulario ---------- */

.ct-form-zone {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    gap: 24px;
    margin-top: 64px;
    scroll-margin-top: 100px;
}

.ct-form-card {
    padding: clamp(24px, 4vw, 40px);
    background: #fff;
    border: 1px solid var(--ct-line);
    border-radius: 28px;
    box-shadow: var(--ct-shadow);
}
.ct-form-card > .ct-muted { margin: 6px 0 22px; }

.ct-alert {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 16px;
    font-weight: 700;
}
.ct-alert--ok { background: var(--ct-teal-soft); color: var(--ct-teal-dark); }
.ct-alert--error { background: var(--ct-red-soft); color: #a32221; }

.ct-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.ct-motivos { margin: 0 0 20px; padding: 0; border: 0; }
.ct-motivos legend { margin-bottom: 10px; font-size: 14px; font-weight: 800; }

.ct-chip { display: inline-block; margin: 0 8px 8px 0; cursor: pointer; }
.ct-chip input { position: absolute; opacity: 0; pointer-events: none; }
.ct-chip span {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 999px;
    border: 2px solid var(--ct-line);
    background: #fff;
    font-size: 14px;
    font-weight: 700;
    transition: border-color .15s, background .15s, color .15s;
}
.ct-chip:hover span { border-color: #cfcfd6; }
.ct-chip input:checked + span { border-color: var(--ct-teal); background: var(--ct-teal-soft); color: var(--ct-teal-dark); }
.ct-chip input:focus-visible + span { outline: 3px solid rgba(87, 182, 172, .4); outline-offset: 2px; }

.ct-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 16px;
}
.ct-fields p { margin: 0 0 16px; }
.ct-fields .ct-full { grid-column: 1 / -1; }
.ct-fields [hidden] { display: none; }

.ct-form label { display: block; margin-bottom: 6px; font-size: 13.5px; font-weight: 800; }
.ct-req { color: var(--ct-red); }
.ct-opt { color: var(--ct-muted); font-weight: 600; }

.ct-form input[type="text"],
.ct-form input[type="email"],
.ct-form input[type="tel"],
.ct-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    border: 2px solid var(--ct-line);
    border-radius: 14px;
    background: #fff;
    font: inherit;
    font-size: 16px;
    color: var(--ct-ink);
    box-sizing: border-box;
    transition: border-color .15s, box-shadow .15s;
}
.ct-form textarea { resize: vertical; min-height: 140px; }
.ct-form input:focus,
.ct-form textarea:focus { outline: none; border-color: var(--ct-teal); box-shadow: 0 0 0 4px rgba(87, 182, 172, .18); }

.ct-check {
    display: flex !important;
    align-items: flex-start;
    gap: 10px;
    margin: 4px 0 20px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    color: var(--ct-muted);
    cursor: pointer;
}
.ct-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--ct-teal); flex: none; }
.ct-check a { color: var(--ct-teal-dark); font-weight: 800; }

/* Ayuda rápida */
.ct-help {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-self: start;
    padding: 24px;
    border-radius: 28px;
    background: var(--ct-yellow-soft);
    border: 2px dashed rgba(138, 101, 0, .22);
}
.ct-help .ct-h3 { margin-bottom: 6px; }

.ct-help-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
    background: #fff;
    color: var(--ct-ink);
    text-decoration: none;
    transition: transform .15s, box-shadow .15s;
}
.ct-help-item:hover { transform: translateX(4px); box-shadow: var(--ct-shadow); color: var(--ct-ink); }
.ct-help-item > span:first-child {
    flex: none;
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: var(--ct-yellow);
    color: var(--ct-ink);
}
.ct-help-item strong { display: block; font-weight: 800; }
.ct-help-item small { display: block; color: var(--ct-muted); font-size: 13px; }

/* ---------- Móvil ---------- */

@media (max-width: 960px) {
    .ct-store { grid-template-columns: 1fr; }
    .ct-map { min-height: 320px; order: -1; }
    .ct-channel-grid { grid-template-columns: 1fr; }
    .ct-form-zone { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .ct-quick { grid-template-columns: 1fr 1fr; gap: 8px; }
    .ct-quick-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 12px; }
    .ct-quick-item strong { font-size: 15px; }
    .ct-store { margin-top: -80px; border-radius: 22px; }
    .ct-store-actions .ct-btn { flex: 1 1 100%; }
    .ct-fields { grid-template-columns: 1fr; }
    .ct-channels, .ct-form-zone { margin-top: 40px; }
}

@media (prefers-reduced-motion: reduce) {
    .ct-map-pin { animation: none; }
}
