/* ====== Base & Theme ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --teal: #009B92;
    --purple: #782fcb;
    --green: #009B92;
    --bg: #f6f9fb;
    --bg-2: #ffffff;
    --bg-3: #111827;
    --tx: #101828;
    --tx-2: #475467;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
    overflow-x: hidden;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Ubuntu, Cantarell, sans-serif;
    background: var(--bg);
    color: var(--tx);
    line-height: 1.6;
    opacity: 0;
    padding-top: 76px;
    transition: opacity 0.5s ease;
    overflow-x: hidden;
}

body.loaded {
    opacity: 1;
}

body.nav-open {
    overflow: hidden;
}

/* ====== ANIMACIONES FADE DE SECCIONES (con bounce) ====== */
.fade-section {
    opacity: 0;
    transform: translateY(80px) scale(0.9);
    transition: opacity 0.8s cubic-bezier(0.34, 1.56, 0.64, 1),
        transform 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.fade-section.visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* ====== ANIMACIONES DE TARJETAS (más animadas con bounce) ====== */
.card-animate {
    opacity: 0;
    transform: translateY(60px) scale(0.85) rotateX(-15deg);
    transition: opacity 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275),
        transform 0.7s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-animate.card-visible {
    opacity: 1;
    transform: translateY(0) scale(1) rotateX(0);
}

/* ====== Header / Nav ====== */
.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    width: 100%;
    background: #070b12;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
}

.site-nav {
    max-width: 1200px;
    min-height: 76px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-container,
.logo-container a {
    display: inline-flex;
    align-items: center;
}

.logo-container {
    flex: 0 0 auto;
}

.logo-container img {
    height: 44px;
    object-fit: contain;
}

.nav-panel {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 1rem;
    flex: 1;
}

.mobile-menu-brand {
    display: none;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.nav-links a,
.nav-cta {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 0.94rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.nav-links a {
    padding: 0 0.95rem;
    color: rgba(255, 255, 255, 0.76);
    border: 0;
    position: relative;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.active {
    color: #fff;
    background: transparent;
    outline: none;
}

.nav-links a::after {
    content: "";
    position: absolute;
    left: 0.95rem;
    right: 0.95rem;
    bottom: 0.35rem;
    height: 3px;
    border-radius: 999px;
    background: #009B92;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after,
.nav-links a.active::after {
    transform: scaleX(1);
}

/* ====== Dropdown nav ====== */
.nav-item--dropdown {
    position: relative;
}

.nav-item--dropdown > a {
    gap: 0.35rem;
    cursor: pointer;
}

.nav-dropdown-icon {
    font-size: 0.6rem;
    transition: transform 0.2s ease;
    opacity: 0.7;
}

.nav-item--dropdown.open .nav-dropdown-icon {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    list-style: none;
    z-index: 200;
}

.nav-dropdown__inner {
    background: #070b12;
    border-top: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 2px solid rgba(0, 155, 146, 0.5);
    padding: 0;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.nav-item--dropdown.open .nav-dropdown {
    display: block;
}

.nav-dropdown li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.nav-dropdown li:last-child {
    border-bottom: none;
}

.nav-dropdown li a {
    display: block;
    padding: 0.7rem 1.2rem;
    color: rgba(255, 255, 255, 0.65);
    white-space: nowrap;
    min-height: unset;
    border: 0;
}

.nav-dropdown li a::after {
    display: none;
}

.nav-dropdown li a:hover {
    color: #fff;
    background: rgba(0, 155, 146, 0.08);
}

@media (max-width: 860px) {
    .nav-dropdown,
    .nav-item--dropdown.open .nav-dropdown {
        display: none !important;
    }

    .nav-dropdown-icon {
        display: none !important;
    }
}

.nav-cta {
    padding: 0 1.05rem;
    color: #041415;
    background: #009B92;
    border: 1px solid #009B92;
    box-shadow: 0 10px 24px rgba(0, 155, 146, 0.2);
}

.nav-cta:hover,
.nav-cta:focus-visible {
    transform: translateY(-1px);
    background: #009B92;
    border-color: #009B92;
    outline: none;
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
    position: relative;
    z-index: 1003;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header.menu-open .nav-toggle span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.site-header.menu-open .nav-toggle span:nth-child(2) {
    opacity: 0;
}

.site-header.menu-open .nav-toggle span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ====== Section / Headings ====== */
section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem;
}

h2 {
    text-align: left;
    margin-bottom: 3.5rem;
    font-size: 2.25rem;
    color: #61117E;
    font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.05;
}

/* ====== Hero ====== */
.hero {
    --hero-image: url("../images/hero-ai-digitalizacion.png");
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    min-height: calc(100vh - 76px);
    padding: 3.65rem 1.5rem 2.5rem;
    text-align: left;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    isolation: isolate;
    background: #070b12;
    animation: heroPaneUp 0.85s ease both;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(48vw, 680px);
    z-index: -2;
    background:
        linear-gradient(90deg, rgba(7, 11, 18, 0.46) 0%, rgba(0, 155, 146, 0.18) 48%, rgba(0, 155, 146, 0.34) 100%),
        linear-gradient(0deg, rgba(7, 11, 18, 0.34), rgba(0, 155, 146, 0.16) 48%, rgba(7, 11, 18, 0.28));
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.hero::after {
    content: "";
    position: absolute;
    top: -8%;
    right: min(48vw, 680px);
    bottom: 0;
    width: 2px;
    height: 116%;
    background: rgba(0, 155, 146, 0.75);
    transform: skewX(-13deg);
    transform-origin: bottom;
    z-index: -1;
}

.hero-carousel {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(48vw, 680px);
    z-index: -3;
    overflow: hidden;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
    background: #0b111c;
}

.hero-carousel__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transform: scale(1.04);
    transition: opacity 1s ease, transform 6s ease;
}

.hero-carousel__image.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-content {
    width: min(1200px, 100%);
    margin: 0 auto;
    position: relative;
    z-index: 1;
    transform: translateY(-1.1rem);
}

.hero-content > * {
    max-width: 560px;
}

.hero-kicker {
    color: #009B92;
    font-size: .7rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .55rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

.hero h1 {
    font-size: clamp(1.85rem, 3.75vw, 3rem);
    margin-bottom: .3rem;
    color: #fff;
    font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
    font-weight: 700;
    line-height: 1.05;
    animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
    color: #37ddd4;
    font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
    font-size: clamp(1.25rem, 2.2vw, 1.85rem);
    font-weight: 700;
    line-height: 1.05;
    margin: 0 0 .8rem;
    animation: fadeInUp 0.8s ease 0.3s both;
}

.hero p {
    max-width: 520px;
    margin: 0 0 1.05rem;
    color: rgba(255, 255, 255, 0.74);
    font-size: .95rem;
    animation: fadeInUp 0.8s ease 0.4s both;
}

.hero-lede {
    line-height: 1.65;
}

.hero .hero-kicker {
    max-width: max-content;
    color: #009B92;
    font-size: .7rem;
}

.cta-container {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    animation: fadeInUp 0.8s ease 0.6s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cta-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 0.75rem 1.35rem;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    background: #009B92;
    border: 1px solid #009B92;
    box-shadow: 0 10px 24px rgba(0, 155, 146, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

@keyframes heroPaneUp {
    from {
        transform: translateY(32px);
    }
    to {
        transform: translateY(0);
    }
}

.cta-button:hover {
    transform: translateY(-2px);
    background: #009B92;
    box-shadow: 0 14px 30px rgba(0, 155, 146, 0.28);
}

.cta-button--secondary {
    color: #fff;
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .28);
    box-shadow: none;
}

.cta-button--secondary:hover {
    color: #fff;
    background: rgba(255, 255, 255, .14);
    border-color: rgba(255, 255, 255, .46);
    box-shadow: none;
}

/* ====== Reusable Cards (About / Contact) ====== */
.cards-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
    background: var(--bg-2);
    border: 1px solid rgba(57, 141, 163, 0.18);
    border-radius: 14px;
    padding: 1.25rem;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--teal);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.card h3 {
    color: #61117E;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.card p {
    color: var(--tx-2);
}

/* ====== About ====== */
#nosotros {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

#nosotros h2 {
    margin-bottom: 2rem;
}

.about-sections {
    display: grid;
    gap: 2rem;
}

.about-block {
    display: grid;
    gap: .5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(16, 24, 40, .12);
}

.about-block h3 {
    color: #61117E;
    font-size: clamp(1.2rem, 1.55vw, 1.48rem);
    line-height: 1.1;
    margin-bottom: .45rem;
}

.about-block p:not(.section-kicker) {
    max-width: 840px;
    color: var(--tx-2);
    font-size: 1rem;
    line-height: 1.72;
    text-align: justify;
}

.about-block-intro {
    gap: 1.5rem;
}

.principles-list {
    border-left: 3px solid #009B92;
    padding-left: 1rem;
    height: 100%;
}

.principles-list h4 {
    color: #61117E;
    font-size: 1rem;
    margin-bottom: .45rem;
}

.principles-list ul {
    list-style: none;
    display: grid;
    gap: .34rem;
}

.principles-list li {
    color: var(--tx-2);
    line-height: 1.24;
    position: relative;
    padding-left: 1rem;
    font-size: .9rem;
}

.principles-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .65em;
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: #009B92;
}

.logo-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    align-items: center;
    column-gap: 0.75rem;
    row-gap: 2.5rem;
    margin-top: 1.75rem;
}

.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    width: auto;
    height: auto;
    box-shadow: none;
    transition: transform .25s ease, filter .25s ease, opacity .25s ease;
}

.logo-card a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.logo-card:hover {
    transform: translateY(-4px) scale(1.04);
    filter: drop-shadow(0 8px 18px rgba(0, 155, 146, .22));
    opacity: 0.9;
}

.logo-card img {
    width: auto;
    height: 80px;
    max-width: 220px;
    object-fit: contain;
    display: block;
}

/* Tamaños individuales por logo */
.logo-card--colypro img {
    height: 100px;
    max-width: 260px;
}

.logo-card--srcacao img {
    height: 160px;
    max-width: 160px;
}

.logo-card--cerebrum img {
    height: 90px;
    max-width: 240px;
}

.logo-card--yourway img {
    height: 80px;
    max-width: 220px;
}

/* Layout para clientes y alianzas */
.about-block-wide {
    display: grid;
    gap: .5rem;
}

.about-block-wide .about-block-content p:not(.section-kicker) {
    max-width: none;
}

@media (min-width: 900px) {
    .about-block-intro {
        grid-template-columns: minmax(0, 1.4fr) minmax(280px, .8fr);
        gap: 2.5rem;
        align-items: stretch;
    }

    .about-block-wide {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* ====== RESPONSIVE: Nosotros - Tablet (600px - 899px) ====== */
@media (max-width: 899px) and (min-width: 600px) {
    #nosotros {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    .about-block-intro {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .principles-list {
        height: auto;
    }

    .about-block-wide {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .logo-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 1.5rem;
        row-gap: 1.75rem;
        margin-top: 1.25rem;
    }

    .logo-card--colypro img  { height: 85px;  max-width: 220px; }
    .logo-card--srcacao img  { height: 130px; max-width: 130px; }
    .logo-card--cerebrum img { height: 75px;  max-width: 200px; }
    .logo-card--yourway img  { height: 65px;  max-width: 180px; }
}

/* ====== RESPONSIVE: Nosotros - Móvil (<600px) ====== */
@media (max-width: 599px) {
    #nosotros {
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }

    .about-sections {
        gap: 1.5rem;
    }

    .about-block {
        padding-top: 1.25rem;
        gap: .4rem;
    }

    .about-block h3 {
        font-size: 1.15rem;
    }

    .about-block p:not(.section-kicker) {
        font-size: .93rem;
        line-height: 1.65;
        text-align: left;
    }

    .about-block-intro {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .principles-list {
        height: auto;
        padding-left: .85rem;
    }

    .principles-list li {
        font-size: .85rem;
    }

    .about-block-wide {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .logo-grid {
        grid-template-columns: 1fr 1fr;
        column-gap: 0.5rem;
        row-gap: 1.5rem;
        margin-top: 1rem;
    }

    .logo-card--colypro img  { height: 70px;  max-width: 180px; }
    .logo-card--srcacao img  { height: 100px; max-width: 100px; }
    .logo-card--cerebrum img { height: 62px;  max-width: 170px; }
    .logo-card--yourway img  { height: 55px;  max-width: 155px; }
}

/* ====== RESPONSIVE: Nosotros - Móvil muy pequeño (<380px) ====== */
@media (max-width: 380px) {
    .about-block h3 {
        font-size: 1.05rem;
    }

    .logo-grid {
        column-gap: 0.35rem;
        row-gap: 1.25rem;
    }

    .logo-card--colypro img  { height: 58px;  max-width: 150px; }
    .logo-card--srcacao img  { height: 82px;  max-width: 82px;  }
    .logo-card--cerebrum img { height: 52px;  max-width: 145px; }
    .logo-card--yourway img  { height: 46px;  max-width: 130px; }
}

/* ====== Contact Section ====== */
#contacto {
    margin-top: 2rem;
    padding-top: 2.25rem;
    padding-bottom: 2.75rem;
}

#contacto h2 {
    margin-bottom: 1.35rem;
    font-size: 2rem;
}

#contacto h3 {
    font-size: 1.05rem;
    margin-bottom: .35rem;
}

/* ---- Contacto Mejorado ---- */
.contact-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .45rem;
    margin: .75rem 0 .85rem;
}

.contact-action {
    background: #009B92;
    color: #fff;
    min-height: 38px;
    border-radius: 8px;
    border: 1px solid #009B92;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.7rem;
    text-decoration: none;
    font-weight: 800;
    font-size: .84rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.contact-action:hover {
    transform: translateY(-1px);
    background: #009B92;
    box-shadow: 0 8px 24px rgba(0, 155, 146, 0.28);
}

.contact-action i {
    font-size: 1rem;
}

.contact-grid {
    display: grid;
    gap: 1.15rem;
    grid-template-columns: repeat(12, 1fr);
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
}

.contact-card {
    grid-column: span 12;
    position: relative;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    transform: none !important;
    min-height: 100%;
}

.contact-card:hover {
    transform: none;
    border-color: transparent;
    box-shadow: none;
}

.contact-map {
    position: relative;
    width: 100%;
    aspect-ratio: 16/6.6;
    overflow: hidden;
    border-radius: 8px;
    border: 1px solid rgba(16, 24, 40, .12);
    margin-top: .75rem;
    background: #fff;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

@media (min-width: 900px) {
    .contact-grid {
        align-items: stretch;
    }

    .contact-card:nth-child(1) {
        grid-column: span 5;
        padding-right: 1.15rem;
        border-right: 1px solid rgba(16, 24, 40, .1);
        display: flex;
        flex-direction: column;
    }

    .contact-card:nth-child(2) {
        grid-column: span 7;
        padding-left: .5rem;
        display: flex;
        flex-direction: column;
    }

    .contact-card:nth-child(2) form {
        flex: 1;
        display: flex;
        flex-direction: column;
    }

    .contact-card:nth-child(2) .form-row:nth-of-type(3) {
        flex: 1;
        display: flex;
    }

    .contact-card:nth-child(2) textarea {
        min-height: 0;
        flex: 1;
    }

    .contact-map {
        flex: 1;
        min-height: 132px;
    }
}

@media (max-width: 899px) {
    .contact-card:nth-child(1) {
        order: 2;
    }

    .contact-card:nth-child(2) {
        order: 1;
    }
}

/* Lista y microcopy */
.contact-list {
    list-style: none;
    display: grid;
    gap: .45rem;
    margin: .75rem 0 0;
}

.contact-list li {
    display: grid;
    grid-template-columns: 22px minmax(72px, auto) 1fr;
    align-items: center;
    gap: .45rem;
    padding-top: .45rem;
    border-top: 1px solid rgba(16, 24, 40, .08);
    font-size: .86rem;
}

.contact-list i {
    color: #61117E;
    text-align: center;
}

.contact-list span {
    color: var(--tx);
    font-weight: 800;
}

.contact-list a {
    color: var(--tx-2);
    text-decoration: none;
}

.contact-list a:hover {
    color: var(--teal);
}

/* Valores en gris para ubicación y horario */
.contact-value {
    color: var(--tx-2);
}

.mini-copy {
    color: var(--tx-2);
    margin-top: .5rem;
    font-size: .9rem;
    line-height: 1.55;
}

.section-kicker {
    color: #61117E;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    margin-bottom: .25rem;
}

/* Formulario */
.form-row {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    margin-bottom: .45rem;
}

.form-row label {
    color: var(--tx);
    font-size: .86rem;
}

.form-row input,
.form-row textarea {
    background: #fff;
    color: var(--tx);
    border: 1px solid rgba(16, 24, 40, .16);
    border-radius: 8px;
    padding: .58rem .72rem;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
    resize: none;
}

.form-row input:focus,
.form-row textarea:focus {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(0, 155, 146, .18);
}

.error {
    color: #ff9aa2;
    font-size: .85rem;
    min-height: 1.1em;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: .6rem;
    margin-top: .25rem;
}

.form-note {
    color: var(--tx-2);
    font-size: .8rem;
}

/* Honeypot oculto */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.btn-square {
    border-radius: 8px;
}

/* ====== Footer ====== */
footer {
    background: var(--bg-3);
    border-top: 1px solid rgba(57, 141, 163, 0.18);
    margin-top: 6rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.25rem 1.5rem;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.footer-section h3 {
    color: var(--teal);
    margin-bottom: 0.5rem;
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    display: block;
    margin: 0.25rem 0;
}

.footer-section a:hover {
    color: var(--teal);
}

.footer-bottom {
    color: rgba(255, 255, 255, 0.68);
    text-align: center;
    padding: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* ====== PROYECTOS: Grid de Tarjetas ====== */
.section-proyectos {
    padding-top: 4rem;
    margin-top: 0;
}

.section-proyectos h2 {
    margin-bottom: 2rem;
}

.section-productos-cta {
    background: #000;
    max-width: none;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow: hidden;
    padding: 0;
}

.productos-cta__layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    height: 480px;
}

.productos-cta__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 5rem 3rem 5rem 6rem;
    text-align: left;
}

.productos-cta__text h2 {
    color: #fff;
    margin-bottom: 1rem;
}

.productos-cta__text p {
    max-width: 400px;
    margin: 0 0 1.5rem;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
}

.productos-cta__text .btn {
    align-self: flex-start;
    padding: 0.55rem 1.2rem;
    font-size: 0.85rem;
}

.productos-cta__panel {
    display: flex;
    flex-direction: column;
    clip-path: polygon(8% 0, 100% 0, 100% 100%, 0 100%);
    overflow: hidden;
    background: #130087;
}

.productos-cta__strip {
    flex: 1;
    position: relative;
    overflow: hidden;
    transform: skewY(-3deg);
    transform-origin: left center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: flex 0.4s ease;
    cursor: pointer;
}

.productos-cta__strip:last-child {
    border-bottom: none;
}

.productos-cta__strip:nth-child(1) { background: #000000; }
.productos-cta__strip:nth-child(2) { background: #1E0E37; }
.productos-cta__strip:nth-child(3) { background: #3C55AC; }
.productos-cta__strip:nth-child(4) { background: #0F1A0F; }
.productos-cta__strip:nth-child(5) { background: #130087; flex: 0.75; }

.productos-cta__strip:hover {
    flex: 4;
}

.productos-cta__strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
    transition: background 0.35s ease;
}

.productos-cta__strip:hover::before {
    background: rgba(0, 0, 0, 0);
}

.productos-cta__strip-img {
    position: absolute;
    inset: 0;
    margin: auto;
    width: 210px;
    height: 70px;
    object-fit: contain;
    transform: skewY(3deg) scale(1);
    transition: transform 0.4s ease;
    pointer-events: none;
}

.productos-cta__strip:hover .productos-cta__strip-img {
    transform: skewY(3deg) scale(2.8);
}

@media (max-width: 860px) {
    .section-productos-cta {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }

    .productos-cta__layout {
        grid-template-columns: 1fr;
        height: auto;
    }

    .productos-cta__text {
        padding: 3.5rem 1.5rem;
        text-align: center;
        align-items: center;
    }

    .productos-cta__text h2 {
        text-align: center;
    }

    .productos-cta__text p {
        max-width: 100%;
    }

    .productos-cta__text .btn {
        align-self: center;
    }

    .productos-cta__panel {
        height: 320px;
        clip-path: none;
    }
}

/* Los productos ahora usan product-row en lugar de projects-grid */

.project-card {
    background: var(--bg-2);
    border: 1px solid rgba(57, 141, 163, 0.2);
    border-radius: 16px;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto 1fr;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
    transition: transform 0.5s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    transform-style: preserve-3d;
    will-change: transform;
}

.project-card:hover {
    box-shadow: 0 25px 50px rgba(57, 141, 163, 0.4);
    border-color: rgba(57, 141, 163, 0.5);
}

/* Header con imagen - Base */
.project-header {
    background: #0b0b12;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 240px;
    overflow: hidden;
    position: relative;
}

.project-header img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Estilos específicos por proyecto */
.project-header-transformacion {
    background: #1E0E38 !important;
}

.project-header-checkpoint {
    background: #070707 !important;
}

.project-header-yourway {
    background: #3D55AD !important;
}

.project-header-codegears {
    background: #004244 !important;
}

/* Cuerpo */
.project-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.project-body h3 {
    color: #61117E;
    font-size: 1.25rem;
    line-height: 1.3;
}

.project-body p {
    color: var(--tx-2);
    font-size: 0.95rem;
}

/* Media (YouTube) */
.project-media {
    margin-top: 0.5rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(120, 47, 203, 0.25);
    background: #000;
}

.video-wrapper iframe {
    width: 100%;
    height: 100%;
    display: block;
}

/* Placeholder para mantener consistencia de espacio cuando no hay video - más pequeño */
.video-wrapper.video-placeholder {
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    aspect-ratio: 16/6;
}

/* Acciones (botones redondeados) */
.project-actions {
    margin-top: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 0.85rem 1rem;
    font-weight: 800;
    text-decoration: none;
    color: #fff;
    background: #009B92;
    border: 1px solid #009B92;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    border-radius: 8px;
}

.btn:hover {
    transform: translateY(-1px);
    background: #009B92;
    box-shadow: 0 12px 26px rgba(0, 155, 146, 0.28);
}

/* ====== Responsive ====== */
@media (max-width: 900px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    h2 {
        font-size: 2rem;
    }

    .project-header {
        height: 220px;
    }

    .site-nav {
        padding: 0 1rem;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .nav-panel {
        position: fixed;
        inset: 0;
        z-index: 1001;
        width: 100vw;
        height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 1.05rem;
        padding: 4.15rem 1.5rem 1.25rem;
        background: #070b12;
        opacity: 0;
        visibility: hidden;
        transform: translateX(100%);
        transition: opacity 0.22s ease, transform 0.28s ease, visibility 0.28s ease;
        overflow: hidden;
    }

    .site-header.menu-open .nav-panel {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

    .mobile-menu-brand {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: auto;
        padding: 0 0 0.8rem;
        border-bottom: 0;
        overflow: visible;
    }

    .mobile-menu-brand img {
        width: min(160px, 46vw);
        margin-top: 0;
        height: auto;
        object-fit: contain;
        transform: none;
    }

    .nav-links {
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }

    .nav-links a {
        justify-content: flex-start;
        width: 100%;
        min-height: 48px;
        border-radius: 0;
        font-size: 1.04rem;
        background: transparent;
        border: 0;
        padding: 0 0 0.5rem;
        color: rgba(255, 255, 255, 0.86);
    }

    .nav-links a.active,
    .nav-links a:hover,
    .nav-links a:focus-visible {
        color: #fff;
        background: transparent;
    }

    .nav-links a::after {
        display: none;
    }

    .nav-links a.active {
        text-decoration: underline;
        text-decoration-color: #009B92;
        text-decoration-thickness: 3px;
        text-underline-offset: 8px;
    }

    .nav-cta {
        width: 100%;
        min-height: 48px;
        border-radius: 8px;
        font-size: 1.02rem;
        justify-content: center;
        text-align: center;
        padding: 0 1rem;
        margin-top: 0.25rem;
    }
}

@media (max-width: 700px) {
    section {
        padding: 4rem 1rem;
    }

    .hero {
        min-height: calc(100vh - 76px);
        min-height: calc(100svh - 76px);
        padding: 2.75rem 1rem 2.25rem;
        margin-bottom: 0;
        align-items: center;
        text-align: center;
        background: #070b12;
    }

    .hero-content {
        transform: translateY(0);
        display: grid;
        justify-items: center;
        align-content: center;
        min-height: calc(100vh - 153px);
        min-height: calc(100svh - 153px);
    }

    .hero-content > * {
        max-width: 30rem;
    }

    .hero .hero-lede {
        margin-left: 0;
        margin-right: 0;
    }

    .hero::before {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100%;
        clip-path: none;
        background:
            linear-gradient(90deg, rgba(0, 155, 146, .18), transparent 46%),
            linear-gradient(180deg, rgba(7, 11, 18, .68) 0%, rgba(7, 11, 18, .88) 52%, rgba(7, 11, 18, .96) 100%);
        opacity: 1;
    }

    .hero::after {
        display: none;
    }

    .hero-carousel {
        inset: 0;
        width: 100%;
        clip-path: none;
    }

    .hero-carousel__image {
        object-position: 62% center;
    }

    .hero .hero-kicker {
        color: #37ddd4;
        font-size: .68rem;
        margin-bottom: .7rem;
    }

    .section-proyectos {
        padding-top: 3rem;
        margin-top: 0;
    }

    .section-proyectos h2 {
        margin-bottom: 1.5rem;
    }

    #contacto {
        margin-top: 1.5rem;
    }

    .contact-actions {
        grid-template-columns: 1fr;
    }

    .contact-list li {
        grid-template-columns: 22px 1fr;
    }

    .contact-list a,
    .contact-value {
        grid-column: 2;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero h1 {
        font-size: clamp(2rem, 12vw, 2.6rem);
        line-height: .98;
        margin-bottom: .45rem;
    }

    .hero-subtitle {
        font-size: clamp(1.18rem, 7vw, 1.55rem);
        line-height: 1.08;
        margin-bottom: .9rem;
    }

    .hero .hero-lede {
        font-size: .95rem;
        line-height: 1.55;
        color: rgba(255, 255, 255, .86);
    }

    .cta-container,
    .cta-button {
        width: 100%;
    }

    .cta-container {
        gap: .65rem;
    }

    .cta-button {
        min-height: 52px;
        padding: .85rem 1rem;
        text-align: center;
        box-shadow: 0 16px 34px rgba(0, 155, 146, .34);
    }

    h2 {
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .projects-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .project-header {
        height: 200px;
    }

    .project-body {
        padding: 1.25rem;
    }

    .project-body h3 {
        font-size: 1.15rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
}

@media (max-width: 400px) {
    .hero h1 {
        font-size: clamp(1.82rem, 11vw, 2.2rem);
    }

    .hero-subtitle {
        font-size: clamp(1.05rem, 6vw, 1.32rem);
    }

    .hero {
        padding-left: .9rem;
        padding-right: .9rem;
    }

    .hero .hero-kicker {
        font-size: .62rem;
    }

    .cta-button {
        font-size: .92rem;
    }

    .project-header {
        height: 180px;
    }

    .btn {
        padding: 0.75rem 0.85rem;
        font-size: 0.9rem;
    }
}
/* ====== PRODUCT ROW — Franja incrustada con diagonal ====== */

/*
  El product-row NO es una tarjeta. Es una franja que ocupa el ancho
  completo de la sección (sin border-radius lateral, sin box-shadow de carta),
  visualmente integrada al flujo del contenido como una banda oscura.
  Solo el clip lateral diagonal le da forma.
*/
.product-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* Sin borde redondeado lateral: ocupa todo el ancho */
    border-radius: 0;
    /* Sin sombra de carta */
    box-shadow: none;
    /* Altura aumentada para ocupar la totalidad de la pantalla */
    min-height: 100vh;
    overflow: hidden;
    background: #fcfcfc;
    /* Sin margen entre paneles */
    margin: 0;
    /* Sangría completa: rompe el max-width de section para ir de borde a borde */
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    width: 100vw;
    /* Borde sutil solo arriba y abajo */
    border-top: 1px solid rgba(0, 155, 146, 0.14);
    border-bottom: 1px solid rgba(120, 47, 203, 0.14);
}

/* Lado izquierdo: contenido — re-centramos con padding proporcional */
.product-row__content {
    position: relative;
    z-index: 2;
    /* Espejamos el padding de section para que el texto quede alineado al grid */
    padding: 3.5rem calc((100vw - 1200px) / 2 + 1.5rem) 3.5rem calc((100vw - 1200px) / 2 + 1.5rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
}

.product-row__kicker {
    font-family: "Manrope", sans-serif;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #009B92;
    margin: 0;
}

.product-row__content h3 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(1.25rem, 2.2vw, 1.75rem);
    font-weight: 700;
    color: #101828;
    line-height: 1.15;
    margin: 0;
}

.product-row__content > p {
    font-size: 0.93rem;
    color: #475467;
    line-height: 1.7;
    margin: 0;
    max-width: 420px;
}

.product-row__media {
    margin-top: 0.5rem;
}

.product-row__actions {
    margin-top: 0.5rem;
}

/* Lado derecho: contiene la imagen con parallax */
.product-row__image-side {
    position: relative;
    overflow: hidden;
}

/* Fondo de color de la imagen — ocupa todo el lado */
.product-row__image-bg {
    position: absolute;
    inset: 0;
    /* Ligeramente más grande para que el parallax tenga margen de movimiento */
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Wrapper que se mueve con el parallax — más alto que el contenedor */
.product-row__parallax-wrap {
    position: absolute;
    inset: -15% 0;          /* 15% extra arriba y abajo para el recorrido */
    display: flex;
    align-items: center;
    justify-content: center;
    will-change: transform;
    transition: transform 0.05s linear;
}

.product-row__parallax-wrap img {
    width: 88%;
    height: auto;
    max-height: 92%;
    object-fit: contain;
    object-position: center;
    z-index: 1;
    user-select: none;
    pointer-events: none;
}

/* La diagonal: bloque que tapa el inicio de la imagen con el color del fondo */
.product-row__diagonal {
    position: absolute;
    top: 0;
    left: -2px;
    width: 100px;
    height: 100%;
    z-index: 3;
    background: #fcfcfc;
    clip-path: polygon(0 0, 52% 0, 100% 100%, 0 100%);
    pointer-events: none;
}

/* La línea luminosa sobre el corte */
.product-row__diagonal-line {
    position: absolute;
    top: -5%;
    left: 97px;
    width: 2px;
    height: 110%;
    background: linear-gradient(
        180deg,
        transparent 0%,
        #009B92 18%,
        #009B92 52%,
        #782fcb 82%,
        transparent 100%
    );
    z-index: 4;
    transform: skewX(-4.5deg);
    transform-origin: top;
    pointer-events: none;
}

/* Variante yourway - fondo azul que se integra con la imagen */
.product-row--yourway .product-row__image-side {
    background: #3C55AE;
    position: relative;
    overflow: hidden;
}

/* Efecto de gradiente azul difuminado alrededor de la imagen */
.product-row--yourway .product-row__image-bg::after {
    content: "";
    position: absolute;
    inset: -10%;
    background: radial-gradient(
        ellipse at center,
        transparent 25%,
        rgba(60, 85, 174, 0.5) 50%,
        rgba(60, 85, 174, 0.85) 70%,
        #3C55AE 100%
    );
    pointer-events: none;
    z-index: 2;
}


.product-row--yourway .product-row__image-bg {
    background: transparent;
}

/* Product-row invertido (imagen izquierda, texto derecha) */
/* El orden se maneja cambiando el orden de los elementos en el HTML */

.product-row--reversed .product-row__diagonal {
    left: auto;
    right: -2px;
    clip-path: polygon(48% 0, 100% 0, 100% 100%, 0 100%);
}

.product-row--reversed .product-row__diagonal-line {
    left: auto;
    right: 97px;
    transform: skewX(4.5deg);
}

/* Variante Cerebrum - fondo blanco especificado */
.product-row--cerebrum .product-row__image-side {
    background: #D9D9D9;
    position: relative;
    overflow: hidden;
}

/* Removido el efecto radial-gradient para Cerebrum */
.product-row--cerebrum .product-row__image-bg::after {
    display: none;
}

/* Variante Cronode Dev - fondo negro/oscuro */
.product-row--codegears .product-row__image-side {
    background: #000000;
    position: relative;
    overflow: hidden;
}

.product-row--codegears .product-row__image-bg::after {
    display: none;
}

.product-row--codegears .product-row__parallax-wrap img {
    width: 65%; /* Reducido para Cronode DEV */
    max-height: 80%;
}

/* Variante Transformacion - fondo especificado */
.product-row--transformacion .product-row__image-side {
    background: #1E0E38;
    position: relative;
    overflow: hidden;
}

.product-row--transformacion .product-row__image-bg::after {
    display: none;
}

/* Variante Puntus - fondo negro */
.product-row--puntus .product-row__image-side {
    background: #0F1A0F;
    position: relative;
    overflow: hidden;
}

.product-row--puntus .product-row__image-bg::after {
    display: none;
}

/* Variante GUIIA - fondo oscuro */
.product-row--guiia .product-row__image-side {
    background: #130087;
    position: relative;
    overflow: hidden;
}

.product-row--guiia .product-row__image-bg::after {
    display: none;
}

/* Variante Checkpoint - fondo negro */
.product-row--checkpoint .product-row__image-side {
    background: #070707;
    position: relative;
    overflow: hidden;
}

.product-row--checkpoint .product-row__image-bg::after {
    content: "";
    position: absolute;
    inset: -10%;
    background: radial-gradient(
        ellipse at center,
        transparent 25%,
        rgba(7, 7, 7, 0.5) 50%,
        rgba(7, 7, 7, 0.85) 70%,
        #070707 100%
    );
    pointer-events: none;
    z-index: 2;
}

/* Colores sólidos para la línea diagonal de cada variante */
.product-row--yourway .product-row__diagonal-line {
    background: #6592D6;
}

.product-row--cerebrum .product-row__diagonal-line {
    background: #364152;
}

.product-row--codegears .product-row__diagonal-line {
    background: #6539BB;
}

.product-row--checkpoint .product-row__diagonal-line {
    background: #4B1DB7;
}

/* ====== Animación de entrada ====== */
.diagonal-entry {
    opacity: 0;
    transition: opacity 0.1s ease;
}

.diagonal-entry.diagonal-visible {
    opacity: 1;
}

/* PANEOS LATERALES DEL PANEL COMPLETO */

/* Imagen a la derecha: paneo de IZQUIERDA a DERECHA (sin rebote) */
.diagonal-entry {
    transform: translateX(-120px);
    transition: opacity 0.1s ease,
                transform 0.9s ease-out;
}

.diagonal-entry.diagonal-visible {
    opacity: 1;
    transform: translateX(0);
}

/* Imagen a la izquierda (reversed): paneo de DERECHA a IZQUIERDA (sin rebote) */
.product-row--reversed.diagonal-entry {
    transform: translateX(120px);
}

.product-row--reversed.diagonal-entry.diagonal-visible {
    transform: translateX(0);
}

/* PANEOS LATERALES PARA LA IMAGEN (misma dirección que panel, con retraso) */

/* Imagen a la derecha: paneo lateral de IZQUIERDA a DERECHA (mismo que panel, con retraso, sin rebote) */
.diagonal-entry .product-row__image-side {
    opacity: 0;
    transform: translateX(-80px);
    transition: opacity 0.8s ease-out 0.15s,
                transform 0.8s ease-out 0.15s;
}

.diagonal-entry.diagonal-visible .product-row__image-side {
    opacity: 1;
    transform: translateX(0);
}

/* Imagen a la izquierda: paneo lateral de DERECHA a IZQUIERDA (mismo que panel, con retraso, sin rebote) */
.product-row--reversed.diagonal-entry .product-row__image-side {
    opacity: 0;
    transform: translateX(80px);
    transition: opacity 0.8s ease-out 0.15s,
                transform 0.8s ease-out 0.15s;
}

.product-row--reversed.diagonal-entry.diagonal-visible .product-row__image-side {
    opacity: 1;
    transform: translateX(0);
}

/* Contenido aparece con delay más sutil */
.diagonal-entry .product-row__content {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.5s ease 0.25s,
                transform 0.5s ease 0.25s;
}

.diagonal-entry.diagonal-visible .product-row__content {
    opacity: 1;
    transform: translateY(0);
}

/* ====== Responsive: Product Row ====== */
@media (max-width: 900px) {
    .product-row__content {
        /* En tablets el padding lateral vuelve a ser fijo */
        padding: 3rem 2rem;
    }
}

@media (max-width: 860px) {
    .product-row {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .product-row__image-side {
        height: 260px;
        order: -1;
    }

    .product-row__content {
        padding: 2.5rem 1.5rem;
    }

    .product-row__content > p {
        max-width: 100%;
    }

    /* En mobile la diagonal se convierte en un corte horizontal en la base de la imagen */
    .product-row__diagonal {
        top: auto;
        bottom: -2px;
        left: 0;
        width: 100%;
        height: 70px;
        clip-path: polygon(0 100%, 100% 30%, 100% 100%);
    }

    .product-row__diagonal-line {
        top: auto;
        bottom: 68px;
        left: 0;
        width: 100%;
        height: 2px;
        transform: skewY(-4deg);
        transform-origin: right;
        background: linear-gradient(
            90deg,
            transparent 0%,
            #782fcb 30%,
            #009B92 70%,
            transparent 100%
        );
    }

    .product-row__parallax-wrap {
        inset: 0;   /* sin parallax en mobile */
    }

    .product-row__parallax-wrap img {
        width: 70%;
        height: auto;
        max-height: 88%;
        object-fit: contain;
    }

    .product-row--reversed .product-row__diagonal {
        left: 0;
        right: auto;
        clip-path: polygon(0 100%, 100% 30%, 100% 100%);
    }

    .product-row--reversed .product-row__diagonal-line {
        left: 0;
        right: auto;
        transform: skewY(-4deg);
    }

    /* Animaciones en mobile: paneo lateral simplificado (sin rebote) */
    .diagonal-entry {
        transform: translateX(-40px);
        transition: transform 0.6s ease-out;
    }

    .diagonal-entry.diagonal-visible {
        transform: translateX(0);
    }

    .product-row--reversed.diagonal-entry {
        transform: translateX(40px);
    }

    .product-row--reversed.diagonal-entry.diagonal-visible {
        transform: translateX(0);
    }

    /* Paneo lateral de imagen en mobile (misma dirección que panel, con retraso, sin rebote) */
    .diagonal-entry .product-row__image-side {
        transform: translateX(-30px);
        opacity: 0;
        transition: opacity 0.5s ease-out 0.1s,
                    transform 0.5s ease-out 0.1s;
    }

    .diagonal-entry.diagonal-visible .product-row__image-side {
        transform: translateX(0);
        opacity: 1;
    }

    .product-row--reversed.diagonal-entry .product-row__image-side {
        transform: translateX(30px);
        opacity: 0;
        transition: opacity 0.5s ease-out 0.1s,
                    transform 0.5s ease-out 0.1s;
    }

    .product-row--reversed.diagonal-entry.diagonal-visible .product-row__image-side {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ====== Dev Spotlight ====== */
.dev-spotlight {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 4rem);
    align-items: center;
    padding-top: 3rem;
    padding-bottom: 4.5rem;
    margin-bottom: 1.5rem;
}

.dev-spotlight__heading {
    font-size: clamp(1.7rem, 3.2vw, 2.4rem);
    font-family: "Space Grotesk", "Manrope", "Segoe UI", sans-serif;
    color: var(--tx);
    line-height: 1.15;
    margin-bottom: 1rem;
    text-align: left;
}

.dev-spotlight__heading em {
    font-style: normal;
    color: #61117E;
}

.dev-spotlight__pain-line {
    font-size: 1rem;
    font-weight: 700;
    color: var(--tx);
    line-height: 1.6;
    margin-bottom: .75rem;
}

.dev-spotlight__sub {
    color: var(--tx-2);
    font-size: .93rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.dev-spotlight__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    align-items: center;
}

.dev-spotlight__cta-primary {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .8rem 1.4rem;
    background: #25d366;
    color: #fff;
    font-weight: 800;
    font-size: .9rem;
    text-decoration: none;
    border-radius: 8px;
    border: 1px solid #25d366;
    transition: transform .15s ease, box-shadow .15s ease;
}

.dev-spotlight__cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37,211,102,.32);
}

.dev-spotlight .contact-action,
.dev-spotlight__cta-secondary {
    padding: .7rem 1.2rem;
    font-size: .88rem;
    min-height: 42px;
}

.dev-spotlight__cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: transparent;
    color: var(--tx-2);
    font-weight: 700;
    text-decoration: none;
    border-radius: 8px;
    border: 1.5px solid rgba(16,24,40,.15);
    transition: border-color .15s ease, color .15s ease;
}

.dev-spotlight__cta-secondary:hover {
    border-color: var(--teal);
    color: var(--teal);
}

.dev-spotlight__image-col {
    display: flex;
    align-items: center;
    justify-content: center;
}

.dev-spotlight__image-frame {
    width: 100%;
    border-radius: 0;
    overflow: hidden;
    border: 1px solid rgba(16,24,40,.1);
    box-shadow: 0 12px 36px rgba(0,0,0,.09);
    aspect-ratio: 4 / 3;
    background: var(--bg-2);
}

.dev-spotlight__image-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (max-width: 900px) {
    .dev-spotlight {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding-top: 2.5rem;
        padding-bottom: 3rem;
        margin-bottom: 1rem;
        text-align: center;
    }

    .dev-spotlight__heading {
        font-size: 1.8rem;
        text-align: center;
    }

    .dev-spotlight__ctas {
        justify-content: center;
    }
}

@media (max-width: 600px) {
    .dev-spotlight__ctas {
        flex-direction: column;
        align-items: stretch;
    }

    .dev-spotlight__cta-primary,
    .dev-spotlight__cta-secondary {
        justify-content: center;
        text-align: center;
    }
}
