:root {
    --naranja-300: #F2936F;
    --naranja-500: #EB5E28;
    --neutros-0: #FFFFFF;
    --neutros-80: #989897;
    --bg-color: #FDFCFB;
    --text-primary: #151413;
    --text-secondary: #625E59;
    --accent-color: var(--naranja-500);
    --dark-bg: #111111;
    --card-bg: var(--neutros-0);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

img,
.card-image,
.logo img,
.social-btn img,
.about-photo img,
.polaroid img {
    max-width: 100%;
    height: auto;
    -webkit-user-drag: none;
    pointer-events: none;
    user-select: none;
    -webkit-touch-callout: none;
    /* Prevent long-press on mobile */
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Header */
.header {
    background-color: #0A0908;
    color: #FFF;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

.mobile-menu-toggle {
    display: none;
    background-color: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    pointer-events: auto;
    touch-action: manipulation;
    /* elimina el delay de 300ms en móvil */
    -webkit-tap-highlight-color: transparent;
}

/* Mobile Menu Overlay */
.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.40);
    opacity: 0;
    visibility: hidden;
    z-index: 998;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 60%;
    max-width: 320px;
    height: 100%;
    background-color: #0A0908;
    z-index: 999;
    padding: 80px 40px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-end;
    transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.side-menu.active {
    right: 0;
}

.side-nav ul {
    list-style: none;
    text-align: right;
}

.side-nav ul li {
    margin-bottom: 20px;
}

.side-nav ul li a {
    color: #FFF;
    text-decoration: none;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
    /* 24px base */
    font-weight: 400;
    transition: color 0.3s;
}

.side-nav ul li a.active {
    color: var(--naranja-300);
}

.side-lang-switch {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFF;
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.side-lang-switch .active {
    color: var(--naranja-300);
}

.close-menu {
    position: absolute;
    bottom: 40px;
    right: 40px;
    background-color: transparent;
    border: none;
    cursor: pointer;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.logo {
    display: flex;
    align-items: center;
    gap: clamp(1.5rem, 3vw, 2rem);
}

.logo img {
    width: clamp(2.5rem, 5vw, 4rem);
    height: clamp(2.5rem, 5vw, 4rem);
    display: block;
}

.logo-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    margin-top: -5px;
}

.logo-name {
    color: #FFF;
    font-family: 'Linden Hill', serif;
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.logo-designer {
    color: #FFF;
    text-align: center;
    font-family: 'Roboto', sans-serif;
    font-size: clamp(0.7rem, 1.2vw, 1rem);
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    letter-spacing: clamp(0.2rem, 0.4vw, 0.42rem);
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 35px;
}

.nav a {
    color: var(--neutros-0);
    text-decoration: none;
    font-family: 'Figtree', sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1.2rem);
    font-weight: 400;
    transition: color 0.3s, font-weight 0.3s;
}

.nav a:hover {
    color: #FFF;
    font-weight: 600;
}

.nav a:active,
.nav a.active {
    color: var(--naranja-300);
    font-weight: 300;
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: clamp(0.875rem, 1.5vw, 1.2rem);
    color: var(--neutro-0);
}

.lang-icon {
    width: 1em;
    height: 1em;
}

.lang-switch span {
    font-family: 'Figtree', sans-serif;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.2s;
}

.lang-switch span.sep {
    color: var(--neutro-0);
    cursor: default;
}

.lang-switch span.active {
    color: var(--naranja-300);
    font-weight: 300;
}

.lang-switch span:hover {
    color: #FFF;
    font-weight: 600;
}

/* Hero Section */
.hero {
    max-width: 1200px;
    margin: 100px auto 40px;
    padding: 0 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 60px;
}

.hero-text {
    flex: 1;
}

.greeting-wrapper {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 5px;
}

.greeting-wrapper .line {
    width: 50px;
    height: 1px;
    background-color: #8D8780;
}

.greeting {
    font-family: 'Caveat', cursive;
    font-size: clamp(3rem, 6vw, 4.25rem);
    /* Increased 20% from 57px */
    font-weight: 400;
    font-style: normal;
    color: #5E503F;
    /* Brown 500 */
    line-height: normal;
}

.title {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    /* Increased 20% from 32px */
    font-weight: 400;
    margin-bottom: 25px;
    line-height: 1.4;
    color: #333;
}

.title .highlight {
    color: var(--accent-color);
    font-weight: 600;
}

.description {
    font-size: clamp(1.1rem, 1.5vw, 1.2rem);
    /* Increased 20% from 16px */
    color: var(--text-secondary);
    width: 100%;
    line-height: 1.7;
}

.hero-image {
    flex-shrink: 0;
}

.hero-image img {
    width: 260px;
    height: 260px;
    min-width: 260px;
    min-height: 260px;
    flex-shrink: 0;
    aspect-ratio: 1/1;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
}

.scroll-down {
    margin-top: 104px;
    /* Increased 5% from 99px */
    animation: bounce 2s infinite;
}

.scroll-down img {
    width: 2.2rem;
    /* Increased 10% from 32px */
}

@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-10px);
    }

    60% {
        transform: translateY(-5px);
    }
}

/* Destacados Section */
.destacados {
    max-width: 1200px;
    margin: 104px auto 120px;
    /* Increased bottom margin to 120px */
    padding: 0 40px;
    scroll-margin-top: 120px;
}

.section-title {
    text-align: center;
    font-size: clamp(1.9rem, 3.8vw, 2.85rem);
    /* Reduced 5% from 3rem */
    font-weight: 700;
    letter-spacing: 5px;
    color: #5A534B;
    margin-bottom: 30px;
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 50px;
}

.card {
    background-color: var(--neutros-0);
    border-radius: 47px;
    border: 1px solid #A3A3A3;
    display: flex;
    overflow: hidden;
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    height: 412px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card-image {
    flex: 0 0 52%;
    position: relative;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-image.with-overlay::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.70) 0%, rgba(102, 102, 102, 0.00) 60.44%);
    pointer-events: none;
}

.distribuidora-img {
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.54) 0%, rgba(102, 102, 102, 0.00) 60.44%),
        url('img/SPANISH/2-Proyectos/Card-Distribuidora-Foto.webp') center / cover no-repeat,
        #142B53;
    background-blend-mode: multiply, normal, normal;
}

.en-desarrollo {
    position: absolute;
    bottom: 35px;
    left: 45px;
    color: var(--neutros-0);
    font-family: 'Figtree', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.6rem);
    font-weight: 700;
    z-index: 2;
    line-height: normal;
}

.card-content {
    flex: 1;
    padding: 40px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
}

.category {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 1.3rem);
    font-weight: 700;
    letter-spacing: clamp(0.16rem, 0.32vw, 0.364rem);
    color: #3B9A6B;
    /* Green for Bloomself */
    margin-bottom: 12px;
}

.category.blue-text {
    color: #0088CC;
    /* Blue for Valentinas */
}

.card-logo {
    height: 50px;
    margin-bottom: 15px;
    object-fit: contain;
}

.card-logo.valentinas {
    height: 60px;
    margin-bottom: 5px;
}

.card-logo.distribuidora {
    height: 80px;
    margin-bottom: 15px;
}

.subtitle {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(0.8rem, 1vw, 1rem);
    color: #B49D82;
    margin-bottom: 18px;
    font-weight: 400;
}

.card-desc {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(0.8rem, 1.2vw, 1.2rem);
    color: #4A4A4A;
    line-height: normal;
    margin-bottom: 25px;
}

.btn {
    display: flex;
    padding: 0.5rem 1.5rem;
    /* 8px 24px */
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* 16px */
    border-radius: 1.5rem;
    /* 24px */
    background: var(--naranja-500, #EB5E28);
    box-shadow: 0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.25);
    font-family: 'Figtree', sans-serif;
    font-size: 1.4rem;
    /* 22.4px */
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.042rem;
    color: var(--neutros-0, #FFF);
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
    border: none;
    cursor: pointer;
}

.card-content .btn {
    align-self: flex-end;
}

.btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-arrow,
.btn svg,
.btn img {
    width: 1.2rem;
    /* 19.2px */
    height: 1.2rem;
    /* 19.2px */
    aspect-ratio: 1/1;
    display: block;
}

.btn.primary {
    background: var(--naranja-500, #EB5E28);
    color: var(--neutros-0, #FFF);
}

/* Footer */
.footer {
    background-color: var(--dark-bg);
    color: #FFF;
    padding: 80px 0 50px;
}

.footer-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 40px;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 30px;
}

.footer-logo {
    height: 50px;
    margin-bottom: 25px;
}

.footer-desc {
    color: var(--neutros-0);
    font-family: 'Figtree', sans-serif;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    line-height: normal;
    margin-top: 25px;
    margin-bottom: 30px;
    max-width: 380px;
    font-weight: 400;
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s;
}

.social-btn img {
    width: 3rem;
    height: 3rem;
    filter: brightness(0) invert(1);
    transition: filter 0.3s;
}

.social-btn:hover {
    transform: scale(1.02);
}

.social-btn:hover img {
    filter: invert(65%) sepia(5%) saturate(13%) hue-rotate(345deg) brightness(91%) contrast(85%);
    /* This approximates #989897 */
}

.copyright {
    font-family: 'Figtree', sans-serif;
    font-size: 1rem;
    color: var(--neutros-0);
    font-weight: 400;
    line-height: normal;
    margin-top: 10px;
}

.footer-nav h3,
.footer-contact h3 {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1.2rem);
    font-weight: 700;
    color: var(--neutros-0);
    margin-bottom: 25px;
    letter-spacing: 1px;
}

.footer-nav ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.footer-nav a {
    color: var(--neutros-0);
    text-decoration: none;
    font-family: 'Figtree', sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1.2rem);
    font-weight: 400;
    transition: color 0.3s, font-weight 0.3s;
}

.footer-nav a:hover {
    color: #FFF;
    font-weight: 600;
}

.footer-nav a:active,
.footer-nav a.active {
    color: var(--naranja-300);
    font-weight: 300;
}

.footer-contact p {
    color: var(--neutro-0);
    font-family: 'Figtree', sans-serif;
    font-size: clamp(0.875rem, 1.5vw, 1.2rem);
    margin-bottom: 25px;
    font-weight: 400;
}

/* Proyectos Page */
.proyectos-section {
    padding: 80px 0 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.proyectos-section .section-title {
    margin-bottom: 80px;
}

/* Sobre mí Page */
.about-section {
    padding: 100px 0 120px;
    max-width: 1200px;
    margin: 0 auto;
}

.about-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 122px;
    padding: 0 40px;
}

.about-text {
    flex: 1;
}

.about-subtitle {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 700;
    color: #5E503F;
    /* Brown 500 */
    margin: 20px 0 40px;
    line-height: 1.3;
}

.about-description p {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(1.1rem, 1.4vw, 1.35rem);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 25px;
}

.about-image-wrapper {
    flex-shrink: 0;
}

.polaroid img {
    width: 348.227px;
    height: 471.032px;
    transform: rotate(3.385deg);
    max-width: 100%;
    object-fit: contain;
    display: block;
}

/* Contact Page */
.contact-section {
    background-repeat: repeat;
    background-position: center top;
    padding: 0;
    min-height: calc(100vh - 120px);
    /* Adjust based on sticky header */
    display: flex;
    justify-content: center;
    align-items: stretch;
}

.contact-card {
    background-color: var(--neutros-0);
    display: flex;
    max-width: 910px;
    width: 100%;
    margin: 0 auto;
    padding: 60px 80px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 30px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.05);
    border-radius: 0;
}

.contact-card .section-title {
    margin-bottom: 0;
    font-size: clamp(1.9rem, 3.8vw, 2.85rem);
    color: #5A534B;
}

.contact-subtitle {
    font-family: 'Figtree', sans-serif;
    font-size: clamp(1rem, 1.5vw, 1.3rem);
    color: #252423;
    /* Neutro 700 */
}

.contact-form {
    text-align: left;
    width: 100%;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    font-family: 'Figtree', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: #5E503F;
    margin-bottom: 15px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 1.125rem 1.5625rem;
    border: 0.0625rem solid #D5CCC2;
    border-radius: 1.25rem;
    background-color: var(--neutros-0);
    font-family: 'Figtree', sans-serif;
    font-size: 1.1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #D5CCC2;
    box-shadow: none;
}

/* Prevent default red border and orange focus on focus */
.form-group input:focus:invalid,
.form-group textarea:focus:invalid {
    border-color: #D5CCC2 !important;
    box-shadow: none !important;
    outline: none !important;
}

.form-group input:invalid,
.form-group textarea:invalid {
    box-shadow: none !important;
    border-color: #D5CCC2;
}

/* Custom error class for JS validation - using red-600 (#d92e22) as error color */
.form-group.has-error input,
.form-group.has-error textarea {
    border-color: #d92e22 !important;
}

.form-instruction {
    color: #7B7A7A;
    font-family: 'Figtree', sans-serif;
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
    line-height: normal;
    text-align: left;
    width: 100%;
    margin-bottom: 30px;
}

.form-actions {
    display: flex;
    justify-content: center;
    margin-top: 0;
}

/* Responsive Adjustments */
@media (max-width: 900px) {

    .header .nav,
    .header .lang-switch {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: block !important;
    }

    /* Overlay: hidden by default, shown via JS .active class */
    /* .nav-overlay stays display:none until .active is added by JS */
    /* .side-menu stays display:none until .active is added by JS */

    /* Hero Mobile */
    .hero {
        height: auto;
        margin: 20px auto 40px;
        /* Reduced from 100px */
        padding: 20px 20px 40px;
        /* Reduced from 60px */
        min-height: auto;
    }

    .destacados {
        padding: 0 20px;
    }

    .hero-content {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    .hero-image {
        order: -1;
        display: flex;
        justify-content: center;
        width: 100%;
        margin: 0;
    }
    
    .hero-image img {
        width: 208px;
        height: 208px;
        min-width: 208px;
        min-height: 208px;
    }

    .greeting-wrapper {
        justify-content: center;
    }

    .hero-text .title {
        font-size: clamp(1.8rem, 5vw, 2.2rem);
    }

    .hero-text .description {
        max-width: 100%;
    }

    .scroll-down {
        position: relative;
        margin-top: 30px;
        bottom: 0;
    }

    /* Footer Mobile */
    .footer-container {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 30px !important;
        grid-template-columns: none !important;
    }

    .footer-left {
        display: contents;
    }

    .footer-left .logo {
        order: 1;
        margin-bottom: 20px;
    }

    .footer-desc {
        order: 2;
        max-width: 320px;
        margin: 25px auto 30px !important;
    }

    .footer-nav {
        order: 3;
        width: 100%;
    }

    .footer-contact {
        order: 4;
        width: 100%;
    }

    .copyright {
        order: 5;
        width: 100%;
        margin-top: 20px !important;
        text-align: center;
    }

    .social-icons {
        order: 6;
        justify-content: center;
        margin-top: 10px;
    }

    .footer-nav h3,
    .footer-contact h3 {
        font-size: 1.2rem;
    }

    .footer-nav ul li a,
    .footer-contact p {
        font-size: 1rem;
    }

    .footer-desc {
        max-width: 320px;
        margin: 0 auto 30px;
    }

    .social-icons {
        justify-content: center;
    }

    /* Cards Mobile */
    .card {
        flex-direction: column;
        height: auto;
    }

    .card-image {
        flex: 0 0 auto;
        height: 250px;
    }

    .card-content {
        padding: 35px 25px;
        align-items: center;
        text-align: center;
    }

    .card-content .btn {
        align-self: stretch;
    }

    .card-desc {
        font-size: 1rem !important;
        /* increased ~25% */
    }

    .subtitle {
        font-size: 0.95rem !important;
        /* increased */
    }

    /* Proyectos Page Mobile */
    .proyectos-section {
        padding: 40px 20px;
    }

    /* Contact Page Mobile */
    .contact-card {
        padding: 40px 25px;
        width: 95%;
        gap: 25px;
    }

    .form-instruction {
        font-size: clamp(1rem, 1.5vw, 1.3rem) !important;
        /* Match contact-subtitle size */
        margin-top: -10px;
    }

    /* About Page Mobile */
    .about-section {
        padding: 40px 0 60px;
    }

    .about-container {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
        text-align: left;
        padding: 0 20px;
    }

    .about-text {
        order: 1;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .about-text .greeting-wrapper {
        justify-content: flex-start;
    }

    .about-image-wrapper {
        order: 2;
    }

    .polaroid img {
        width: 100%;
        max-width: 300px;
        margin: 0 auto;
        height: auto;
    }
}

/* ============================================================
   BLOOMSELF PROJECT PAGE
   ============================================================ */
.bloomself-page {
    background-color: var(--bg-color);
}

.bloomself-hero-img {
    height: 37.3125rem;
    /* 597px */
    width: 100%;
    background: url('img/SPANISH/3-Bloomself/back-bloomself.svg') lightgray 0% 0% / 12.5rem 12.5rem repeat, #92D2B5;
    background-blend-mode: soft-light, normal;
    box-shadow: 0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.bloomself-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

@media (max-width: 768px) {
    .bloomself-hero-img {
        height: auto;
    }

    .bloomself-hero-img img {
        height: auto;
    }
}

/* 1 - CONTEXTO SECTION */
.bloomself-info-section {
    display: flex;
    padding: 2.5rem 5.3125rem 1.875rem 5.3125rem;
    /* 40px 85px 30px 85px */
    align-items: flex-start;
    gap: 0.625rem;
    /* 10px */
    align-self: stretch;
}

.bloomself-info-container {
    display: flex;
    gap: 3.75rem;
    /* 60px */
    align-items: flex-start;
    max-width: 75rem;
    /* 1200px */
    margin: 0 auto;
    width: 100%;
}

.bloomself-info-main {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 3.75rem;
    /* 60px */
    flex: 1 0 0;
}

.bloomself-info-header {
    display: flex;
    width: 38.765rem;
    /* 620.25px */
    flex-direction: column;
    align-items: flex-start;
    gap: 1.875rem;
    /* 30px */
}

.breadcrumb-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    /* 20px */
    align-self: stretch;
}

.breadcrumb-link {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    /* 10px */
    color: var(--naranja-500);
    text-decoration: none;
    font-family: 'Figtree', sans-serif;
    font-size: 1.5rem;
    /* 24px */
    font-weight: 700;
}

.category-subtitle {
    color: #309C6B;
    font-family: 'Figtree', sans-serif;
    font-size: 1.625rem;
    /* 26px */
    font-weight: 700;
    letter-spacing: 0.455rem;
    /* 7.28px */
}

.bloomself-logo-img {
    width: 38.605rem;
    /* 617.682px */
    height: 6.6875rem;
    /* 107px */
}

.context-box,
.objectives-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5625rem;
    /* 25px */
    align-self: stretch;
}

.section-subtitle {
    align-self: stretch;
    color: #5E503F;
    font-family: 'Figtree', sans-serif;
    font-size: 1.9125rem;
    /* Reduced 15% from 36px */
    font-weight: 700;
}

.section-p {
    align-self: stretch;
    color: #3B3B3B;
    font-family: 'Figtree', sans-serif;
    font-size: 1.275rem;
    /* Reduced 15% from 24px */
    line-height: 1.859rem;
    /* Reduced 15% from 35px */
}

.section-p strong {
    font-weight: 700;
}

/* SIDEBAR CARD */
.bloomself-sidebar {
    display: flex;
    width: 21.3125rem;
    /* 341px */
    padding: 2.5rem 1.25rem;
    /* 40px 20px */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    /* 40px */
    border-radius: 1.875rem;
    /* 30px */
    border: 0.0625rem solid #A3A3A3;
    background: #FFF;
    box-shadow: 0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.25);
}

.sidebar-info-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5625rem;
    /* 25px */
    align-self: stretch;
}

.sidebar-item {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sidebar-item h4 {
    align-self: stretch;
    color: #5E503F;
    font-family: 'Figtree', sans-serif;
    font-size: 1.275rem;
    /* Reduced 15% from 24px */
    font-weight: 700;
    line-height: normal;
    text-transform: none;
    margin-bottom: 0;
    letter-spacing: normal;
}

.sidebar-item p {
    align-self: stretch;
    color: #252423;
    font-family: 'Figtree', sans-serif;
    font-size: 1.275rem;
    /* Reduced 15% from 24px */
    font-weight: 400;
    line-height: 1.859375rem;
    /* Reduced 15% from 35px */
    margin: 0;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.328rem;
    /* Reduced 15% from 25px */
    width: 100%;
}

.btn-sidebar {
    display: flex;
    padding: 0.5rem 1.5rem;
    /* 8px 24px */
    justify-content: center;
    align-items: center;
    gap: 1rem;
    /* 16px */
    align-self: stretch;
    border-radius: 1.5rem;
    /* 24px */
    box-shadow: 0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.25);
    font-family: 'Figtree', sans-serif;
    font-size: 1.4rem;
    /* 22.4px */
    font-weight: 600;
    line-height: normal;
    letter-spacing: -0.042rem;
    text-decoration: none;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.btn-sidebar:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

.btn-sidebar svg {
    width: 1.2rem;
    /* 19.2px */
    height: 1.2rem;
    /* 19.2px */
}

.btn-sidebar.primary {
    background: var(--naranja-500, #EB5E28);
    color: var(--neutros-0, #FFF);
}

.btn-sidebar.secondary {
    border: 0.159375rem solid var(--naranja-500, #EB5E28);
    /* Reduced 15% from 3px */
    color: var(--naranja-500, #EB5E28);
    background: transparent;
}

.sidebar-disclaimer {
    align-self: stretch;
    color: #252423;
    font-family: 'Figtree', sans-serif;
    font-size: 1.0625rem;
    /* Reduced 15% from 20px */
    font-weight: 400;
    line-height: normal;
    text-align: left;
    font-style: normal;
}

.sidebar-disclaimer em {
    font-style: italic;
}

.hero-image-full {
    margin-top: 60px;
    width: 100%;
}

.hero-image-full img {
    width: 100%;
    display: block;
}

/* Problem Solution Section */
.ps-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    align-self: stretch;
}

.ps-problemas {
    display: flex;
    padding: 2.5rem 2.5rem 2.5rem max(5.3125rem, calc((100vw - 75rem) / 2));
    /* 40px 40px 40px max(85px, ...) */
    flex-direction: column;
    align-items: flex-start;
    gap: 1.875rem;
    /* 30px */
    flex: 1 0 0;
    align-self: stretch;
    background: var(--neutro-600, #363534);
}

.ps-problemas h2 {
    align-self: stretch;
    color: var(--brown-50, #EFEEEC);
    font-family: 'Figtree', sans-serif;
    font-size: 1.9125rem;
    /* Matches .section-subtitle (30.6px) */
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.ps-list-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    /* 10px */
    align-self: stretch;
    margin: 0;
    padding-left: 1.5rem;
}

.ps-problemas .ps-list-container {
    color: var(--brown-50, #EFEEEC);
}

.ps-list-item {
    align-self: stretch;
    font-family: 'Figtree', sans-serif;
    font-size: 1.275rem;
    /* Matches .section-p (20.4px) */
    font-weight: 400;
    line-height: 1.859rem;
    /* Matches .section-p (29.7px) */
    margin: 0;
}

.ps-list-item strong {
    font-weight: 700;
}

.ps-soluciones {
    display: flex;
    padding: 2.5rem max(5.3125rem, calc((100vw - 75rem) / 2)) 2.5rem 2.5rem;
    /* 40px max(85px, ...) 40px 40px */
    flex-direction: column;
    align-items: flex-start;
    gap: 1.875rem;
    /* 30px */
    flex: 1 0 0;
    align-self: stretch;
    background: var(--light-brown-200, #E5D9CB);
}

.ps-soluciones h2 {
    align-self: stretch;
    color: var(--brown-900, #27221A);
    font-family: 'Figtree', sans-serif;
    font-size: 1.9125rem;
    /* Matches .section-subtitle (30.6px) */
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.ps-soluciones .ps-list-container {
    color: var(--brown-900, #27221A);
}

/* Proceso Section */
.proceso-section {
    display: flex;
    padding: 6.25rem 0;
    /* 100px 0 */
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    /* 40px */
    align-self: stretch;
}

.proceso-section .section-title {
    margin-bottom: 0;
}

.proceso-container {
    display: flex;
    padding: 0;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    max-width: 75rem;
    /* 1200px */
    margin: 0 auto;
    width: 100%;
}

.proceso-item {
    display: flex;
    width: 13.75rem;
    /* 220px to match image width and maximize gaps */
    flex-direction: column;
    align-items: center;
    gap: 0.9375rem;
    /* 15px */
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.proceso-item:hover {
    transform: translateY(-5px);
}

.proceso-img {
    width: 13.75rem;
    /* 220px */
    height: 13.75rem;
    /* 220px */
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    filter: drop-shadow(0 0.1875rem 0.1875rem rgba(0, 0, 0, 0.25));
}

.proceso-title {
    align-self: stretch;
    color: var(--naranja-500, #EB5E28);
    text-align: center;
    font-family: 'Figtree', sans-serif;
    font-size: 1.5rem;
    /* 24px */
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

/* Detail Section */
.project-detail-section {
    padding: 0 0 6.25rem 0;
    scroll-margin-top: 9.375rem;
}

#testear {
    padding-top: 0 !important;
}

.grey-bg {
    background-color: #F8F5F2;
}

.detail-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 80px;
}

.detail-card {
    background: #FFF;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 140px;
}

.detail-card h3 {
    color: var(--naranja-500);
    font-size: 1.5rem;
    margin-bottom: 25px;
}

.detail-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.detail-card ul li {
    margin-bottom: 15px;
    color: #3B3B3B;
    font-weight: 600;
}

.btn-detail {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: var(--naranja-500);
    color: #FFF;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 700;
}

/* --- BLOOMSELF FLEX DETAIL SECTIONS --- */

.detail-section-flex {
    display: flex;
    padding: 2.5rem 0 3.75rem 0;
    /* 40px 0 60px 0 */
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    /* 40px */
    align-self: stretch;
    scroll-margin-top: 150px;
}

.detail-section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    /* 40px */
    align-self: stretch;
}

.section-separator {
    display: flex;
    padding: 0.625rem 9.375rem;
    /* 10px 150px */
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    /* 10px */
    align-self: stretch;
}

.separator-line {
    width: 100%;
    max-width: 71.25rem;
    /* 1140px */
    height: 1px;
    background: var(--light-brown-900, #53483C);
    margin: 0 auto;
}

.detail-body-container {
    display: flex;
    padding: 0;
    align-items: flex-start;
    gap: 2.5rem;
    /* 40px */
    align-self: stretch;
    width: 100%;
    max-width: 75rem;
    /* 1200px */
    margin: 0 auto;
}

.sticky-sidebar-card {
    display: flex;
    width: fit-content;
    min-width: 20rem;
    padding: 2.5rem 1.25rem;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    border-radius: 1.875rem;
    border: 0.0625rem solid var(--neutros-70, #A3A3A3);
    background: var(--neutros-0, #FFF);
    box-shadow: 0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.25);
    position: sticky;
    top: 100px;
    align-self: flex-start;
    margin-top: 0 !important;
}

.card-contents-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.625rem;
    /* 10px */
    width: 100%;
}

.card-contents-block h3 {
    color: #5E503F;
    font-family: 'Figtree', sans-serif !important;
    font-size: 1.9125rem !important;
    /* Matches .section-subtitle (30.6px) */
    font-weight: 700 !important;
    margin: 0 !important;
}

.card-contents-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0;
}

.card-contents-list li {
    color: #3B3B3B;
    /* Matches .section-p color */
    font-family: 'Figtree', sans-serif;
    font-size: 1.275rem;
    /* Matches .section-p (20.4px) */
    font-weight: 400;
    line-height: 1.859rem;
    /* Matches .section-p (29.7px) */
}

.detail-main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2.5rem;
    /* 40px */
    flex: 1 0 0;
}

.info-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5625rem;
    /* 25px */
    align-self: stretch;
}

.info-block h3 {
    align-self: stretch;
    color: #5E503F;
    font-family: 'Figtree', sans-serif !important;
    font-size: 1.9125rem !important;
    /* Matches .section-subtitle */
    font-weight: 700 !important;
    margin: 0 !important;
}

.info-block p {
    align-self: stretch;
    color: #3B3B3B;
    /* Matches .section-p */
    font-family: 'Figtree', sans-serif;
    font-size: 1.275rem;
    /* Matches .section-p */
    font-weight: 400;
    line-height: 1.859rem;
    /* Matches .section-p */
    margin: 0;
}

.info-block p strong {
    font-weight: 700;
}

.btn-orange-full {
    display: flex;
    padding: 10px 30px;
    justify-content: center;
    align-items: center;
    gap: 20px;
    align-self: stretch;
    border-radius: 30px;
    background: var(--naranja-500, #EB5E28);
    box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
    color: var(--neutros-0, #FFF);
    font-family: 'Figtree', sans-serif;
    font-size: 22.4px;
    /* Reduced 20% from 28px as per previous instructions */
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-orange-full:hover {
    background: #d44d1f;
}

.btn-orange-full svg {
    width: 24px;
    height: 24px;
}

.section-number {
    font-size: 3rem;
    font-weight: 800;
    color: #D5CCC2;
    display: block;
    margin-bottom: 40px;
}

.content-block {
    margin-bottom: 80px;
}

.content-block h3 {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #27221A;
}

.content-block p {
    font-size: 1.15rem;
    line-height: 1.7;
    color: #53483C;
}

/* Slideshow */
.slideshow {
    margin-top: 40px;
    width: 100%;
}

.slideshow-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    height: 400px;
    position: relative;
    overflow: hidden;
}

.slideshow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 410px;
    position: relative;
    overflow: hidden;
    padding: 20px 0;
}

.slide {
    flex: 0 0 auto;
    width: 500px;
    /* Base width */
    height: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    cursor: pointer;
    border-radius: 20px;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: auto;
}

.slide.prev,
.slide.next {
    transform: scale(0.8);
    filter: brightness(0.5);
    z-index: 1;
}

.slide.prev {
    margin-right: -150px;
    /* Half hidden overlap */
}

.slide.next {
    margin-left: -150px;
    /* Half hidden overlap */
}

.slide.active {
    transform: scale(1);
    filter: brightness(1);
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.slide:hover {
    filter: brightness(0.85);
}

.slide.active:hover {
    filter: brightness(0.9);
}

.slideshow-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
    margin-top: 30px;
}

.slide-arrow {
    background: none;
    border: none;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.slide-arrow:hover {
    transform: scale(1.1);
}

.slide-dots {
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #D5CCC2;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background-color: var(--naranja-500);
    transform: scale(1.2);
}

.benchmarking-image img,
.flujos-images img,
.prototipo-final-image img,
.mejoras-image img {
    width: 100%;
    max-width: 75rem;
    /* ~1200px */
    display: block;
    margin: 40px auto;
    border-radius: 15px;
}

.split-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.split-content.reverse {
    direction: rtl;
}

.split-content.reverse .text-part {
    direction: ltr;
}

.image-part img {
    width: 100%;
    max-width: 45rem;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 10px;
}

.close-lightbox {
    position: absolute;
    top: -40px;
    right: -40px;
    background: none;
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Mobile Bloomself */
@media (max-width: 900px) {
    .project-page .hero-container {
        flex-direction: column;
    }

    .project-sidebar {
        width: 100%;
        order: -1;
    }

    .bloomself-sidebar {
        width: 100%;
        /* order is handled via display: contents below */
    }

    .bloomself-info-section {
        padding: 2.5rem 1.25rem;
    }

    .bloomself-info-container {
        flex-direction: column;
        gap: 2.5rem;
    }

    .ps-section {
        flex-direction: column;
    }

    .ps-problemas,
    .ps-soluciones {
        padding: 2.5rem 1.25rem !important;
    }

    .ps-problemas h2,
    .ps-soluciones h2 {
        font-size: 1.9125rem !important;
    }

    .ps-list-item {
        font-size: 1.275rem !important;
        line-height: 1.859rem !important;
    }

    .proceso-container {
        flex-direction: column;
        padding: 0 1.25rem;
        gap: 2.5rem;
    }

    .bloomself-info-main,
    .bloomself-info-header {
        display: contents;
    }

    .breadcrumb-container {
        order: 1;
        width: 100%;
    }

    .breadcrumb-link {
        font-size: 1.275rem;
        /* Reduced 15% from 24px */
    }

    .category-subtitle {
        font-size: 1.38125rem;
        /* Reduced 15% from 26px */
    }

    .bloomself-logo-img {
        order: 2;
        width: 100%;
        height: auto;
    }

    .bloomself-sidebar {
        order: 3;
    }

    .context-box {
        order: 4;
        width: 100%;
    }

    .objectives-box {
        order: 5;
        width: 100%;
    }

    .hero-texts {
        grid-template-columns: 1fr;
    }

    .grid-2,
    .detail-grid,
    .split-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .detail-sidebar {
        order: 2;
    }

    .detail-card {
        position: static;
    }

    .proceso-steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 30px;
    }

    .step-circle {
        width: 150px;
        height: 150px;
    }

    .slide.active {
        width: 100%;
    }

    .slide.prev,
    .slide.next {
        display: none;
    }

    .slideshow-wrapper {
        height: auto;
    }
}

/* --- BLOOMSELF DEFINIR SECTION --- */

.definir-section {
    display: flex;
    padding-bottom: 2.5rem;
    /* 40px */
    flex-direction: column;
    align-items: center;
    gap: 2.5rem;
    /* 40px */
    align-self: stretch;
    scroll-margin-top: 150px;
}

.definir-body-container {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 5.625rem;
    /* 90px */
    align-self: stretch;
    width: 100%;
    max-width: 75rem;
    /* 1200px */
    margin: 0 auto;
}

/* Benchmarking Block */
.benchmarking-block {
    display: flex;
    min-height: 48.1875rem;
    /* 771px */
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.bm-top-container {
    display: flex;
    align-items: flex-start;
    gap: 2.125rem;
    /* 34px */
    align-self: stretch;
}

.bm-image {
    height: 25.0625rem;
    /* 401px */
    flex-shrink: 0;
    align-self: stretch;
    border-radius: 2.5rem;
    /* 40px */
    border: 0.0625rem solid var(--neutros-70, #A3A3A3);
    background-color: lightgray;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: filter 0.3s ease;
}

.bm-image:hover,
.up-image:hover,
.cjm-image:hover {
    filter: brightness(0.75);
}

/* User Persona Block */
.user-persona-block {
    display: flex;
    align-items: center;
    gap: 2.5rem;
    /* 40px */
    align-self: stretch;
}

.up-image {
    width: 45.125rem;
    /* 722px */
    height: 31.8227rem;
    /* 509.163px */
    border-radius: 2.79275rem;
    /* 44.684px */
    background-color: lightgray;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 0.294rem 0.294rem 0 rgba(0, 0, 0, 0.25);
    cursor: pointer;
    flex-shrink: 0;
    transition: filter 0.3s ease;
}

/* CJM Block */
.cjm-block {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
    gap: 2.5rem;
}

.cjm-image {
    width: 31.375rem;
    /* 502px */
    height: 47.5625rem;
    /* 761px */
    border-radius: 1.1165rem;
    /* 17.864px */
    background-color: lightgray;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    box-shadow: 0 0.154rem 0.154rem 0 rgba(0, 0, 0, 0.25);
    cursor: pointer;
    flex-shrink: 0;
    transition: filter 0.3s ease;
}

.cjm-text {
    display: flex;
    width: 42.4375rem;
    /* 679px */
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5625rem;
    /* 25px */
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    display: none;
    z-index: 10000;
    cursor: zoom-out;
    padding: 0;
    box-sizing: border-box;
}

.lightbox.active {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-y: auto;
}

.lightbox.zoomed-active {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden; /* Prevent horizontal scroll */
    padding: 20px 0;
}

.lightbox-content {
    width: 100%;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    pointer-events: none;
}

.lightbox.zoomed-active .lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.lightbox-content img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.7);
    user-select: none;
    -webkit-user-drag: none;
    touch-action: pinch-zoom;
    pointer-events: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: zoom-in;
    margin: auto;
    display: block;
}

.lightbox-content img.zoomed {
    max-width: 100%;
    max-height: none;
    width: auto;
    height: auto;
    cursor: zoom-out;
    margin: 0;
    display: block;
}

.close-lightbox {
    position: fixed;
    top: 40px;
    right: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 999999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
    pointer-events: auto !important;
}

.close-lightbox:hover {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.2);
}

.close-lightbox img {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

/* IDEAR Section Extra Styles */
.flujos-images-block {
    display: flex;
    align-items: stretch;
    gap: 30px;
    width: 100%;
    margin-top: 40px;
}

.flujos-spacer {
    min-width: 20rem;
    /* Matches .sticky-sidebar-card min-width */
    flex-shrink: 0;
}

.flujo-img-card {
    height: 400px;
    flex: 1;
    border-radius: 40px;
    border: 1px solid var(--neutro-70, #A7A6A6);
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    background-color: #f5f5f5;
}

.flujo-img-card:hover {
    filter: brightness(0.9);
}

.flujo-img-card img {
    width: 100%;
    height: 100%;
    min-width: 100%;
    min-height: 100%;
    object-fit: cover;
    display: block;
}

/* PROTOTIPAR EXTRA */
.prototipo-final-block {
    width: 100%;
    margin-top: 0;
    cursor: pointer;
}

@media (max-width: 900px) {
    .prototipo-final-block {
        height: auto;
        /* Replaced 638px fixed height */
        flex-shrink: 0;
        align-self: stretch;
        border-radius: 2.5rem;
        /* 40px */
        border: 0.0625rem solid var(--neutros-70, #A3A3A3);
        background-position: center;
        background-size: cover;
        background-repeat: no-repeat;
        box-shadow: 0 0.25rem 0.25rem 0 rgba(0, 0, 0, 0.25);
        cursor: pointer;
        transition: filter 0.3s ease;
    }
}

.prototipo-final-block:hover {
    filter: brightness(0.9);
}

.idear-mapas-container,
.prototipar-sistema-container,
.testear-main-container {
    width: 100%;
    max-width: 100vw;
    margin: 0 auto;
    /* overflow: hidden removed to allow sticky sidebar */
}

/* SECTION 5 - TESTEAR */
.testear-mejoras-container {
    display: flex;
    padding: 60px 85px; /* Matched padding with Section 4 */
    flex-direction: column;
    align-items: center;
    gap: 40px;
    align-self: stretch;
}

.testear-info-block {
    display: flex;
    width: 100%;
    max-width: 1252px;
    flex-direction: column;
    align-items: flex-start;
    gap: 25px;
}

.testear-info-block h3 {
    align-self: stretch;
    color: #5E503F;
    font-family: 'Figtree', sans-serif !important;
    font-size: 1.9125rem !important;
    /* Matches .section-subtitle */
    font-weight: 700 !important;
    margin: 0 !important;
}

.testear-info-block p {
    align-self: stretch;
    color: var(--light-brown-900, #53483C);
    font-family: 'Figtree', sans-serif;
    font-size: 24px;
    font-style: normal;
    font-weight: 400;
    line-height: 35px;
}

.mejoras-image-card {
    align-self: stretch;
    cursor: pointer;
    transition: filter 0.3s ease;
}

.mejoras-image-card:hover {
    filter: brightness(0.95);
}

.slideshow-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.slideshow-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 500px;
    width: 100%;
    position: relative;
    overflow: visible;
}

.slide {
    flex: 0 0 800px;
    /* Wider active slide */
    height: 100%;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border-radius: 30px;
    overflow: hidden;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide.prev,
.slide.next {
    transform: scale(0.8);
    filter: brightness(0.6);
    z-index: 1;
}

.slide.prev {
    margin-right: -300px;
    /* Overlap behind */
}

.slide.next {
    margin-left: -300px;
    /* Overlap behind */
}

.slide.active {
    transform: scale(1);
    filter: brightness(1);
    z-index: 2;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

/* Mobile Definir adjustments */
@media (max-width: 900px) {
    .flujos-images-block {
        flex-direction: column;
        gap: 20px;
    }

    .flujo-img-card {
        height: 250px;
        width: 100%;
    }

    .slide {
        flex: 0 0 90%;
    }

    .slide.prev,
    .slide.next {
        display: none;
        /* Hide side overlaps on mobile */
    }

    .slideshow-wrapper {
        height: 350px;
        overflow: hidden;
    }

    .definir-body-container {
        gap: 4rem;
        padding: 0 1.25rem;
    }

    .benchmarking-block {
        min-height: auto;
        gap: 2.5rem;
    }

    .bm-top-container {
        display: flex;
        flex-direction: column;
        gap: 2.5rem;
    }

    .bm-top-container .sticky-sidebar-card {
        order: -1;
    }

    .bm-image {
        height: 250px;
        background-size: cover;
    }

    .user-persona-block {
        flex-direction: column;
        gap: 2.5rem;
    }

    .up-image {
        width: 100%;
        height: 250px;
    }

    .cjm-block {
        flex-direction: column;
        gap: 2.5rem;
    }

    .cjm-image {
        width: 100%;
        height: 400px;
        order: 2;
    }

    .cjm-text {
        width: 100%;
        order: 1;
    }

    .detail-body-container {
        flex-direction: column !important;
        padding: 10px 20px !important;
        gap: 40px;
    }

    .detail-section-header {
        gap: 1rem;
    }

    .detail-section-flex {
        gap: 1.5rem;
        padding-top: 1.5rem;
    }

    .sticky-sidebar-card {
        width: 100%;
        min-width: unset;
        position: relative;
        top: 0;
        margin: 0 auto;
    }

    .info-block {
        width: 100% !important;
    }

    .testear-mejoras-container {
        padding: 10px 20px;
    }

    /* Proceso section mobile grid */
    .proceso-container {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
        justify-items: center;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 20px;
        overflow-x: hidden;
    }

    .proceso-item {
        width: 100%;
        max-width: 150px;
    }

    .proceso-img {
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        max-width: 100%;
    }

    .proceso-item:last-child {
        grid-column: 1 / -1;
    }
}

/* ============================================================
   Form Success Text (Contact Form)
   ============================================================ */
.form-success-text {
    align-self: stretch;
    color: var(--neutro-700, #252423);
    text-align: center;
    font-family: 'Figtree', sans-serif;
    font-size: 1.5rem; /* 24px */
    font-style: normal;
    font-weight: 400;
    line-height: 2.1875rem; /* 35px */
    margin-bottom: 1.25rem; /* 20px */
    opacity: 0;
    transition: opacity 0.5s ease;
    display: none;
    width: 100%;
}

.form-success-text.show {
    display: block;
    opacity: 1;
}

.form-success-text.fade-out {
    opacity: 0;
}