/*
======================================================
1. IMPORTS & EXTERNAL FILES
======================================================
*/
@import url('style.css');
@import url('header.css');
@import url('footer.css');


/*
======================================================
2. REUSABLE/GLOBAL UTILITIES (Common Elements)
======================================================
*/

/* Icon Circle - Used in Concept, Whc, and Mobility sections */
.icon-circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--white);
    margin: 0 auto 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

/* Specific colors for icon circles */
.icon-circle.gris {
    background: #959595;
}

.icon-circle.rosa {
    background: var(--accent);
}

/* Common button style (Hero button) */
.btn-hero {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-hero);
    color: var(--white);
    font-weight: 700;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    transition: background 0.3s, color 0.3s;
    border: 2px solid transparent;
}

.btn-hero:hover {
    background: var(--white);
    color: var(--accent-hero);
    border-color: var(--accent-hero);
}

/*
======================================================
3. HERO SECTION (#hero)
======================================================
*/

#hero {
    background: var(--whc-bg);
    background-size: cover;
    color: var(--white);
    padding: 48px 32px;
    margin: 0;
}

.hero-container {
    max-width: 1200px;
    margin: 40px auto;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 60px;
    align-items: center;
}

/* HERO LEFT */
.hero-left h1 {
    font-family: 'Borna', sans-serif;
    font-size: 56px;
    line-height: 1.2;
    margin-bottom: 16px;
    color: inherit;
}

.hero-left h1 .highlight {
    color: var(--accent-hero);
    font-weight: 700;
}

.hero-left p {
    font-size: 17px;
    margin-bottom: 32px;
    color: inherit;
}

/* HERO RIGHT (Cards) */
.hero-right {
    margin-top: 40px;
    text-align: center;
}

.hero-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    justify-items: center;
}

.hero-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 24px;
    border-radius: 12px;
    text-align: center;
    width: 140px;
    transition: transform 0.2s ease;
    color: inherit;
}

.hero-card:hover {
    transform: translateY(-5px);
}

.hero-card .iconX {
    display: block;
    font-size: 24px;
    margin-bottom: 8px;
    color: inherit;
}


/*
======================================================
4. CONCEPTO SECTION (#concepto)
======================================================
*/

#concepto {
    background: var(--acc-bg-color);
    color: var(--acc-text-color);
    padding: 60px 20px;
}

.concepto-container {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

#concepto h2 {
    font-size: 42px;
    font-family: 'Borna', serif;
    color: #1f3a5f;
    margin-bottom: 40px;
    line-height: 1.2;
    color: var(--acc-text-color);
}

.concepto-text {
    text-align: left;
    margin-bottom: 56px;
}

.concepto-text p {
    margin-bottom: 16px;
    font-size: 17px;
    line-height: 1.7;
    color: var(--acc-text-color);
}

.concepto-text .destacado {
    font-weight: 700;
    color: #1f3a5f;
    color: var(--acc-link-color);
}

/* Diagrama comparativo */
.concepto-diagrama {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

.concepto-item {
    text-align: center;
    max-width: 220px;
    color: var(--acc-text-color);
}

.flecha {
    font-size: 32px;
    color: #1f3a5f;
    margin: 0 12px;
    color: var(--acc-text-color);
}


/*
======================================================
5. WISE HUMAN CITY SECTION (.whc-section)
======================================================
*/

.whc-section {
    background-color: var(--whc-bg);
    padding: 40px 20px;
    text-align: center;
    color: var(--white);
}

.whc-section .whc-inner {
    max-width: 900px;
    margin: 40px auto 20px;
    box-sizing: border-box;
}

.whc-section h2 {
    font-size: 48px;
    font-weight: 700;
    color: var(--white);
    font-family: 'Borna', sans-serif;
    margin: 0 0 32px;
    line-height: 1.05;
}

.whc-section p {
    font-size: 16px;
    color: var(--white);
    line-height: 1.6;
    max-width: 860px;
    margin: 0 auto 36px;
}

.whc-section h3 {
    font-size: 28px;
    color: var(--white);
    margin-top: 12px;
    margin-bottom: 16px;
}

/* Padding adjustment for consecutive sections */
.whc-section+.whc-section {
    padding-top: 10px;
}

/* Whc Cards Container */
.whc-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 20px;
    align-items: start;
    box-sizing: border-box;
    background-color: transparent;
}

/* Whc Card */
.value-card {
    background: var(--card-bg);
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
    min-width: 0;
    /* allows shrinking */
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    grid-column: auto;
    border: 1px solid transparent;
}

.value-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.value-card .icon-circle {
    background-color: var(--accent);
    color: var(--white);
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin: 0 auto 16px;
    /* Overrides the global .icon-circle box-shadow for a cleaner look, use the same one or none */
    box-shadow: none;
}

.value-card img.icon {
    display: block;
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.value-card img {
    max-width: 100%;
    height: auto;
    display: block;
}

.value-card h4 {
    font-size: 22px;
    font-weight: 700;
    font-family: 'Borna', sans-serif;
    margin-bottom: 12px;
    color: var(--white);
}

.value-card p {
    font-size: 15px;
    line-height: 1.5;
    font-family: 'Borna', sans-serif;
    color: var(--white);
    overflow-wrap: break-word;
}


/*
======================================================
6. MOBILITY SECTION (.mobility-section)
======================================================
*/

.mobility-section {
    background-color: var(--acc-bg-color);
    text-align: center;
    padding: 40px 20px;
    color: var(--acc-text-color);
}

.mobility-section .mobility-inner {
    max-width: 900px;
    margin: 40px auto 20px;
    box-sizing: border-box;
}

.mobility-section h2 {
    font-family: 'Borna', sans-serif;
    font-size: 48px;
    color: #1f3a5f;
    margin-bottom: 40px;
    color: var(--acc-text-color);
}

.mobility-section h3 {
    font-family: 'Borna', sans-serif;
    font-size: 28px;
    color: #1f3a5f;
    margin-bottom: 0px;
    color: var(--acc-text-color);
}

.mobility-section p {
    font-family: 'Borna', sans-serif;
    font-size: 16px;
    color: #1f3a5f;
    max-width: 800px;
    margin: 0 auto 40px;
    line-height: 1;
    color: var(--acc-text-color);
}

/* Padding adjustment for consecutive sections */
.mobility-section+.mobility-section {
    padding-top: 10px;
}

/* Mobility Cards Container */
.cards-container {
    background-color: transparent;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

/* Mobility Card */
.mob-card {
    background-color: var(--card);
    border-radius: 12px;
    text-align: center;
    padding: 30px 20px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid transparent;
}

.mob-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.mob-card .icon-circle {
    background-color: #ff6b8a;
    width: 60px;
    height: 60px;
    font-size: 28px;
    margin: 0 auto 16px;
    /* Overrides the global .icon-circle box-shadow */
    box-shadow: none;
    background-color: var(--accent);
}

.mob-card .icon {
    width: 40px;
    height: 40px;
}

.mob-card h4 {
    font-size: 22px;
    margin-bottom: 12px;
    font-weight: bold;
    color: #1f3a5f;
    color: var(--acc-text-color);
}

.mob-card p {
    font-size: 15px;
    line-height: 1.5;
    color: #333333;
    color: var(--acc-text-color);
}


/*
======================================================
7. PODCAST SECTION (.podcast-section)
======================================================
*/

.podcast-section {
    background-color: var(--whc-bg);
    color: var(--white);
    padding: 60px 30px;
}

.podcast-container {
    max-width: 1200px;
    margin: 0 auto;
}

.podcast-section h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 50px;
    font-weight: 700;
    line-height: 1.2;
    color: inherit;
}

.podcast-columns {
    display: flex;
    gap: 80px;
    justify-content: space-between;
    flex-wrap: wrap;
}

.podcast-left,
.podcast-right {
    flex: 1;
    min-width: 300px;
    color: inherit;
}

.podcast-left h3,
.podcast-right h3 {
    font-size: 24px;
    font-weight: 700;
    margin-top: 20px;
    color: inherit;
}

.podcast-left p,
.podcast-right p {
    font-size: 18px;
    margin: 10px 0 20px;
    line-height: 1.6;
    color: inherit;
}

.podcast-left ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.podcast-left ul li {
    font-size: 18px;
    margin: 10px 0;
    color: inherit;
}

.note {
    font-size: 16px;
    opacity: 0.8;
    margin-top: 15px;
    display: block;
    color: inherit;
}

.podcast-button {
    display: inline-block;
    background-color: var(--accent);
    color: var(--white);
    font-weight: 700;
    font-size: 18px;
    padding: 15px 30px;
    border-radius: 40px;
    text-decoration: none;
    margin-top: 20px;
    transition: background 0.3s ease, color 0.3s ease;
    border: 2px solid transparent;
}

.podcast-button:hover {
    background-color: var(--white);
    color: var(--accent);
    border-color: var(--accent);
}


/*
======================================================
8. CONTACT SECTION (#contact-section)
======================================================
*/

#contact-section {
    font-family: 'Borna', sans-serif;
    color: var(--acc-text-color);
    background: var(--acc-bg-color);
    padding: 60px 20px;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
}

#contact-section h2 {
    text-align: center;
    font-size: 48px;
    margin-bottom: 40px;
    font-weight: 700;
    color: #1f3a5f;
    line-height: 1.2;
    color: var(--acc-text-color);
}

.contact-section h3 {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin: 30px 0 20px;
    color: #1f3a5f;
    color: var(--acc-text-color);
}

.contact-section p {
    text-align: center;
    font-size: 16px;
    margin: 10px 0 20px;
    line-height: 1.6;
    color: #1f3a5f;
    color: var(--acc-text-color);
}

/* Columnas lado a lado */
.contact-column {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 40px;
    align-items: start;
    margin-top: 30px;
}

.contact-left {
    min-width: 300px;
    max-width: 500px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--acc-text-color);
}

.contact-left p {
    font-size: 18px;
    margin: 0 0 10px;
    line-height: 1.6;
    font-weight: 600;
    color: var(--acc-text-color);
}

/* Mapas */
.map-responsive {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
    margin: 0 auto;
    border: 1px solid var(--acc-text-color);
}

.map-responsive iframe {
    width: 100% !important;
    height: 100% !important;
    border: 0;
}


/*
======================================================
9. RESPONSIVENESS (Media Queries)
======================================================
*/

/* --- ACCESSIBILITY OVERRIDES FOR SECTIONS --- */

/* Apply High Contrast Overrides */
body.high-contrast #hero,
body.high-contrast .podcast-section {
    background: #000 !important;
    color: #fff !important;
}

body.high-contrast .hero-card,
body.high-contrast .value-card,
body.high-contrast .mob-card {
    background: #111 !important;
    border-color: #ffeb3b !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.2) !important;
}

body.high-contrast .hero-card:hover,
body.high-contrast .value-card:hover,
body.high-contrast .mob-card:hover {
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
}

body.high-contrast .btn-hero,
body.high-contrast .podcast-button {
    background: #ffeb3b;
    color: #000;
    border-color: #ffeb3b;
}

body.high-contrast .btn-hero:hover,
body.high-contrast .podcast-button:hover {
    background: #000;
    color: #ffeb3b;
    border-color: #ffeb3b;
}

body.high-contrast .icon-circle {
    background-color: #ffeb3b !important;
    color: #000 !important;
}

/* Apply White Text Mode Overrides */
body.white-text-mode #hero,
body.white-text-mode .podcast-section {
    background: #2A4A7A !important;
}

body.white-text-mode .hero-card,
body.white-text-mode .value-card,
body.white-text-mode .mob-card {
    background: #4A6A9A !important;
    border-color: #06b6d4 !important;
}

body.white-text-mode .btn-hero,
body.white-text-mode .podcast-button {
    background: #06b6d4;
    color: #fff;
    border-color: #06b6d4;
}

body.white-text-mode .btn-hero:hover,
body.white-text-mode .podcast-button:hover {
    background: #2A4A7A;
    color: #06b6d4;
    border-color: #06b6d4;
}

body.white-text-mode .icon-circle {
    background-color: #ff6b8a !important;
    color: #fff !important;
}

/* --- Tablets (max-width: 1024px) --- */
@media (max-width: 1024px) {

    /* HERO */
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        margin-top: 40px;
    }

    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
    }

    .hero-left h1 {
        font-size: 42px;
    }

    .hero-left p {
        font-size: 16px;
    }

    .hero-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }

    /* CONCEPTO */
    #concepto h2 {
        font-size: 36px;
    }

    .concepto-text p {
        font-size: 16px;
    }

    .concepto-diagrama {
        gap: 24px;
    }

    .icon-circle {
        width: 64px;
        height: 64px;
        font-size: 32px;
    }

    /* WHC */
    .whc-section h2 {
        font-size: 36px;
    }

    .whc-section p {
        font-size: 15px;
    }

    .value-card {
        padding: 30px 16px;
    }

    .whc-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    /* MOBILITY */
    .mobility-section h2 {
        font-size: 36px;
    }

    .mobility-section p {
        font-size: 15px;
    }

    /* PODCAST */
    .podcast-section h2 {
        font-size: 40px;
    }

    .podcast-columns {
        gap: 50px;
    }

    .podcast-left p,
    .podcast-right p,
    .podcast-left ul li {
        font-size: 17px;
    }

    /* CONTACT */
    #contact-section h2 {
        font-size: 40px;
    }

    .contact-column {
        gap: 30px;
    }

    .map-responsive {
        height: 260px;
    }
}

/* --- Vertical Tablets (max-width: 768px) --- */
@media (max-width: 768px) {

    /* HERO */
    .hero-left {
        order: 1;
    }

    .hero-right {
        order: 2;
    }

    .hero-container {
        margin-top: 160px;
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }

    .hero-left h1 {
        font-size: 32px;
    }

    .hero-left p {
        font-size: 15px;
        margin-bottom: 24px;
    }

    .btn-hero {
        padding: 12px 24px;
        font-size: 14px;
    }

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

    /* CONCEPTO */
    #concepto h2 {
        font-size: 32px;
    }

    .concepto-text {
        margin-bottom: 40px;
    }

    .concepto-text p {
        font-size: 15px;
    }

    .concepto-diagrama {
        flex-direction: column;
        gap: 20px;
    }

    .flecha {
        transform: rotate(90deg);
        margin: 8px 0;
    }

    /* WHC */
    .whc-section h2 {
        font-size: 32px;
    }

    .whc-section h3 {
        font-size: 22px;
    }

    .whc-section p {
        font-size: 15px;
    }

    .value-card {
        padding: 25px 12px;
    }

    .whc-container {
        grid-template-columns: 1fr;
    }

    .whc-section .whc-inner {
        padding: 0 12px;
    }

    /* MOBILITY */
    .mobility-section h2 {
        font-size: 32px;
    }

    .mobility-section h3 {
        font-size: 22px;
    }

    .mobility-section p {
        font-size: 15px;
    }

    .mob-card {
        padding: 25px 12px;
    }

    /* PODCAST */
    .podcast-columns {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .podcast-left,
    .podcast-right {
        min-width: 100%;
    }

    .podcast-section h2 {
        font-size: 32px;
    }

    .podcast-left h3,
    .podcast-right h3 {
        font-size: 22px;
    }

    .podcast-left p,
    .podcast-right p,
    .podcast-left ul li {
        font-size: 16px;
    }

    .podcast-left ul {
        text-align: left;
        display: inline-block;
    }

    /* CONTACT */
    .contact-column {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .contact-left {
        max-width: 100%;
    }

    #contact-section h2 {
        font-size: 32px;
        margin-bottom: 25px;
    }

    .contact-section h3 {
        font-size: 22px;
    }

    .map-responsive {
        height: 240px;
    }
}

/* --- Small Mobiles (max-width: 480px) --- */
@media (max-width: 480px) {

    /* HERO */
    .hero-left h1 {
        font-size: 26px;
        line-height: 1.3;
    }

    .hero-card {
        width: 100%;
        max-width: 220px;
    }

    .btn-hero {
        width: 100%;
        justify-content: center;
    }

    /* CONCEPTO */
    #concepto {
        padding: 40px 16px;
    }

    #concepto h2 {
        font-size: 26px;
    }

    .concepto-text p {
        font-size: 14px;
        line-height: 1.6;
    }

    .concepto-item {
        max-width: 180px;
    }

    .icon-circle {
        width: 56px;
        height: 56px;
        font-size: 28px;
    }

    .flecha {
        font-size: 24px;
    }

    /* WHC */
    .whc-section h2 {
        font-size: 26px;
    }

    .value-card h4 {
        font-size: 20px;
    }

    .value-card p {
        font-size: 14px;
    }

    /* MOBILITY */
    .mobility-section {
        font-size: 26px;
        padding: 40px 16px;
    }

    .mob-card {
        padding: 20px;
    }

    .mob-card h4 {
        font-size: 20px;
    }

    .mob-card p {
        font-size: 14px;
    }

    /* PODCAST */
    .podcast-section {
        padding: 40px 16px;
    }

    .podcast-section h2 {
        font-size: 26px;
        margin-bottom: 30px;
    }

    .podcast-left h3,
    .podcast-right h3 {
        font-size: 20px;
    }

    .podcast-left p,
    .podcast-right p,
    .podcast-left ul li {
        font-size: 15px;
    }

    .podcast-button {
        font-size: 16px;
        padding: 12px 24px;
    }

    /* CONTACT */
    #contact-section {
        padding: 40px 16px;
    }

    #contact-section h2 {
        font-size: 26px;
        margin-bottom: 20px;
    }

    .contact-section h3 {
        font-size: 20px;
    }

    .contact-section p {
        font-size: 14px;
    }

    .map-responsive {
        height: 200px;
    }
}