/* ======================================
   ESTUDIO ARQUITECTÓNICO PAGE
   ====================================== */

/* Hero - Estudio */
.estudio-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    text-align: center;
    overflow: hidden;
    background: var(--bg-dark);
}

.estudio-hero .hero-bg {
    position: absolute;
    inset: 0;
    background: url('../assets/images/estudio/hero-estudio.webp') center/cover no-repeat;
    z-index: 0;
}

.estudio-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(10, 10, 10, 0.88) 0%,
        rgba(10, 10, 10, 0.65) 50%,
        rgba(10, 10, 10, 0.92) 100%);
    z-index: 1;
    pointer-events: none;
}

.estudio-hero .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.estudio-hero .hero-subtitle {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    font-family: var(--font-secondary);
}

.estudio-hero .hero-title {
    font-family: var(--font-secondary);
    font-size: clamp(2.8rem, 7vw, 5.5rem);
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--white);
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 2.5rem;
    line-height: 1.1;
}

.estudio-hero .hero-cta {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ======================================
   SERVICIOS - CASCADING ZIGZAG
   ====================================== */

.estudio-servicios {
    padding: var(--spacing-xl) 0;
    background: var(--bg-dark);
    position: relative;
}

.servicios-cascade {
    max-width: 1000px;
    margin: 0 auto;
    margin-top: var(--spacing-lg);
    position: relative;
}

/* Central vertical line */
.servicios-cascade::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(33, 153, 213, 0.3) 5%,
        rgba(33, 153, 213, 0.3) 95%,
        transparent 100%
    );
    z-index: 0;
}

/* Individual step row */
.cascade-step {
    display: flex;
    align-items: center;
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.cascade-step.cascade-left {
    justify-content: flex-start;
    padding-right: calc(50% + 2rem);
    text-align: right;
}

.cascade-step.cascade-right {
    justify-content: flex-end;
    padding-left: calc(50% + 2rem);
    text-align: left;
}

/* Connector dot on the center line */
.cascade-step::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 3px solid var(--primary-color);
    z-index: 2;
    box-shadow: 0 0 12px rgba(33, 153, 213, 0.4);
    transition: all 0.3s ease;
}

.cascade-step:hover::after {
    background: var(--primary-color);
    box-shadow: 0 0 20px rgba(33, 153, 213, 0.6);
    transform: translate(-50%, -50%) scale(1.3);
}

.cascade-final::after {
    width: 18px;
    height: 18px;
    background: var(--primary-color);
    border-color: var(--primary-light);
    box-shadow: 0 0 16px rgba(33, 153, 213, 0.5);
}

/* Content block */
.cascade-content {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    background: var(--bg-card);
    border: 1px solid var(--medium-gray);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.cascade-content::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cascade-step:hover .cascade-content {
    transform: translateY(-4px);
    border-color: rgba(33, 153, 213, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4),
                0 0 20px rgba(33, 153, 213, 0.08);
}

.cascade-step:hover .cascade-content::before {
    opacity: 1;
}

/* Left alignment: number on right, text on left */
.cascade-left .cascade-content {
    flex-direction: row-reverse;
}

/* Number */
.cascade-number {
    font-family: var(--font-secondary);
    font-size: 2.5rem;
    font-weight: 700;
    color: rgba(33, 153, 213, 0.15);
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.cascade-step:hover .cascade-number {
    color: rgba(33, 153, 213, 0.35);
}

/* Text block */
.cascade-text h3 {
    font-family: var(--font-secondary);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 0.5rem;
    letter-spacing: 0.3px;
}

.cascade-text p {
    font-size: 0.92rem;
    color: var(--lighter-gray);
    line-height: 1.65;
    font-weight: 300;
}

/* Icon wrapper */
.cascade-icon-wrapper {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        rgba(33, 153, 213, 0.12),
        rgba(33, 153, 213, 0.04));
    border-radius: 14px;
    border: 1px solid rgba(33, 153, 213, 0.15);
    transition: all 0.3s ease;
}

.cascade-step:hover .cascade-icon-wrapper {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(33, 153, 213, 0.3);
}

.cascade-icon-wrapper svg {
    width: 30px;
    height: 30px;
    stroke: var(--primary-color);
    transition: stroke 0.3s ease;
}

.cascade-step:hover .cascade-icon-wrapper svg {
    stroke: var(--white);
}

/* Connector gaps between steps */
.cascade-connector {
    height: 3rem;
    position: relative;
    z-index: 0;
}

/* ======================================
   CTA / CASO REAL SECTION
   ====================================== */

.estudio-cta {
    padding: var(--spacing-xl) 0;
    background: var(--bg-section);
    overflow: hidden;
}

.cta-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.cta-text .section-tag {
    margin-bottom: 1.2rem;
}

.cta-text .cta-title {
    font-family: var(--font-secondary);
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.cta-text .cta-description {
    font-size: 1.1rem;
    color: var(--lighter-gray);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 2rem;
}

.cta-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--medium-gray);
    aspect-ratio: 16 / 10;
    background: var(--bg-card);
}

.cta-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.cta-image-wrapper:hover img {
    transform: scale(1.03);
}

.cta-image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(10, 10, 10, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.cta-image-label {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    z-index: 2;
    color: var(--white);
    font-family: var(--font-secondary);
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

/* ======================================
   RESPONSIVE
   ====================================== */

@media (max-width: 1024px) {
    .cascade-step.cascade-left,
    .cascade-step.cascade-right {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 768px) {
    /* Hero */
    .estudio-hero .hero-title {
        font-size: clamp(2.2rem, 9vw, 3.5rem);
    }

    .estudio-hero .hero-subtitle {
        letter-spacing: 4px;
        font-size: 0.85rem;
        margin-top: 3rem;
    }

    .estudio-hero .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }

    /* Cascade goes single column */
    .servicios-cascade::before {
        left: 24px;
    }

    .cascade-step {
        flex-direction: column !important;
        gap: 1rem;
    }

    .cascade-step.cascade-left,
    .cascade-step.cascade-right {
        padding-left: 60px;
        padding-right: 0;
        text-align: left;
        justify-content: flex-start;
    }

    .cascade-step::after {
        left: 24px;
        top: 30px;
        transform: translate(-50%, 0);
    }

    .cascade-step:hover::after {
        transform: translate(-50%, 0) scale(1.3);
    }

    .cascade-left .cascade-content {
        flex-direction: row;
    }

    .cascade-icon-wrapper {
        display: none;
    }

    .cascade-connector {
        height: 1.5rem;
    }

    /* CTA */
    .cta-wrapper {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .cta-image-wrapper {
        order: -1;
    }
}

@media (max-width: 480px) {
    .cascade-content {
        padding: 1.5rem 1.2rem;
    }

    .cascade-number {
        font-size: 2rem;
    }

    .estudio-hero .hero-title {
        font-size: clamp(1.8rem, 10vw, 3rem);
    }
}
