/* ================= 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;
}

/* ================= 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);
    }
}
