/* ================= SECCIÓN SERVICIOS ================= */

.services-section {
    padding: 82px 0 36px;
    background: #ffffff;
    position: relative;
}

.services-section::before {
    content: "";
    position: absolute;
    top: 80px;
    right: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(12px);
    pointer-events: none;
}

.services-section .container {
    position: relative;
    z-index: 2;
}

/* ================= HERO EFECTOS ================= */

.hero-section {
    position: relative;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 12%;
    right: 8%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: rgba(56, 189, 248, 0.18);
    filter: blur(18px);
    animation: floatGlow 7s ease-in-out infinite;
}

.hero-section::after {
    content: "";
    position: absolute;
    bottom: 8%;
    left: 5%;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.18);
    filter: blur(16px);
    animation: floatGlow 9s ease-in-out infinite reverse;
}

.hero-card {
    position: relative;
    overflow: hidden;
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.16),
        transparent 45%,
        rgba(56, 189, 248, 0.08)
    );
    pointer-events: none;
}

.hero-card img,
.hero-card-info {
    position: relative;
    z-index: 2;
}

/* Ajuste título principal hero MAGI IM */
.hero-section .hero-content h1,
.hero-section .hero-text h1 {
    font-size: clamp(3.7rem, 6.6vw, 5.35rem);
    line-height: 1;
    letter-spacing: -0.06em;
    text-wrap: balance;
}

/* ================= BENEFICIOS ================= */

.why-grid {
    position: relative;
}

.why-item {
    position: relative;
    overflow: hidden;
}

.why-item::before {
    content: "";
    position: absolute;
    top: -55px;
    right: -55px;
    width: 115px;
    height: 115px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    transition: transform 0.25s ease;
}

.why-item:hover::before {
    transform: scale(1.25);
}

/* ================= CARRUSEL ÁREAS MAGI IM ================= */

.magi-areas-section {
    padding: 48px 0 58px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.magi-areas-section::before {
    content: "";
    position: absolute;
    top: -180px;
    left: 50%;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.06);
    transform: translateX(-50%);
    filter: blur(18px);
    pointer-events: none;
}

.magi-areas-section .section-container {
    width: min(1420px, calc(100% - 64px));
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.section-header.compact {
    max-width: 930px;
    margin: 0 auto 38px;
    text-align: center;
}

.section-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 11px 22px;
    margin-bottom: 22px;
    border-radius: 999px;
    background: #dfeaff;
    color: #2563eb;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.section-header.compact h2 {
    margin: 0;
    color: #07152f;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.12;
    font-weight: 900;
    letter-spacing: -0.045em;
}

.section-header.compact p {
    max-width: 880px;
    margin: 24px auto 0;
    color: #5d6d8a;
    font-size: clamp(1.02rem, 1.35vw, 1.18rem);
    line-height: 1.55;
    font-weight: 500;
}

.areas-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 22px;
}

.areas-carousel {
    display: flex;
    gap: 28px;
    width: 100%;
    padding: 8px 4px 22px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}

.areas-carousel::-webkit-scrollbar {
    display: none;
}

.area-card {
    position: relative;
    flex: 0 0 calc((100% - 56px) / 3);
    min-height: 345px;
    padding: 54px 42px 46px;
    border: 1px solid #e1e8f3;
    border-radius: 30px;
    background: #ffffff;
    text-align: center;
    scroll-snap-align: start;
    overflow: hidden;
    box-shadow: 0 24px 65px rgba(15, 37, 76, 0.08);
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.area-card::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -92px;
    width: 188px;
    height: 188px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.10);
    transform: translateX(-50%);
}

.area-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.35);
    box-shadow: 0 30px 85px rgba(15, 37, 76, 0.14);
}

.area-icon {
    position: relative;
    z-index: 1;
    width: 88px;
    height: 88px;
    margin: 0 auto 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 26px;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.24);
}

.area-icon i {
    color: #ffffff;
    font-size: 2rem;
}

.area-card h3 {
    position: relative;
    z-index: 1;
    margin: 0 0 18px;
    color: #07152f;
    font-size: 1.45rem;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
}

.area-card p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #5d6d8a;
    font-size: 1.03rem;
    line-height: 1.52;
    font-weight: 500;
}

.carousel-btn {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    border: 0;
    border-radius: 999px;
    background: #ffffff;
    color: #2563eb;
    font-size: 2.3rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 18px 45px rgba(15, 37, 76, 0.14);
    transition:
        transform 0.25s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.carousel-btn:hover {
    transform: translateY(-3px);
    background: #2563eb;
    color: #ffffff;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #c8d5ea;
    cursor: pointer;
    transition:
        width 0.25s ease,
        background 0.25s ease;
}

.carousel-dot.active {
    width: 32px;
    background: #2563eb;
}

/* ================= FLUJO OPERATIVO ================= */

.project-card {
    position: relative;
}

.project-card::after {
    content: "";
    position: absolute;
    inset: auto 24px 0 24px;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.project-card:hover::after {
    opacity: 1;
}

.maintenance-preview .preview-cards {
    grid-template-columns: repeat(3, 1fr);
}

.maintenance-preview .preview-cards span:nth-child(2),
.maintenance-preview .preview-cards span:nth-child(5) {
    background: #dbeafe;
}

.maintenance-preview .preview-cards span:nth-child(3),
.maintenance-preview .preview-cards span:nth-child(6) {
    background: #e0f2fe;
}

/* ================= ÁREAS DE MANTENIMIENTO ANTIGUAS ================= */

.tech-card {
    position: relative;
    overflow: hidden;
}

.tech-card::before {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -90px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.08);
    transform: translateX(-50%);
    transition: bottom 0.25s ease;
}

.tech-card:hover::before {
    bottom: -70px;
}

.tech-card .tech-icon,
.tech-card h3,
.tech-card p {
    position: relative;
    z-index: 2;
}

/* ================= TESTIMONIOS / RESULTADOS ================= */

.testimonials-grid {
    align-items: stretch;
}

.testimonial-card {
    position: relative;
    overflow: hidden;
}

.testimonial-card::before {
    content: "“";
    position: absolute;
    top: -34px;
    right: 26px;
    color: rgba(37, 99, 235, 0.08);
    font-size: 9rem;
    line-height: 1;
    font-weight: 900;
}

.testimonial-card .testimonial-icon,
.testimonial-card p,
.testimonial-author {
    position: relative;
    z-index: 2;
}

/* ================= CLIENTES MAGI IM ================= */

.magi-im-clients-section {
    position: relative;
    padding: 72px 0 96px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
}

.magi-im-clients-section::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -130px;
    width: 430px;
    height: 430px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(16px);
    pointer-events: none;
}

.magi-im-clients-section::after {
    content: "";
    position: absolute;
    bottom: -190px;
    left: -140px;
    width: 440px;
    height: 440px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    filter: blur(16px);
    pointer-events: none;
}

.magi-im-clients-section .container {
    position: relative;
    z-index: 2;
}

.magi-im-clients-header {
    max-width: 820px;
    margin: 0 auto 38px;
    text-align: center;
}

.magi-im-clients-header .section-pill {
    margin-bottom: 20px;
}

.magi-im-clients-header h2 {
    margin: 0;
    color: #07152f;
    font-size: clamp(2rem, 3.2vw, 3.1rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.magi-im-clients-header p {
    max-width: 720px;
    margin: 20px auto 0;
    color: #5d6d8a;
    font-size: 1.06rem;
    line-height: 1.65;
    font-weight: 500;
}

.magi-im-clients-grid {
    display: flex;
    justify-content: center;
}

.magi-im-client-card {
    position: relative;
    width: min(100%, 520px);
    min-height: 190px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 38px 46px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 28px 76px rgba(15, 23, 42, 0.09);
    text-decoration: none;
    overflow: hidden;
    transition:
        transform 0.35s ease,
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.magi-im-client-card::before {
    content: "";
    position: absolute;
    right: -88px;
    bottom: -88px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    pointer-events: none;
    transition: transform 0.35s ease;
}

.magi-im-client-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 36px 92px rgba(15, 23, 42, 0.15);
}

.magi-im-client-card:hover::before {
    transform: scale(1.16);
}

.magi-im-client-card img {
    position: relative;
    z-index: 2;
    width: min(100%, 390px);
    max-height: 115px;
    display: block;
    object-fit: contain;
    transition: transform 0.35s ease;
}

.magi-im-client-card:hover img {
    transform: scale(1.035);
}

@media (max-width: 720px) {
    .magi-im-clients-section {
        padding: 56px 0 72px;
    }

    .magi-im-clients-header {
        margin-bottom: 28px;
    }

    .magi-im-clients-header h2 {
        font-size: clamp(2rem, 9vw, 2.65rem);
    }

    .magi-im-clients-header p {
        font-size: 1rem;
        line-height: 1.62;
    }

    .magi-im-client-card {
        width: min(100%, 360px);
        min-height: 150px;
        padding: 30px 28px;
        border-radius: 26px;
    }

    .magi-im-client-card img {
        width: min(100%, 280px);
        max-height: 90px;
    }
}


/* ================= ALIANZAS ================= */

.alliances-section {
    position: relative;
    padding: 62px 0 72px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    overflow: hidden;
}

.alliances-section::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(14px);
    pointer-events: none;
}

.alliances-section::after {
    content: "";
    position: absolute;
    bottom: -180px;
    left: -140px;
    width: 440px;
    height: 440px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.08);
    filter: blur(14px);
    pointer-events: none;
}

.alliances-header {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.alliances-header h2 {
    margin: 18px 0 20px;
    color: #07152f;
    font-size: clamp(2rem, 3.2vw, 3rem);
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.05em;
}

.alliances-header p {
    max-width: 760px;
    margin: 0 auto;
    color: #5d6d8a;
    font-size: 1.08rem;
    line-height: 1.65;
    font-weight: 500;
}

.alliances-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr;
    max-width: 980px;
    margin: 0 auto;
}

.alliance-card {
    position: relative;
    display: grid;
    grid-template-columns: 42% 1fr;
    gap: 34px;
    align-items: center;
    padding: 34px;
    border: 1px solid #e1e8f3;
    border-radius: 32px;
    background: #ffffff;
    box-shadow: 0 26px 75px rgba(15, 37, 76, 0.08);
    overflow: hidden;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.alliance-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 34px 90px rgba(15, 37, 76, 0.14);
}

.alliance-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 260px;
    padding: 34px;
    border-radius: 26px;
    background: linear-gradient(135deg, #ffffff 0%, #f4f8ff 100%);
    border: 1px solid #e1e8f3;
}

.alliance-logo img {
    width: 100%;
    max-width: 360px;
    height: auto;
    display: block;
}

.alliance-content h3 {
    margin: 0 0 16px;
    color: #07152f;
    font-size: 2rem;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.045em;
}

.alliance-content p {
    margin: 0;
    color: #5d6d8a;
    font-size: 1.05rem;
    line-height: 1.68;
    font-weight: 500;
}

.alliance-actions {
    margin-top: 28px;
}

.alliance-btn {
    min-height: 46px;
    padding: 0 22px;
    border-radius: 14px;
}

.alliance-btn.is-disabled {
    opacity: 0.9;
    pointer-events: none;
    cursor: not-allowed;
    color: #ffffff;
    background: var(--gradient-primary);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.24);
}

/* ================= CONTACTO ================= */

.contact-section {
    padding: 88px 0;
    background: #f8fafc;
    position: relative;
    overflow: hidden;
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 72px;
    align-items: stretch;
}

.contact-content {
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 0;
}

.contact-content h2 {
    margin: 22px 0 24px;
    color: #07152f;
    font-size: clamp(2.45rem, 3.8vw, 3.65rem);
    line-height: 1.08;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.contact-content > p {
    max-width: 620px;
    margin: 0 0 32px;
    color: #5d6d8a;
    font-size: 1.08rem;
    line-height: 1.58;
    font-weight: 500;
}

.contact-info-list {
    display: grid;
    gap: 18px;
    margin-top: auto;
}

.contact-info-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 22px 24px;
    border-radius: 24px;
    background: #ffffff;
    border: 1px solid #e1e8f3;
    box-shadow: 0 20px 55px rgba(15, 37, 76, 0.08);
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    flex: 0 0 60px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: #ffffff;
    font-size: 1.35rem;
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.24);
}

.contact-info-card h3 {
    margin: 0 0 7px;
    color: #07152f;
    font-size: 1.12rem;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.contact-info-card p {
    margin: 0;
    color: #5d6d8a;
    font-size: 0.98rem;
    line-height: 1.45;
    font-weight: 500;
}

.contact-form-card {
    position: relative;
    height: 100%;
    min-height: 100%;
    margin-top: 0;
    padding: 34px;
    border-radius: 34px;
    background: #ffffff;
    border: 1px solid #e1e8f3;
    box-shadow: 0 30px 85px rgba(15, 37, 76, 0.10);
    overflow: hidden;
}

.contact-form-card::before {
    content: "";
    position: absolute;
    top: -90px;
    right: -90px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    pointer-events: none;
}

.contact-form {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 20px;
    height: 100%;
    align-content: start;
}

.contact-form::before {
    display: none;
}

.contact-form .form-group {
    display: grid;
    gap: 8px;
}

.contact-form label {
    color: #07152f;
    font-size: 0.95rem;
    font-weight: 900;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
    width: 100%;
    min-height: 54px;
    padding: 15px 17px;
    border-radius: 16px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    background: #ffffff;
    color: #07152f;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 500;
    outline: none;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-form textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #7c8ba3;
}

.contact-form select {
    color: #64748b;
    cursor: pointer;
    appearance: none;
    padding-right: 48px;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg width='14' height='9' viewBox='0 0 14 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L7 7.5L13 1.5' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 18px center;
    background-size: 14px 9px;
}

.contact-form select option {
    color: #07152f;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.other-service-group {
    display: none !important;
    grid-column: 2 / 3;
}

.other-service-group.is-visible {
    display: grid !important;
}

.contact-form .form-group:nth-of-type(7) {
    grid-column: 1 / -1;
}

.contact-submit,
.form-message {
    grid-column: 1 / -1;
}

.contact-submit {
    width: fit-content;
    min-height: 54px;
    padding: 0 28px;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    box-shadow: 0 18px 38px rgba(37, 99, 235, 0.24);
    font-weight: 900;
    justify-self: end;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.contact-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 46px rgba(37, 99, 235, 0.30);
}

.contact-submit:disabled {
    cursor: not-allowed;
    opacity: 0.75;
    transform: none;
}

.form-message {
    margin: 0;
    font-weight: 800;
    line-height: 1.5;
}

.success-message {
    color: #009b3a;
}

.error-message {
    color: #dc2626;
}

/* ================= MODAL ÉXITO CONTACTO ================= */

.success-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(6, 21, 50, 0.18);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.success-overlay.is-visible {
    opacity: 1;
    pointer-events: auto;
}

.success-modal {
    width: min(100%, 420px);
    padding: 38px 34px;
    border-radius: 32px;
    background: #ffffff;
    text-align: center;
    border: 1px solid rgba(226, 232, 240, 0.85);
    box-shadow: 0 30px 90px rgba(15, 23, 42, 0.22);
    transform: translateY(18px) scale(0.96);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.success-overlay.is-visible .success-modal {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.success-icon {
    width: 78px;
    height: 78px;
    margin: 0 auto 20px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, #2563eb, #14b8a6);
    color: #ffffff;
    font-size: 2rem;
    box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
}

.success-modal h3 {
    margin: 0 0 12px;
    color: #061532;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 950;
}

.success-modal p {
    margin: 0;
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 600;
}

/* ================= PÁGINA NOSOTROS ================= */

.about-page {
    min-height: 100vh;
}

.about-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
}

.about-hero::before {
    content: "";
    position: absolute;
    top: 10%;
    left: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(10px);
}

.about-page-layout {
    position: relative;
    z-index: 2;
}

.about-page-visual {
    position: relative;
}

.about-page-visual::after {
    content: "";
    position: absolute;
    inset: 22px -22px -22px 22px;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(37, 99, 235, 0.16);
    z-index: -1;
}

.about-page-content .section-label {
    margin-bottom: 20px;
}

/* ================= PÁGINA MISIÓN ================= */

.mission-page {
    min-height: 100vh;
}

.mission-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
}

.mission-hero::before {
    content: "";
    position: absolute;
    right: -140px;
    bottom: 12%;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.10);
    filter: blur(12px);
}

.mission-page-layout {
    position: relative;
    z-index: 2;
}

.mission-page-visual {
    position: relative;
}

.mission-page-visual::after {
    content: "";
    position: absolute;
    inset: -22px 22px 22px -22px;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(14, 165, 233, 0.16);
    z-index: -1;
}

.mission-value-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mission-value-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-card);
}

/* ================= PÁGINA QUIÉNES SOMOS ================= */

.team-page {
    min-height: 100vh;
    background: #ffffff;
}

.team-hero {
    position: relative;
    padding: 145px 0 70px;
    overflow: hidden;
    background: linear-gradient(135deg, #f8fbff 0%, #ffffff 100%);
}

.team-hero::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(14px);
    pointer-events: none;
}

.team-hero::after {
    content: "";
    position: absolute;
    bottom: -220px;
    left: -160px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.10);
    filter: blur(14px);
    pointer-events: none;
}

.team-hero .container {
    position: relative;
    z-index: 2;
}

.team-hero-content {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

.team-hero-content h1 {
    margin: 18px 0 22px;
    color: #07152f;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.team-hero-content p {
    max-width: 820px;
    margin: 0 auto;
    color: #5d6d8a;
    font-size: 1.16rem;
    line-height: 1.65;
    font-weight: 500;
}

.team-section {
    padding: 58px 0 78px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 34px;
}

.team-profile-card {
    position: relative;
    display: grid;
    grid-template-columns: minmax(320px, 39%) 1fr;
    gap: 42px;
    align-items: center;
    min-height: 430px;
    padding: 34px;
    border: 1px solid #e1e8f3;
    border-radius: 34px;
    background: #ffffff;
    overflow: hidden;
    box-shadow: 0 26px 75px rgba(15, 37, 76, 0.08);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
}

.team-profile-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    right: -110px;
    bottom: -110px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.10);
    pointer-events: none;
}

.team-profile-card::after {
    content: "";
    position: absolute;
    width: 170px;
    height: 170px;
    left: -70px;
    top: -70px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.07);
    pointer-events: none;
}

.team-profile-card:hover {
    transform: translateY(-7px);
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 34px 90px rgba(15, 37, 76, 0.14);
}

.team-profile-card-reverse {
    grid-template-columns: 1fr minmax(320px, 39%);
}

.team-profile-card-reverse .team-profile-photo {
    order: 2;
}

.team-profile-card-reverse .team-profile-content {
    order: 1;
}

.team-profile-photo,
.team-profile-content {
    position: relative;
    z-index: 2;
}

.team-profile-photo {
    height: 100%;
    min-height: 360px;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(135deg, #dbeafe 0%, #eef6ff 100%);
    box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
}

.team-profile-photo img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    display: block;
    object-fit: cover;
}

.team-profile-photo-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 54px;
}

.team-profile-photo-brand img {
    width: min(100%, 340px);
    height: auto;
    min-height: auto;
    object-fit: contain;
}

.team-profile-content {
    padding: 10px 16px 10px 0;
}

.team-profile-card-reverse .team-profile-content {
    padding: 10px 0 10px 16px;
}

.team-profile-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    padding: 9px 16px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: #dfeaff;
    color: #2563eb;
    font-size: 0.86rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.team-profile-content h2 {
    margin: 0 0 22px;
    color: #07152f;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.055em;
}

.team-profile-content p {
    max-width: 860px;
    margin: 0 0 18px;
    color: #5d6d8a;
    font-size: 1.05rem;
    line-height: 1.72;
    font-weight: 500;
}

.team-profile-content p:last-child {
    margin-bottom: 0;
}

/* ================= SOPORTE ================= */

.support-section {
    position: relative;
    overflow: hidden;
}

.support-section::before {
    content: "";
    position: absolute;
    bottom: -140px;
    left: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: rgba(37, 99, 235, 0.08);
    filter: blur(12px);
}

.support-grid {
    position: relative;
    z-index: 2;
}

.support-card {
    position: relative;
    overflow: hidden;
}

.support-card::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: rgba(14, 165, 233, 0.10);
}

.support-card h3,
.support-card ul {
    position: relative;
    z-index: 2;
}

/* ================= AJUSTE GENERAL DE ESPACIADOS ================= */

.section,
.section-light,
.section-soft {
    scroll-margin-top: 96px;
}

.section-heading,
.section-header {
    margin-bottom: 42px;
}

.testimonials-grid,
.tech-grid,
.why-grid,
.services-grid,
.grid-3 {
    margin-bottom: 0;
}

.magi-areas-section .section-header.compact {
    margin-bottom: 38px;
}

.alliances-header {
    margin-bottom: 34px;
}

.testimonials-grid + *,
.tech-grid + *,
.why-grid + *,
.services-grid + * {
    margin-top: 0;
}

/* ================= ANIMACIONES ================= */

.reveal-left {
    animation: revealLeft 0.85s ease both;
}

.reveal-right {
    animation: revealRight 0.85s ease both;
}

.reveal-paragraph {
    animation: revealUp 0.75s ease both;
}

.reveal-paragraph:nth-child(1) {
    animation-delay: 0.08s;
}

.reveal-paragraph:nth-child(2) {
    animation-delay: 0.18s;
}

.reveal-paragraph:nth-child(3) {
    animation-delay: 0.28s;
}

@keyframes revealLeft {
    from {
        opacity: 0;
        transform: translateX(-34px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes revealRight {
    from {
        opacity: 0;
        transform: translateX(34px);
    }

    to {
        opacity: 1;
    }
}

@keyframes revealUp {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatGlow {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    50% {
        transform: translateY(-22px) scale(1.06);
    }
}

/* ================= INICIO MAGI IT ================= */

.home-page {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 34%),
        radial-gradient(circle at 6% 22%, rgba(14, 165, 233, 0.10), transparent 28%),
        linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.home-page::before {
    content: "";
    position: absolute;
    top: 520px;
    right: -180px;
    width: 430px;
    height: 430px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.07);
    filter: blur(18px);
    pointer-events: none;
}

.home-page::after {
    content: "";
    position: absolute;
    top: 1280px;
    left: -190px;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.08);
    filter: blur(18px);
    pointer-events: none;
}

.home-hero-section {
    position: relative;
    min-height: calc(100vh - 82px);
    padding: 138px 0 96px;
    overflow: hidden;
}

.home-hero-section::before {
    content: "";
    position: absolute;
    top: 120px;
    left: 50%;
    width: min(920px, 82vw);
    height: min(920px, 82vw);
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(37, 99, 235, 0.12), transparent 62%);
    transform: translateX(-50%);
    pointer-events: none;
}

.home-hero-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 0.94fr) minmax(430px, 1.06fr);
    gap: 64px;
    align-items: center;
}

.home-hero-content {
    max-width: 700px;
}

.home-hero-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 11px 20px;
    margin-bottom: 24px;
    border-radius: 999px;
    background: #dfeaff;
    color: #2563eb;
    font-size: 0.82rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(18px);
    animation: homeHeroReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.home-hero-content h1 {
    max-width: 700px;
    margin: 0 0 28px;
    color: #07152f;
    font-size: clamp(2.55rem, 3.75vw, 4rem);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.062em;
    text-wrap: balance;
    opacity: 0;
    transform: translateY(30px);
    filter: blur(8px);
    animation: homeHeroReveal 0.95s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.12s;
}

.home-hero-content p {
    max-width: 700px;
    margin: 0;
    color: #5d6d8a;
    font-size: clamp(1.04rem, 1.35vw, 1.18rem);
    line-height: 1.68;
    font-weight: 500;
    opacity: 0;
    transform: translateY(26px);
    filter: blur(8px);
    animation: homeHeroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.24s;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 36px;
    opacity: 0;
    transform: translateY(24px);
    animation: homeHeroReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.34s;
}

.home-hero-visual {
    position: relative;
    min-height: 570px;
    opacity: 0;
    transform: translateY(34px) scale(0.97);
    filter: blur(10px);
    animation: homeVisualReveal 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.32s;
}

.home-main-card {
    position: absolute;
    inset: 54px 20px 44px 58px;
    border: none;
    outline: none;
    border-radius: 38px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 34px 95px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    backdrop-filter: blur(14px);
}

.home-main-card::before,
.home-main-card::after {
    display: none;
    content: none;
}

.home-logo-box {
    position: relative;
    z-index: 4;
    width: min(68%, 300px);
    margin: 52px auto 26px;
    padding: 24px 32px;
    border-radius: 28px;
    background: #ffffff;
    border: none;
    box-shadow: 0 24px 58px rgba(15, 37, 76, 0.09);
}

.home-logo-box img {
    display: block;
    width: 100%;
    height: auto;
}

.home-main-card-content {
    position: relative;
    z-index: 4;
    width: min(78%, 420px);
    margin: 0 auto;
    text-align: center;
}

.home-main-card-content span {
    display: inline-flex;
    width: fit-content;
    margin: 0 auto 16px;
    padding: 8px 14px;
    border-radius: 999px;
    background: #dfeaff;
    color: #2563eb;
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-main-card-content h2 {
    margin: 0;
    color: #07152f;
    font-size: clamp(1.45rem, 1.85vw, 1.9rem);
    line-height: 1.14;
    font-weight: 950;
    letter-spacing: -0.052em;
}

.home-main-card-content p {
    display: none;
}

.home-floating-card {
    position: absolute;
    z-index: 4;
    width: 220px;
    padding: 18px 20px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 62px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(12px);
    animation: homeFloat 7s ease-in-out infinite;
}

.home-floating-card i {
    width: 48px;
    height: 48px;
    margin-bottom: 14px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    box-shadow: 0 16px 34px rgba(37, 99, 235, 0.22);
    font-size: 1.18rem;
}

.home-floating-card span {
    display: block;
    color: #2563eb;
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.home-floating-card strong {
    display: block;
    margin-top: 5px;
    color: #07152f;
    font-size: 1rem;
    line-height: 1.25;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.home-floating-card-one {
    top: 10px;
    left: 4px;
}

.home-floating-card-two {
    right: 0;
    top: 170px;
    animation-delay: -2.1s;
}

.home-floating-card-three {
    left: 0;
    bottom: -10px;
    animation-delay: -4.2s;
}

.home-solutions-section,
.home-value-section,
.home-process-section,
.home-final-cta-section {
    position: relative;
    z-index: 2;
    padding: 92px 0;
}

.home-solutions-section {
    padding-top: 70px;
}

.home-solutions-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    margin-top: 44px;
}

.home-solution-card {
    position: relative;
    min-height: 410px;
    padding: 38px 30px 34px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 66px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease;
}

.home-solution-card::before {
    content: "";
    position: absolute;
    right: -82px;
    bottom: -82px;
    width: 176px;
    height: 176px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    transition: transform 0.35s ease;
    pointer-events: none;
}

.home-solution-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 34px 86px rgba(15, 23, 42, 0.14);
}

.home-solution-card:hover::before {
    transform: scale(1.18);
}

.home-solution-featured {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.96) 0%, rgba(14, 165, 233, 0.96) 100%);
    border-color: rgba(37, 99, 235, 0.32);
    box-shadow: 0 34px 90px rgba(37, 99, 235, 0.22);
}

.home-solution-featured::before {
    background: rgba(255, 255, 255, 0.12);
}

.home-solution-icon {
    position: relative;
    z-index: 2;
    width: 76px;
    height: 76px;
    margin: 0 auto 26px;
    display: grid;
    place-items: center;
    border-radius: 24px;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    color: #ffffff;
    font-size: 1.6rem;
    box-shadow: 0 20px 42px rgba(37, 99, 235, 0.24);
}

.home-solution-featured .home-solution-icon {
    background: rgba(255, 255, 255, 0.18);
    box-shadow: none;
}

.home-solution-card > span {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    margin-bottom: 14px;
    color: #2563eb;
    font-size: 0.76rem;
    font-weight: 950;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
}

.home-solution-card h3 {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 0 18px;
    color: #07152f;
    font-size: 1.55rem;
    line-height: 1.1;
    font-weight: 950;
    letter-spacing: -0.045em;
    text-align: center;
}

.home-solution-card p {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 0 26px;
    color: #5d6d8a;
    font-size: 0.98rem;
    line-height: 1.62;
    font-weight: 500;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    overflow-wrap: break-word;
    word-spacing: -0.015em;
}

.home-solution-featured > span,
.home-solution-featured h3,
.home-solution-featured p {
    color: #ffffff;
}

.home-solution-featured p {
    color: rgba(255, 255, 255, 0.84);
}

.home-solution-link {
    position: relative;
    z-index: 2;
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: fit-content;
    color: #2563eb;
    text-decoration: none;
    font-size: 0.96rem;
    font-weight: 950;
    transition: gap 0.25s ease, color 0.25s ease;
}

.home-solution-link:hover {
    gap: 14px;
    color: #0ea5e9;
}

.home-solution-featured .home-solution-link {
    color: #ffffff;
}

.home-value-section {
    padding-top: 86px;
}

.home-value-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 72px;
    align-items: center;
}

.home-value-content h2 {
    margin: 22px 0 24px;
    color: #07152f;
    font-size: clamp(2.35rem, 4vw, 4rem);
    line-height: 1.05;
    font-weight: 950;
    letter-spacing: -0.065em;
    text-wrap: balance;
}

.home-value-content p {
    margin: 0 0 18px;
    color: #5d6d8a;
    font-size: 1.06rem;
    line-height: 1.72;
    font-weight: 500;
}

.home-value-content .btn {
    margin-top: 18px;
}

.home-value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    align-items: stretch;
}

.home-value-item {
    position: relative;
    min-height: 100%;
    padding: 28px 28px 30px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition:
        transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.38s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease;
}

.home-value-item::before {
    content: "";
    position: absolute;
    top: -84px;
    right: -84px;
    width: 172px;
    height: 172px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    pointer-events: none;
    transition:
        transform 0.4s ease,
        background 0.35s ease;
}

.home-value-item::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
    border: 2px solid transparent;
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.12),
            transparent 48%,
            rgba(14, 165, 233, 0.12)
        );
    opacity: 0;
    pointer-events: none;
    transition:
        opacity 0.35s ease,
        border-color 0.35s ease;
}

.home-value-item:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 34px 88px rgba(15, 23, 42, 0.14);
}

.home-value-item:hover::before {
    transform: scale(1.16);
    background: rgba(37, 99, 235, 0.12);
}

.home-value-image {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 148px;
    margin: 0 auto 24px;
    border-radius: 24px;
    overflow: hidden;
    background: #edf6ff;
    box-shadow: 0 18px 44px rgba(15, 23, 42, 0.08);
}

.home-value-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.35s ease;
}

.home-value-item:hover .home-value-image img {
    transform: scale(1.08);
    filter: saturate(1.08) contrast(1.04);
}

.home-value-item h3 {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 0 14px;
    color: #07152f;
    font-size: 1.32rem;
    line-height: 1.12;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-align: center;
}

.home-value-item p {
    position: relative;
    z-index: 2;
    width: 100%;
    margin: 0 auto;
    color: #5d6d8a;
    font-size: 0.98rem;
    line-height: 1.62;
    font-weight: 500;
    text-align: center;
}

/* Marcado secuencial de tarjetas */

.home-value-grid .home-value-item.is-visible {
    animation: homeValueMark 10s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.home-value-grid .home-value-item.is-visible:nth-child(1) {
    animation-delay: 0s;
}

.home-value-grid .home-value-item.is-visible:nth-child(2) {
    animation-delay: 2.5s;
}

.home-value-grid .home-value-item.is-visible:nth-child(3) {
    animation-delay: 5s;
}

.home-value-grid .home-value-item.is-visible:nth-child(4) {
    animation-delay: 7.5s;
}

.home-value-grid .home-value-item.is-visible:nth-child(1)::after {
    animation: homeValueGlow 10s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 0s;
}

.home-value-grid .home-value-item.is-visible:nth-child(2)::after {
    animation: homeValueGlow 10s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 2.5s;
}

.home-value-grid .home-value-item.is-visible:nth-child(3)::after {
    animation: homeValueGlow 10s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 5s;
}

.home-value-grid .home-value-item.is-visible:nth-child(4)::after {
    animation: homeValueGlow 10s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 7.5s;
}

.home-value-grid .home-value-item.is-visible:nth-child(1) .home-value-image img {
    animation: homeValueImageMark 10s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 0s;
}

.home-value-grid .home-value-item.is-visible:nth-child(2) .home-value-image img {
    animation: homeValueImageMark 10s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 2.5s;
}

.home-value-grid .home-value-item.is-visible:nth-child(3) .home-value-image img {
    animation: homeValueImageMark 10s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 5s;
}

.home-value-grid .home-value-item.is-visible:nth-child(4) .home-value-image img {
    animation: homeValueImageMark 10s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    animation-delay: 7.5s;
}

.home-value-grid .home-value-item.is-visible:nth-child(1) h3 {
    animation: homeValueTitleMark 10s ease-in-out infinite;
    animation-delay: 0s;
}

.home-value-grid .home-value-item.is-visible:nth-child(2) h3 {
    animation: homeValueTitleMark 10s ease-in-out infinite;
    animation-delay: 2.5s;
}

.home-value-grid .home-value-item.is-visible:nth-child(3) h3 {
    animation: homeValueTitleMark 10s ease-in-out infinite;
    animation-delay: 5s;
}

.home-value-grid .home-value-item.is-visible:nth-child(4) h3 {
    animation: homeValueTitleMark 10s ease-in-out infinite;
    animation-delay: 7.5s;
}

.home-process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 26px;
    margin-top: 44px;
}

.home-process-card {
    position: relative;
    min-height: 270px;
    padding: 34px 30px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    transition:
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.home-process-card::before {
    content: "";
    position: absolute;
    inset: auto 28px 0 28px;
    height: 4px;
    border-radius: 999px 999px 0 0;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.home-process-card:hover {
    transform: translateY(-8px);
    border-color: rgba(37, 99, 235, 0.30);
    box-shadow: 0 30px 76px rgba(15, 23, 42, 0.13);
}

.home-process-card:hover::before {
    opacity: 1;
}

.home-process-card span {
    display: block;
    width: 100%;
    margin-bottom: 34px;
    color: rgba(37, 99, 235, 0.18);
    font-size: 3.5rem;
    line-height: 1;
    font-weight: 950;
    letter-spacing: -0.08em;
    text-align: center;
}

.home-process-card h3 {
    width: 100%;
    margin: 0 0 14px;
    color: #07152f;
    font-size: 1.35rem;
    font-weight: 950;
    letter-spacing: -0.045em;
    text-align: center;
}

.home-process-card p {
    width: 100%;
    margin: 0 auto;
    color: #5d6d8a;
    font-size: 0.98rem;
    line-height: 1.62;
    font-weight: 500;
    text-align: center;
}

.home-final-cta-section {
    padding-bottom: 118px;
}

.home-final-cta-card {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 72px 58px;
    border-radius: 40px;
    overflow: hidden;
    text-align: center;
    color: #ffffff;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, #07152f 0%, #0b2a66 54%, #0ea5e9 100%);
    box-shadow: 0 38px 100px rgba(15, 23, 42, 0.22);
}

.home-final-cta-card::before {
    content: "";
    position: absolute;
    top: -110px;
    right: -100px;
    width: 310px;
    height: 310px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
}

.home-final-cta-card::after {
    content: "";
    position: absolute;
    left: -120px;
    bottom: -120px;
    width: 320px;
    height: 320px;
    border-radius: 999px;
    background: rgba(56, 189, 248, 0.16);
}

.home-final-cta-card > span,
.home-final-cta-card h2,
.home-final-cta-card p,
.home-final-cta-actions {
    position: relative;
    z-index: 2;
}

.home-final-cta-card > span {
    display: inline-flex;
    width: fit-content;
    margin: 0 auto 22px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.13);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 950;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.home-final-cta-card h2 {
    max-width: 850px;
    margin: 0 auto 22px;
    font-size: clamp(2.3rem, 4.2vw, 4.25rem);
    line-height: 1.04;
    font-weight: 950;
    letter-spacing: -0.07em;
    text-wrap: balance;
}

.home-final-cta-card p {
    max-width: 850px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1.08rem;
    line-height: 1.68;
    font-weight: 500;
}

.home-final-cta-actions {
    margin-top: 34px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
}

.home-final-cta-card .btn-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.24);
    background: rgba(255, 255, 255, 0.10);
}

/* Animaciones inicio */

.fade-in-item.home-solution-card,
.fade-in-item.home-value-item,
.fade-in-item.home-process-card,
.fade-in-item.home-final-cta-card {
    opacity: 0;
    transform: translateY(34px) scale(0.97);
    filter: blur(9px);
    transition:
        opacity 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.85s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.35s ease,
        border-color 0.35s ease;
}

.fade-in-item.home-solution-card.is-visible,
.fade-in-item.home-value-item.is-visible,
.fade-in-item.home-process-card.is-visible,
.fade-in-item.home-final-cta-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.home-solutions-grid .home-solution-card:nth-child(1),
.home-value-grid .home-value-item:nth-child(1),
.home-process-grid .home-process-card:nth-child(1) {
    transition-delay: 0.05s;
}

.home-solutions-grid .home-solution-card:nth-child(2),
.home-value-grid .home-value-item:nth-child(2),
.home-process-grid .home-process-card:nth-child(2) {
    transition-delay: 0.13s;
}

.home-solutions-grid .home-solution-card:nth-child(3),
.home-value-grid .home-value-item:nth-child(3),
.home-process-grid .home-process-card:nth-child(3) {
    transition-delay: 0.21s;
}

.home-solutions-grid .home-solution-card:nth-child(4),
.home-value-grid .home-value-item:nth-child(4),
.home-process-grid .home-process-card:nth-child(4) {
    transition-delay: 0.29s;
}

@keyframes homeHeroReveal {
    from {
        opacity: 0;
        transform: translateY(30px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes homeVisualReveal {
    from {
        opacity: 0;
        transform: translateY(34px) scale(0.97);
        filter: blur(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes homeFloat {
    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-16px);
    }
}

@keyframes homeValueMark {
    0% {
        transform: translateY(0) scale(1);
        border-color: rgba(226, 232, 240, 0.96);
        box-shadow: 0 24px 65px rgba(15, 23, 42, 0.08);
    }

    7% {
        transform: translateY(-6px) scale(1.012);
        border-color: rgba(37, 99, 235, 0.36);
        box-shadow:
            0 30px 78px rgba(37, 99, 235, 0.14),
            0 0 0 3px rgba(37, 99, 235, 0.04);
    }

    14%,
    24% {
        transform: translateY(-12px) scale(1.025);
        border-color: rgba(37, 99, 235, 0.62);
        box-shadow:
            0 36px 92px rgba(37, 99, 235, 0.22),
            0 0 0 6px rgba(37, 99, 235, 0.08);
    }

    34% {
        transform: translateY(-4px) scale(1.008);
        border-color: rgba(37, 99, 235, 0.26);
        box-shadow:
            0 28px 70px rgba(37, 99, 235, 0.12),
            0 0 0 2px rgba(37, 99, 235, 0.03);
    }

    44%,
    100% {
        transform: translateY(0) scale(1);
        border-color: rgba(226, 232, 240, 0.96);
        box-shadow: 0 24px 65px rgba(15, 23, 42, 0.08);
    }
}

@keyframes homeValueGlow {
    0% {
        opacity: 0;
        border-color: transparent;
    }

    8% {
        opacity: 0.45;
        border-color: rgba(37, 99, 235, 0.34);
    }

    14%,
    24% {
        opacity: 1;
        border-color: rgba(37, 99, 235, 0.70);
    }

    34% {
        opacity: 0.35;
        border-color: rgba(37, 99, 235, 0.26);
    }

    44%,
    100% {
        opacity: 0;
        border-color: transparent;
    }
}

@keyframes homeValueImageMark {
    0% {
        transform: scale(1.02);
        filter: none;
    }

    10% {
        transform: scale(1.06);
        filter: saturate(1.08) contrast(1.04) brightness(1.01);
    }

    14%,
    24% {
        transform: scale(1.10);
        filter: saturate(1.18) contrast(1.08) brightness(1.03);
    }

    36% {
        transform: scale(1.05);
        filter: saturate(1.06) contrast(1.03);
    }

    44%,
    100% {
        transform: scale(1.02);
        filter: none;
    }
}

@keyframes homeValueTitleMark {
    0% {
        color: #07152f;
    }

    12%,
    26% {
        color: #2563eb;
    }

    42%,
    100% {
        color: #07152f;
    }
}



/* ================= PÁGINA DESARROLLO WEB ================= */

.desarrollo-web-page {
    position: relative;
    min-height: calc(100vh - 82px);
    padding: 82px 0 110px;
    overflow: hidden;
    background:
        radial-gradient(
            circle at top right,
            rgba(37, 99, 235, 0.10),
            transparent 34%
        ),
        linear-gradient(
            180deg,
            #ffffff 0%,
            #f8fbff 100%
        );
}

.desarrollo-web-page::before {
    content: "";
    position: absolute;
    top: 120px;
    left: -140px;
    width: 340px;
    height: 340px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.10);
    filter: blur(18px);
    pointer-events: none;
}

.desarrollo-web-page .container {
    position: relative;
    z-index: 2;
}

.desarrollo-web-hero-full {
    width: 100%;
    margin-bottom: 82px;
    padding: 0 34px;
}

.desarrollo-web-hero {
    width: 100%;
    max-width: 1480px;
    margin: 0 auto;
}

.desarrollo-web-hero-image {
    position: relative;
    min-height: 620px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.22);
    background: #07152f;
    isolation: isolate;
}

.desarrollo-web-hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transform: scale(1.08);
    animation: heroImageReveal 1.8s ease forwards;
}

.desarrollo-web-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    background:
        linear-gradient(
            180deg,
            rgba(3, 10, 31, 0.38) 0%,
            rgba(3, 10, 31, 0.58) 100%
        ),
        radial-gradient(
            circle at center,
            rgba(14, 165, 233, 0.10),
            rgba(3, 10, 31, 0.24) 62%
        );
}

.desarrollo-web-hero-content {
    position: relative;
    z-index: 3;
    min-height: 620px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 72px 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-align: center;
}

.desarrollo-web-hero-content span {
    width: fit-content;
    margin: 0 auto 24px;
    padding: 10px 18px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(12px);
    color: #dbeafe;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(18px);
    animation: heroTextReveal 0.9s ease forwards;
    animation-delay: 0.45s;
}

.desarrollo-web-hero-content h1 {
    max-width: 1180px;
    margin: 0 auto;
    color: #ffffff;
    font-size: clamp(3.5rem, 6vw, 6.5rem);
    line-height: 0.98;
    font-weight: 950;
    letter-spacing: -0.08em;
    text-align: center;
    text-wrap: balance;
    text-shadow: 0 18px 46px rgba(0, 0, 0, 0.42);
    opacity: 0;
    transform: translateY(28px) scale(0.985);
    filter: blur(8px);
    animation: elegantHeroTitleReveal 1.15s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.78s;
}

.desarrollo-web-intro {
    margin-top: 0;
}

.web-services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 46px;
}

.web-service-card {
    position: relative;
    min-height: 100%;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    transition:
        transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.45s ease;
}

.web-service-card::before {
    content: "";
    position: absolute;
    right: -76px;
    bottom: -76px;
    width: 168px;
    height: 168px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.08);
    transition: transform 0.35s ease;
    pointer-events: none;
}

.web-service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(37, 99, 235, 0.30);
    box-shadow: 0 34px 84px rgba(15, 23, 42, 0.14);
}

.web-service-card:hover::before {
    transform: scale(1.18);
}

.web-service-media {
    position: relative;
    height: 220px;
    margin: 18px 18px 0;
    border-radius: 24px;
    overflow: hidden;
    background: #eaf3ff;
}

.web-service-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            rgba(3, 10, 31, 0.02) 0%,
            rgba(3, 10, 31, 0.16) 100%
        );
    pointer-events: none;
}

.web-service-media img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transform: scale(1.02);
    transition: transform 0.45s ease;
}

.web-service-card:hover .web-service-media img {
    transform: scale(1.07);
}

.web-service-body {
    position: relative;
    z-index: 2;
    padding: 28px 30px 34px;
}

.web-service-card h3 {
    margin: 0 0 16px;
    color: #07152f;
    font-size: 1.32rem;
    line-height: 1.15;
    font-weight: 950;
    letter-spacing: -0.04em;
    text-align: center;
    text-wrap: balance;
}

.web-service-card p {
    margin: 0;
    color: #5d6d8a;
    font-size: 0.97rem;
    line-height: 1.68;
    font-weight: 500;
    text-align: justify;
    text-align-last: left;
    text-justify: inter-word;
    hyphens: auto;
    word-spacing: -0.02em;
}

/* Animación elegante de aparición para tarjetas */

.fade-in-item.web-service-card {
    opacity: 0;
    transform: translateY(38px) scale(0.97);
    filter: blur(10px);
    transition:
        opacity 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        transform 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.9s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.45s ease;
}

.fade-in-item.web-service-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

.web-services-grid .web-service-card:nth-child(1) {
    transition-delay: 0.05s;
}

.web-services-grid .web-service-card:nth-child(2) {
    transition-delay: 0.14s;
}

.web-services-grid .web-service-card:nth-child(3) {
    transition-delay: 0.23s;
}

.web-services-grid .web-service-card:nth-child(4) {
    transition-delay: 0.32s;
}

/* ================= MAPA DE SERVICIOS ================= */

.service-map-section {
    margin-top: 92px;
}

.service-map-wrap {
    position: relative;
    margin-top: 36px;
    padding: 36px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 38px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.10), transparent 34%),
        radial-gradient(circle at bottom left, rgba(14, 165, 233, 0.10), transparent 34%),
        rgba(255, 255, 255, 0.96);
    box-shadow: 0 34px 90px rgba(15, 23, 42, 0.09);
    overflow: hidden;
    isolation: isolate;
}

.service-map-wrap::before {
    content: "";
    position: absolute;
    inset: 24px;
    border-radius: 30px;
    border: 1px solid rgba(37, 99, 235, 0.08);
    pointer-events: none;
    z-index: 1;
}

.service-map {
    position: relative;
    min-height: 640px;
    z-index: 2;
}

.service-map-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.service-map-line {
    fill: none;
    stroke: url(#serviceMapGradient);
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    opacity: 0.22;
    transition:
        opacity 0.35s ease,
        stroke-width 0.35s ease,
        filter 0.35s ease;
}

.service-map-line.is-active {
    opacity: 1;
    stroke-width: 6;
    filter: drop-shadow(0 0 10px rgba(37, 99, 235, 0.45));
}

.service-map-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 310px;
    min-height: 270px;
    transform: translate(-50%, -50%) scale(0.92);
    border-radius: 36px;
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    box-shadow: 0 30px 78px rgba(37, 99, 235, 0.30);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: center;
    padding: 30px;
    z-index: 3;
    opacity: 0;
    filter: blur(8px);
    overflow: hidden;
}

.service-map-center::before {
    content: "";
    position: absolute;
    top: -70px;
    right: -70px;
    width: 160px;
    height: 160px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
}

.service-map-center::after {
    content: "";
    position: absolute;
    left: -80px;
    bottom: -80px;
    width: 180px;
    height: 180px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.10);
}

.service-map-center-kicker,
.service-map-center strong,
.service-map-center p {
    position: relative;
    z-index: 2;
}

.service-map-center-kicker {
    display: inline-flex;
    padding: 8px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.16);
    color: #dbeafe;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.service-map-center strong {
    color: #ffffff;
    font-size: 1.6rem;
    line-height: 1.08;
    font-weight: 950;
    letter-spacing: -0.05em;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        filter 0.25s ease;
}

.service-map-center p {
    margin: 0;
    color: rgba(255, 255, 255, 0.84);
    font-size: 0.94rem;
    line-height: 1.5;
    font-weight: 600;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease,
        filter 0.25s ease;
}

.service-map-center.is-changing strong,
.service-map-center.is-changing p {
    opacity: 0;
    transform: translateY(8px);
    filter: blur(5px);
}

.service-map-node {
    position: absolute;
    width: 220px;
    min-height: 84px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid #dbe5f3;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #07152f;
    font-family: inherit;
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 850;
    letter-spacing: -0.02em;
    cursor: pointer;
    z-index: 3;
    opacity: 0;
    transform: translateY(18px) scale(0.96);
    filter: blur(8px);
    transition:
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease,
        transform 0.35s ease,
        filter 0.35s ease;
}

.service-map-node:hover {
    border-color: rgba(37, 99, 235, 0.35);
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 24px 58px rgba(15, 23, 42, 0.12);
}

.service-map-node-detail {
    display: none;
}

.service-map-node.is-closing {
    transition:
        max-height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        min-height 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.42s cubic-bezier(0.16, 1, 0.3, 1),
        background 0.35s ease,
        color 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.service-map-node.is-active {
    color: #ffffff;
    border-color: rgba(37, 99, 235, 0.42);
    background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
    box-shadow: 0 26px 64px rgba(37, 99, 235, 0.28);
    transform: translateY(-6px) scale(1.04);
    filter: blur(0);
}

.node-1 {
    top: 3%;
    left: 5%;
}

.node-2 {
    top: 23%;
    left: 7%;
}

.node-3 {
    top: 54%;
    left: 7%;
}

.node-4 {
    top: 75%;
    left: 5%;
}

.node-5 {
    top: 3%;
    right: 5%;
}

.node-6 {
    top: 23%;
    right: 7%;
}

.node-7 {
    top: 54%;
    right: 7%;
}

.node-8 {
    top: 75%;
    right: 5%;
}

.service-map-wrap.is-visible .service-map-center {
    animation: mapCenterReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.service-map-wrap.is-visible .line-1 {
    animation: drawLine 0.8s ease forwards 0.08s;
}

.service-map-wrap.is-visible .line-2 {
    animation: drawLine 0.8s ease forwards 0.16s;
}

.service-map-wrap.is-visible .line-3 {
    animation: drawLine 0.8s ease forwards 0.24s;
}

.service-map-wrap.is-visible .line-4 {
    animation: drawLine 0.8s ease forwards 0.32s;
}

.service-map-wrap.is-visible .line-5 {
    animation: drawLine 0.8s ease forwards 0.40s;
}

.service-map-wrap.is-visible .line-6 {
    animation: drawLine 0.8s ease forwards 0.48s;
}

.service-map-wrap.is-visible .line-7 {
    animation: drawLine 0.8s ease forwards 0.56s;
}

.service-map-wrap.is-visible .line-8 {
    animation: drawLine 0.8s ease forwards 0.64s;
}

.service-map-wrap.is-visible .node-1 {
    animation: mapNodeReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.18s;
}

.service-map-wrap.is-visible .node-2 {
    animation: mapNodeReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.26s;
}

.service-map-wrap.is-visible .node-3 {
    animation: mapNodeReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.34s;
}

.service-map-wrap.is-visible .node-4 {
    animation: mapNodeReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.42s;
}

.service-map-wrap.is-visible .node-5 {
    animation: mapNodeReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.50s;
}

.service-map-wrap.is-visible .node-6 {
    animation: mapNodeReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.58s;
}

.service-map-wrap.is-visible .node-7 {
    animation: mapNodeReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.66s;
}

.service-map-wrap.is-visible .node-8 {
    animation: mapNodeReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.74s;
}

/* ================= CLIENTES / CONFIANZA ================= */

.trusted-clients-section {
    position: relative;
    margin-top: 96px;
}

.trusted-clients-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 28px;
    margin-top: 38px;
}

.client-logo-card {
    position: relative;
    min-height: 170px;
    padding: 34px 38px;
    border-radius: 30px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 38%),
        #ffffff;
    box-shadow: 0 24px 65px rgba(15, 23, 42, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    text-decoration: none;
    isolation: isolate;
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        border-color 0.35s ease,
        background 0.35s ease;
}

.client-logo-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(
            135deg,
            rgba(37, 99, 235, 0.14),
            transparent 42%,
            rgba(14, 165, 233, 0.12)
        );
    opacity: 0;
    transition: opacity 0.35s ease;
    z-index: 1;
}

.client-logo-card::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -90px;
    width: 190px;
    height: 190px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.10);
    transform: translateX(-50%) scale(0.9);
    transition:
        transform 0.4s ease,
        bottom 0.4s ease;
    z-index: 1;
}

.client-logo-card img {
    position: relative;
    z-index: 3;
    width: auto;
    max-width: 210px;
    max-height: 82px;
    object-fit: contain;
    display: block;
    filter: grayscale(10%) contrast(1.03);
    transform: scale(1);
    transition:
        transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        filter 0.35s ease;
}

.client-logo-card:hover {
    transform: translateY(-9px);
    border-color: rgba(37, 99, 235, 0.34);
    background: #ffffff;
    box-shadow: 0 34px 88px rgba(37, 99, 235, 0.16);
}

.client-logo-card:hover::before {
    opacity: 1;
}

.client-logo-card:hover::after {
    bottom: -64px;
    transform: translateX(-50%) scale(1.16);
}

.client-logo-card:hover img {
    transform: scale(1.08);
    filter: grayscale(0%) contrast(1.08);
}

.client-logo-card:focus-visible {
    outline: 4px solid rgba(37, 99, 235, 0.22);
    outline-offset: 4px;
}

.trusted-clients-dots {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.trusted-clients-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #c8d5ea;
    cursor: pointer;
    transition:
        width 0.42s ease,
        background 0.42s ease,
        transform 0.42s ease;
}

.trusted-clients-dot.is-active {
    width: 30px;
    background: #2563eb;
}

/* Animación breve sección clientes */

.fade-in-item.trusted-clients-section .section-pill,
.fade-in-item.trusted-clients-section h2,
.fade-in-item.trusted-clients-section .section-header p,
.fade-in-item.trusted-clients-section .client-logo-card {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(8px);
}

.fade-in-item.trusted-clients-section.is-visible .section-pill {
    animation: trustedClientReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.fade-in-item.trusted-clients-section.is-visible h2 {
    animation: trustedClientReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.08s;
}

.fade-in-item.trusted-clients-section.is-visible .section-header p {
    animation: trustedClientReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.16s;
}

.fade-in-item.trusted-clients-section.is-visible .client-logo-card:nth-child(1) {
    animation: trustedLogoReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.22s;
}

.fade-in-item.trusted-clients-section.is-visible .client-logo-card:nth-child(2) {
    animation: trustedLogoReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.32s;
}

.fade-in-item.trusted-clients-section.is-visible .client-logo-card:nth-child(3) {
    animation: trustedLogoReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: 0.42s;
}


/* ================= FOOTER ================= */

.site-footer {
    position: relative;
    padding: 76px 0 28px;
    background: #07152f;
    color: #ffffff;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -140px;
    width: 460px;
    height: 460px;
    border-radius: 999px;
    background: rgba(37, 99, 235, 0.24);
    filter: blur(18px);
    pointer-events: none;
}

.site-footer::after {
    content: "";
    position: absolute;
    bottom: -210px;
    left: -160px;
    width: 520px;
    height: 520px;
    border-radius: 999px;
    background: rgba(14, 165, 233, 0.16);
    filter: blur(18px);
    pointer-events: none;
}

.site-footer .container {
    position: relative;
    z-index: 2;
}

.footer-main {
    display: grid;
    grid-template-columns: 0.9fr 1.5fr;
    gap: 72px;
    padding-bottom: 46px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.footer-brand {
    max-width: 430px;
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    min-height: 158px;
    margin-bottom: 24px;
    padding: 0;
    border-radius: 22px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.16);
    overflow: hidden;
}

.footer-logo img {
    width: 72%;
    max-width: 188px;
    height: auto;
    display: block;
    object-fit: contain;
    filter: none;
    transform: translateY(8px);
}

.footer-brand p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 1rem;
    line-height: 1.68;
    font-weight: 500;
}

.footer-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 28px;
    color: #ffffff;
    font-size: 0.98rem;
    font-weight: 900;
    text-decoration: none;
}

.footer-cta i {
    font-size: 0.9rem;
    transition: transform 0.25s ease;
}

.footer-cta:hover i {
    transform: translateX(4px);
}

.footer-columns {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 34px;
}

.footer-column h3 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: 1rem;
    line-height: 1.2;
    font-weight: 950;
    letter-spacing: -0.02em;
}

.footer-column a,
.footer-column span {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 13px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.95rem;
    line-height: 1.35;
    font-weight: 600;
    text-decoration: none;
    transition:
        color 0.25s ease,
        transform 0.25s ease;
}

.footer-column a:hover {
    color: #ffffff;
    transform: translateX(4px);
}

.footer-contact i {
    width: 17px;
    color: #38bdf8;
    font-size: 0.9rem;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-top: 26px;
}

.footer-bottom p {
    margin: 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: 0.9rem;
    line-height: 1.5;
    font-weight: 500;
}

/* ================= ANIMACIONES DESARROLLO WEB ================= */

@keyframes heroImageReveal {
    from {
        opacity: 0;
        transform: scale(1.08);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }
}

@keyframes heroTextReveal {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes elegantHeroTitleReveal {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.985);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes drawLine {
    from {
        stroke-dashoffset: 1200;
        opacity: 0.2;
    }

    to {
        stroke-dashoffset: 0;
        opacity: 0.95;
    }
}

@keyframes mapCenterReveal {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.92);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
        filter: blur(0);
    }
}

@keyframes mapNodeReveal {
    from {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

@keyframes trustedClientReveal {
    from {
        opacity: 0;
        transform: translateY(24px);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes trustedLogoReveal {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
        filter: blur(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0);
    }
}

/* ================= NAVBAR RESPONSIVE CENTRADO ================= */

@media (max-width: 900px) {
    .site-header .navbar {
        position: relative;
    }

    .nav-menu {
        position: absolute;
        top: calc(100% + 14px);
        left: 50%;
        transform: translateX(-50%);
        width: min(100% - 32px, 420px);
        padding: 28px 22px;
        border-radius: 24px;
        background: #ffffff;
        border: 1px solid rgba(226, 232, 240, 0.95);
        box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0;
        text-align: center;
    }

    .nav-menu.is-open,
    .nav-menu.active,
    .nav-menu.show {
        display: flex;
    }

    .nav-menu > a,
    .nav-dropdown,
    .nav-dropdown-toggle {
        width: 100%;
    }

    .nav-menu > a,
    .nav-dropdown-toggle {
        min-height: 52px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0;
        padding: 0;
        border: 0;
        background: transparent;
        color: #1e2b3f;
        font-family: inherit;
        font-size: 1rem;
        font-weight: 900;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
    }

    .nav-dropdown {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .nav-dropdown-toggle {
        position: relative;
    }

    .dropdown-arrow {
        position: absolute;
        top: 50%;
        left: calc(50% + 58px);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 14px;
        margin-left: 0;
        font-size: 0.72rem;
        line-height: 1;
        transform: translateY(-50%);
    }

    .nav-dropdown-menu {
        position: static;
        width: 100%;
        min-width: 0;
        margin: 0;
        padding: 4px 0 10px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        display: none;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.is-open .nav-dropdown-menu,
    .nav-dropdown.active .nav-dropdown-menu,
    .nav-dropdown.show .nav-dropdown-menu {
        display: flex;
    }

    .nav-dropdown-menu a {
        width: 100%;
        min-height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #5d6d8a;
        font-size: 0.94rem;
        font-weight: 800;
        line-height: 1.25;
        text-align: center;
        text-decoration: none;
    }

    .navbar > .btn {
        display: none;
    }
}

/* ================= RESPONSIVE ================= */

@media (max-width: 1180px) {
    .footer-main {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }

    .web-services-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .service-map-node {
        width: 190px;
        font-size: 0.95rem;
    }

    .service-map-center {
        width: 250px;
        min-height: 230px;
    }

    .service-map-center strong {
        font-size: 1.36rem;
    }

    .service-map-center p {
        font-size: 0.88rem;
    }
}

@media (max-width: 900px) {
    .desarrollo-web-hero-full {
        padding: 0 22px;
        margin-bottom: 60px;
    }

    .desarrollo-web-hero-image {
        min-height: 500px;
        border-radius: 28px;
    }

    .desarrollo-web-hero-content {
        min-height: 500px;
        padding: 42px 30px;
    }

    .desarrollo-web-hero-content h1 {
        font-size: clamp(2.7rem, 8vw, 4.4rem);
    }

    .service-map-wrap {
        padding: 22px;
    }

    .service-map {
        min-height: auto;
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-map-svg,
    .service-map-center {
        display: none;
    }

    .service-map-node {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        width: 100%;
        min-height: 88px;
        max-height: 88px;
        padding: 24px 22px;
        transform: translateY(0) scale(1);
        opacity: 1;
        filter: none;
        animation: none !important;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        color: #07152f;
        background: rgba(255, 255, 255, 0.97);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
        transition:
            max-height 0.78s cubic-bezier(0.16, 1, 0.3, 1),
            min-height 0.78s cubic-bezier(0.16, 1, 0.3, 1),
            padding 0.78s cubic-bezier(0.16, 1, 0.3, 1),
            background 0.58s ease,
            color 0.58s ease,
            border-color 0.58s ease,
            box-shadow 0.68s ease,
            transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .service-map-node::after {
        content: "";
        position: absolute;
        right: 20px;
        top: 50%;
        width: 9px;
        height: 9px;
        border-right: 2px solid currentColor;
        border-bottom: 2px solid currentColor;
        opacity: 0.35;
        transform: translateY(-55%) rotate(45deg);
        transition:
            transform 0.58s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.48s ease;
    }

    .service-map-node.is-active {
        min-height: 202px;
        max-height: 270px;
        padding: 28px 24px 30px;
        color: #ffffff;
        border-color: rgba(37, 99, 235, 0.44);
        background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
        box-shadow: 0 26px 62px rgba(37, 99, 235, 0.19);
        transform: translateY(-3px) scale(1.006);
    }

    .service-map-node.is-active::after {
        opacity: 0.74;
        transform: translateY(-30%) rotate(225deg);
    }

    .service-map-node.is-closing {
        min-height: 88px;
        max-height: 88px;
        padding: 24px 22px;
        transform: translateY(0) scale(1);
        box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
        transition:
            max-height 0.82s cubic-bezier(0.16, 1, 0.3, 1),
            min-height 0.82s cubic-bezier(0.16, 1, 0.3, 1),
            padding 0.82s cubic-bezier(0.16, 1, 0.3, 1),
            background 0.58s ease,
            color 0.58s ease,
            border-color 0.58s ease,
            box-shadow 0.68s ease,
            transform 0.68s cubic-bezier(0.16, 1, 0.3, 1);
    }

    .service-map-node-detail {
        display: grid;
        gap: 8px;
        width: 100%;
        max-width: 300px;
        max-height: 0;
        margin-top: 0;
        opacity: 0;
        transform: translateY(10px);
        filter: blur(5px);
        pointer-events: none;
        transition:
            max-height 0.9s cubic-bezier(0.16, 1, 0.3, 1),
            margin-top 0.72s ease,
            opacity 0.58s ease,
            transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
            filter 0.62s ease;
    }

    .service-map-node.is-active .service-map-node-detail {
        max-height: 140px;
        margin-top: 14px;
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }

    .service-map-node-detail p {
        margin: 0;
        color: rgba(255, 255, 255, 0.88);
        font-size: 0.95rem;
        line-height: 1.46;
        font-weight: 700;
        text-align: center;
    }

    .trusted-clients-section {
        overflow: hidden;
    }

    .trusted-clients-grid {
        position: relative;
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        max-width: 520px;
        margin-left: auto;
        margin-right: auto;
        overflow: hidden;
    }

    .client-logo-card {
        grid-area: 1 / 1;
        width: 100%;
        min-height: 170px;
        opacity: 0;
        visibility: hidden;
        transform: translateX(26px) scale(0.965);
        pointer-events: none;
        z-index: 0;
        transition:
            opacity 0.62s ease,
            visibility 0s linear 0.62s,
            transform 0.72s cubic-bezier(0.16, 1, 0.3, 1),
            box-shadow 0.72s ease,
            border-color 0.62s ease;
    }

    .client-logo-card.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) scale(1);
        pointer-events: auto;
        z-index: 1;
        transition-delay: 0s;
        border-color: rgba(37, 99, 235, 0.30);
        box-shadow: 0 26px 70px rgba(37, 99, 235, 0.12);
    }

    /* Safari iOS puede mantener el estado final de la animación de entrada
       y bloquear visualmente el cambio de tarjeta. En móvil la sustituimos
       por el estado activo del carrusel. */
    .fade-in-item.trusted-clients-section .client-logo-card {
        animation: none !important;
        filter: none;
        opacity: 0;
        visibility: hidden;
        transform: translateX(26px) scale(0.965);
    }

    .fade-in-item.trusted-clients-section .client-logo-card.is-active {
        opacity: 1;
        visibility: visible;
        transform: translateX(0) scale(1);
    }

    .trusted-clients-dots {
        display: flex;
    }
}

@media (max-width: 720px) {
    .site-footer {
        padding: 62px 0 26px;
    }

    .footer-columns {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .desarrollo-web-page {
        padding: 72px 0 84px;
    }

    .desarrollo-web-hero-full {
        padding: 0 16px;
    }

    .web-services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 34px;
    }

    .web-service-card {
        min-height: auto;
        border-radius: 24px;
    }

    .web-service-media {
        height: 220px;
        margin: 16px 16px 0;
        border-radius: 22px;
    }

    .web-service-body {
        padding: 26px 24px 30px;
    }

    .service-map {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .desarrollo-web-hero-image {
        min-height: 430px;
        border-radius: 24px;
    }

    .desarrollo-web-hero-content {
        min-height: 430px;
        padding: 32px 22px;
    }

    .desarrollo-web-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(3, 10, 31, 0.42) 0%,
                rgba(3, 10, 31, 0.84) 100%
            );
    }

    .desarrollo-web-hero-content h1 {
        font-size: clamp(2.1rem, 10vw, 3.2rem);
        letter-spacing: -0.055em;
    }

    .web-service-card p {
        text-align: left;
        word-spacing: normal;
    }

    .service-map-section {
        margin-top: 58px;
    }

    .service-map-wrap {
        padding: 18px;
        border-radius: 28px;
    }

    .service-map-node {
        min-height: 84px;
        max-height: 84px;
        padding: 22px 20px;
        border-radius: 20px;
    }

    .service-map-node.is-active {
        min-height: 194px;
        max-height: 250px;
        padding: 26px 22px 28px;
    }

    .service-map-node.is-closing {
        min-height: 84px;
        max-height: 84px;
        padding: 22px 20px;
    }

    .service-map-node-detail p {
        font-size: 0.9rem;
        line-height: 1.45;
    }

    .trusted-clients-section {
        margin-top: 60px;
    }

    .trusted-clients-grid {
        max-width: 100%;
    }

    .client-logo-card {
        min-height: 158px;
        padding: 28px;
        border-radius: 24px;
    }

    .client-logo-card img {
        max-width: 196px;
        max-height: 78px;
    }
}

/* ================= RESPONSIVE INICIO MAGI IT ================= */

@media (max-width: 1180px) {
    .home-hero-section {
        min-height: auto;
        padding-bottom: 36px;
    }

    .home-solutions-section {
        padding-top: 34px;
    }

    .home-value-layout {
        grid-template-columns: 1fr;
        gap: 44px;
    }

    .home-value-content {
        max-width: 900px;
        margin: 0 auto;
        text-align: center;
    }

    .home-value-content .section-label {
        margin-left: auto;
        margin-right: auto;
    }

    .home-value-content p {
        max-width: 760px;
        margin-left: auto;
        margin-right: auto;
        text-align: center;
    }

    .home-value-content .btn {
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        gap: 56px;
    }

    .home-hero-content {
        max-width: 940px;
        text-align: center;
        margin: 0 auto;
    }

    .home-hero-content h1 {
        font-size: clamp(2.05rem, 8.6vw, 2.85rem);
        line-height: 1.06;
        letter-spacing: -0.052em;
    }

    .home-hero-content p {
        font-size: 1rem;
    }

    .home-hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .home-hero-visual {
        min-height: auto;
        padding: 0;
    }

    .home-main-card {
        position: relative;
        inset: auto;
        padding: 34px 20px;
        border-radius: 30px;
    }

    .home-logo-box,
    .home-main-card-content {
        width: 100%;
        max-width: 360px;
    }

    .home-logo-box {
        margin: 0 auto 28px;
        padding: 28px;
    }

    .home-floating-card {
        position: relative;
        inset: auto;
        width: 100%;
        margin-top: 14px;
        padding: 18px 22px;
        animation: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .home-floating-card i {
        margin-left: auto;
        margin-right: auto;
    }

    .home-floating-card span,
    .home-floating-card strong {
        width: 100%;
        text-align: center;
    }

    .home-solutions-grid,
    .home-process-grid {
        grid-template-columns: 1fr;
    }

    .home-value-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: 820px;
        margin-left: auto;
        margin-right: auto;
    }

    .home-solution-card,
    .home-value-item,
    .home-process-card {
        min-height: auto;
    }

    .home-value-image {
        height: 220px;
    }

    .home-value-content h2 {
        font-size: clamp(2rem, 9vw, 3rem);
    }

    .home-final-cta-card h2 {
        font-size: clamp(2rem, 9vw, 3.2rem);
    }
}

@media (max-width: 560px) {
    .home-hero-section {
        padding-top: 100px;
    }

    .home-hero-pill {
        font-size: 0.74rem;
        padding: 10px 16px;
    }


    .home-solution-card p {
        text-align: center;
        text-align-last: center;
        text-justify: auto;
        hyphens: none;
        word-spacing: normal;
    }

    .home-solution-card h3,
    .home-solution-card > span,
    .home-solution-link {
        text-align: center;
        justify-content: center;
    }

    .home-value-image {
        height: 170px;
        border-radius: 20px;
    }

    .home-main-card,
    .home-solution-card,
    .home-value-item,
    .home-process-card {
        border-radius: 24px;
    }

    .home-main-card-content h2 {
        font-size: 1.65rem;
    }

    .home-hero-section {
        padding-bottom: 28px;
    }

    .home-solutions-section {
        padding-top: 24px;
        padding-bottom: 58px;
    }

    .home-value-section,
    .home-process-section,
    .home-final-cta-section {
        padding: 58px 0;
    }

    .home-value-layout {
        gap: 34px;
    }

    .home-value-grid {
        grid-template-columns: 1fr;
        max-width: 390px;
        gap: 18px;
    }

    .home-value-content {
        text-align: center;
    }

    .home-value-content h2 {
        text-align: center;
        text-wrap: balance;
    }

    .home-value-item {
        padding: 24px 22px 28px;
        align-items: center;
        text-align: center;
    }

    .home-value-item h3,
    .home-value-item p {
        text-align: center;
    }

    .home-process-card {
        align-items: center;
        text-align: center;
        padding: 34px 28px;
    }

    .home-process-card span,
    .home-process-card h3,
    .home-process-card p {
        text-align: center;
    }

    .home-final-cta-card {
        padding: 46px 24px;
        border-radius: 28px;
    }

    .home-final-cta-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .home-final-cta-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
