/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --screenwidth: 100%;
    --padding: clamp(1.25rem, 5vw, 5rem);
    --subtitulos: clamp(2rem, 4vw, 4.25rem);
    --subtitulos-2: clamp(1.75rem, 3.5vw, 3.5rem);
    --titulos-parrafos-gris: clamp(0.9375rem, 1.5625vw, 1.5625rem);
}

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #f4f4f4;
    color: #000;
    overflow-x: hidden;
}

a {
    text-decoration: none;
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

/* Hero Section */
.hero-section {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    width: 100%;
    position: relative;
    padding: 20px var(--padding) 0;
}

.hero-background {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.hero-background img {
    position: absolute;
    width: 95.3%;
    height: 187.09%;
    left: 6.36%;
    top: -59.64%;
    object-fit: cover;
}

.hero-text {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-text h1 {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: 90px;
    line-height: 1;
    color: #000;
    width: 940px;
}

.hero-image {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding-top: 30px;
}

.hero-image img {
    width: 280px;
    max-width: 100%;
}

/* Innovation Section */
.innovation-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.innovation-header {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 80px var(--padding) 50px;
    width: 100%;
}

.section-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: var(--subtitulos);
    line-height: 84px;
    color: #000;
    text-align: center;
    width: 100%;
    padding: 0 80px;
}

.section-description {
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: 34px;
    color: #000;
    text-align: center;
    width: 100%;
    padding: 0 80px;
}

/* Cards Grid */
.cards-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
    width: 100%;
}

.cards-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: stretch;
    justify-content: center;
    width: 1206px;
    margin: 0 auto;
    position: relative;
}

.path-card {
    background: white;
    width: 340px;
    border-radius: 27px;
    box-shadow: 4px 8px 7px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding: 15px 10px;
    align-items: center;
    justify-content: center;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.card-header {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 24px;
}

.card-title {
    font-family: 'Montserrat Alternates', sans-serif;
    font-weight: 900;
    font-size: 30px;
    line-height: 1.217;
    color: #000;
    text-align: center;
    width: 100%;
}

.card-subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: 18px;
    line-height: normal;
    color: #000;
    text-align: center;
    width: 100%;
}

.card-visual {
    width: 100%;
    height: 157px;
    position: relative;
    border-radius: 30px;
}

.card-visual-1 {
    background-image: url(../img/path/bg1.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.card-visual-2 {
    background-image: url(../img/path/bg2.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.card-visual-3 {
    background-image: url(../img/path/bg3.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.card-visual-4 {
    background-image: url(../img/path/bg2.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.card-visual-5 {
    background-image: url(../img/path/bg1.png);
    background-repeat: no-repeat;
    background-size: cover;
}

.card-gradient {
    width: 100%;
    height: 100%;
    border-radius: 30px;
    border: 1px solid #6a36e3;
    position: relative;
    overflow: hidden;
}

.gradient-blue {
    background: linear-gradient(to left, #6f36e3, #033be8);
}

.gradient-pink {
    background: linear-gradient(to left, #c52d84, #d83c55);
}

.gradient-yellow {
    background: linear-gradient(to left, #f59e0b, #eab308);
}

.curve-shape {
    position: absolute;
    width: 216.356px;
    height: 182.132px;
    left: 0;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.curve-shape img {
    width: 215.951px;
    height: 181.65px;
    transform: rotate(359.872deg) scaleY(-1);
}

.gradient-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 340px;
    height: 157px;
}

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

.card-person {
    position: absolute;
    z-index: 2;
}

.person-1 {
    width: 183px;
    height: 183px;
    left: 133.5px;
    top: -27px;
}

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

.person-2 {
width: 181.197px;
  height: 181.197px;
  left: 45%;
  bottom: -1px;
}

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

.person-3 {
width: 190px;
  height: 190px;
  left: 41%;
  bottom: 0;
}

.person-3 img {
width: 100%;
  object-fit: cover;
}

.person-4 {
    width: 192.565px;
    height: 183.498px;
    left: 141.57px;
    top: -26.5px;
}

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

.person-5 {
    width: 183.002px;
    height: 183.002px;
    left: 145.5px;
    top: -26.5px;
}

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

.card-description {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 90%;
    flex: 1;
}

.card-description p {
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 1.25vw, 1.25rem);
    line-height: normal;
    color: #000;
    text-align: center;
}

.btn-card {
    background-color: #0d8ce8;
    color: white;
    padding: clamp(0.5rem, 0.5725vw, 0.5725rem) clamp(1rem, 1.625vw, 1.625rem);
    border-radius: 1.43125rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: clamp(0.875rem, 1.093vw, 1.093rem);
    line-height: 1.25rem;
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.btn-card:hover {
    background-color: #4278c9;
}

/* Back Section */
.back-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 40px 0 80px;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 1440px) {
    .navbar,
    .main-content {
        width: 100%;
        max-width: 100%;
    }
    
    .cards-grid {
        width: 100%;
        padding: 0 20px;
    }

    .hero-text {
        padding: 141px 0 76px clamp(2rem, 12vw, 185px);
    }

    .hero-text h1 {
        font-size: clamp(3rem, 6.25vw, 90px);
        width: 100%;
        max-width: 940px;
    }

    .section-title,
    .section-description {
        padding: 0 clamp(2rem, 5vw, 80px);
    }
}

@media (max-width: 1024px) {
    :root {
        --padding: clamp(1.5rem, 3vw, 3rem);
        --subtitulos: clamp(2rem, 3.5vw, 3.5rem);
    }

    .navbar {
        min-height: 4.5rem;
    }

    .logo {
        width: clamp(9rem, 14vw, 14rem);
        height: clamp(2.5rem, 3.5vw, 3.5rem);
    }

    .nav-link {
        font-size: clamp(0.8rem, 1vw, 1rem);
    }

    .btn-primary {
        padding: 8px 20px;
        font-size: 15px;
    }

    .hero-section {
        background-position: center;
    }

    .hero-text {
        width: 70%;
        padding: clamp(3rem, 8vw, 100px) var(--padding);
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 5vw, 70px);
    }

    .hero-image {
        min-width: clamp(15rem, 30vw, 350px);
    }

    .innovation-header {
        gap: 2rem;
        padding: clamp(2rem, 5vw, 80px) var(--padding);
    }

    .section-title {
        font-size: clamp(2rem, 3.5vw, 56px);
        line-height: 1.2;
    }

    .section-description {
        font-size: clamp(1.25rem, 2vw, 26px);
        line-height: 1.3;
    }

    .cards-grid {
        width: 100%;
        max-width: 900px;
        gap: 20px;
    }

    .path-card {
        width: clamp(18rem, 45%, 45%);
        max-width: 100%;
        height: auto;
        min-height: 420px;
    }

    .card-content {
        width: 100%;
        max-width: 340px;
    }

    .card-title {
        font-size: clamp(1.75rem, 2.5vw, 32px);
    }

    .card-subtitle,
    .card-description p {
        font-size: clamp(1rem, 1.25vw, 16px);
    }

    .btn-card {
        width: 100%;
        max-width: 340px;
        font-size: 14px;
    }

}

@media (min-width: 820px) and (max-width: 1024px) {
    .cards-grid {
        justify-content: center;
    }

    .path-card {
        width: clamp(22rem, 45%, 45%);
        max-width: 45%;
    }
}

@media (max-width: 768px) {
    :root {
        --padding: clamp(1rem, 2.5vw, 2.5rem);
        --subtitulos: clamp(1.75rem, 3vw, 3rem);
        --subtitulos-2: clamp(1.5rem, 2.5vw, 2.5rem);
    }

    .navbar {
        min-height: 4rem;
    }

    .navbar-container {
        flex-direction: row;
        gap: 0.75rem;
        padding: 0.75rem;
    }

    .logo {
        width: clamp(8rem, 12vw, 12rem);
        height: clamp(2.5rem, 3vw, 3rem);
    }

    .nav-links {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        align-items: center;
        justify-content: center;
        width: 100%;
    }

    .nav-link {
        font-size: clamp(0.75rem, 0.9vw, 0.9rem);
    }

    .btn-primary {
        padding: 7px 18px;
        font-size: 14px;
    }

    .hero-section {
        flex-direction: column;
        background-position: center;
    }

    .hero-text {
        width: 100%;
        padding: clamp(2rem, 5vw, 60px) var(--padding) clamp(1rem, 3vw, 40px);
        text-align: center;
    }

    .hero-text h1 {
        font-size: clamp(2.5rem, 8vw, 60px);
        width: 100%;
    }

    .hero-image {
        width: 100%;
        min-width: 100%;
        height: auto;
        padding: 0 var(--padding);
    }

    .hero-image img {
        width: 180px;
    }

    .innovation-header {
        gap: clamp(2rem, 5vw, 60px);
        padding: clamp(2rem, 4vw, 60px) var(--padding);
    }

    .section-title {
        font-size: clamp(1.75rem, 4vw, 48px);
        line-height: 1.2;
        padding: 0;
    }

    .section-description {
        font-size: clamp(1.125rem, 2.5vw, 24px);
        line-height: 1.4;
        padding: 0;
    }

    .cards-grid {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0 var(--padding);
    }

    .path-card {
        width: 100%;
        max-width: 500px;
        min-width: auto;
    }

    .card-content {
        width: 90%;
    }

    .card-title {
        font-size: clamp(1.75rem, 4vw, 32px);
    }

    .card-subtitle {
        font-size: clamp(1rem, 2vw, 16px);
    }

    .card-visual {
        width: 100%;
        height: clamp(140px, 35vw, 157px);
    }

    .card-gradient {
        border-radius: clamp(20px, 5vw, 30px);
    }

    .gradient-overlay {
        width: 100%;
        height: 100%;
    }

    .card-description {
        width: 100%;
    }

    .card-description p {
        font-size: clamp(1rem, 2vw, 18px);
    }

    .btn-card {
        width: 90%;
        font-size: clamp(0.875rem, 2vw, 15px);
    }

    .back-section {
        padding: clamp(2rem, 5vw, 60px) 0 0;
    }

}

@media (min-width: 490px) and (max-width: 768px) {

    .path-card {
        width: 85%;
        max-width: 450px;
        min-height: 450px;
    }

}

@media (max-width: 480px) {
    :root {
        --padding: 1rem;
        --subtitulos: 1.75rem;
        --subtitulos-2: 1.5rem;
    }

    .navbar {
        min-height: 3.5rem;
    }

    .navbar-container {
        flex-direction: row;
        gap: 0.5rem;
        padding: 0.5rem;
    }

    .logo {
        width: 8rem;
        height: 2.5rem;
    }

    .nav-links {
        width: 100%;
        justify-content: center;
        align-items: center;
        gap: 0.5rem;
    }

    .nav-link {
        font-size: 0.75rem;
    }

    .btn-primary {
        padding: 6px 15px;
        font-size: 13px;
    }

    .hero-text {
        padding: 2rem 1rem 1rem;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .hero-image {
        padding: 0 1rem;
    }

    .innovation-header {
        gap: 2rem;
        padding: 2rem 1rem;
    }

    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .section-description {
        font-size: 1.125rem;
        line-height: 1.4;
    }

    .cards-grid {
        padding: 0 1rem;
    }

    .path-card {
        width: 100%;
        max-width: 100%;
        padding: 12px 8px;
    }

    .card-content {
        width: 95%;
    }

    .card-header {
        gap: 8px;
        margin-bottom: 16px;
    }

    .card-title {
        font-size: 1.75rem;
    }

    .card-subtitle {
        font-size: 1rem;
    }

    .card-visual {
        height: 140px;
        margin-bottom: 16px;
    }

    .card-gradient {
        border-radius: 20px;
    }

    .curve-shape {
        width: clamp(150px, 50vw, 200px);
        height: clamp(130px, 45vw, 170px);
    }

    .curve-shape img {
        width: 100%;
        height: 100%;
    }

    .person-1,
    .person-2,
    .person-3,
    .person-4,
    .person-5 {
        width: clamp(120px, 40vw, 160px);
        height: clamp(120px, 40vw, 160px);
    }

    .person-1 {
        left: 70%;
        top: 20%;
        transform: translate(-50%, -30%);
    }

    .person-2 {
        left: 78%;
        top: -19px;
        transform: translateX(-50%);
    }

    .person-3 {
        left: 70%;
        top: -10px;
        transform: translateX(-50%);
    }

    .person-4 {
        left: 70%;
        top: -18px;
        transform: translateX(-50%);
    }

    .person-5 {
        left: 70%;
        top: -20px;
        transform: translateX(-50%);
    }

    .card-description p {
        font-size: 1rem;
    }

    .btn-card {
        width: 95%;
        font-size: 0.875rem;
        padding: 8px 0;
    }

    .back-section {
        padding: 2rem 0 0;
    }
    
}
