/* =====================================================
   INT-PaginaWeb — Apple-Style Design System
   ===================================================== */

/* --- Variables & Reset --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --blue: #047FB8;
    --orange: #FF9900;
    --violet: #c4b5fd;
    --dark: #030614;
    --dark2: #0a0f2c;
    --dark3: #0f1635;
    --mid: #1a2250;
    --glass: rgba(255, 255, 255, 0.05);
    --glass-b: rgba(255, 255, 255, 0.08);
    --text: #f5f5f7;
    --text2: #a1a1a6;
    --text3: #6e6e73;
    --radius: 20px;
    --radius-sm: 12px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-w: 1200px;
    --nav-h: 64px;
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font);
    background: var(--dark);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* --- Scroll reveal --- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =====================================================
   NAV
   ===================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-h);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(3, 6, 20, 0.72);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.3s;
}

.nav--scrolled {
    background: rgba(3, 6, 20, 0.92);
}

.nav__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    height: 100%;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
}

.nav__logo-img {
    width: 30px;
    height: 30px;
}

.nav__logo-text {
    color: var(--text);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.nav__links a {
    padding: 0.45rem 0.9rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: var(--text2);
    transition: color 0.2s, background 0.2s;
}

.nav__links a:hover {
    color: var(--text);
    background: var(--glass);
}

.nav__cta {
    background: var(--blue) !important;
    color: #fff !important;
    font-weight: 600 !important;
    padding: 0.5rem 1.1rem !important;
    transition: opacity 0.2s, transform 0.2s !important;
}

.nav__cta:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px);
}

.nav__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
}

.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.3s;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    border-radius: 980px;
    font-family: var(--font);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s var(--ease), opacity 0.2s, box-shadow 0.2s;
}

.btn:hover {
    transform: scale(1.03);
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background: var(--blue);
    color: #fff;
    box-shadow: 0 4px 24px rgba(4, 127, 184, 0.4);
}

.btn--primary:hover {
    opacity: 0.9;
    box-shadow: 0 8px 32px rgba(4, 127, 184, 0.5);
}

.btn--ghost {
    background: var(--glass-b);
    color: var(--text);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn--full {
    width: 100%;
}

/* =====================================================
   SECTIONS
   ===================================================== */
.section {
    padding: 100px 1.5rem;
}

.section__inner {
    max-width: var(--max-w);
    margin: 0 auto;
}

.section__eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 1rem;
}

.section__title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 1.25rem;
}

.section__sub {
    font-size: 1.15rem;
    color: var(--text2);
    max-width: 640px;
    line-height: 1.7;
    margin-bottom: 3.5rem;
}

/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
}

.hero__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(3, 6, 20, 0.92) 0%,
            rgba(3, 6, 20, 0.75) 50%,
            rgba(4, 127, 184, 0.15) 100%);
}

.hero__content {
    position: relative;
    z-index: 2;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: calc(var(--nav-h) + 4rem) 2rem 6rem;
    width: 100%;
}

.hero__tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    border-radius: 980px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.04em;
    margin-bottom: 2rem;
    animation: slideInLeft 0.8s var(--ease) 0.2s both;
}

.hero__sprint-icon {
    width: 18px;
    height: 18px;
    display: inline-block;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.hero__title {
    font-size: clamp(2.5rem, 7vw, 5.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: var(--text);
    margin-bottom: 1.5rem;
    max-width: 780px;
    animation: fadeUp 0.9s var(--ease) 0.4s both;
}

.hero__title em {
    font-style: normal;
    background: linear-gradient(90deg, var(--blue), var(--violet));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero__sub {
    font-size: 1.2rem;
    color: rgba(245, 245, 247, 0.75);
    max-width: 560px;
    line-height: 1.7;
    margin-bottom: 2.5rem;
    animation: fadeUp 0.9s var(--ease) 0.6s both;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeUp 0.9s var(--ease) 0.8s both;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text3);
    z-index: 2;
    animation: bounce 2s ease infinite 1.5s;
}

.hero__scroll-hint::after {
    content: '';
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text3), transparent);
    margin: 0.5rem auto 0;
}

@keyframes bounce {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(6px);
    }
}

/* =====================================================
   PRODUCTOS
   ===================================================== */
.productos {
    background: var(--dark2);
}

.products__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (max-width: 768px) {
    .products__grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    position: relative;
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    transition: transform 0.3s var(--ease), box-shadow 0.3s, border-color 0.3s;
    backdrop-filter: blur(8px);
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.14);
}

.product-card--featured {
    border-color: var(--blue);
    box-shadow: 0 0 0 1px var(--blue), 0 8px 40px rgba(4, 127, 184, 0.2);
}

.product-card--featured:hover {
    box-shadow: 0 0 0 1px var(--blue), 0 20px 60px rgba(4, 127, 184, 0.35);
}

.product-card__badge {
    position: absolute;
    top: -1px;
    right: 1.5rem;
    background: var(--blue);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.3rem 0.8rem;
    border-radius: 0 0 10px 10px;
}

.product-card__icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(from var(--accent) r g b / 0.15);
    background: color-mix(in srgb, var(--accent) 15%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.product-card__icon-wrap svg {
    width: 26px;
    height: 26px;
    fill: var(--accent);
}

.product-card__body h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text);
}

.product-card__body p {
    font-size: 0.9rem;
    color: var(--text2);
    line-height: 1.65;
}

.product-card__features {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-top: 0.75rem;
}

.product-card__features li {
    font-size: 0.82rem;
    color: var(--text2);
    padding-left: 1.1rem;
    position: relative;
}

.product-card__features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--blue);
    font-weight: 700;
}

.product-card__link {
    margin-top: auto;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--blue);
    transition: gap 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.product-card__link:hover {
    gap: 0.6rem;
}

/* --- Tarjeta especial: Gestión del Servicio --- */
.product-card--service {
    border-color: rgba(34, 211, 238, 0.3);
}

.product-card--service:hover {
    border-color: rgba(34, 211, 238, 0.6);
    box-shadow: 0 20px 60px rgba(34, 211, 238, 0.1);
}

.service-modules {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.75rem;
}

.service-module {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    background: rgba(34, 211, 238, 0.04);
    border: 1px solid rgba(34, 211, 238, 0.12);
    border-radius: 10px;
    padding: 0.75rem;
    transition: background 0.25s, border-color 0.25s;
}

.service-module:hover {
    background: rgba(34, 211, 238, 0.08);
    border-color: rgba(34, 211, 238, 0.25);
}

.service-module__icon {
    font-size: 1.3rem;
    line-height: 1;
    flex-shrink: 0;
}

.service-module strong {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.service-module p {
    font-size: 0.75rem !important;
    color: var(--text2) !important;
    line-height: 1.5 !important;
    margin: 0 !important;
}

@media (max-width: 540px) {
    .service-modules {
        grid-template-columns: 1fr;
    }
}


/* --- Tarjeta especial: Automatización de Procesos (full-width) --- */
.product-card--auto {
    grid-column: span 2;
    border-color: rgba(255, 153, 0, 0.3);
}

.product-card--auto:hover {
    border-color: rgba(255, 153, 0, 0.6);
    box-shadow: 0 20px 60px rgba(255, 153, 0, 0.1);
}

.product-card__auto-inner {
    display: grid;
    grid-template-columns: 1fr 1.4fr;
    gap: 2.5rem;
    align-items: start;
}

.product-card__auto-left {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.product-card__auto-right {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.auto-benefit {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    background: rgba(255, 153, 0, 0.04);
    border: 1px solid rgba(255, 153, 0, 0.12);
    border-radius: 10px;
    padding: 0.9rem;
    transition: background 0.25s, border-color 0.25s;
}

.auto-benefit:hover {
    background: rgba(255, 153, 0, 0.09);
    border-color: rgba(255, 153, 0, 0.28);
}

.auto-benefit__icon {
    font-size: 1.4rem;
    line-height: 1;
    flex-shrink: 0;
}

.auto-benefit strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.auto-benefit p {
    font-size: 0.78rem;
    color: var(--text2);
    line-height: 1.5;
    margin: 0;
}

@media (max-width: 900px) {
    .product-card--auto {
        grid-column: span 1;
    }

    .product-card__auto-inner {
        grid-template-columns: 1fr;
    }

    .product-card__auto-right {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 480px) {
    .product-card__auto-right {
        grid-template-columns: 1fr;
    }
}

/* =====================================================
   TECNOLOGÍAS
   ===================================================== */
.tecnologias {
    background: var(--dark3);
}

.tech__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-top: 1rem;
}

.tech__item {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 1.75rem;
    transition: transform 0.3s var(--ease), background 0.3s;
}

.tech__item:hover {
    transform: translateY(-4px);
    background: var(--glass-b);
}

.tech__icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    line-height: 1;
}

.tech__item h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.tech__item p {
    font-size: 0.87rem;
    color: var(--text2);
    line-height: 1.6;
}

/* =====================================================
   IMPACTO
   ===================================================== */
.impacto {
    background: linear-gradient(135deg, var(--blue) 0%, #023a6e 100%);
    padding: 80px 1.5rem;
}

.impacto__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.impacto__stat {
    flex: 1;
    min-width: 180px;
    text-align: center;
    padding: 2rem;
}

.impacto__num {
    font-size: clamp(3rem, 7vw, 5rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    line-height: 1;
}

.impacto__unit {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
}

.impacto__stat p {
    margin-top: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.75);
}

.impacto__divider {
    width: 1px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

/* =====================================================
   ALIADOS
   ===================================================== */
.aliados {
    background: var(--dark2);
}

.aliados__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
}

.aliado__item {
    background: var(--glass);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: var(--radius-sm);
    padding: 1.25rem 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: transform 0.25s, background 0.25s;
    cursor: default;
    min-width: 120px;
}

.aliado__item:hover {
    transform: translateY(-3px);
    background: var(--glass-b);
}

.aliado__logo {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text2);
    text-align: center;
    line-height: 1.2;
    letter-spacing: -0.01em;
    transition: color 0.25s;
}

.aliado__logo span {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-top: 2px;
}

.aliado__item:hover .aliado__logo {
    color: var(--text);
}

.aliado__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    flex-shrink: 0;
}

/* =====================================================
   TECH STACK (n8n, Gemini, Python, etc.)
   ===================================================== */
.tech__stack {
    margin-top: 2.5rem;
    text-align: center;
}

.tech__stack-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 1rem;
}

.tech__stack-items {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.stack-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 980px;
    padding: 0.45rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text2);
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.stack-chip:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
    border-color: rgba(255, 255, 255, 0.2);
}

.stack-chip svg {
    width: 18px;
    height: 18px;
    border-radius: 4px;
    flex-shrink: 0;
}


/* =====================================================
   CTA CONTACTO
   ===================================================== */
.cta-section {
    background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(4, 127, 184, 0.18) 0%, var(--dark) 70%);
    padding: 120px 1.5rem;
    border-top: 1px solid rgba(4, 127, 184, 0.15);
}

.cta__inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.cta__title {
    font-size: clamp(2.2rem, 5vw, 3.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
}

.cta__sub {
    color: var(--text2);
    margin-bottom: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.7;
}

.cta__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: left;
}

.form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.cta__form input,
.cta__form select,
.cta__form textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-sm);
    padding: 1rem 1.25rem;
    font-family: var(--font);
    font-size: 0.97rem;
    color: #f0f0f2;
    outline: none;
    transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.cta__form input::placeholder,
.cta__form textarea::placeholder {
    color: rgba(200, 210, 230, 0.55);
}

/* Select placeholder color trick */
.cta__form select {
    color: rgba(200, 210, 230, 0.85);
}

.cta__form select option {
    background: #0d1a3a;
    color: #f0f0f2;
}

.cta__form input:hover,
.cta__form select:hover,
.cta__form textarea:hover {
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.11);
}

.cta__form input:focus,
.cta__form select:focus,
.cta__form textarea:focus {
    border-color: var(--blue);
    background: rgba(4, 127, 184, 0.1);
    box-shadow: 0 0 0 3px rgba(4, 127, 184, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.cta__form textarea {
    resize: vertical;
    min-height: 110px;
}

.form__note {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text3);
    margin-top: -0.25rem;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: #010309;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 3rem 1.5rem 2rem;
}

.footer__inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer__brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.footer__logo {
    width: 36px;
    margin: 0 auto;
}

.footer__brand p {
    font-size: 0.95rem;
    font-weight: 600;
}

.footer__brand small {
    color: var(--text3);
    font-size: 0.78rem;
}

.footer__links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    justify-content: center;
}

.footer__links a {
    font-size: 0.85rem;
    color: var(--text2);
    transition: color 0.2s;
}

.footer__links a:hover {
    color: var(--text);
}

.footer__copy {
    font-size: 0.75rem;
    color: var(--text3);
}

/* =====================================================
   MOBILE NAV
   ===================================================== */
@media (max-width: 768px) {
    .nav__links {
        display: none;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0;
        right: 0;
        background: rgba(3, 6, 20, 0.97);
        backdrop-filter: blur(20px);
        padding: 2rem 1.5rem;
        gap: 0.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .nav__links.open {
        display: flex;
    }

    .nav__links a {
        padding: 0.75rem 1rem;
        font-size: 1rem;
    }

    .nav__burger {
        display: flex;
    }

    .form__row {
        grid-template-columns: 1fr;
    }

    .impacto__divider {
        display: none;
    }

    .hero__title {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }
}