@charset "utf-8";
/* CSS Document */

/* =========================================================
   COLABORAWEB | SERVICIOS
   Diseño premium · Responsive · Optimizado para rendimiento
========================================================= */

.cw-services {
    --cw-services-bg: #071426;
    --cw-services-text: #F4F8FF;
    --cw-services-muted: #A7B7CC;
    --cw-services-blue: #087CF0;
    --cw-services-green: #10D982;

    position: relative;
    isolation: isolate;
    width: 100%;
    padding: 13px 0 24px;
    color: var(--cw-services-text);
    background: var(--cw-services-bg);
    box-sizing: border-box;
    overflow: hidden;
}

.cw-services *,
.cw-services *::before,
.cw-services *::after {
    box-sizing: border-box;
}

/* =========================================================
   CONTENEDOR GENERAL
========================================================= */

.cw-services__container {
    width: min(100% - 40px, 1480px);
    margin-inline: auto;
}

/* =========================================================
   ENCABEZADO
========================================================= */

.cw-services__header {
    max-width: 900px;
    margin: 0 auto 34px;
    text-align: center;
}

.cw-services__eyebrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-bottom: 16px;
    padding: 7px 13px;
    border: 1px solid rgba(148, 176, 210, 0.24);
    border-radius: 50px;
    color: #D8E5F6;
    background: rgba(255, 255, 255, 0.035);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

.cw-services__eyebrow-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 7px;
    border-radius: 50%;
    background: var(--cw-services-green);
    box-shadow: 0 0 10px rgba(16, 217, 130, 0.45);
}

.cw-services__title {
    max-width: 850px;
    margin: 0 auto 15px;
    color: #F7FAFF;
    font-size: clamp(27px, 3.1vw, 43px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.14;
    text-wrap: balance;
}

.cw-services__title span {
    color: #63AFFF;
}

.cw-services__description {
    max-width: 780px;
    margin: 0 auto;
    color: var(--cw-services-muted);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.8;
    text-wrap: pretty;
}

/* =========================================================
   CUADRÍCULA DE SERVICIOS
   Seis tarjetas en una fila cuando hay espacio suficiente
========================================================= */

.cw-services__grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    align-items: stretch;
}

/* =========================================================
   TARJETAS
========================================================= */

.cw-service-card {
    --card-accent: #D97706;
    --card-bg: #FFF0DF;
    --card-text: #713A12;
    --card-muted: #754C31;
    --card-glow: rgba(255, 160, 65, 0.15);

    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 310px;
    padding: 21px 17px 17px;
    overflow: hidden;
    isolation: isolate;

    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 20px;

    color: var(--card-text);
    background: var(--card-bg);

    box-shadow:
        0 5px 16px rgba(0, 0, 0, 0.09),
        inset 0 1px 0 rgba(255, 255, 255, 0.85);

    transition:
        transform 220ms ease,
        box-shadow 220ms ease,
        border-color 220ms ease;
}

/* Luz decorativa estática: sin animación permanente */

.cw-service-card::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -45px;
    right: -48px;
    width: 125px;
    height: 125px;
    border-radius: 50%;
    background: var(--card-glow);
    pointer-events: none;
}

.cw-service-card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    background: var(--card-accent);
    transform: scaleX(0.18);
    transform-origin: left;
    transition: transform 220ms ease;
}

/* =========================================================
   COLORES POR SERVICIO
========================================================= */

/* Naranja: Diseño web */

.cw-service-card--web {
    --card-accent: #F28A22;
    --card-bg: #FFF0DF;
    --card-text: #713A12;
    --card-muted: #754C31;
    --card-glow: rgba(255, 159, 67, 0.23);
}

/* Morado: Aplicaciones empresariales */

.cw-service-card--apps {
    --card-accent: #8046D9;
    --card-bg: #F0E8FF;
    --card-text: #43217F;
    --card-muted: #60488A;
    --card-glow: rgba(139, 92, 246, 0.20);
}

/* Rojo: Soporte técnico */

.cw-service-card--support {
    --card-accent: #D83A50;
    --card-bg: #FFE8EB;
    --card-text: #8E202A;
    --card-muted: #91434A;
    --card-glow: rgba(244, 91, 115, 0.20);
}

/* Verde: Marketing digital */

.cw-service-card--marketing {
    --card-accent: #0BAE6A;
    --card-bg: #DFF8EB;
    --card-text: #145D37;
    --card-muted: #326A4C;
    --card-glow: rgba(16, 217, 130, 0.23);
}

/* Azul: Hosting y dominio */

.cw-service-card--hosting {
    --card-accent: #1678E8;
    --card-bg: #E3F1FF;
    --card-text: #174A7C;
    --card-muted: #3A6287;
    --card-glow: rgba(52, 152, 255, 0.22);
}

/* Beige: Consultoría TI */

.cw-service-card--consulting {
    --card-accent: #A87327;
    --card-bg: #F7EBD9;
    --card-text: #704515;
    --card-muted: #80613E;
    --card-glow: rgba(206, 157, 81, 0.22);
}

/* =========================================================
   ICONOS SVG
========================================================= */

.cw-service-card__icon {
    display: grid;
    place-items: center;
    width: 55px;
    height: 55px;
    flex: 0 0 55px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 15px;
    color: var(--card-accent);
    background: rgba(255, 255, 255, 0.68);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.045);
    transition:
        transform 220ms ease,
        background-color 220ms ease;
}

.cw-service-card__icon svg {
    display: block;
    width: 31px;
    height: 31px;
    overflow: visible;
}

/* =========================================================
   TÍTULOS Y DESCRIPCIONES
========================================================= */

.cw-service-card__title {
    margin: 0 0 11px;
    color: var(--card-text);
    font-size: 17px;
    font-weight: 800;
    letter-spacing: -0.35px;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.cw-service-card__description {
    margin: 0 0 22px;
    color: var(--card-muted);
    font-size: 13px;
    font-weight: 450;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* =========================================================
   ENLACE Y FLECHA
========================================================= */

.cw-service-card__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    margin-top: auto;
    padding-top: 15px;
    border-top: 1px solid rgba(30, 41, 59, 0.10);

    color: var(--card-text);
    font-size: 12px;
    font-weight: 750;
    line-height: 1.4;
    text-decoration: none;
}

.cw-service-card__arrow {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    color: #FFFFFF;
    background: var(--card-accent);
    box-shadow: 0 4px 10px var(--card-glow);
    transition:
        transform 220ms ease,
        box-shadow 220ms ease;
}

.cw-service-card__arrow svg {
    display: block;
    width: 17px;
    height: 17px;
}

/* =========================================================
   INTERACCIONES
   Solo en dispositivos con cursor preciso
========================================================= */

@media (hover: hover) and (pointer: fine) {

    .cw-service-card:hover {
        transform: translateY(-5px);
        border-color: rgba(255, 255, 255, 0.95);
        box-shadow:
            0 15px 30px rgba(0, 0, 0, 0.18),
            0 0 22px var(--card-glow),
            inset 0 1px 0 rgba(255, 255, 255, 0.9);
    }

    .cw-service-card:hover::after {
        transform: scaleX(1);
    }

    .cw-service-card:hover .cw-service-card__icon {
        transform: translateY(-2px);
        background: rgba(255, 255, 255, 0.92);
    }

    .cw-service-card:hover .cw-service-card__arrow {
        transform: translateX(2px);
        box-shadow: 0 5px 15px var(--card-glow);
    }

    .cw-service-card__link:hover {
        text-decoration: none;
    }
}

/* Accesibilidad del teclado */

.cw-service-card__link:focus-visible {
    outline: 3px solid var(--card-accent);
    outline-offset: 4px;
    border-radius: 5px;
}

/* =========================================================
   RESPONSIVE
   No se modifica el padding de .cw-services
========================================================= */

/* Portátiles y escritorios medianos */

@media (max-width: 1250px) {

    .cw-services__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .cw-service-card {
        min-height: 285px;
        padding: 22px 20px 18px;
    }

    .cw-service-card__title {
        font-size: 18px;
    }

    .cw-service-card__description {
        font-size: 14px;
    }

    .cw-service-card__link {
        font-size: 13px;
    }
}

/* Tabletas */

@media (max-width: 760px) {

    .cw-services__container {
        width: min(100% - 32px, 600px);
    }

    .cw-services__header {
        margin-bottom: 26px;
    }

    .cw-services__title {
        font-size: clamp(26px, 5vw, 34px);
        letter-spacing: -0.8px;
    }

    .cw-services__description {
        font-size: 14px;
        line-height: 1.75;
    }

    .cw-services__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .cw-service-card {
        min-height: 280px;
        padding: 17px 14px 14px;
        border-radius: 17px;
    }

    .cw-service-card__icon {
        width: 48px;
        height: 48px;
        flex-basis: 48px;
        margin-bottom: 16px;
        border-radius: 13px;
    }

    .cw-service-card__icon svg {
        width: 27px;
        height: 27px;
    }

    .cw-service-card__title {
        font-size: 16px;
    }

    .cw-service-card__description {
        font-size: 13px;
        line-height: 1.65;
    }

    .cw-service-card__arrow {
        width: 31px;
        height: 31px;
        flex-basis: 31px;
    }
}

/* Móviles estrechos */

@media (max-width: 390px) {

    .cw-services__container {
        width: min(100% - 24px, 360px);
    }

    .cw-services__grid {
        gap: 10px;
    }

    .cw-service-card {
        min-height: 0;
        padding: 15px 11px 12px;
        border-radius: 15px;
    }

    .cw-service-card__title {
        font-size: 15px;
        letter-spacing: -0.2px;
    }

    .cw-service-card__description {
        font-size: 12px;
        line-height: 1.6;
    }

    .cw-service-card__link {
        gap: 5px;
        font-size: 11px;
    }

    .cw-service-card__arrow {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }
}

/* =========================================================
   MOVIMIENTO REDUCIDO
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .cw-service-card,
    .cw-service-card::after,
    .cw-service-card__icon,
    .cw-service-card__arrow {
        transition: none;
    }

    .cw-service-card:hover {
        transform: none;
    }
}