/* --- Variables CSS --- */
:root {
    --color-fondo-calido: #F4F4F4;
    --color-texto-principal: #333;
    --color-contenedor-blanco: #FFFFFF;
    --color-sombra-contenedor: rgba(0, 0, 0, 0.507);
    --color-acento-retro: #080808; /* Color principal oscuro */
    --color-acento-divertido: #2e80cc; /* Color de acento para enlaces/botones */

    --ds-white: #FFFFFF;
    --ds-light-gray: #3A3A3A; /* Usado para hover en menús */
    --color-menu-bg: #0A0A0A; /* Fondo oscuro de los menús */

    --font-body: 'Arial', sans-serif;
    --font-heading: 'Impact', 'Arial Black', sans-serif;

    /* Nuevas variables para consistencia en secciones específicas */
    --color-dark-bg: #333; /* Fondo oscuro para secciones como .contenido-detalle */
    --color-card-dark: #cccbcb; /* Fondo oscuro para tarjetas, e.g., role-card */
    --color-text-light: #ccc; /* Texto claro para fondos oscuros */
    --color-shadow-dark: rgba(0, 0, 0, 0.7);
    --color-shadow-medium: rgba(0, 0, 0, 0.5);
    --color-shadow-light: rgba(0, 0, 0, 0.2);

    --chrono-bg-medium: #f0f0f0; /* Renamed from white for features list */
    --chrono-light-blue: #2e80cc; /* Matches --color-acento-divertido */
    --chrono-dark-blue-shadow: rgba(46, 128, 204, 0.5);

    /* MechaBreaks specific colors */
    --mecha-card-bg: #1E1E26;
    --mecha-card-bg-hover: #17171D;
    --mecha-text-gray: #6A6A74;
    --mecha-red: #C0292B;
    --mecha-dark-gray: #32323E;
}

/* --- Base Styles --- */
body {
    font-family: var(--font-body);
    margin: 0;
    padding: 0;
    background-color: var(--color-fondo-calido);
    color: var(--color-texto-principal);
    line-height: 1.6;
    overflow-x: hidden;
}

.section {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
  padding: 30px;
}

h2 {
    font-family: var(--font-heading);
    color: var(--color-acento-retro);
    text-align: center;
    margin-bottom: 20px;
    font-size: 2em;
}

h3 {
    font-family: var(--font-body); /* Default for H3s */
    color: var(--color-acento-retro);
    text-align: left;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: none;
}

p {
    font-size: 1em;
    color: var(--color-texto-principal);
    margin: 0;
    text-align: left;
}

a {
    text-decoration: none;
    color: inherit;
}

/* --- Reusable Card/Container Styles --- */
.card-base {
    background-color: #FFFFFF;
    border-radius: 8px;
    box-shadow: #FFFFFF;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.card-base:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--color-sombra-contenedor);
}

.scrollable-list {
    max-height: 400px; /* Base height for scrollable lists */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 8px; /* Space for scrollbar */
}

/* Scrollbar Styles for Webkit */
.scrollable-list::-webkit-scrollbar,
.contenido-detalle::-webkit-scrollbar,
.other-videos-list::-webkit-scrollbar,
.video-list::-webkit-scrollbar {
    width: 8px;
}

.scrollable-list::-webkit-scrollbar-track,
.contenido-detalle::-webkit-scrollbar-track,
.other-videos-list::-webkit-scrollbar-track,
.video-list::-webkit-scrollbar-track {
    background: #f1f1f185; /* Light background for general scrollbars */
    border-radius: 10px;
}

.contenido-detalle::-webkit-scrollbar-track {
    background: #555; /* Darker track for dark content */
}

.scrollable-list::-webkit-scrollbar-thumb,
.contenido-detalle::-webkit-scrollbar-thumb,
.other-videos-list::-webkit-scrollbar-thumb,
.video-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.video-list::-webkit-scrollbar { /* Smaller scrollbar for specific video lists */
    width: 6px;
}

.video-list::-webkit-scrollbar-track {
    background: transparent;
}

.video-list::-webkit-scrollbar-thumb {
    background: #050505;
    border-radius: 3px;
}

.scrollable-list::-webkit-scrollbar-thumb:hover,
.contenido-detalle::-webkit-scrollbar-thumb:hover,
.other-videos-list::-webkit-scrollbar-thumb:hover,
.video-list::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}
.video-list::-webkit-scrollbar-thumb:hover {
    background: #555; /* Specific hover for video list */
}


/* --- Layout: Main Content with Aside --- */
.content-section-with-aside {
    max-width: 950px;
    margin: 40px auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.main-content-area {
    flex: 3;
    min-width: 0;
}

.sidebar-aside {
    flex: 1;
    background-color: var(--color-contenedor-blanco);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--color-sombra-contenedor);
    align-self: flex-start;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.sidebar-aside:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px var(--color-sombra-contenedor);
}

.sidebar-aside h3, .sidebar-aside h4 {
    color: var(--color-acento-retro);
    font-family: var(--font-body);
    text-align: left;
    margin-top: 0;
    margin-bottom: 15px;
    text-transform: none;
}

.sidebar-aside ul {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.sidebar-aside ul li {
    margin-bottom: 10px;
}

.sidebar-aside ul li a {
    color: var(--color-texto-principal);
    display: block;
    padding: 5px 0;
    transition: color 0.3s ease;
}

.sidebar-aside ul li a:hover {
    color: var(--color-acento-divertido);
    text-decoration: underline;
}

.sidebar-aside .ads-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}

/* Media Query for Desktop Layout */
@media (min-width: 992px) {
    .content-section-with-aside {
        flex-direction: row;
        align-items: flex-start;
        gap: 40px;
    }
}

/* --- Sidebar Link Styles --- */
.sidebar-link {
    background-color: white;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 15px 10px 10px;
    cursor: pointer;
    user-select: none;
    border-radius: 10px;
    box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
    color: black;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.sidebar-link:hover {
    transform: translateY(-3px);
    box-shadow: rgba(149, 157, 165, 0.4) 0px 10px 30px;
    background-color: #f0f0f0;
}

.sidebar-link .sidebar-icon {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: black;
    transition: stroke 0.3s ease, fill 0.3s ease, transform 0.5s ease;
}

.sidebar-link:hover .sidebar-icon {
    stroke: hsl(0deg 100% 50%);
}

.sidebar-link span {
    flex-grow: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-link.active {
    background-color: var(--color-acento-divertido);
    color: var(--ds-white);
    box-shadow: var(--chrono-dark-blue-shadow) 0px 8px 24px;
}

.sidebar-link.active .sidebar-icon {
    stroke: white;
}

/* --- Details / Expandable Content --- */
.detalles {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.4s ease-in-out;
}

.detalles.expandido {
    max-height: 1000px;
    opacity: 1;
}

.contenido-detalle {
    background-color: var(--color-dark-bg);
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--color-shadow-dark);
    color: var(--ds-white);
    max-height: calc(100vh - 150px);
    overflow-y: auto;
    padding-right: 15px;
    box-sizing: border-box;
}

.contenido-detalle .toggle-btn {
    margin-top: 50px;
    margin-left: auto;
    margin-right: auto;
    display: block;
}

/* --- Video Grid Sections (General) --- */
.video-grid-container {
    display: grid;
    gap: 20px;
    grid-template-columns: 1fr;
    grid-template-areas:
        "main-video"
        "other-videos-list";
}

/* Media Query for Video Grid (Desktop) */
@media (min-width: 768px) {
    .video-grid-container {
        grid-template-columns: 2fr 1fr;
        grid-template-areas: "main-video other-videos-list";
    }
}

/* --- Main Video Highlight --- */
.main-video-highlight {
    grid-area: main-video;
    @extend .card-base; /* Inherit base card styles */
    text-align: left;
}

.main-video-highlight a {
    display: block;
    text-decoration: none;
    color: #FFFFFF;
}

.main-video-highlight img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid #eee;
}

.main-video-highlight h3 {
    font-size: 1.5em;
    color: #FFFFFF;
    padding: 15px 20px 5px;
    margin: 0;
    text-align: left;
    text-transform: none;
}

.main-video-highlight p {
    font-size: 1em;
    color: var(--color-texto-principal);
    padding: 0 20px 15px;
    margin: 0;
    text-align: left;
}

.main-video-highlight p small {
    display: block;
    padding: 0 20px 10px;
    color: #dbd5d5;
    font-size: 0.9em;
    text-align: left;
}

/* --- Other Videos List --- */
.other-videos-list {
    grid-area: other-videos-list;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background-color: #dad8d8; /* Fondo plateado para la lista */
    border-radius: 8px;
    box-shadow: 0 4px 15px var(--color-sombra-contenedor);
    padding: 20px;
    max-height: calc((80px + 12px) * 5 + 20px); /* Altura para 5 videos (100px altura + 12px gap) + padding */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-right: 8px; /* Espacio para el scrollbar */
}

/* Estilos para el scrollbar de .other-videos-list (más pequeño) */
.other-videos-list::-webkit-scrollbar {
    width: 6px; /* Ancho del scrollbar más pequeño */
}

.other-videos-list::-webkit-scrollbar-track {
    background: #f1f1f185; /* Fondo del track más claro */
    border-radius: 10px;
}

.other-videos-list::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 10px;
}

.other-videos-list::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Ajuste si es necesario para el .list-video-item para que el texto sea legible sobre fondo plateado */
.list-video-item .list-video-title {
    color: var(--color-texto-principal); /* Asegura que el texto sea legible, usa tu variable principal */
}

.list-video-item:hover {
    background-color: #A9A9A9; /* Un tono un poco más oscuro de plateado al pasar el ratón */
}

/* --- List Video Item --- */
.list-video-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    transition: background-color 0.2s ease;
    padding: 8px;
    border-radius: 5px;
}

.list-video-item:hover {
    background-color: #adabab;
}

.list-video-item a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.list-video-item img {
    width: 100px;
    min-width: 100px;
    height: auto;
    border-radius: 4px;
    display: block;
}

.list-video-item .list-video-title {
    font-size: 0.9em;
    color: var(--color-texto-principal);
    margin: 0;
    text-align: left;
    flex-grow: 1;
    line-height: 1.2;
}

/* --- "Ver más Videos" Button --- */
.clips-col .btn-primary {
    display: block;
    width: fit-content;
    margin: 40px auto 0;
    padding: 12px 25px;
    background-color: var(--color-acento-divertido);
    color: var(--ds-white);
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

.clips-col .btn-primary:hover {
    background-color: #256bb8;
}

/* --- Overwatch 2 Section Styles --- */
.resumen {
    text-align: center;
    padding: 20px;
    background-color: var(--color-contenedor-blanco);
    border-radius: 8px;
    margin-bottom: 30px;
}

/* --- Roles in the Battlefield Section --- */
section#roles {
    padding: 30px 0;
    background-color: var(--color-dark-bg); /* Use variable */
    border-radius: 8px;
    margin-top: 30px;
}

section#roles .container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 20px;
}

section#roles h2 {
    color: var(--ds-white); /* Use variable */
    margin-bottom: 20px;
}

section#roles p {
    font-size: 1.05em;
    text-align: center;
    color: var(--color-text-light); /* Use variable */
    margin-bottom: 30px;
}

.roles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    justify-content: center;
}

.role-card {
    background-color: var(--color-card-dark); /* Use variable */
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px var(--color-shadow-medium); /* Use variable */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.role-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px var(--color-shadow-dark); /* Use variable */
}

.role-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.3));
}

.role-card h3 {
    font-size: 1.3em;
    color: var(--ds-white);
    margin-bottom: 10px;
    font-family: var(--font-heading);
    text-align: center; /* Override default h3 left align */
}

.role-card p {
    font-size: 0.95em;
    color: #ddd;
    line-height: 1.5;
    text-align: center; /* Override default p left align */
}

/* Media Query for Roles Section (Mobile) */
@media (max-width: 768px) {
    .roles-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 20px;
    }
    .role-card {
        padding: 15px;
    }
    .role-icon {
        width: 50px;
        height: 50px;
    }
    .role-card h3 {
        font-size: 1.2em;
    }
    .role-card p {
        font-size: 0.9em;
    }
}

/* --- Features Section (#caracteristicas) --- */
#caracteristicas .features-list {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-top: 30px;
}

#caracteristicas .features-list li {
  background-color: var(--chrono-bg-medium);
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 3px 10px var(--color-shadow-light);
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.05rem;
  color: #000000;
  border: 1px solid rgba(55, 0, 255, 0.315);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#caracteristicas .features-list li:hover {
  transform: translateY(-3px);
  box-shadow: rgba(149, 157, 165, 0.4) 0px 10px 30px, /* Combined with base card hover */
    0 0 10px rgba(135, 206, 235, 0.2);
}

#caracteristicas .features-list li i {
  color: var(--chrono-light-blue);
  font-size: 1.8em;
  flex-shrink: 0;
  filter: drop-shadow(0 0 5px rgba(135, 206, 235, 0.5));
}

/* --- Media Section (#media) --- */
#media .media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.media-item {
  background-color: var(--color-acento-retro);
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid rgba(135, 206, 235, 0.1);
}

.media-item:hover {
  transform: translateY(-5px) scale(1.01);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(255, 215, 0, 0.3);
}

.media-item iframe,
.media-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.media-item .caption {
  padding: 15px;
  font-size: 0.95em;
  color: #000000;
  text-align: center;
  line-height: 1.4;
  font-weight: bold;
  text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

/* --- MechaBreaks Section --- */
.filter-btn {
    background-color: #aeaeb4;
    color: rgb(2, 2, 2);
    border: none;
    padding: 8px 16px;
    margin: 0 4px;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
}

.filter-btn:hover {
    background-color: var(--mecha-red);
}

.mecha-card {
    display: flex; /* This class seems to be a wrapper for .box, but only has display: flex */
}

.box {
    width: 300px;
    height: 510px;
    background: var(--mecha-card-bg);
    border-radius: 10px;
    box-shadow: 2px 10px 12px rgba(0, 0, 0, .5);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
    margin: 10px 8px;
}

.box:hover {
    background-color: var(--mecha-card-bg-hover);
    transform-style: preserve-3d;
    transform: scale(1.05);
    transition: all ease .3s;
}

.box:hover .marvel {
    color: var(--mecha-red);
    transition: all ease .5s;
}

.model {
    height: 200px;
    max-height: 50%;
    max-width: 50%;
}

.details {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 260px;
}

.details p {
    font-family: calibri;
    font-weight: bold;
    color: var(--mecha-text-gray);
    text-align: center;
    margin-top: 15px;
    font-size: 14px;
}

.marvel {
    color: var(--mecha-dark-gray);
    font-weight: bold;
    letter-spacing: 1px;
    font-family: Bebas Kai;
    font-size: 22px;
}

.logo {
    height: 50px;
}

.small-list {
    font-size: 12px;
    line-height: 1.4;
    list-style: none;
    padding-left: 0;
}

/* Media Query for MechaBreaks (Mobile) */
@media(max-width: 720px) {
    .box { width: 94%; height: 500px; }
    .model { height: 250px; }
    .details p { font-size: 12px; width: 220px; }
}

/* --- Chrono Gas Video List (Specific Video List) --- */
.chrono-gas-video-list-scrollable {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem;
  border-radius: 12px;
  background-color: #111;
  max-width: 720px;
  margin: auto;
}

/* --- Keyframes (Animations) --- */
@keyframes heartButton {
    0% { transform: scale(1); }
    25% { transform: scale(1.3); }
    50% { transform: scale(1); }
    75% { transform: scale(1.3); }
    100% { transform: scale(1); }
}