/* ==========================================================
   Sillar Studio · Contacto (sin formulario)
   Cargar DESPUÉS de servicios-game.css y home-game.css.
   ========================================================== */

@keyframes ct-bounce {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-6px);
    }
}

@keyframes ct-ring {
    0% {
        transform: rotate(0);
    }
    8%,
    24% {
        transform: rotate(-12deg);
    }
    16%,
    32% {
        transform: rotate(12deg);
    }
    40%,
    100% {
        transform: rotate(0);
    }
}

@keyframes ct-wave {
    0%,
    100% {
        opacity: .2;
    }
    50% {
        opacity: 1;
    }
}

@keyframes ct-flap {
    0%,
    100% {
        transform: scaleY(1);
    }
    50% {
        transform: scaleY(.82);
    }
}


/* ---------- Íconos ---------- */

.gi__pin {
    fill: var(--sg-red);
    animation: ct-bounce 2s ease-in-out infinite;
}

.gi__pindot {
    fill: #fff;
    animation: ct-bounce 2s ease-in-out infinite;
}

.gi__shadow {
    fill: rgba(0, 0, 0, .25);
}

.gi__phone {
    fill: var(--sg-red);
    transform-origin: 20% 80%;
    animation: ct-ring 2.8s ease-in-out infinite;
}

.gi__wave {
    fill: none;
    stroke: var(--sg-ember);
    stroke-width: 2.6;
    stroke-linecap: round;
    animation: ct-wave 1.6s ease-in-out infinite;
}

.gi__wave--2 {
    animation-delay: .25s;
}

.gi__flap {
    fill: none;
    stroke: var(--sg-ember);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transform-origin: 24px 14px;
    animation: ct-flap 2.4s ease-in-out infinite;
}


/* ---------- Tarjetas ---------- */

.ct-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.1rem;
    align-items: stretch;
}

.ct-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    padding: 1.8rem 1.6rem;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(225, 29, 46, .25);
    background: linear-gradient(165deg, rgba(225, 29, 46, .07), rgba(255, 106, 26, .03));
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.ct-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, var(--sg-red), var(--sg-ember), var(--sg-gold), var(--sg-red));
    background-size: 250% 100%;
    animation: sg-shift 5s linear infinite;
}

.ct-card:hover {
    transform: translateY(-5px);
    border-color: var(--sg-ember);
    box-shadow: 0 24px 48px -26px rgba(255, 106, 26, .8);
}

.ct-card--main {
    color: #fff;
    background: linear-gradient(160deg, #26111a, var(--sg-ink));
    border-color: var(--sg-line);
    box-shadow: 0 30px 60px -30px rgba(225, 29, 46, .7);
}

.ct-card--main p,
.ct-card--main small {
    color: var(--sg-text-soft);
}

.ct-card__icon {
    display: grid;
    place-items: center;
    width: 64px;
    height: 64px;
    border-radius: 16px;
    margin-bottom: .6rem;
    background: linear-gradient(135deg, rgba(225, 29, 46, .14), rgba(255, 106, 26, .1));
    border: 1px solid rgba(225, 29, 46, .3);
}

.ct-card__icon .gi {
    width: 38px;
    height: 38px;
}

.ct-card small {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .75;
}

.ct-card h2 {
    margin: .1rem 0;
    font-size: clamp(1.35rem, 2.6vw, 1.75rem);
    overflow-wrap: anywhere;
}

.ct-card h2 a {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(90deg, var(--sg-ember), var(--sg-red)) 0 100% / 0 3px no-repeat;
    transition: background-size .3s ease;
}

.ct-card h2 a:hover,
.ct-card h2 a:focus-visible {
    background-size: 100% 3px;
}

.ct-card p {
    margin: 0;
    opacity: .85;
}

.ct-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-top: 1.1rem;
}

@media (prefers-reduced-motion: reduce) {
    .gi__pin,
    .gi__pindot,
    .gi__phone,
    .gi__wave,
    .gi__flap,
    .ct-card::before {
        animation: none !important;
    }
}


/* ==========================================================
   Añadidos: WhatsApp verde, correos por área, palabras clave
   ========================================================== */

.ct-cards--top {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.ct-title {
    margin: 2.4rem 0 1rem;
    font-size: clamp(1.3rem, 2.6vw, 1.7rem);
}

.ct-cards--mail {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.ct-card--mail {
    padding: 1.4rem 1.3rem;
}

.ct-card--mail h3 {
    margin: .1rem 0;
    font-size: 1.02rem;
    overflow-wrap: anywhere;
}

.ct-card--mail h3 a {
    color: inherit;
    text-decoration: none;
    background: linear-gradient(90deg, var(--sg-ember), var(--sg-red)) 0 100% / 0 2px no-repeat;
    transition: background-size .3s ease;
}

.ct-card--mail h3 a:hover,
.ct-card--mail h3 a:focus-visible {
    background-size: 100% 2px;
}

.ct-card--mail .ct-card__icon {
    width: 52px;
    height: 52px;
}

.ct-card--mail .ct-card__icon .gi {
    width: 30px;
    height: 30px;
}


/* Botón de WhatsApp en verde oficial */

.ct-wa {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: #fff !important;
    background: #25d366 !important;
    border: 0 !important;
    box-shadow: 0 10px 26px -10px rgba(37, 211, 102, .8);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
    position: relative;
    overflow: hidden;
}

.ct-wa:hover,
.ct-wa:focus-visible {
    background: #1ebe5b !important;
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 14px 34px -10px rgba(37, 211, 102, .95);
}

.ct-wa:active {
    transform: translateY(0) scale(.98);
}

.ct-wa:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.ct-wa__icon {
    width: 1.35em;
    height: 1.35em;
    flex: none;
}

.ct-wa::after {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 40%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .4), transparent);
    animation: sg-shine 3.6s ease-in-out infinite;
}


/* Palabras clave visibles (texto natural, no ocultas) */

.ct-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    list-style: none;
    margin: 1.4rem 0 0;
    padding: 0;
}

.ct-chips li {
    padding: .45rem 1rem;
    border-radius: 99px;
    font-size: .92rem;
    font-weight: 600;
    border: 1px solid rgba(225, 29, 46, .3);
    background: linear-gradient(120deg, rgba(225, 29, 46, .1), rgba(255, 106, 26, .07));
    transition: transform .2s ease, border-color .2s ease;
}

.ct-chips li:hover {
    transform: translateY(-2px);
    border-color: var(--sg-ember);
}

@media (prefers-reduced-motion: reduce) {
    .ct-wa::after {
        animation: none !important;
    }
}