:root {
    --primary: #e6005c;
    --primary-rgb: 230, 0, 92;
    --secondary: #6a1b9a;
    --secondary-rgb: 106, 27, 154;
    --accent: #1565c0;
    --accent-rgb: 21, 101, 192;
    --text: #f5f5f5;
    --muted: #c3c3c8;
    --stroke: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.06);
    --radius: 18px;
    --shadow-1: 0 24px 80px rgba(17, 17, 17, 0.7);
    --shadow-2: 0 16px 40px rgba(230, 0, 92, 0.32);
    --success: #4caf50;
    --warning: #fbc02d;
    --danger: #d32f2f;
    --bg-base: #111111;
    --bg-surface: #1a1a1f;
}

* {
    box-sizing: border-box;
}

body.page-bg {
    background: radial-gradient(120% 120% at 18% 18%, rgba(var(--primary-rgb), 0.18), transparent 42%),
        radial-gradient(120% 120% at 82% 8%, rgba(var(--secondary-rgb), 0.16), transparent 46%),
        linear-gradient(145deg, #0f0f12 0%, #111116 40%, #0c0c10 100%);
    color: var(--text);
    min-height: 100vh;
}

.container-wrap {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    max-width: 80rem;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

@media (min-width:640px) {
    .container-wrap {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

@media (min-width:1024px) {
    .container-wrap {
        padding-left: 4rem;
        padding-right: 4rem;
    }
}

/* Sections */
.section,
.section-muted {
    overflow: hidden;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width:640px) {

    .section,
    .section-muted {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }
}

@media (min-width:1024px) {

    .section,
    .section-muted {
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
}

.section {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.01) 0%, rgba(255, 255, 255, 0) 100%);
}

.section-muted {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0));
    border-top: 1px solid var(--stroke);
    border-bottom: 1px solid var(--stroke);
}

.section-title {
    margin-bottom: 1rem;
    font-size: clamp(2rem, 3vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.section-subtitle {
    max-width: 42rem;
    line-height: 1.7;
    color: var(--muted);
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 12px;
    color: var(--secondary);
    font-weight: 700;
}

/* Header */
.header-glass {
    background: rgba(17, 17, 17, 0.82);
    backdrop-filter: blur(16px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(var(--primary-rgb), 0.12);
}

.logo-glyph {
    height: 2.75rem;
    width: 2.75rem;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    box-shadow: var(--shadow-2);
}

.nav-link {
    color: rgba(232, 237, 245, 0.8);
    position: relative;
    padding: 0.25rem 0;
    transition: color .2s ease;
}

.nav-link:hover {
    color: var(--primary);
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    height: 2px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s ease;
}

.nav-link:hover::after {
    transform: scaleX(1);
}

/* Gradient hero */
.gradient-hero {
    position: relative;
    isolation: isolate;
    border-radius: 24px;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background:
        radial-gradient(120% 120% at 20% 20%, rgba(var(--primary-rgb), 0.26), transparent 40%),
        radial-gradient(120% 120% at 90% 0%, rgba(var(--secondary-rgb), 0.22), transparent 46%),
        linear-gradient(135deg, rgba(26, 26, 30, 0.96), rgba(14, 14, 18, 0.94));
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow-1);
    overflow: hidden;
}

.gradient-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 28px 28px;
    mix-blend-mode: soft-light;
    opacity: 0.5;
}

.badge,
.badge-alt {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    border-radius: 9999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(var(--primary-rgb), 0.16);
    color: var(--primary);
    padding: 0.35rem 0.9rem;
    font-size: 11px;
    letter-spacing: 0.18em;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-alt {
    background: rgba(var(--secondary-rgb), 0.14);
    color: var(--secondary);
    border-color: rgba(var(--secondary-rgb), 0.2);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    border-radius: 14px;
    padding: .9rem 1.35rem;
    font-weight: 600;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #b00045);
    color: #fff;
    box-shadow: var(--shadow-2);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 40px rgba(var(--primary-rgb), 0.38);
}

/* Reduce tamaño del CTA del header en pantallas de escritorio */
@media (min-width: 768px) {
    #site-header .btn.btn-primary {
        padding: 0.45rem 0.9rem;
        font-size: 0.875rem; /* 14px */
        border-radius: 10px;
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
    }
}

.btn-ghost {
    border: 1px solid var(--stroke);
    color: var(--text);
    background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-contrast {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
}

.btn-contrast:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.btn-glow {
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.32);
}

.shadow-primary {
    box-shadow: var(--shadow-2);
}

/* Cards */
.card {
    border-radius: var(--radius);
    border: 1px solid var(--stroke);
    background: rgba(26, 26, 31, 0.78);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
}

.card-angled {
    position: relative;
    overflow: hidden;
}

.card-angled::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.12));
    opacity: 0;
    transition: opacity .2s ease;
}

.card-angled:hover::before {
    opacity: 1;
}

.card-glass {
    background: var(--glass);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-contrast {
    background: linear-gradient(160deg, rgba(var(--primary-rgb), 0.16), rgba(var(--secondary-rgb), 0.1));
    border-color: rgba(var(--primary-rgb), 0.3);
}

/* Hero panel */
.hero-panel {
    padding: 1.25rem;
    border-radius: 20px;
    background: linear-gradient(160deg, rgba(26, 26, 31, 0.92), rgba(17, 17, 17, 0.96));
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chip-live {
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 11px;
    letter-spacing: 0.12em;
    background: rgba(var(--accent-rgb), 0.18);
    color: #dcecff;
    border: 1px solid rgba(var(--accent-rgb), 0.35);
}

.dot {
    display: inline-block;
    height: 10px;
    width: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.4);
}

.dot-green {
    background: var(--success);
}

.dot-amber {
    background: var(--warning);
}

.dot-red {
    background: var(--danger);
}

.dot-primary {
    background: var(--primary);
}

.dot-secondary {
    background: var(--secondary);
}

.dot-accent {
    background: var(--accent);
}

.panel-body {
    padding-top: 1rem;
}

.metric-banner {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.2), rgba(var(--secondary-rgb), 0.12));
    padding: 1rem 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.trend-pill {
    padding: 0.35rem 0.7rem;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 700;
    background: rgba(76, 175, 80, 0.18);
    color: #d4f5d7;
}

.trend-pill.up::before {
    content: "▲";
    margin-right: 6px;
    font-size: 11px;
}

.mini-card {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    padding: 0.9rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.mini-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 600;
    color: #dbeafe;
    margin-bottom: 0.35rem;
}

.badge-soft {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.progress-wrap {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.25rem;
    font-size: 12px;
    color: #cbd5e1;
}

.progress {
    position: relative;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--primary), #ff3f8a);
    border-radius: 999px;
}

.progress-bar.alt {
    background: linear-gradient(90deg, var(--secondary), #9c4dc7);
}

.integration-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 0.35rem;
    color: #dbeafe;
}

.signal-line {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.signal-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.32);
}

.hero-glow {
    position: absolute;
    inset: -18%;
    background: radial-gradient(60% 60% at 50% 50%, rgba(var(--primary-rgb), 0.18), transparent 70%);
    filter: blur(42px);
    z-index: -1;
}

/* Stats */
.stat-block {
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    padding: 1rem 1.1rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.stat-number {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--muted);
}

/* Feature grid */
.feature-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(1, 1fr);
}

/* Soluciones: increase spacing so layout breathes */
#soluciones .container-wrap {
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#soluciones .grid {
    gap: 2rem;
}

/* Left column (benefits) — more padding and relaxed vertical rhythm */
#soluciones .grid > div:first-child {
    padding: 1.75rem;
}

#soluciones .grid > div:first-child p,
#soluciones .grid > div:first-child h3 {
    line-height: 1.6;
}

/* Subtitle full width spacing */
#soluciones .section-subtitle {
    margin-top: 0.75rem;
    margin-bottom: 1rem;
    line-height: 1.85;
}

/* Mockup: reduce card sizes and add breathing space */
.mockup-frame { padding: 1rem; }
.mockup-cards { gap: 0.9rem; transform: none; }
.mock-card { font-size: 0.72rem; opacity: 0.95; }

/* Ensure right mockup column doesn't feel cramped on mobile */
@media (max-width: 1023px) {
    #soluciones .card.card-glass.p-6 { padding: 1.25rem; }
    .mockup-frame { height: auto; min-height: 10rem; }
    .mockup-cards { justify-content: center; }
}

/* Visual image + decorative panels (right column) */
.visual-wrap { position: relative; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.visual-deco { position: absolute; border-radius: 12px; width: 110%; height: 72%; opacity: 0.85; }
.deco-a { left: -6%; top: -6%; transform: rotate(-6deg); background: linear-gradient(120deg, rgba(var(--primary-rgb),0.2), rgba(var(--secondary-rgb),0.14)); z-index: 1; }
.deco-b { right: -6%; bottom: -6%; transform: rotate(6deg); background: linear-gradient(120deg, rgba(var(--accent-rgb),0.14), rgba(var(--primary-rgb),0.1)); z-index: 1; }
.visual-img { position: relative; z-index: 2; max-width: 100%; width: 420px; height: auto; box-shadow: 0 28px 80px rgba(0,0,0,0.55); border: 1px solid rgba(255,255,255,0.06); }

@media (max-width: 1024px) {
    .visual-img { width: 320px; }
    .deco-a, .deco-b { display: none; }
    #soluciones-grid { gap: 1.25rem; }
}

/* Fix responsividad del card de beneficios en pantallas pequeñas */
@media (max-width: 767px) {
    /* Forzar una sola columna y evitar overflow */
    #soluciones-grid {
        grid-template-columns: 1fr !important;
    }

    /* Asegurar que las tarjetas ocupen el 100% y el padding no provoque overflow */
    #soluciones-grid .card {
        width: 100%;
        box-sizing: border-box;
        padding: 1rem !important;
    }

    /* Permitir que textos con clases utilitarias no limiten el ancho en móvil */
    #soluciones p.max-w-2xl,
    #soluciones .max-w-3xl,
    #soluciones .max-w-xl {
        max-width: 100% !important;
    }

    /* Hacer la imagen visual adaptativa */
    .visual-img {
        width: 100% !important;
        max-width: 420px;
        height: auto;
    }
}

/* Relax left column spacing */
#soluciones .card.card-glass.p-6 { padding: 2rem; }
#soluciones .card.card-glass.p-6 .text-sm { margin-bottom: 0.25rem; }

@media (min-width: 640px) {
    .feature-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .feature-grid { grid-template-columns: repeat(3, 1fr); }
}

.feature-card {
    padding: 1.25rem;
    display: grid;
    gap: 0.8rem;
    min-height: 220px;
    border-radius: 8px;
}

/* Carousel: soluciones */
.carousel {
    position: relative;
    overflow: hidden;
    padding: 0.5rem 0;
}

.carousel-track {
    display: flex;
    gap: 1rem;
    align-items: stretch;
    transition: transform .48s cubic-bezier(.2,.9,.25,1);
    will-change: transform;
}

/* Padding y comportamiento táctil en móviles para mejor respuesta */
@media (max-width: 640px) {
    .carousel-track {
        padding-left: 1rem;
        padding-right: 1rem;
        gap: 0.75rem;
        touch-action: pan-y;
    }
}

.carousel .feature-card {
    /* Hacer las tarjetas responsivas: ancho flexible hasta un máximo fijo */
    width: min(80vw, 220px);
    flex: 0 0 min(80vw, 220px);
    height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    height: 40px;
    width: 40px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(0,0,0,0.25);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: transform .12s, border-color .12s, background .12s;
}

.carousel-btn:hover { transform: translateY(-50%) scale(1.04); border-color: var(--primary); }
.carousel-btn.prev { left: -56px; }
.carousel-btn.next { right: -56px; }

/* Ajustes para pantallas pequeñas: mostrar controles dentro del viewport */
@media (max-width: 640px) {
    .carousel-btn.prev { left: 8px; }
    .carousel-btn.next { right: 8px; }
    .carousel { padding: 0.75rem 0; }
    .carousel-track { gap: 0.75rem; }
}

@media (min-width: 1024px) {
    .carousel .feature-card { width: 260px; flex: 0 0 260px; height: 300px; }
}

/* Drag cursor */
.carousel-track { cursor: grab; }
.carousel-track.dragging { cursor: grabbing; }

.icon-wrap {
    height: 3.25rem;
    width: 3.25rem;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), 0.18);
    color: #fde3f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.icon-wrap.alt {
    background: rgba(var(--secondary-rgb), 0.16);
    color: #efe4ff;
}

.icon-wrap.contrast {
    background: rgba(var(--accent-rgb), 0.2);
    color: #dbeaff;
}

/* Larger icons for carousel cards and responsive scaling */
.carousel .icon-wrap { height: 4rem; width: 4rem; border-radius: 14px; }
.carousel .icon-wrap svg { width: 1.6rem; height: 1.6rem; }

@media (min-width: 1024px) {
    .carousel .feature-card { width: 260px; flex: 0 0 260px; height: 300px; }
    .carousel .icon-wrap { height: 4.6rem; width: 4.6rem; }
    .carousel .icon-wrap svg { width: 2rem; height: 2rem; }
}

/* Logos */
.logo-band {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
    align-items: center;
}

.logo-chip {
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.12), rgba(var(--secondary-rgb), 0.08));
    padding: 0.8rem 1rem;
    font-weight: 600;
    color: #e2e8f0;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Logo carousel */
.logo-carousel-wrap {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: center;
}

.logo-nav {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    height: 40px;
    width: 40px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: transform .12s, border-color .12s;
}

.logo-nav:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
}

.logo-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0.25rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.logo-scroll::-webkit-scrollbar {
    display: none;
}

.logo-item {
    flex: 0 0 auto;
    scroll-snap-align: center;
    min-width: 140px;
    height: 76px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.16), rgba(var(--secondary-rgb), 0.1));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 30px rgba(2, 6, 23, 0.45);
    transition: transform .16s, box-shadow .16s;
    font-size: 1rem;
}

.logo-item:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 18px 50px rgba(var(--primary-rgb), 0.2);
}

.logo-item:focus {
    outline: 3px solid rgba(var(--primary-rgb), 0.2);
}

@media (min-width:1024px) {
    .logo-scroll {
        gap: 1rem;
    }

    .logo-item {
        min-width: 160px;
        height: 84px;
        font-size: 1.05rem;
    }
}

/* Testimonials */
.circle-btn {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.03);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: border-color .2s, transform .15s;
}

.circle-btn:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

.testimonial-card {
    padding: 2rem;
    display: grid;
    gap: 1rem;
}

.testimonial-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar {
    height: 3rem;
    width: 3rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
    box-shadow: var(--shadow-2);
}

/* Testimonial carousel (scroll-snap) */
.testimonial-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1.25rem 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    align-items: center;
}

.testimonial-scroll::-webkit-scrollbar { display: none; }

.testimonial-item {
    /* more squared, show multiple at once */
    flex: 0 0 80%;
    max-width: 840px;
    border-radius: 12px;
    padding: 1.2rem;
    scroll-snap-align: center;
    transition: transform .22s ease, box-shadow .22s ease, opacity .22s ease;
    transform-origin: center;
    background: linear-gradient(180deg, rgba(var(--primary-rgb),0.05), rgba(var(--secondary-rgb),0.04));
}

.testimonial-item .testimonial-meta { margin-top: 0.6rem; }

.testimonial-item:not(.active) {
    transform: translateY(4px) scale(0.98);
    opacity: 0.9;
    filter: blur(0.2px);
    box-shadow: 0 8px 28px rgba(0,0,0,0.35);
}

.testimonial-item.active {
    transform: translateY(0) scale(1.02);
    opacity: 1;
    box-shadow: 0 26px 70px rgba(var(--primary-rgb),0.28);
}

@media (min-width:640px) {
    .testimonial-item { flex: 0 0 48%; max-width: 540px; }
}

@media (min-width:1024px) {
    .testimonial-item { flex: 0 0 32%; max-width: 420px; }
}

/* Dots styling (overrides/clarity) */
#testimonial-dots button { border: none; padding: 0; background: transparent; }
#testimonial-dots button.bg-primary { box-shadow: 0 6px 18px rgba(var(--primary-rgb),0.28); }

/* FAQ */
.accordion-trigger {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    text-align: left;
    background: transparent;
    color: #fff;
    border: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 1rem;
    cursor: pointer;
}

/* FAQ: two-column layout and card styling (scoped to FAQ container) */
#faq-accordion {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

#faq-accordion { align-items: start; }

@media (min-width: 768px) {
    #faq-accordion {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

button.accordion-trigger + .accordion-content {
    transition: max-height .28s ease, padding .18s ease, opacity .18s ease, visibility .18s;
}

button.accordion-trigger[aria-expanded="false"] + .accordion-content {
    max-height: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

button.accordion-trigger[aria-expanded="true"] + .accordion-content {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    padding-top: 1rem !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    padding-bottom: 1rem !important;
}

#faq-accordion .card {
    background: linear-gradient(180deg, rgba(var(--primary-rgb),0.03), rgba(var(--secondary-rgb),0.02));
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease;
}

#faq-accordion .card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(var(--primary-rgb),0.24);
}

#faq-accordion .card > div:last-child {
    padding: 0 1.25rem 1rem;
    color: #cbd5e1;
}

/* Icon rotation when expanded (scoped) */
.accordion-trigger svg { transition: transform .22s ease; }
.accordion-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Slight alternating tint for visual rhythm */
#faq-accordion .card:nth-child(odd) { background: linear-gradient(180deg, rgba(var(--primary-rgb),0.05), rgba(255,255,255,0.01)); }
#faq-accordion .card:nth-child(even) { background: linear-gradient(180deg, rgba(var(--secondary-rgb),0.04), rgba(255,255,255,0.01)); }

/* Form */
.field {
    display: grid;
    gap: 0.35rem;
}

.input {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
    padding: 0.85rem 1rem;
    color: #fff;
    transition: border-color .2s, box-shadow .2s;
}

.input::placeholder {
    color: rgba(232, 237, 245, 0.4);
}

.input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb), 0.26);
}

.input-ghost {
    background: rgba(255, 255, 255, 0.02);
    border-color: rgba(255, 255, 255, 0.08);
}

.form-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #e2e8f0;
}

.form-card {
    box-shadow: var(--shadow-1);
}

/* Footer */
.footer-angled {
    position: relative;
}

/* Contact section: full-image background with overlay, left text + right CTA */
#contacto {
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

#contacto::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(var(--primary-rgb),0.18), rgba(17,17,17,0.78));
    z-index: 0;
    pointer-events: none;
}

.contact-panel {
    position: relative;
    z-index: 1;
    display: block;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,0.06);
    background: rgba(17,17,17,0.72);
}

.contact-content { padding: 0.25rem; }

.contact-text .section-title { color: #fff; }

.contact-whatsapp { padding-top: 0.25rem; padding-bottom: 0.25rem; }

.contact-cta .btn { padding-left: 1.25rem; padding-right: 1.25rem; }

/* Fallback: if no background image provided, use a subtle pattern */
#contacto.no-bg { background: linear-gradient(135deg, rgba(var(--primary-rgb),0.08), rgba(var(--secondary-rgb),0.06)); }

@media (max-width: 767px) {
    .contact-panel { text-align: center; }
    .contact-cta { justify-content: center; }
}

.footer-angled::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(var(--primary-rgb), 0.1), rgba(var(--secondary-rgb), 0.1));
    opacity: 0.4;
    z-index: 0;
}

.footer-angled>* {
    position: relative;
    z-index: 1;
}

.social-btn {
    height: 2.5rem;
    width: 2.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: border-color .2s, transform .15s;
}

.social-btn:hover {
    border-color: var(--primary);
    transform: translateY(-1px);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 1rem;
    right: 1rem;
    transform: translateY(1rem);
    border-radius: 10px;
    background: linear-gradient(135deg, #2e7d32, #4caf50);
    padding: .85rem 1.1rem;
    font-size: .9rem;
    color: #fff;
    opacity: 0;
    box-shadow: var(--shadow-2);
    transition: opacity .18s, transform .18s;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Utility */
.shadow-glow {
    box-shadow: 0 18px 50px rgba(var(--primary-rgb), 0.26);
}

.card-angled:hover {
    transform: translateY(-2px);
}

/* --- Reveal on scroll: entre secciones --- */
.reveal-section {
    /* placeholder to mark sections that will animate */
}

.reveal-section .reveal-child {
    opacity: 0;
    transform: translateY(12px) scale(.995);
    transition: opacity .46s cubic-bezier(.2,.9,.2,1), transform .46s cubic-bezier(.2,.9,.2,1);
    transition-delay: calc(var(--i, 0) * 70ms);
}

.reveal-section.revealed .reveal-child {
    opacity: 1;
    transform: none;
}

/* small helper to reduce visual noise on first section */
.section.reveal-section:first-of-type .reveal-child { transition-delay: calc(var(--i, 0) * 50ms); }


/* --- Ajustes adicionales: tipografía, espaciado y micro-animaciones --- */

body.page-bg {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.section-title {
    line-height: 1.12;
}

.card-angled {
    transition: transform .18s ease, box-shadow .18s ease;
    will-change: transform;
}

.feature-card {
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
}

.stat-block {
    transition: transform .18s ease, border-color .18s ease;
}

.stat-block:hover {
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.12);
}

.accordion-trigger:focus-visible {
    outline: 2px solid rgba(var(--primary-rgb), 0.26);
    outline-offset: 2px;
    border-radius: 12px;
}

/* Animated accordion content (works with JS setting max-height) */
.accordion-content {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height .28s ease, opacity .2s ease;
    will-change: max-height;
}

.accordion-content.open {
    opacity: 1;
}

/* Slightly reduce emphasis for all-uppercase headings to improve readability */
.eyebrow,
.badge,
.badge-alt { text-transform: uppercase; letter-spacing: .14em; }

/* Footer improvements */
.footer-angled {
    background: linear-gradient(180deg, rgba(10,20,25,0.6), rgba(10,12,14,0.42));
    border-top: 1px solid rgba(255,255,255,0.03);
}

.footer-angled .container-wrap {
    display: grid;
    gap: 1.25rem;
}

.footer-angled h4 {
    color: var(--primary);
    font-weight: 700;
}

.footer-angled p {
    color: var(--muted);
}

.footer-angled ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-angled a {
    color: rgba(230,230,235,0.85);
    text-decoration: none;
    transition: color .15s ease, transform .12s ease;
}

.footer-angled a:hover {
    color: var(--primary);
    transform: translateX(4px);
}

.footer-angled .text-slate-500 { color: rgba(200,200,205,0.6); }

@media (min-width: 768px) {
    .footer-angled .container-wrap { grid-template-columns: 1fr 160px 200px 180px; }
}

/* Footer icons styling */
.footer-angled ul li a { display: flex; align-items: center; gap: .55rem; }
.footer-icon { width: 1rem; height: 1rem; flex-shrink: 0; color: rgba(230,230,235,0.9); }
.footer-angled ul li a .footer-icon { stroke: currentColor; fill: none; }
.footer-angled ul li a:hover .footer-icon { color: var(--primary); }

/* Ensure colored SVGs (like WhatsApp) keep contrast */
.footer-angled a svg[fill] { display: inline-block; vertical-align: middle; }
