/* Steps Grid Styles */

/* CSS Variables */
:root {
    --primary-orange: var(--orange-front);
    --primary-teal: var(--green-front);
}

.steps-grid {
    margin: 0 auto;
    padding: 3rem 0;
}

/* Hero Section Styles */
.steps-grid .hero-section {
    text-align: center;
    position: relative;
}

.steps-grid .hero-title {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.steps-grid .hero-title .teal {
    color: var(--primary-teal);
}

.steps-grid .hero-title .orange {
    color: var(--primary-orange);
}

.steps-grid .hero-subtitle {
    font-size: 1.25rem;
    font-weight: 500;
    margin-bottom: 2rem;
    color: #221F20;
}

.steps-grid .hero-description {
    font-size: 1.1125rem;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #595757FC;
}

/* First Row Grid */
.steps-row-1 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 1rem;
}

/* Second Row Grid */
.steps-row-2 {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* Step Card */
.step-card {
    background: #FFFFFF;
    border-radius: 1.5rem;
    padding: 2rem;
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.step-card:hover {
    transform: translateY(-4px);
    box-shadow: 0px 8px 24px rgba(0, 0, 0, 0.08);
}

/* Step Image */
.step-image {
    width: 100%;
    height: 200px;
    border-radius: 1rem;
    overflow: hidden;
    background: #F8F9FA;
    position: relative;
    margin-bottom: 1.5rem;
}

.step-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.step-card:hover .step-image img {
    transform: scale(1.05);
}

/* Step Content */
.step-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #2C3E50;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.step-description {
    color: #7F8C8D;
    font-size: 1rem;
    line-height: 1.6;
}

/* CTA Button Section */
.steps-grid .cta-button-container {
    text-align: center;
    margin-top: 40px;
}

.steps-grid .cta-button {
    width: 270px;
    margin: auto;
    display: inline-block;
    background-color: var(--primary-orange);
    color: white;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 28px;
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.5;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    min-width: 270px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.steps-grid .cta-button:hover {
    background-color: #e65a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 0, 0.4);
}

.steps-grid .cta-button:focus {
    outline: 2px solid var(--primary-orange);
    outline-offset: 2px;
}

.steps-grid .cta-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 0, 0.3);
}

/* Responsive Design */
@media (min-width: 768px) {
    .steps-row-1 {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1rem;
    }

    .steps-row-2 {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
}

@media (min-width: 1024px) {
    .steps-row-1 {
        grid-template-columns: 24% 34% 40%;
        gap: 1rem;
    }

    .steps-row-2 {
        grid-template-columns: 39% 60%;
        gap: 1rem;
    }
}

@media (min-width: 1920px) {
    .steps-grid {
        width: 100%;
    }
}

/* Responsive Design for Hero Section */
@media (max-width: 768px) {
    .steps-grid .hero-title {
        font-size: 2rem;
    }

    .steps-grid .hero-subtitle {
        font-size: 1.125rem;
    }

    .step-description {
        font-size: 1.125rem;
    }
}

@media (max-width: 575px) {
    .steps-grid .hero-subtitle {
        font-size: 1rem;
    }

    .steps-grid .hero-section {
        padding: 0 !important;
    }
}

/* Responsive Design for CTA Button */
@media (max-width: 768px) {
    .steps-grid .cta-button {
        width: 100%;
        max-width: 270px;
        min-width: auto;
    }
}

/* Accesibilidad */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Focus States */
.step-card:focus-within {
    outline: 2px solid var(--orange-front);
    outline-offset: 2px;
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .step-title {
        color: #000000;
    }

    .step-description {
        color: #333333;
    }

    .step-card {
        background: #FFFFFF;
        border: 1px solid #000000;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {

    .step-card,
    .step-image img {
        transition: none;
    }
}