/* Estilos generales */
html {
    scroll-behavior: smooth;
    box-sizing: border-box; 
    overflow-x: hidden; 
}

*, *::before, *::after { 
    box-sizing: inherit;
}

body {
    font-family: 'Raleway', sans-serif;
    font-weight: 400;
    color: #333;
    margin: 0;
    padding: 0;
    background: linear-gradient(60deg, #e4e7eb, #ced4da, #adb5bd, #6c757d, #495057, #343a40);
    background-size: 300% 300%;
    animation: color-animation-body 45s ease infinite;
    min-height: 100vh;
    line-height: 1.8;
    font-size: 16px;
    overflow-x: hidden; 
}
body.sidebar-mobile-open {
    overflow-y: hidden;
}


/* Keyframes animación para el body */
@keyframes color-animation-body {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Variables de Sidebar y Colores */
:root {
    --sidebar-width-collapsed: 75px;
    --sidebar-width-expanded: 320px;
    --sidebar-transition-duration: 0.45s;
    
    --primary-color: #1A936F;  
    --secondary-color: #118AB2;
    --accent-color: #FFD166;  
    --neutral-dark: #073B4C;  
    --neutral-medium: #6c757d;
    --neutral-light: #f8f9fa;  

    --text-color-light: var(--neutral-light);
    --text-color-dark: var(--neutral-dark);
    --card-bg: #ffffff;
    --hero-animation-speed: 25s;
}

/* --- Sidebar --- */
.sidebar {
    height: 100%;
    width: var(--sidebar-width-collapsed);
    position: fixed;
    z-index: 1000; 
    top: 0;
    left: 0;
    background-color: #263238;
    overflow-x: hidden;
    overflow-y: auto;
    transition: width var(--sidebar-transition-duration) cubic-bezier(0.68, -0.55, 0.27, 1.55);
    padding-top: 70px;
    box-shadow: 5px 0 15px rgba(0,0,0,0.4);
}

.sidebar a {
    padding: 10px 0; 
    text-decoration: none;
    font-size: 0.88rem;
    color: #b0bec5;
    display: flex;
    align-items: center;
    transition: color 0.3s, background-color 0.3s, padding-left 0.3s;
    white-space: nowrap;
    text-align: left;
    font-family: 'Raleway', sans-serif;
    font-weight: 500;
    overflow: hidden;
}
.sidebar a i {
    min-width: var(--sidebar-width-collapsed);
    text-align: center;
    font-size: 1.2rem;
    color: #78909c;
    transition: color 0.3s, transform 0.3s;
    margin-right: 0;
}
.sidebar a:hover i {
    color: var(--accent-color);
    transform: scale(1.1);
}
.sidebar a span {
    margin-left: 12px; 
    display: inline-block;
    opacity: 0;
    transition: opacity 0.2s ease-out 0.15s;
    font-weight: 500;
}
body:not(.sidebar-open) .sidebar a span {
    display: none;
}


/* --- Botones Sidebar --- */
.openbtn {
    font-size: 1.6rem;
    cursor: pointer;
    background-color: rgba(38, 50, 56, 0.75);
    color: var(--neutral-light);
    padding: 0.5rem 0.8rem;
    border: 1px solid rgba(207, 216, 220, 0.4);
    position: fixed;
    top: 18px;
    left: 18px;
    z-index: 1001; 
    border-radius: 8px;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(8px);
}

.openbtn:hover {
    color: #fff;
    background-color: var(--primary-color);
    border-color: rgba(255, 255, 255, 0.7);
    transform: rotate(180deg) scale(1.1);
}

.sidebar .closebtn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2rem;
    color: #b0bec5;
    text-decoration: none;
    cursor: pointer;
    display: none;
    padding: 0.3rem;
    transition: color 0.3s, transform 0.3s;
    z-index: 1002; 
}
.sidebar .closebtn:hover {
    color: var(--accent-color);
    transform: scale(1.15) rotate(90deg);
}

/* Estilos para el Overlay del Sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 999; 
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease-in-out, visibility 0s 0.3s linear; 
}

body.sidebar-open .sidebar-overlay {
    opacity: 1;
    visibility: visible;
    transition-delay: 0s;
}


/* --- Contenido Principal --- */
#mainContent {
    transition: margin-left var(--sidebar-transition-duration) cubic-bezier(0.68, -0.55, 0.27, 1.55);
    padding: 0 0 5rem 0;
    background-color: transparent;
    margin-left: var(--sidebar-width-collapsed);
    position: relative;
    z-index: 1;
}

/* --- Sección Hero (#inicio) --- */
.hero-section {
    min-height: 100vh;
    background: linear-gradient(135deg, #1f6346, #28b485, #80d9b0, #2980b9, #1e6091, #16a085, #1f6346);
    background-size: 350% 350%;
    animation: color-animation-hero var(--hero-animation-speed) ease infinite alternate;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 3rem 1.5rem;
    margin-bottom: 0;
    position: relative;
    overflow: hidden; 
    z-index: 1;
    -webkit-mask-image: linear-gradient(to bottom, black 68%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 68%, transparent 100%);
}

@keyframes color-animation-hero {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}


.hero-content {
    max-width: 1100px;
    width: 100%; 
    padding: 0 1rem;
    position: relative;
    z-index: 2;
    animation: fade-in 1.8s cubic-bezier(0.23, 1, 0.32, 1) 0.5s forwards;
    opacity: 0;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 12vw, 8rem);
    margin-bottom: 1.2rem;
    font-weight: 900;
    letter-spacing: 0.15rem;
    color: var(--text-color-light);
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.45);
    word-break: break-word; 
}

.hero-section p {
    font-family: 'Raleway', sans-serif;
    font-size: clamp(1.2rem, 5vw, 2.2rem);
    font-weight: 400;
    line-height: 1.5;
    margin-top: 0;
    margin-bottom: 2.5rem;
    color: rgba(236, 240, 241, 0.9);
    text-shadow: 0 3px 10px rgba(0, 0, 0, 0.5);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    overflow-wrap: break-word; 
    word-break: break-word; 
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}

.hero-cta-button {
    display: inline-block;
    padding: 0.9rem 2.2rem;
    background-color: var(--accent-color);
    color: var(--neutral-dark);
    font-family: 'Raleway', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 50px;
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 20px rgba(0,0,0,0.20);
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.hero-cta-button:hover {
    background-color: #FFC107;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(0,0,0,0.25);
}


@keyframes fade-in {
    0% { opacity: 0; transform: translateY(50px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* Estilos generales para Secciones de Contenido (Tarjetas) */
section:not(.hero-section) {
    background-color: var(--card-bg);
    color: var(--text-color-dark);
    padding: 3.5rem 4rem;
    margin: 0 3rem 4rem 3rem; 
    border-radius: 25px;
    box-shadow: 0 20px 50px rgba(44, 62, 80, 0.12); 
    border: 1px solid #e9ecef; 
    
    /* MODIFICADO: Reintroducir animación de solo opacidad */
    opacity: 0;
    transition: opacity 0.7s ease-out, /* Para la aparición */
                transform 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275), /* Para el hover */
                box-shadow 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Para el hover */
    
    position: relative;
    z-index: 1;
    overflow-wrap: break-word; 
    word-break: break-word;   
}

/* MODIFICADO: Clase para activar la animación de opacidad */
section:not(.hero-section).is-visible {
    opacity: 1;
}

section:not(.hero-section):hover {
    transform: translateY(-12px) scale(1.005); 
    box-shadow: 0 22px 55px rgba(44, 62, 80, 0.18);
}


#desafio {
    margin-top: -85px; 
    position: relative;
    z-index: 2;
}

section:not(.hero-section) h2,
section:not(.hero-section) h3,
section:not(.hero-section) h4 {
    overflow-wrap: break-word; 
    word-break: break-word;   
}


section:not(.hero-section) h2 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 700;
    letter-spacing: 1.3px;
    text-transform: uppercase;
    text-align: center;
    font-size: 2.5rem;
    margin-top: 0;
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid #e9ecef;
    position: relative;
}

section:not(.hero-section) h2::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background-color: var(--accent-color);
    margin: 10px auto 0 auto;
    border-radius: 2px;
}

section:not(.hero-section) h3 {
    font-family: 'Playfair Display', serif;
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 1.8rem;
    margin-top: 2.8rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.8rem;
    border-bottom: 2px dotted #ced4da;
}
section:not(.hero-section) h4 {
    font-family: 'Raleway', sans-serif;
    font-weight: 700;
    color: var(--text-color-dark);
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.8rem;
}


section:not(.hero-section) p,
section:not(.hero-section) ul,
section:not(.hero-section) ol {
    margin-bottom: 1.8rem;
    color: #343a40;
    font-size: 1rem;
    overflow-wrap: break-word; 
    word-break: break-word;   
    -webkit-hyphens: auto;     
    -moz-hyphens: auto;        
    -ms-hyphens: auto;         
    hyphens: auto;             
}
.section-intro {
    font-size: 1.2rem;
    text-align: center;
    max-width: 950px; 
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 2.8rem;
    color: #495057;
    font-weight: 400;
    line-height: 1.7;
}


section:not(.hero-section) ul,
section:not(.hero-section) ol {
    padding-left: 2.2rem;
}
section:not(.hero-section) ul li,
section:not(.hero-section) ol li {
    margin-bottom: 1rem;
    padding-left: 0.5rem;
}
section:not(.hero-section) ul li::marker {
    color: var(--primary-color);
    font-size: 1.3em;
}
section:not(.hero-section) ol li::marker {
    color: var(--secondary-color);
    font-weight: bold;
}


section:not(.hero-section) strong {
    color: var(--primary-color);
    font-weight: 700;
}
section:not(.hero-section) i.fas {
    margin-right: 0.6rem;
    color: var(--secondary-color);
    font-size: 1.1em;
    width: 1.2em; 
    text-align: center;
}


/* Estilos para columnas de contenido */
.content-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2.8rem;
}
.column {
    flex: 1;
    min-width: 300px; 
    overflow-wrap: break-word; 
    word-break: break-word;   
}

/* Estilos para la sección Propuesta BIOMIC */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.8rem;
    margin-top: 2rem;
}
.feature-item {
    background-color: #f8f9fa;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    box-shadow: 0 10px 25px rgba(0,0,0,0.06); 
    display: flex;
    flex-direction: column;
    overflow-wrap: break-word; 
    word-break: break-word;   
}

.feature-item > i.fas {
    color: var(--primary-color);
    margin-bottom: 1.3rem;
    align-self: center;
    font-size: 3rem;
}
.tech-details {
    list-style: none;
    padding-left: 0;
}
.tech-details li {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
    display: flex;
    align-items: flex-start;
}
.tech-details li i.fas {
    color: var(--secondary-color);
    margin-right: 0.8rem;
    width: 1.8rem;
    text-align: center;
    margin-top: 0.2rem;
    font-size: 1.1em;
}
.tech-details ul {
    padding-left: 2rem;
    margin-top: 0.4rem;
    list-style: circle;
}
.tech-details ul li::marker {
    color: var(--secondary-color);
    font-size: 0.9em;
}

.benefits-highlight {
    margin-top: 3rem;
    padding: 2rem;
    background-color: #e3f2fd;
    border-left: 7px solid var(--secondary-color);
    border-radius: 10px;
}
.benefits-highlight h3 {
    color: var(--secondary-color);
    margin-top: 0;
    border-bottom: none;
    font-size: 1.6rem;
}
.benefits-highlight ul {
    list-style: none;
    padding-left: 0;
    column-count: 2;
    column-gap: 1.8rem;
}
.benefits-highlight li {
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    font-size: 1rem;
}
.benefits-highlight li i.fas {
    color: var(--secondary-color);
    margin-right: 0.8rem;
    font-size: 1.2em;
    width: 1.5rem;
    text-align: center;
}


/* Estilos para Comunidades */
.community-list {
    list-style: none;
    padding-left: 0;
}
.community-list li {
    font-size: 1.1rem;
    margin-bottom: 1.3rem;
    display: flex;
    align-items: flex-start;
    padding: 1.2rem;
    background-color: #f8f9fa;
    border-radius: 10px;
    border-left: 4px solid var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.community-list i {
    color: var(--primary-color);
    margin-right: 1.3rem;
    font-size: 1.8em;
    width: 2.2rem;
    text-align: center;
    margin-top: 0.2rem;
}
.community-list div {
    flex: 1;
    overflow-wrap: break-word; 
    word-break: break-word;   
}
.community-list strong {
    display: block;
    margin-bottom: 0.3rem;
}


/* Estilos para Avances y Validación */
.validation-points {
    list-style: none;
    padding-left: 0;
}
.validation-points > li { 
    font-size: 1.05rem;
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
}
.validation-points > li > i.fas { 
    color: var(--secondary-color);
    margin-right: 1.2rem;
    font-size: 1.5em;
    margin-top: 0.25rem;
    width: 1.8rem;
    text-align: center;
    flex-shrink: 0; 
}
.validation-points > li > div { 
    flex-grow: 1;
    min-width: 0; 
    overflow-wrap: break-word; 
    word-break: break-word;   
}

/* Tabla de Costos */
.cost-table {
    width: 100%;
    margin-top: 1em;
    border-collapse: collapse;
    font-size: 0.9em;
    overflow-x: auto; 
    display: block; 
}
.cost-table th, .cost-table td {
    border: 1px solid #dee2e6;
    padding: 0.6em 0.8em;
    text-align: left;
    vertical-align: top;
    overflow-wrap: break-word; 
    word-break: break-word;
}
.cost-table th {
    background-color: #f1f3f5;
    font-weight: 700;
    color: var(--neutral-dark);
}
.cost-table tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
.cost-table .subtotal-row td, .cost-table .total-row td {
    font-weight: bold;
}
.cost-table .total-row td {
    background-color: #e9ecef;
    color: var(--primary-color);
}


/* Estilos para Equipo */
.team-photo-placeholder {
    width: 100%;
    max-width: 300px;
    height: 200px;
    border-radius: 10px;
    background-color: #e9ecef;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto 15px auto;
    border: 2px dashed #ced4da;
}
.team-photo-placeholder i {
    color: #adb5bd;
    margin-bottom: 10px;
}
.team-photo-placeholder p {
    color: #6c757d;
    font-size: 0.9em;
    margin-bottom: 0;
}
.team-members-title { 
    text-align: center;
    margin-top: 3rem !important; 
    margin-bottom: 1.5rem !important;
    border-bottom: none !important; 
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}
.team-member {
    text-align: center;
    padding: 1.5rem;
    background-color: #f8f9fa;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #e9ecef;
}
.member-placeholder {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem auto;
    border: 3px solid #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.member-placeholder i {
    color: #888;
    font-size: 2.5em;
}
.team-member h4 {
    margin-top: 0;
    margin-bottom: 0.3rem;
    color: var(--text-color-dark);
    font-size: 1.25rem;
}
.team-member p em {
    font-size: 0.9rem;
    color: var(--primary-color);
    display: block;
    margin-bottom: 0.7rem;
    font-weight: 500;
}
.member-bio {
    font-size: 0.85rem;
    color: #555;
    line-height: 1.5;
    overflow-wrap: break-word; 
    word-break: break-word;   
    -webkit-hyphens: auto;
    -moz-hyphens: auto;
    -ms-hyphens: auto;
    hyphens: auto;
}
#equipo ul {
    text-align: left;
    margin-top: 1rem;
}
#equipo ul li i.fas {
    width: auto; 
}



/* Estilos para Referencias */
.references-list {
    list-style: none;
    padding-left: 0;
    font-size: 0.85rem;
    color: #495057;
    line-height: 1.65;
}
.references-list.two-column-references {
    column-count: 2;
    column-gap: 2.5rem;
}
.references-list li {
    margin-bottom: 0.8rem;
    padding-left: 1.8rem;
    position: relative;
    overflow-wrap: break-word; 
    word-break: break-all;   
}
.references-list li::before {
    content: "\f02d";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 3px;
    color: var(--primary-color);
    font-size: 0.9em;
}



/* --- Footer --- */
footer {
    background-color: #1f2326;
    color: #ced4da;
    text-align: center;
    padding: 3.5rem 1.25rem;
    position: relative;
    width: 100%; 
    margin-top: 5.5rem;
    margin-left: 0;
    clear: both;
    z-index: 1;
    border-top: 5px solid var(--primary-color);
}

footer p {
    margin: 0.8rem 0;
    font-size: 1rem;
}

.footer-links {
    margin: 1.8rem 0;
}

.footer-links a {
    color: #e9ecef;
    text-decoration: none;
    margin: 0 1.5rem;
    display: inline-block;
    transition: color 0.3s ease, transform 0.3s ease;
    font-size: 1.2rem;
}

.footer-links a:hover {
    color: var(--accent-color);
    transform: translateY(-5px) scale(1.15);
}

.footer-links a i {
    margin-right: 0.8rem;
    vertical-align: middle;
    font-size: 1.6rem;
}

.footer-links a span {
    vertical-align: middle;
}

.copyright {
    font-size: 0.88rem;
    color: #868e96;
    margin-top: 2.2rem;
}

/* --- Estado Sidebar Abierto --- */
body.sidebar-open .sidebar {
    width: var(--sidebar-width-expanded);
    transition: width var(--sidebar-transition-duration) cubic-bezier(0.68, -0.55, 0.27, 1.55);
}
body.sidebar-open .sidebar a {
    padding-left: 20px;
}
body.sidebar-open .sidebar a i {
    margin-right: 0; 
}
body.sidebar-open .sidebar a span {
    opacity: 1;
    display: inline-block;
}

body.sidebar-open #mainContent {
    margin-left: var(--sidebar-width-expanded);
}

body.sidebar-open .openbtn {
    opacity: 0;
    pointer-events: none;
    transform: rotate(0deg) scale(0.8);
}

body:not(.sidebar-open) .sidebar .closebtn {
    display: none;
}

body.sidebar-open .sidebar .closebtn {
    display: block;
}

/* --- Responsividad --- */
@media screen and (max-width: 1200px) {
    .benefits-highlight ul,
    .references-list.two-column-references {
        column-count: 1;
    }
    :root {
        --sidebar-width-expanded: 290px;
    }
     section:not(.hero-section) {
        margin: 0 2rem 3rem 2rem;
        padding: 3rem 2.5rem;
    }
}


@media screen and (max-width: 992px) { /* Tablets */
    section:not(.hero-section) {
        margin: 0 1.5rem 2.5rem 1.5rem;
        padding: 2.5rem 2rem;
    }
    section:not(.hero-section) h2 {
        font-size: 2rem;
    }
     section:not(.hero-section) h3 {
        font-size: 1.6rem;
    }
    :root {
        --sidebar-width-expanded: 270px;
    }
}


@media screen and (max-width: 768px) { /* Móvil */
    body {
        font-size: 15px;
    }
    .sidebar {
        width: 0; 
        padding-top: 1.2rem;
        transition: transform 0.35s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
        transform: translateX(-100%); 
    }
    
    body.sidebar-open .sidebar {
        width: 80%; 
        max-width: 300px; 
        transform: translateX(0); 
        box-shadow: 3px 0 10px rgba(0,0,0,0.3);
    }
    

    .sidebar a {
        font-size: 0.85rem;
        padding: 0.7rem 1rem;
    }
      .sidebar a i {
        font-size: 1.15rem;
    }
    body.sidebar-open .sidebar a span {
        margin-left: 10px; 
    }


    .openbtn {
        top: 1rem;
        left: 1rem;
        font-size: 1.3rem;
        padding: 0.4rem 0.6rem;
    }
    body.sidebar-open .openbtn {
        opacity: 0;
        pointer-events: none;
    }


    .sidebar .closebtn {
        font-size: 1.8rem;
        right: 1rem;
        top: 0.8rem;
        display: none; 
    }
    body.sidebar-open .sidebar .closebtn {
        display: block; 
    }


    #mainContent {
        margin-left: 0 !important; 
        padding-bottom: 3rem;
        transition: filter 0.35s ease-in-out; 
    }
    
    /* body.sidebar-open #mainContent {
        filter: blur(3px) brightness(0.7);
    } */

    
    .hero-section {
        min-height: 70vh;
        padding: 4rem 1rem 2.5rem 1rem;
    }
    
    #desafio {
        margin-top: -3.5rem;
    }

    section:not(.hero-section) {
        padding: 2rem 1.2rem;
        margin: 0 0.8rem 2rem 0.8rem; 
        border-radius: 18px;
        /* El transform: translateY(20px) para la animación inicial ya no se aplica aquí si se desactivó globalmente */
    }
    
    section:not(.hero-section) h2 {
        font-size: 1.7rem;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
    }
      section:not(.hero-section) h2::after {
        width: 60px;
        height: 3px;
        margin-top: 8px;
    }
    section:not(.hero-section) h3 {
        font-size: 1.4rem;
    }
      section:not(.hero-section) h4 {
        font-size: 1.1rem;
    }
    .section-intro {
        font-size: 1rem;
        margin-bottom: 1.8rem;
        max-width: 100%; 
    }
    .content-columns {
        flex-direction: column;
        gap: 0px;
    }
    .column {
        margin-bottom: 1.5rem;
        min-width: 0; 
    }
    .feature-grid {
        grid-template-columns: 1fr;
    }
    .benefits-highlight ul,
    .references-list.two-column-references,
    .team-grid {
        column-count: 1;
        grid-template-columns: 1fr;
    }
    .cost-table { 
        font-size: 0.8em; 
    }
    .cost-table th, .cost-table td {
        padding: 0.4em 0.5em;
    }


    footer {
        padding: 2.5rem 1rem;
        margin-top: 3rem;
    }
    .footer-links a {
        margin: 0.6rem 0.7rem;
        font-size: 1.05rem;
    }
    .footer-links a i {
        font-size: 1.4rem;
    }
}

.link--Arduino_CLOUD {
    text-decoration: none;
    font-weight: bold;
    color: var(--secondary-color);
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.link--Arduino_CLOUD:hover {
    color: #1f5a82;
    text-decoration: underline;
}

.MathJax_Display, mjx-container {
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    text-align: initial !important;
    font-size: 100% !important;
    line-height: normal !important;
    vertical-align: baseline !important;
    background: transparent !important;
}

mjx-container[jax="SVG"] { 
    overflow-x: auto;    
    overflow-y: hidden;
    max-width: 100%;     
    padding-bottom: 2px; 
}

mjx-container[jax="SVG"][display="true"] {
    display: block !important; 
}

mjx-container[jax="SVG"][display="false"] {
    display: inline-block !important; 
    vertical-align: middle;         
}

img, video, iframe, figure {
    max-width: 100%;
    height: auto;
}
/* Estilos para la sección de Referencias */
#referencias {
    /* Asegúrate de que tenga un padding similar a otras secciones si es necesario */
    /* padding: 40px 20px; */ /* Ejemplo, ajusta según tu diseño general */
}

#referencias h2,
#referencias .section-intro {
    text-align: center; /* Asumo que ya tienes estilos globales, pero por si acaso */
    margin-bottom: 20px; /* Ajusta el espaciado como necesites */
}

#referencias .references-list,
#referencias > p:last-of-type { /* El último párrafo de la sección */
    max-width: 1000px; /* Ajusta este ancho para que coincida con el contenido de otras secciones */
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 20px; /* Espaciado para el último párrafo */
    text-align: left; /* El texto dentro de la lista y el párrafo debe estar alineado a la izquierda */
}

/* Estilos para la lista de referencias de dos columnas */
.two-column-references {
    column-count: 2;
    column-gap: 2em; /* Espacio entre columnas */
    list-style-position: inside; /* Para que los números/viñetas queden dentro del bloque de texto */
    padding-left: 0; /* Puede ser necesario si list-style-position es inside y quieres controlar el padding */
}

.references-list li {
    margin-bottom: 0.75em; /* Espacio entre cada referencia */
    word-break: break-word; /* Para evitar que URLs largas rompan el diseño */
    break-inside: avoid-column; /* Evita que un item de la lista se parta entre columnas */
    -webkit-column-break-inside: avoid; /* Para navegadores WebKit */
            page-break-inside: avoid; /* Para navegadores más antiguos */
}

/* Media Query para hacer la lista de referencias responsiva */
@media (max-width: 768px) { /* Puedes ajustar este breakpoint según tus necesidades */
    #referencias .two-column-references {
        column-count: 1; /* Cambia a una sola columna en pantallas pequeñas */
    }

    #referencias .references-list,
    #referencias > p:last-of-type {
        max-width: 95%; /* Permite que ocupe un poco más de ancho en pantallas pequeñas */
    }
}

/* Si el párrafo introductorio de la sección de referencias no se está centrando,
   y tienes un estilo general para .section-intro en otras secciones, asegúrate
   de que se aplique consistentemente. Por ejemplo:
*/
.section-intro {
    max-width: 800px; /* O el ancho que estés usando */
    margin: 0 auto 30px auto; /* Para centrar el bloque del párrafo */
    text-align: center; /* Si el texto dentro del párrafo debe estar centrado */
    /* Si el texto debe estar justificado o a la izquierda, cambia text-align aquí o anúlalo específicamente */
}

/* Asegúrate que el último párrafo dentro de #referencias tenga el texto alineado a la izquierda si la sección tiene text-align:center */
#referencias > p:last-of-type {
    text-align: left;
}