:root {
    --primary-color: #007bff;
    --success-color: #28a745;
    --dark-color: #343a40;
    --light-color: #f8f9fa;
    --text-color: #333;
    --background-color: #f4f7f6;
    --card-background: #fff;
    --timeline-line-color: #e9ecef;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color);
    color: var(--text-color);
    padding-top: 0;
    overflow-x: hidden; /* Evita el scroll lateral en la página */
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    margin-bottom: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.text-success {
    color: var(--success-color) !important;
}
.text-primary {
    color: var(--primary-color) !important;
}

.no-container-style {
    padding-top: 3rem;
}
.no-container-style > h2 {
    margin-top: 1.5rem;
    margin-top: 0;
}
p {
    margin-bottom: 1rem;
}

.container {
    max-width: 960px;
}

section {
    margin-bottom: 3rem;
    background-color: var(--card-background);
    border-radius: 0.75rem;
    transition: transform 0.3s ease;
}

section:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.1)!important;
}

.list-group-item {
    background-color: var(--card-background) !important;
    border-color: rgba(0,0,0,.1);
}

.timeline {
    position: relative;
    padding: 0;
    list-style: none;
    margin: 4rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 4px;
    background-color: var(--timeline-line-color);
    left: 50%;
    margin-left: -2px;
}

.timeline-item {
    margin-bottom: 40px;
    position: relative;
    width: 50%;
    padding: 10px 0;
}

.timeline-item:nth-child(odd) {
    left: 0;
    padding-right: 40px;
    text-align: right;
}

.timeline-item:nth-child(even) {
    left: 50%;
    padding-left: 40px;
    margin-left: 2px;
}

.timeline-icon {
    position: absolute;
    top: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--primary-color);
    color: white;
    border: 3px solid var(--background-color);
    box-shadow: 0 0 0 3px var(--primary-color);
}

.timeline-item:nth-child(odd) .timeline-icon {
    right: -20px;
}

.timeline-item:nth-child(even) .timeline-icon {
    left: -20px;
}

.timeline-content {
    background-color: var(--card-background);
    padding: 20px;
    border-radius: 0.5rem;
    box-shadow: 0 .125rem .25rem rgba(0,0,0,.075);
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.timeline-content:hover {
     transform: translateY(-5px);
     box-shadow: 0 .25rem .5rem rgba(0,0,0,.15);
}

.timeline-content::before {
    content: '';
    position: absolute;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
}

.timeline-item:nth-child(odd) .timeline-content::before {
    border-width: 10px 0 10px 10px;
    border-color: transparent transparent transparent var(--card-background);
    right: -10px;
}

.timeline-item:nth-child(even) .timeline-content::before {
    border-width: 10px 10px 10px 0;
    border-color: transparent var(--card-background) transparent transparent;
    left: -10px;
}

@media (max-width: 768px) {
    .timeline::before {
        left: 20px;
        margin-left: 0;
    }

    .timeline-item {
        width: 100%;
        padding-left: 60px;
        padding-right: 0;
        left: 0 !important;
        text-align: left !important;
    }

    .timeline-icon {
        left: 0 !important;
        margin-left: 0;
    }

    .timeline-item .timeline-content::before {
        border-width: 10px 10px 10px 0 !important;
        border-color: transparent var(--card-background) transparent transparent !important;
        left: 50px !important;
        right: auto !important;
    }
}

section.text-center img {
    margin-top: 3rem;
    border-radius: 0.75rem !important;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.05)!important;
}

footer {
    margin-top: 4rem;
    background-color: var(--dark-color) !important;
    color: var(--light-color) !important;
}

.ods-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.ods-item {
    padding: 0.5rem;
    border-radius: 0.5rem;
    color: white;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 120px;
    cursor: pointer;
    outline: none;
}

.ods-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.ods-item:active {
    transform: translateY(2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.ods-item:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

.sostenibilidad-content-container {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.sostenibilidad-content-container p {
    width: 100%;
    text-align: left;
}

.read-more-button {
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 1rem;
    transition: transform 0.3s ease;
    margin-bottom: 0;
}

.read-more-button[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.ods-main-icon {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
}

.ods-1 { background-color: #E5243B; }
.ods-2 { background-color: #DDA63A; }
.ods-3 { background-color: #4C9F38; }
.ods-4 { background-color: #C5192D; }
.ods-5 { background-color: #FF3A21; }
.ods-6 { background-color: #26BDE2; }
.ods-7 { background-color: #FCC30B; color: #333; }
.ods-8 { background-color: #A21942; }
.ods-9 { background-color: #FD6925; }
.ods-10 { background-color: #dd1367; }
.ods-11 { background-color: #FD9D24; color: #333; }
.ods-12 { background-color: #BF8B2E; }
.ods-13 { background-color: #3F7E44; }
.ods-14 { background-color: #0A97D9; }
.ods-15 { background-color: #56C02B; }
.ods-16 { background-color: #00689D; }
.ods-17 { background-color: #19486A; }

.modal-ods-icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.modal-title {
    text-transform: uppercase;
}

.ods-modal-header-1 {
    background-color: #e5243b;
    color: white;
    border-bottom: 1px solid #d41f33;
}
.ods-modal-header-1 .modal-title {
    color: white;
}
.ods-modal-header-1 .btn-close {
    filter: invert(1);
}

.ods-modal-header-2 {
    background-color: #DDA63A;
    color: white;
    border-bottom: 1px solid #C39533;
}
.ods-modal-header-2 .modal-title { color: white; }
.ods-modal-header-2 .btn-close { filter: invert(1); }

.ods-modal-header-3 {
    background-color: #4c9f38;
    color: white;
    border-bottom: 1px solid #438d32;
}
.ods-modal-header-3 .modal-title { color: white; }
.ods-modal-header-3 .btn-close { filter: invert(1); }

.ods-modal-header-4 {
    background-color: #c5192d;
    color: white;
    border-bottom: 1px solid #b01629;
}
.ods-modal-header-4 .modal-title { color: white; }
.ods-modal-header-4 .btn-close { filter: invert(1); }

.ods-modal-header-5 {
    background-color: #ff3a21;
    color: white;
    border-bottom: 1px solid #e5341e;
}
.ods-modal-header-5 .modal-title { color: white; }
.ods-modal-header-5 .btn-close { filter: invert(1); }

.ods-modal-header-6 {
    background-color: #26bde2;
    color: white;
    border-bottom: 1px solid #22a8cb;
}
.ods-modal-header-6 .modal-title { color: white; }
.ods-modal-header-6 .btn-close { filter: invert(1); }

.ods-modal-header-7 {
    background-color: #fcc30b;
    color: #333;
    border-bottom: 1px solid #e3b00a;
}
.ods-modal-header-7 .modal-title { color: #333; }
.ods-modal-header-7 .btn-close { filter: none; }

.ods-modal-header-8 {
    background-color: #a21942;
    color: white;
    border-bottom: 1px solid #92173c;
}
.ods-modal-header-8 .modal-title { color: white; }
.ods-modal-header-8 .btn-close { filter: invert(1); }

.ods-modal-header-9 {
    background-color: #fd6925;
    color: white;
    border-bottom: 1px solid #e36022;
}
.ods-modal-header-9 .modal-title { color: white; }
.ods-modal-header-9 .btn-close { filter: invert(1); }

.ods-modal-header-10 {
    background-color: #dd1367;
    color: white;
    border-bottom: 1px solid #C7115E;
}
.ods-modal-header-10 .modal-title { color: white; }
.ods-modal-header-10 .btn-close { filter: invert(1); }

.ods-modal-header-11 {
    background-color: #fb9a16;
    color: white;
    border-bottom: 1px solid #e28b14;
}
.ods-modal-header-11 .modal-title { color: white; }
.ods-modal-header-11 .btn-close { filter: invert(1); }

.ods-modal-header-12 {
    background-color: #bf8b2e;
    color: white;
    border-bottom: 1px solid #a87c29;
}
.ods-modal-header-12 .modal-title { color: white; }
.ods-modal-header-12 .btn-close { filter: invert(1); }

.ods-modal-header-13 {
    background-color: #3f7e44;
    color: white;
    border-bottom: 1px solid #38713d;
}
.ods-modal-header-13 .modal-title { color: white; }
.ods-modal-header-13 .btn-close { filter: invert(1); }

.ods-modal-header-14 {
    background-color: #0a97d9;
    color: white;
    border-bottom: 1px solid #098ac3;
}
.ods-modal-header-14 .modal-title { color: white; }
.ods-modal-header-14 .btn-close { filter: invert(1); }

.ods-modal-header-15 {
    background-color: #56c02b;
    color: white;
    border-bottom: 1px solid #4dae27;
}
.ods-modal-header-15 .modal-title { color: white; }
.ods-modal-header-15 .btn-close { filter: invert(1); }

.ods-modal-header-16 {
    background-color: #00689d;
    color: white;
    border-bottom: 1px solid #005d8c;
}
.ods-modal-header-16 .modal-title { color: white; }
.ods-modal-header-16 .btn-close { filter: invert(1); }

.ods-modal-header-17 {
    background-color: #19486a;
    color: white;
    border-bottom: 1px solid #16405d;
}
.ods-modal-header-17 .modal-title { color: white; }
.ods-modal-header-17 .btn-close { filter: invert(1); }

@media (max-width: 576px) {
    .ods-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1rem;
        
    }
    .ods-item {
        padding: 0.25rem;
        min-height: 100px;
    }
    .ods-title {
        font-size: 0.75rem;        
        text-transform: uppercase;
    }
}
.carousel {
  max-width: 600px;
  margin: auto;
}
    
.carousel-item img {
  max-width: 100%;
  max-height: 500px;
  object-fit: contain;
}

.texto{
  background-color: rgba(217, 228, 217, 0.674);
}

.green {
  color: #198754;
  font-size: x-large;
  font-weight: bold;
}

.descargas a {
  margin-top: 1%;
}

.descargas img {
  margin-right: 5%;
  width: 10%;
}
.descargas a:hover {
  transform: scale(1.1);
  transition: transform 0.3s ease;
}

.cartas{
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.card{
  margin: 4%;
}
.card:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  background-color: rgba(217, 228, 217, 0.674);
}

#fullscreen-video-container {
  width: 100%;
  height: 100vh;
  background-color: #000;
}

#bg-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#fullscreen-video-container {
  position: relative;
  width: 100%;
  height: 100vh;
  overflow: hidden;
}

.titulo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #FFFFFF;
  font-family: 'Montserrat', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.7);
  padding: 0 20px;
  width: 90%;
  max-width: 1200px;
  z-index: 10;
  line-height: 1.2;
}

@media (max-width: 992px) {
  .titulo {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .titulo {
    font-size: 2.5rem;
  }
}

@media (max-width: 576px) {
  .titulo {
    font-size: 2rem;
    width: 95%;
  }
}

#que-es-sostenibilidad.content-collapsed {
  background-color: var(--card-background) !important;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.05)!important;
  padding: 1rem !important;
}

#que-es-sostenibilidad.content-expanded {
  background-color: var(--card-background);
  padding: 3rem !important;
  box-shadow: 0 .25rem .75rem rgba(0,0,0,.05)!important;
}

.download-link-custom {
  max-width: 400px;
}

#fullscreen-video-container {
  position: relative; 
}
.sello-cabecera {
  position: absolute; 
  top: 20px;          
  right: 50px;         
  width: 130px;       
  height: auto;       
  z-index: 10;        
}

.fondo {
    background-color: rgba(224, 232, 223, 0.226); 
    border-radius: 5%;}
.fondo:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
    background-color: rgba(217, 228, 217, 0.674);
}

.contiene { /* Estilos para los H2 dentro de .lado */
    width: 48%; /* Para el diseño lado a lado en pantallas grandes */
    text-align: center;
    font-size: 1.85rem; /* Tamaño base del título, puedes ajustarlo */
    /* color: var(--success-color); Si usas text-success en el HTML, no es necesario aquí */
    margin-bottom: 0; /* El espaciado vertical lo manejará .lado con gap o el propio h2 */
}

.lado {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Alinea los elementos al inicio si tienen alturas diferentes */
    width: 100%;
    gap: 4%; /* Espacio entre los elementos lado a lado */
    margin-bottom: 2rem; /* Espacio debajo de cada 'fila' de .lado */
}

/* Elimina el margen inferior del último .lado dentro de una sección */
section > .lado:last-of-type {
    margin-bottom: 0;
}

.lado > .accordion { /* Estilo específico para los acordeones dentro de .lado */
    width: 48%;
}

/* Media Queries para Responsividad de la sección .lado */
@media (max-width: 992px) { /* Para tablets y pantallas más pequeñas */
    .lado {
        flex-direction: column; /* Apila los elementos verticalmente */
        align-items: center;   /* Centra los bloques apilados */
        gap: 2rem;           /* Espacio entre elementos apilados */
    }

    .contiene,
    .lado > .accordion {
        width: 100%; /* Ocupan todo el ancho al apilarse */
    }

    .contiene {
        font-size: 1.6rem; /* Reduce el tamaño de fuente de los títulos */
        margin-bottom: 1rem; /* Añade un poco de espacio debajo de los títulos cuando están apilados */
    }
}

@media (max-width: 768px) { /* Para móviles grandes y tablets pequeñas */
    .contiene {
        font-size: 1.4rem; /* Reduce aún más el tamaño de fuente */
    }
}

/* Responsividad para el sello en la cabecera */
@media (max-width: 576px) {
  .sello-cabecera {
    right: 15px; /* Más cerca del borde en pantallas pequeñas */
    width: 90px;  /* Un poco más pequeño */
    top: 15px;
  }
}

.separado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}
.separado > div {
    width: 48%;
}
.parteIzq {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}
.parteDer {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
}