/* ========================================================================
   Global Section & Component Styles (Mobile First)
   ======================================================================== */

/* Revamped Metodo section styling */
.Metodo {
    background-color: var(--default-site-bg);
    position: relative;
    padding-top: 150px;
    padding-bottom: 80px;
    overflow: hidden;
    color: var(--default-text-color);
}

.Metodo-arch {
    position: absolute;
    top: -350px;
    left: 50%;
    transform: translateX(-50%);
    width: 200%;
    height: 480px;
    background-color: var(--orange-bg);
    border-radius: 50%;
    z-index: 1;
}

.Metodo .container {
    position: relative;
    z-index: 2;
}

.Metodo-title-large {
    font-family: 'Barlow', sans-serif;
    font-size: 1.8rem;
    line-height: 1.2;
    color: var(--default-text-color);
    text-transform: uppercase;
    text-align: center;
    margin: 0 0 2rem 0;
}

.Metodo-right-content {
    text-align: center;
    margin-top: 2rem;
}

.Metodo-subtitle-bold {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 1.4rem;
    line-height: 1.2;
    color: var(--default-text-color);
    margin-bottom: 1.5rem;
}

.Metodo-body-text {
    font-family: 'Barlow', sans-serif;
    font-size: 1.2rem;
    line-height: 1.4;
    color: var(--default-text-color);
}

.pillow-img {
    max-width: 150px;
    height: auto;
    margin: 20px 0;
}

.btn-metodo-outlined {
    border: 2px solid var(--orange-bg) !important;
    color: var(--orange-bg) !important;
    background: #fffaf2 !important;
    padding: 0.8rem 2rem !important;
    border-radius: 3rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 1.1rem !important;
    transition: all 0.3s ease !important;
    display: inline-block;
    text-decoration: none;
}

.btn-metodo-outlined:hover {
    background: var(--orange-bg) !important;
    color: #fffaf2 !important;
}

/* Enhanced phase cards */
.phase-card {
    background: linear-gradient(145deg, #fff 0%, #fffaf2 100%);
    border: none;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.phase-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ec533e 0%, #EE5340 50%, #53803b 100%);
}

.phase-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.phase-card .card-body {
    padding: 1.5rem;
}

.phase-number {
    background: linear-gradient(135deg, #ec533e, #EE5340);
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.phase-title {
    color: #ec533e;
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.phase-subtitle {
    color: #53803b;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1.5rem;
}

/* Enhanced pillars section */
.pillars-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #fffaf2 100%);
    position: relative;
}

.pillars-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #ec533e 0%, #EE5340 50%, #53803b 100%);
}

.pillar-card {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border-left: 4px solid #ec533e;
}

.pillar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.pillar-title {
    color: #ec533e;
    font-weight: 700;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Updated CTA section */
.cta-section {
    background-color: var(--green-bg);
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.cta-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    color: white;
    text-transform: uppercase;
    margin-bottom: 3rem;
    letter-spacing: 1.5px;
    text-align: center;
}

.cta-text-container {
    max-width: 950px;
    margin: 0 auto;
    text-align: center;
}

.cta-paragraph {
    color: white;
    font-family: 'Barlow', sans-serif;
    font-size: 1.2rem;
    line-height: 1.4;
    margin-bottom: 2.2rem;
}

.btn-cta-outline {
    border: 2.5px solid white !important;
    color: white !important;
    background: transparent !important;
    padding: 1.2rem 3.5rem !important;
    border-radius: 3.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    font-size: 1.2rem !important;
    text-decoration: none !important;
    display: inline-block;
    transition: all 0.3s ease !important;
    margin-top: 1.5rem;
}

.btn-cta-outline:hover {
    background: white !important;
    color: var(--green-bg) !important;
    text-decoration: none !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Enhanced buttons */
.btn-metodo {
    background: linear-gradient(135deg, #ec533e, #EE5340);
    border: none;
    color: white;
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(236, 83, 62, 0.3);
}

.btn-metodo:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 83, 62, 0.4);
    color: white;
}

.btn-outline-metodo {
    border: 2px solid #ec533e;
    color: #ec533e;
    background: transparent;
    padding: 1rem 2rem;
    border-radius: 3rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-outline-metodo:hover {
    background: #ec533e;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(236, 83, 62, 0.3);
}

/* Pillars Section Image Reference Styles */
.pillars-header {
    background-color: #53803b;
    padding: 40px 0;
    text-align: center;
}

.pillars-header h2 {
    color: #ffca5d;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 2.5rem;
    text-transform: uppercase;
    margin: 0;
    letter-spacing: 2px;
}

.pillars-content {
    background-color: #fffaf2;
    padding: 100px 0 140px;
}

.pillar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 30px;
    margin-bottom: 40px;
}

.pillar-icon {
    flex-shrink: 0;
    width: 180px;
    height: auto;
}

.pillar-text-content {
    flex-grow: 1;
}

.pillar-item-title {
    color: #ec533e;
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.pillar-description {
    font-family: 'Barlow', sans-serif;
    font-size: 1.15rem;
    line-height: 1.5;
    color: #401711;
}

.pillar-description strong {
    font-weight: 700;
}

.btn-pillars-outline {
    border: 2px solid #ec533e;
    color: #ec533e;
    background: transparent;
    padding: 0.6rem 1.8rem;
    border-radius: 2rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.btn-pillars-outline:hover {
    background: #ec533e;
    color: #fffaf2;
    text-decoration: none;
}

.gamification-container {
    position: relative;
    padding-right: 0;
    text-align: center;
}

.gamification-char {
    width: 200px;
    position: static;
    margin-top: 30px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.pillar-item-vertical {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.pillar-icon-large {
    width: 200px;
    height: auto;
}

/* Quattro Step Section Styling */
.quattro-step {
    background-color: var(--default-site-bg);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.step-section-title {
    font-family: 'Barlow', sans-serif;
    font-weight: 700;
    color: var(--orange-bg);
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 60px;
    text-align: center;
}

.step-card {
    aspect-ratio: 1 / 1.4;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    cursor: pointer;
    text-decoration: none;
    padding: 15px;
    text-align: center;
}

.step-card span {
    font-size: 1.5rem;
    font-weight: 800;
    color: white;
    font-family: 'Barlow', sans-serif;
    line-height: 1.1;
    text-transform: uppercase;
    word-spacing: 100vw;
}

.step-1 {
    background-color: #53803b;
    transform: rotate(-6deg);
}

.step-2 {
    background-color: #ec533e;
    transform: rotate(4deg);
}

.step-3 {
    background-color: #ffca5d;
    transform: rotate(-3deg);
}

.step-4 {
    background-color: #ec533e;
    transform: rotate(5deg);
}

.step-card:hover {
    transform: scale(1.05) rotate(0deg) translateY(-10px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

/* Modal / Overlay Styles */
.step-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 250, 242, 0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.step-overlay.active {
    display: flex;
    opacity: 1;
}

.overlay-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    overflow-y: auto;
    max-height: 90vh;
    padding-top: 40px;
    max-width: 500px;
    width: 100%;
    align-items: center;
    position: relative;
}

.overlay-card {
    width: 200px;
    flex-shrink: 0;
    aspect-ratio: 1 / 1.3;
    border-radius: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.overlay-card span {
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    font-family: 'Barlow', sans-serif;
    line-height: 1.1;
    text-transform: uppercase;
    text-align: center;
}

.overlay-content {
    flex: 1 0 auto;
    border-radius: 20px;
    padding: 40px 25px 30px;
    color: white;
    position: relative;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.overlay-close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 2.2rem;
    color: white;
    cursor: pointer;
    font-weight: 700;
    line-height: 1;
    z-index: 10;
}

.overlay-content h4 {
    font-weight: 700;
    margin-bottom: 20px;
    font-size: 1.15rem;
    line-height: 1.3;
}

.overlay-content p {
    font-size: 1rem;
    line-height: 1.4;
    margin-bottom: 15px;
}

.overlay-content ul {
    list-style: none;
    padding: 0;
    margin-bottom: 25px;
}

.overlay-content ul li {
    position: relative;
    padding-left: 20px;
    margin-bottom: 8px;
    font-size: 1rem;
}

.overlay-content ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: white;
}

.overlay-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.duration-text {
    font-size: 1rem;
    opacity: 0.9;
    font-style: italic;
}

.next-step-btn {
    background: transparent;
    border: 2px solid white;
    color: white;
    padding: 8px 25px;
    border-radius: 25px;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.next-step-btn:hover {
    background: white;
    color: inherit;
}

/* Specific colors for overlays */
.overlay-green .overlay-card,
.overlay-green .overlay-content {
    background-color: #53803b;
}

.overlay-green .next-step-btn:hover {
    color: #53803b;
}

.overlay-red .overlay-card,
.overlay-red .overlay-content {
    background-color: #ec533e;
}

.overlay-red .next-step-btn:hover {
    color: #ec533e;
}

.overlay-yellow .overlay-card,
.overlay-yellow .overlay-content {
    background-color: #ffca5d;
}

.overlay-yellow .next-step-btn:hover {
    color: #ffca5d;
}

/* ========================================================================
   Desktop Overrides (min-width: 768px)
   ======================================================================== */
@media (min-width: 768px) {
    .Metodo {
        padding-top: 180px;
    }

    .Metodo-arch {
        top: -450px;
        width: 150%;
        height: 600px;
    }

    .Metodo-title-large {
        font-size: 2.5rem;
        text-align: left;
        margin-bottom: 0;
    }

    .Metodo-right-content {
        text-align: left;
        margin-top: 0;
    }

    .pillow-img {
        max-width: 200px;
    }

    .phase-card .card-body {
        padding: 2rem;
    }

    .pillar-card {
        padding: 2rem;
    }

    .cta-title {
        font-size: 3rem;
    }

    .cta-paragraph {
        font-size: 1.4rem;
    }

    .pillar-item {
        flex-direction: row;
        text-align: left;
    }

    .gamification-container {
        padding-right: 100px;
        text-align: left;
    }

    .gamification-char {
        position: absolute;
        bottom: -100px;
        right: -20px;
        margin-top: 0;
    }

    .pillar-item-vertical {
        align-items: flex-start;
        text-align: left;
    }

    .step-section-title {
        font-size: 3rem;
        text-align: left;
    }

    .step-card span {
        font-size: 2.2rem;
    }

    .overlay-container {
        flex-direction: row;
        gap: 40px;
        overflow-y: visible;
        max-height: none;
        padding-top: 0;
        max-width: 90vw;
        box-sizing: border-box;
    }

    .overlay-card {
        width: 300px;
        min-width: 200px;
        flex-shrink: 0;
    }

    .overlay-card span {
        font-size: 3.5rem;
    }

    .overlay-content {
        min-width: 0;
        flex: 1;
        padding: 40px;
    }
}