/* Variables */
:root {
    --ip-primary: #3525cd;
    --ip-primary-light: #4f46e5;
    --ip-primary-fixed: #e2dfff;
    --ip-primary-dim: #c3c0ff;
    --ip-on-primary: #ffffff;
    --ip-on-surface: #181445;
    --ip-on-muted: #464555;
    --ip-surface: #ffffff;
    --ip-bg: #f0eeff;
    --ip-card-bg: #ffffff;
    --ip-border: rgba(199, 196, 216, 0.5);
    --ip-icon-bg: #ece9ff;
    --ip-divider: rgba(199, 196, 216, 0.6);
    --ip-shadow: 0 4px 32px rgba(53, 37, 205, 0.08);
    --font: 'Hanken Grotesk', sans-serif;
    --radius-card: 20px;
    --radius-icon: 10px;
}

/* BASE */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font);
    background: var(--ip-bg);
    color: var(--ip-on-surface);
    -webkit-font-smoothing: antialiased;
}

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    line-height: 1;
}

/* SECCIÓN */
.ip-section {
    padding: 72px 24px 80px;
    background: var(--ip-bg);
}

.ip-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* ENCABEZADO */
.ip-header {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.ip-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--ip-card-bg);
    color: var(--ip-primary);
    border: 1.5px solid var(--ip-border);
    border-radius: 999px;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ip-badge .material-symbols-outlined {
    font-size: 15px;
}

.ip-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    line-height: 1.1;
    color: var(--ip-on-surface);
    letter-spacing: -0.02em;
}

.ip-title-croma {
    background: linear-gradient(100deg,
            #4f46e5 0%,
            #7c6ff7 35%,
            #c3c0ff 60%,
            #4f46e5 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: cromaFlow 4s linear infinite;
    display: inline-block;
}

@keyframes cromaFlow {
    0% {
        background-position: 200% center;
    }

    100% {
        background-position: 0% center;
    }
}

.ip-subtitle {
    font-size: 17px;
    line-height: 1.6;
    color: var(--ip-on-muted);
    max-width: 560px;
}

/* CARD PRINCIPAL */
.ip-card {
    background: var(--ip-card-bg);
    border-radius: var(--radius-card);
    box-shadow: var(--ip-shadow);
    border: 1px solid var(--ip-border);
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
}

@media (min-width: 768px) {
    .ip-card {
        grid-template-columns: 1fr 1fr;
    }
}

/* Columna izquierda */
.ip-col--left {
    padding: 40px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    border-bottom: 1px solid var(--ip-border);
}

@media (min-width: 768px) {
    .ip-col--left {
        border-bottom: none;
        border-right: 1px solid var(--ip-border);
    }
}

/* Imagen 3D */
.ip-img-wrap {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 360px;
}

.ip-img-circle {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: var(--ip-primary-fixed);
    opacity: 0.6;
}

.ip-img {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    height: 360px;
    object-fit: contain;
    filter: drop-shadow(0 12px 32px rgba(53, 37, 205, 0.22));
    animation: flotar 3.6s ease-in-out infinite;
}

@keyframes flotar {

    0%,
    100% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-10px);
    }
}

.ip-col-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--ip-on-surface);
    line-height: 1.3;
}

.ip-col-body {
    font-size: 15px;
    line-height: 1.65;
    color: var(--ip-on-muted);
}

/* Badges de plataformas */
.ip-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.ip-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    border: 1.5px solid var(--ip-border);
    background: var(--ip-surface);
    font-size: 12px;
    font-weight: 700;
    color: var(--ip-on-surface);
    letter-spacing: 0.03em;
    transition: border-color 0.2s, background 0.2s;
    cursor: default;
}

.ip-platform-badge .material-symbols-outlined {
    font-size: 16px;
    color: var(--ip-primary);
}

.ip-platform-badge:hover {
    border-color: var(--ip-primary-light);
    background: var(--ip-icon-bg);
}

/* Columna derecha */
.ip-col--right {
    padding: 40px 36px 36px;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ip-list-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--ip-on-surface);
    margin-bottom: 10px;
}

.ip-title-underline {
    width: 40px;
    height: 3px;
    border-radius: 2px;
    background: var(--ip-primary);
    margin-bottom: 24px;
}

/* Lista de servicios */
.ip-service-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
    flex: 1;
}

.ip-service-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ip-divider);
    transition: background 0.15s;
}

.ip-service-item:last-child {
    border-bottom: none;
}

.ip-service-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-icon);
    background: var(--ip-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-service-icon .material-symbols-outlined {
    font-size: 20px;
    color: var(--ip-primary);
}

.ip-service-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.ip-service-text strong {
    font-size: 14px;
    font-weight: 700;
    color: var(--ip-on-surface);
    line-height: 1.3;
}

.ip-service-text span {
    font-size: 13px;
    color: var(--ip-on-muted);
    line-height: 1.5;
}

/* CTA WhatsApp */
.ip-cta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.ip-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ip-primary);
    color: var(--ip-on-primary);
    text-decoration: none;
    padding: 13px 22px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    font-family: var(--font);
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(53, 37, 205, 0.25);
    white-space: nowrap;
}

.ip-cta-btn:hover {
    background: var(--ip-primary-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(53, 37, 205, 0.35);
}

.ip-cta-btn:active {
    transform: translateY(0);
}

.ip-wa-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.ip-cta-note {
    font-size: 13px;
    line-height: 1.5;
    color: var(--ip-on-muted);
}

/* STATS */
.ip-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    background: var(--ip-card-bg);
    border-radius: var(--radius-card);
    border: 1px solid var(--ip-border);
    box-shadow: var(--ip-shadow);
    overflow: hidden;
}

@media (min-width: 600px) {
    .ip-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

.ip-stat {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 28px 28px;
    border-bottom: 1px solid var(--ip-divider);
    transition: background 0.2s;
}

.ip-stat:hover {
    background: var(--ip-bg);
}

@media (min-width: 600px) {
    .ip-stat {
        border-bottom: none;
        border-right: 1px solid var(--ip-divider);
    }

    .ip-stat:last-child {
        border-right: none;
    }
}

.ip-stat-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--ip-icon-bg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.ip-stat-icon .material-symbols-outlined {
    font-size: 24px;
    color: var(--ip-primary);
}

.ip-stat-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ip-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--ip-on-surface);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.ip-stat-highlight {
    font-size: 17px;
    font-weight: 700;
    color: var(--ip-primary);
    line-height: 1.3;
}

.ip-stat-text span {
    font-size: 13px;
    color: var(--ip-on-muted);
    line-height: 1.5;
}

.ip-stat-sub {
    font-size: 12px !important;
    color: var(--ip-on-muted);
}

/* ANIMACIONES DE ENTRADA */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ip-header,
.ip-card,
.ip-stats {
    opacity: 0;
}

.ip-header.visible {
    animation: fadeUp 0.55s ease 0.05s both;
}

.ip-card.visible {
    animation: fadeUp 0.55s ease 0.18s both;
}

.ip-stats.visible {
    animation: fadeUp 0.55s ease 0.30s both;
}