/* Servicios — catálogo PRO (shell en includes/servicios-assets.php) */

:root {
    --svc-accent: #ff8c42;
    --svc-accent-dark: #c45a1a;
    --svc-accent-deep: #e85d04;
    --svc-cream: #fff9f4;
    --svc-border: rgba(255, 140, 66, 0.28);
}

/* Hero */
.hero-servicios {
    padding: clamp(6.75rem, 12vw, 8rem) 0 clamp(2.75rem, 5vw, 3.5rem);
    background:
        radial-gradient(ellipse 90% 70% at 50% -20%, rgba(255, 140, 66, 0.18), transparent 55%),
        linear-gradient(180deg, var(--svc-cream) 0%, #ffffff 52%, var(--background-light, #f8f9fa) 100%);
    text-align: center;
    border-bottom: 3px solid var(--svc-accent);
}

.svc-hero-badge {
    display: inline-block;
    max-width: min(52rem, 100%);
    margin: 0 auto 1rem;
    padding: 0.65rem 1.35rem;
    font-size: clamp(0.78rem, 2vw, 0.9rem);
    font-weight: 800;
    line-height: 1.45;
    color: #fff;
    background: linear-gradient(135deg, var(--svc-accent) 0%, var(--svc-accent-deep) 100%);
    border-radius: 999px;
    box-shadow: 0 8px 28px rgba(255, 140, 66, 0.32);
}

.svc-hero-eyebrow {
    font-size: clamp(0.95rem, 2.2vw, 1.08rem);
    color: var(--svc-accent-dark);
    font-weight: 600;
    margin-bottom: 0.75rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-servicios h1 {
    font-size: clamp(1.85rem, 4.5vw, 2.65rem);
    line-height: 1.2;
    color: var(--text-dark, #2c3e50);
    max-width: 46rem;
    margin: 0 auto 1rem;
}

.svc-hero-lead {
    font-size: clamp(1rem, 2.3vw, 1.12rem);
    color: var(--text-secondary, #7f8c8d);
    max-width: 44rem;
    margin: 0 auto 1.5rem;
    line-height: 1.65;
}

.svc-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.svc-stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.65rem;
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 52rem;
}

.svc-stats li {
    padding: 0.85rem 0.6rem;
    background: #fff;
    border: 1px solid var(--svc-border);
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(255, 140, 66, 0.08);
    text-align: center;
}

.svc-stats strong {
    display: block;
    font-size: 1.05rem;
    color: var(--svc-accent-dark);
    margin-bottom: 0.2rem;
}

.svc-stats span {
    display: block;
    font-size: 0.68rem;
    color: var(--text-secondary, #7f8c8d);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1.3;
}

/* Secciones */
.svc-section-head {
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.svc-section-head--center {
    text-align: center;
}

.svc-section-head--center h2,
.svc-section-head--center .svc-section-intro {
    margin-left: auto;
    margin-right: auto;
}

.svc-section-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--svc-accent-dark);
    margin-bottom: 0.5rem;
}

.svc-section-head h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--text-dark, #2c3e50);
    line-height: 1.25;
    max-width: 40rem;
}

.svc-section-head--center h2 {
    max-width: 44rem;
}

.svc-section-intro {
    margin-top: 0.75rem;
    color: var(--text-secondary, #7f8c8d);
    max-width: 40rem;
    line-height: 1.6;
    font-size: 1.02rem;
}

/* Pilares */
.svc-highlights {
    padding: clamp(2.5rem, 6vw, 4rem) 0;
    background: #fff;
}

.svc-highlights-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.svc-highlight-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 1.75rem 1.4rem 1.4rem;
    text-align: center;
    background: linear-gradient(165deg, #fffaf6 0%, #ffffff 100%);
    border: 1px solid var(--svc-border);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    overflow: hidden;
}

.svc-highlight-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--svc-accent), var(--accent-yellow, #ffd700));
}

.svc-highlight-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(255, 140, 66, 0.14);
    border-color: var(--svc-accent);
}

.svc-highlight-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.25rem;
    height: 3.25rem;
    margin: 0 auto 0.85rem;
    font-size: 1.65rem;
    background: linear-gradient(135deg, rgba(255, 140, 66, 0.15), rgba(255, 215, 0, 0.12));
    border-radius: 14px;
    border: 1px solid var(--svc-border);
}

.svc-highlight-card h3 {
    font-size: 1.05rem;
    margin-bottom: 0.55rem;
    color: var(--text-dark, #2c3e50);
    line-height: 1.3;
}

.svc-highlight-card p {
    font-size: 0.9rem;
    color: var(--text-secondary, #7f8c8d);
    line-height: 1.55;
    flex: 1;
}

/* Catálogo */
.svc-catalog {
    padding: clamp(2rem, 5vw, 3.5rem) 0 clamp(3rem, 6vw, 4.5rem);
    background: var(--background-light, #f8f9fa);
}

.svc-jump-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 2.5rem;
}

.svc-jump-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.95rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--svc-accent-dark);
    background: #fff;
    border: 1px solid var(--svc-border);
    border-radius: 999px;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.svc-jump-chip:hover,
.svc-jump-chip:focus-visible {
    background: var(--svc-accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 140, 66, 0.3);
}

.svc-category {
    margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

.svc-category-head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.35rem;
    padding: 1rem 1.15rem;
    background: #fff;
    border-radius: 14px;
    border-left: 4px solid var(--svc-accent);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.svc-category-icon {
    font-size: 2.25rem;
    line-height: 1;
    flex-shrink: 0;
}

.svc-category-head h3 {
    font-size: clamp(1.2rem, 2.8vw, 1.45rem);
    color: var(--text-dark, #2c3e50);
    margin-bottom: 0.35rem;
}

.svc-category-head p {
    color: var(--text-secondary, #7f8c8d);
    font-size: 0.95rem;
    line-height: 1.55;
}

.svc-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.35rem;
    align-items: stretch;
}

.svc-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    background: #fff;
    border: 1px solid var(--svc-border);
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.svc-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 140, 66, 0.55);
    box-shadow: 0 18px 36px rgba(255, 140, 66, 0.12);
}

.svc-card-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.25rem 0.85rem;
    background: linear-gradient(180deg, rgba(255, 249, 244, 0.95) 0%, #fff 100%);
    border-bottom: 1px solid rgba(255, 140, 66, 0.1);
}

.svc-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    font-size: 1.35rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--svc-accent), var(--svc-accent-deep));
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(255, 140, 66, 0.35);
}

.svc-card-head h4 {
    font-size: 1.08rem;
    color: var(--text-dark, #2c3e50);
    line-height: 1.35;
    margin: 0;
}

.svc-card-lead {
    font-size: 0.9rem;
    color: var(--text-secondary, #7f8c8d);
    line-height: 1.6;
    margin: 0;
    padding: 1rem 1.25rem 0.5rem;
}

.svc-card-bullets {
    list-style: none;
    padding: 0 1.25rem;
    margin: 0 0 0.5rem;
    flex: 1;
}

.svc-card-bullets li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.35rem;
    font-size: 0.875rem;
    color: var(--text-dark, #2c3e50);
    line-height: 1.45;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.svc-card-bullets li:last-child {
    border-bottom: none;
}

.svc-card-bullets li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.7rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--svc-accent);
    box-shadow: 0 0 0 3px rgba(255, 140, 66, 0.2);
}

.svc-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.85rem;
    margin-top: auto;
    padding: 1rem 1.25rem 1.15rem;
    background: var(--background-light, #f8f9fa);
    border-top: 1px solid rgba(255, 140, 66, 0.12);
}

.svc-btn {
    font-size: 0.8rem !important;
    padding: 0.5rem 1rem !important;
}

.svc-link-contact {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--svc-accent-dark);
    text-decoration: none;
}

.svc-link-contact:hover {
    color: var(--svc-accent);
    text-decoration: underline;
}

/* Puente + CTA */
.svc-eco-bridge {
    padding: clamp(2rem, 4vw, 2.75rem) 0;
    background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
    color: #fff;
}

.svc-eco-bridge-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.svc-eco-bridge h2 {
    font-size: clamp(1.25rem, 3vw, 1.55rem);
    margin-bottom: 0.5rem;
}

.svc-eco-bridge p {
    opacity: 0.9;
    max-width: 36rem;
    line-height: 1.55;
    font-size: 0.95rem;
}

.svc-eco-bridge .btn-primary {
    color: #fff;
}

.svc-cta-band {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    background: var(--svc-cream);
    border-top: 3px solid var(--svc-accent);
    text-align: center;
}

.svc-cta-band h2 {
    font-size: clamp(1.35rem, 3.2vw, 1.75rem);
    margin-bottom: 0.65rem;
    color: var(--text-dark, #2c3e50);
}

.svc-cta-band p {
    color: var(--text-secondary, #7f8c8d);
    max-width: 32rem;
    margin: 0 auto 1.25rem;
}

.svc-cta-band-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

/* Ecosistema embebido — modo servicios (catálogo compacto) */
body.page-servicios .master-platform--svc-catalog.master-platform--embedded {
    padding-top: 0;
}

/* Confianza / seguridad */
.svc-trust {
    padding: clamp(2.5rem, 5vw, 3.5rem) 0;
    background: #fff;
    border-top: 1px solid var(--svc-border);
}

.svc-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
}

.svc-trust-card {
    padding: 1.35rem 1.2rem;
    background: linear-gradient(165deg, #fffaf6 0%, #fff 100%);
    border: 1px solid var(--svc-border);
    border-radius: 14px;
    border-left: 4px solid var(--svc-accent);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.svc-trust-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(255, 140, 66, 0.12);
}

.svc-trust-icon {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.55rem;
}

.svc-trust-card h3 {
    font-size: 1rem;
    color: var(--text-dark, #2c3e50);
    margin-bottom: 0.4rem;
}

.svc-trust-card p {
    font-size: 0.88rem;
    color: var(--text-secondary, #7f8c8d);
    line-height: 1.5;
}

/* CTA final */
.svc-cta-band--final {
    background: linear-gradient(135deg, var(--svc-accent) 0%, var(--svc-accent-deep) 100%);
    border-top: none;
    color: #fff;
}

.svc-cta-band--final h2,
.svc-cta-band--final p {
    color: #fff;
}

.svc-cta-band--final p {
    opacity: 0.92;
}

.svc-cta-band--final .btn-primary {
    background: #fff;
    color: var(--svc-accent-dark);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.svc-cta-band--final .btn-secondary {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

.svc-cta-band--final .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

/* Reveal suave al scroll */
.svc-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.svc-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .svc-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Demo chatbot */
body.page-servicios .chatbot-demo {
    padding: clamp(2.5rem, 5vw, 4rem) 0;
    background: var(--background-light, #f8f9fa);
}

body.page-servicios .demo-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(1.5rem, 4vw, 2.5rem);
    align-items: center;
}

body.page-servicios .demo-content {
    text-align: left;
}

body.page-servicios .chatbot-demo .svc-section-kicker {
    display: inline-block;
    margin-bottom: 0.5rem;
}

body.page-servicios .demo-content h2 {
    font-size: clamp(1.4rem, 3vw, 1.85rem);
    margin-bottom: 0.75rem;
    color: var(--text-dark, #2c3e50);
}

body.page-servicios .demo-content p {
    color: var(--text-secondary, #7f8c8d);
    margin-bottom: 0.75rem;
    font-size: 1rem;
    line-height: 1.6;
}

body.page-servicios .demo-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 0.5rem;
}

body.page-servicios .chatbot-preview {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

body.page-servicios .video-container {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 20px;
    overflow: hidden;
    border: 3px solid var(--svc-accent);
    background: #e9ecef;
}

body.page-servicios .video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-servicios .video-controls {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 2;
}

body.page-servicios .video-play-pause-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: rgba(255, 140, 66, 0.92);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

body.page-servicios .video-play-pause-btn .pause-icon {
    display: none;
}

body.page-servicios .video-play-pause-btn:not(.paused) .play-icon {
    display: none;
}

body.page-servicios .video-play-pause-btn:not(.paused) .pause-icon {
    display: inline;
}

/* Responsive */
@media (max-width: 1100px) {
    .svc-highlights-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .svc-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .svc-trust-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .svc-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .svc-trust-grid {
        grid-template-columns: 1fr;
    }

    .svc-cta-band--final .btn {
        width: 100%;
        max-width: 300px;
    }

    body.page-servicios .demo-container {
        grid-template-columns: 1fr;
    }

    body.page-servicios .demo-content {
        text-align: center;
    }

    body.page-servicios .demo-cta-row {
        justify-content: center;
    }

    body.page-servicios .demo-cta-row .btn {
        width: 100%;
        max-width: 300px;
    }

    .svc-category-head {
        flex-direction: column;
        gap: 0.5rem;
    }

    .svc-eco-bridge-inner {
        flex-direction: column;
        text-align: center;
    }

    .svc-eco-bridge-inner .btn {
        width: 100%;
        max-width: 280px;
    }

    .svc-cards-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .svc-highlights-grid {
        grid-template-columns: 1fr;
    }

    .svc-stats {
        grid-template-columns: 1fr 1fr;
    }

    .svc-hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 380px) {
    .svc-stats {
        grid-template-columns: 1fr;
    }
}
