/* CSS Puro - Sin Framework7 */
/* Este archivo debe cargarse DESPUÉS de style-original.css para sobrescribir estilos */

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

/* Asegurar que los componentes del UI Kit se muestren */
.ui-kit-content {
  display: block !important;
  visibility: visible !important;
}

.ui-kit-section {
  display: block !important;
  visibility: visible !important;
}

.component-card {
  display: block !important;
  visibility: visible !important;
}

.component-preview {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Estilos para elementos con clase .elemento (legacy) */
.elemento {
  display: block !important;
  visibility: visible !important;
  margin-bottom: 40px;
  padding: 20px;
  background: var(--background-color);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
}

.elemento-titulo {
  display: block !important;
  visibility: visible !important;
  font-size: 20px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0 0 20px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--light-gray);
}

/* Asegurar que los elementos dentro de component-preview se muestren */
.component-preview .card,
.component-preview .button,
.component-preview .list,
.component-preview article,
.component-preview section,
.component-preview footer,
.component-preview nav,
.component-preview .navbar,
.component-preview .page-content,
.component-preview img,
.component-preview svg {
  display: block !important;
  visibility: visible !important;
}

.component-preview .button,
.component-preview a.button {
  display: inline-block !important;
}

.component-preview .list ul,
.component-preview ul {
  display: block !important;
  visibility: visible !important;
}

.component-preview .list li,
.component-preview li {
  display: list-item !important;
  visibility: visible !important;
}

:root {
  /* Colores Principales - Exactos del Original */
  --title-color: #1e2b47;
  --text-color: #828d9c;
  --background-color: #fff;
  --light-gray: #ecf1f5;
  --f7-text-color: var(--title-color);
  --block-shadow: 0px 2px 10px 0px #555f6921;
  --f7-page-toolbar-bottom-offset: 50px;
  --f7-navbar-height: 50px;
  --f7-list-item-border-color: rgba(0, 0, 0, 0.12);
  --f7-list-outline-border-color: rgba(0, 0, 0, 0.12);
  --f7-list-chevron-icon-color: #8896b8;
  --swiper-pagination-color: var(--title-color);
  
  /* Color del tema por defecto (azul) */
  --f7-theme-color: #007aff;
  --f7-theme-color-rgb: 0, 122, 255;
  --primary-color: #007aff;
  
  /* Color principal verde/cyan (usado en modo oscuro y componentes) */
  --accent-color: #0ee9b3;
  --accent-color-rgb: 14, 233, 179;
  
  /* Colores de Fondo */
  --body-bg: #f5f5f5;
  --white: #ffffff;
  
  /* Colores de Iconos Coloreados */
  --icon-yellow: #e5b32d;
  --icon-yellow-bg: rgba(229, 179, 45, 0.2);
  --icon-blue: #0091de;
  --icon-blue-bg: rgba(0, 145, 222, 0.1);
  --icon-green: #19b48e;
  --icon-green-bg: rgba(25, 180, 142, 0.1);
  --icon-pink: #e2206e;
  --icon-pink-bg: rgba(226, 32, 95, 0.1);
  --icon-orange: #ee8f30;
  --icon-orange-bg: rgba(255, 156, 60, 0.16);
  --icon-red: #d8422e;
  --icon-red-bg: rgba(216, 66, 46, 0.13);
  --icon-purple: #9146da;
  --icon-purple-bg: rgba(145, 70, 218, 0.15);
  
  /* Colores de UI */
  --tabbar-color: #8896b8;
  --toolbar-border: #dedede;
  --icon-bg-default: #ebebf2;
  --info-text: #708197;
  --placeholder-color: #93a0b1;
  --checkbox-border: #c7c7cc;
  --border-color: #e0e3e6;
  --toggle-bg: #e9e9ea;
  
  /* Colores de Tema Dark */
  --dark-theme-color: #1e2b47;
  --dark-theme-shade: #121a2a;
  --dark-theme-tint: #2a3c64;
  
  /* Colores de Lista */
  --list-border: rgba(0, 0, 0, 0.12);
  --list-chevron: #8896b8;
  
  /* Colores de Gradientes */
  --card-gradient: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgb(24 24 24 / 95%) 100%);
}

.dark {
  --title-color: #fff;
  --text-color: #9aa9b2;
  --background-color: #001119;
  --light-gray: #0e232d;
  --body-bg: #001119;
  
  /* Dark mode - Iconos */
  --icon-yellow-bg: rgba(229, 179, 45, 0.2);
  --icon-blue-bg: rgba(0, 145, 222, 0.25);
  --icon-green-bg: rgba(25, 180, 142, 0.2);
  --icon-pink-bg: rgba(226, 32, 95, 0.2);
  --icon-orange-bg: rgba(255, 156, 60, 0.2);
  --icon-red-bg: rgba(216, 66, 46, 0.3);
  --icon-purple-bg: rgba(145, 70, 218, 0.3);
  
  /* Dark mode - UI */
  --toolbar-border: rgba(255, 255, 255, 0.15);
  --info-text: #8191a6;
  --list-border: rgba(255, 255, 255, 0.12);
}

/* Fuentes */
@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik/Rubik-Regular.ttf") format("truetype");
  font-weight: 400;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik/Rubik-Medium.ttf") format("truetype");
  font-weight: 500;
}
@font-face {
  font-family: "Rubik";
  src: url("fonts/Rubik/Rubik-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

body {
  font-family: "Rubik", -apple-system, SF Pro Text, system-ui, sans-serif;
  background-color: var(--body-bg);
  color: var(--text-color);
  transition: background-color 0.4s;
}

/* App Container */
#app {
  min-height: 100vh;
  position: relative;
}

/* Panel Lateral */
.panel {
  position: fixed;
  left: 0;
  top: 0;
  width: 260px;
  height: 100vh;
  background-color: var(--background-color);
  z-index: 1000;
  transform: translateX(-100%);
  transition: transform 0.4s;
  overflow-y: auto;
}

body.with-panel-left-push .panel {
  transform: translateX(0);
}

body.with-panel-left-push .main-content {
  transform: translateX(260px);
}

/* Main Content */
.main-content {
  transition: transform 0.4s;
  min-height: 100vh;
}

/* Navbar */
.navbar {
  background-color: var(--background-color);
  padding: 0 15px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color 0.4s;
  position: relative;
}

.navbar-bg {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: var(--background-color);
  transition: background-color 0.4s;
  z-index: 0;
}

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  position: relative;
  z-index: 10;
}

.navbar .left,
.navbar .right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar .title {
  font-weight: 600;
  font-size: 17px;
  color: var(--title-color);
}

.navbar-profile img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
}

.navbar a {
  color: var(--title-color);
  text-decoration: none;
  display: flex;
  align-items: center;
}

/* Navbar Large */
.navbar-large {
  height: auto;
  min-height: 50px;
}

.navbar-large .navbar-bg {
  height: calc(100% + 58px);
}

.navbar-large .title-large {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 58px;
  display: flex;
  align-items: center;
  z-index: 5;
}

.navbar-large .title-large-text {
  color: var(--title-color);
  font-size: 28px;
  font-weight: 600;
  padding-left: 15px;
  width: 100%;
}

/* Navbar Current */
.navbar-current {
  border-bottom: 1px solid var(--light-gray);
}

/* Page Content */
.page-content {
  padding: 15px;
  padding-bottom: 80px;
}

/* Cards */
.card {
  display: block;
  text-decoration: none;
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
  box-shadow: var(--block-shadow);
}

.card-image {
  position: relative;
  width: 100%;
  overflow: hidden;
}

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

/* Cards con footer de imagen - Aspect ratio 16:10 */
.card-image:has(.card-image-footer) img {
  object-fit: cover;
  aspect-ratio: 16/10;
}

/* Cards con footer de autor - Aspect ratio 16:9 */
.card-image:has(~ .card-author-footer) img {
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Card big footer image */
.card-big-footer-image {
  width: 100%;
  height: auto;
  display: block;
}

.card-image-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
}

.card .card-category {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 4px 10px !important;
  margin-bottom: 10px;
  border-radius: 5px;
  background-color: transparent;
  line-height: 1.2;
  min-height: 22px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.card .card-category:hover {
  opacity: 0.8;
}

/* Card Author Images - Redondas */
.card .card-author {
  display: flex;
  align-items: center;
}

.card .card-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 8px;
  object-fit: cover;
}

.card-author-footer .author-image {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

/* Card Category con fondo blanco - Mayor especificidad */
a.card .card-image-footer .card-category.bg-color-white,
.card-image-footer .card-category.bg-color-white,
.card .card-category.bg-color-white {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #1e2b47 !important;
  border: none !important;
  padding: 4px 10px !important;
  display: inline-block !important;
}

/* Card Category con color-dark - Mayor especificidad */
a.card .card-image-footer .card-category.color-dark,
.card-image-footer .card-category.color-dark,
.card .card-category.color-dark {
  background-color: #1e2b47 !important;
  background: #1e2b47 !important;
  color: #fff !important;
  border: none !important;
  padding: 4px 10px !important;
  display: inline-block !important;
}

.bg-color-white {
  background-color: #fff !important;
}

/* Modo oscuro - Badge con fondo blanco siempre tiene texto oscuro */
.dark a.card .card-image-footer .card-category.bg-color-white,
.dark .card-image-footer .card-category.bg-color-white,
.dark .card .card-category.bg-color-white,
.dark .card-category.bg-color-white {
  background-color: #ffffff !important;
  background: #ffffff !important;
  color: #1e2b47 !important;
  border: none !important;
}

/* Modo oscuro - Badge con color-dark usa el color verde claro del tema */
.dark a.card .card-image-footer .card-category.color-dark,
.dark .card-image-footer .card-category.color-dark,
.dark .card .card-category.color-dark,
.dark .card-category.color-dark {
  background-color: #0ee9b3 !important;
  color: #000 !important;
}

.card-image-footer h2,
.card-image-footer h3,
.card-image-footer h4 {
  margin: 0;
  font-size: 19px;
  line-height: 24px;
  font-weight: 500;
  color: #fff !important;
}

.card-big-footer h2,
.card-big-footer h3 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: -5px;
  color: var(--title-color);
}


/* Post List */
.post-list {
  margin: 10px 0 10px 0;
}

.post-list .post-horizontal {
  margin-bottom: 8px;
  align-items: center;
}

.post-horizontal {
  box-shadow: var(--block-shadow);
  display: flex;
  padding: 12px 12px 12px 15px;
  border-radius: 15px;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  background: var(--background-color);
  transition: transform 0.2s;
}

.post-horizontal:active {
  transform: scale(0.98);
}

.post-horizontal .infos {
  flex: 1;
}

.post-horizontal .post-image {
  margin-left: 10px;
  line-height: 0;
}

.post-horizontal .post-image img {
  object-fit: cover;
  border-radius: 12px;
  min-width: 70px;
  max-width: 70px;
  height: 70px;
}

.post-horizontal .post-title {
  color: var(--title-color);
  font-weight: 500;
  line-height: 20px;
  font-size: 14px;
  margin: 2px 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.post-horizontal .post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  min-width: 0;
  width: 100%;
}

.post-horizontal .post-meta > * {
  flex-shrink: 0;
}

.post-horizontal .post-category {
  color: var(--text-color);
  font-size: 14px;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1 1 auto;
  min-width: 0;
  max-width: calc(100% - 100px); /* Dejar espacio para la fecha */
}

.post-horizontal .post-date {
  flex-shrink: 0;
  white-space: nowrap;
}

.post-horizontal .post-category:hover {
  color: var(--title-color);
  text-decoration: underline;
}

/* Control de nombre corto vs nombre completo según espacio disponible */
/* Mantener ambos en el HTML para SEO, pero ocultar visualmente según el espacio */
.post-category-text {
  display: inline-block;
}

/* Por defecto mostrar el nombre completo, ocultar el corto */
.post-category-short {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* En post-horizontal (elementos con poco espacio horizontal), mostrar corto y ocultar completo visualmente */
.post-horizontal .post-category {
  position: relative;
}

.post-horizontal .post-category .post-category-full {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.post-horizontal .post-category .post-category-short {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border-width: 0;
}

/* Cuando el contenedor es pequeño o en móvil, mostrar el corto y ocultar el completo visualmente */
@media (max-width: 768px) {
  .post-category {
    position: relative;
  }
  
  .post-category-full {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  .post-category-short {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border-width: 0;
  }
}

/* En elementos pequeños como cards destacadas, usar corto visualmente */
.card-category {
  position: relative;
}

.card-category .post-category-full {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.card-category .post-category-short {
  position: static;
  width: auto;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: visible;
  clip: auto;
  white-space: nowrap;
  border-width: 0;
}

/* Si solo hay un elemento (sin nombre corto), mostrarlo siempre */
.post-category-text:only-child {
  position: static !important;
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  white-space: nowrap !important;
  border-width: 0 !important;
}

.post-horizontal .post-date {
  color: var(--text-color);
  font-size: 12px;
  line-height: 1;
  opacity: 0.8;
}

/* Dark mode - Post category color exacto del original */
.dark .post-horizontal .post-category {
  color: #0ee9b3;
}

.dark .post-horizontal .post-category:hover {
  color: #0ee9b3;
  opacity: 0.8;
}

/* Post Subtitle */
.post-horizontal .post-subtitle {
  color: var(--text-color);
  font-size: 13px;
  line-height: 16px;
  margin: 2px 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* Post without image */
.post-horizontal.post-no-image {
  padding-right: 17px;
}

.post-horizontal.post-no-image .post-image {
  display: none;
}

/* Section Title */
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 20px 0 15px;
  font-size: 18px;
  font-weight: 600;
  color: var(--title-color);
}

.section-title .link {
  font-size: 14px;
  color: var(--primary-color);
  text-decoration: none;
  font-weight: 500;
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  margin: 5px 0;
}

.button-fill {
  background-color: var(--f7-button-fill-bg-color, var(--f7-theme-color));
  color: var(--f7-button-fill-text-color, #fff);
}

.button-outline {
  background-color: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.button-round {
  border-radius: 22px;
}

/* List */
.list {
  background: var(--background-color);
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--block-shadow);
}

.list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.list li {
  border-bottom: 1px solid rgba(0,0,0,0.12);
}

.list li:last-child {
  border-bottom: none;
}

.item-link {
  display: flex;
  align-items: center;
  padding: 15px;
  text-decoration: none;
  color: var(--title-color);
}

.item-media {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  overflow: hidden;
  margin-right: 15px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.item-media img {
  width: 50px;
  height: 50px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.item-inner {
  flex: 1;
}

.item-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--title-color);
  margin-bottom: 4px;
}

.item-footer {
  font-size: 13px;
  color: var(--text-color);
}

/* Badge */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  background-color: var(--primary-color);
  color: white;
}

.badge-with-icon {
  height: 24px;
  padding: 0 10px 0 6px;
  display: inline-flex;
  align-items: center;
}

.badge-with-icon i {
  font-size: 17px !important;
  margin-right: 3px;
}

/* Badges con colores (igual que botones) - Mayor especificidad */
.badge.color-green,
span.badge.color-green {
  background-color: #4cd964 !important;
  color: #fff !important;
}

.badge.color-red,
span.badge.color-red {
  background-color: #ff3b30 !important;
  color: #fff !important;
}

.badge.color-yellow,
span.badge.color-yellow {
  background-color: #ffcc00 !important;
  color: #000 !important;
}

.badge.color-orange,
span.badge.color-orange {
  background-color: #ff9500 !important;
  color: #fff !important;
}

.badge.color-purple,
span.badge.color-purple {
  background-color: #af52de !important;
  color: #fff !important;
}

.badge.color-deeppurple,
span.badge.color-deeppurple {
  background-color: #5856d6 !important;
  color: #fff !important;
}

.badge.color-lightblue,
span.badge.color-lightblue {
  background-color: #5ac8fa !important;
  color: #fff !important;
}

.badge.color-teal,
span.badge.color-teal {
  background-color: #5ac8fa !important;
  color: #fff !important;
}

.badge.color-lime,
span.badge.color-lime {
  background-color: #cddc39 !important;
  color: #000 !important;
}

/* Icon Colors */
.icon.color-yellow {
  color: #e5b32d;
}

.icon.color-red {
  color: #d8422e;
}

.icon.color-green {
  color: #19b48e;
}

/* Text Colors - Framework7 usa variables CSS */
.text-color-green {
  --f7-theme-color-text-color: #4cd964;
  color: var(--f7-theme-color-text-color) !important;
}

.text-color-red {
  --f7-theme-color-text-color: #ff3b30;
  color: var(--f7-theme-color-text-color) !important;
}

/* Stock List */
.stock-list {
  margin: 10px 0 20px 0;
}

.stock-item {
  box-shadow: var(--block-shadow);
  display: flex;
  padding: 13px 15px;
  border-radius: 13px;
  margin-bottom: 8px;
  background-color: var(--background-color);
  transition: transform 0.2s ease;
}

.stock-item:active {
  transform: scale(0.98);
}

.stock-item img {
  width: 40px;
  height: 40px;
  margin-right: 15px;
  flex-shrink: 0;
}

.stock-item-details {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.stock-item-top,
.stock-item-bottom {
  display: flex;
  justify-content: space-between;
}

.stock-item-top {
  margin-bottom: 3px;
}

.stock-item-title {
  font-weight: 500;
  color: var(--title-color);
  font-size: 15px;
}

.stock-item-value {
  font-weight: 500;
  color: var(--title-color);
  font-size: 15px;
  text-align: right;
}

.stock-item-name {
  color: var(--text-color);
  font-size: 14px;
}

.stock-item-change {
  font-size: 14px;
  font-weight: 500;
  text-align: right;
}

/* Event Lists */
.detailed-list {
  margin-top: 10px;
}

.detailed-list .item-content {
  padding-left: 15px;
}

.detailed-list .item-link .item-inner {
  padding-right: 15px;
  margin-left: 15px;
}

/* Ocultar todos los dividers de listas */
.list-dividers .item-inner::after,
.list-dividers-ios .item-inner::after,
.list-dividers-md .item-inner::after,
.list .item-inner::after {
  display: none !important;
}

.detailed-list .item-media {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.detailed-list .item-media img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.detailed-list .item-media.event-thumbnail {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  flex-shrink: 0;
}

.detailed-list .item-media.event-thumbnail img {
  width: 50px;
  height: 50px;
  border-radius: 17px;
  object-fit: cover;
  display: block;
}

.detailed-list .item-footer {
  line-height: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  color: var(--text-color);
  margin-top: 2px;
}

.detailed-list .item-name {
  font-size: 15px;
  color: var(--title-color);
  font-weight: 500;
}

.list .item-after.event-time {
  color: var(--title-color);
  font-weight: 500;
  font-size: 14px;
}

.list .item-media.event-icon i {
  font-size: 35px;
  margin: 0 5px;
}

.detailed-list .item-after .badge {
  height: 22px;
  padding: 0 9px;
  font-size: 12px;
}

/* Rating Blocks */
.rating-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 25px;
}

.rating-block-stars {
  display: flex;
  gap: 5px;
}

.rating-block-stars i {
  font-size: 24px;
}

.rating-block-note {
  font-weight: 500;
  font-size: 30px;
  margin: 20px 0;
  color: var(--title-color);
}

.rating-block-text {
  text-align: center;
  color: var(--text-color);
  font-size: 15px;
}

.rating-bg {
  background-color: #f5f9ff;
  border-radius: 15px;
}

.rating-block-detailed {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
}

.rating-block-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #f5f9ff;
  border-radius: 50px;
  padding: 10px 15px;
}

.rating-block-total-text {
  font-weight: 500;
  margin-top: 2px;
  margin-left: 5px;
  color: var(--title-color);
}

.rating-block-detailed .rating-block-stars i {
  font-size: 22px;
}

.rating-block-count {
  font-size: 14px;
  margin-top: 10px;
  color: var(--text-color);
  margin-bottom: 15px;
}

.rating-block-group {
  width: 100%;
}

.rating-block-individual {
  display: flex;
  align-items: center;
  margin: 15px 0;
}

.rating-block-individual:first-child {
  margin-top: 0;
}

.rating-block-star {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  font-weight: 500;
  width: 40px;
  color: var(--title-color);
}

.rating-block-star i {
  font-size: 18px;
  margin-left: 3px;
}

.rating-block-bar {
  margin: 0 10px;
  flex: 1;
}

.rating-block-percentage {
  font-weight: 500;
  width: 44px;
  color: var(--title-color);
  text-align: right;
}

/* Dark mode for rating */
.dark .rating-bg {
  background-color: var(--light-gray);
}

.dark .rating-block-total {
  background-color: var(--light-gray);
}

/* Tickets */
.ticket {
  border-radius: 15px;
  position: relative;
  width: 100%;
  height: 140px;
  font-size: 15px;
  background-color: var(--light-gray);
  overflow: hidden;
  padding: 20px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  box-sizing: border-box;
}

.ticket-infos {
  flex: 1;
  flex-basis: 50%;
  padding-left: 5px;
}

.ticket-image {
  flex: 1;
  flex-basis: 50%;
}

.ticket-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ticket-discount {
  font-size: 40px;
  font-weight: 600;
  color: var(--title-color);
  margin: 5px 0;
}

.ticket-text {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  color: var(--title-color);
  margin-bottom: 5px;
}

.ticket-description {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-color);
  margin-top: 5px;
}

.ticket:active {
  opacity: 0.5;
}

.ticket-fill {
  border-radius: 15px;
  position: relative;
  width: 100%;
  height: 140px;
  font-size: 15px;
  background: linear-gradient(90deg, rgb(21, 22, 27), rgb(20, 20, 45));
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 20px 30px;
  box-sizing: border-box;
  margin-bottom: 20px;
  overflow: hidden;
}


.ticket-fill .ticket-discount {
  color: #fff;
  font-weight: 500;
  z-index: 10;
  position: relative;
}

.ticket-fill .ticket-description {
  color: #fff;
  font-weight: 500;
  z-index: 10;
  position: relative;
}

.ticket-fill .ticket-text {
  z-index: 10;
  position: relative;
}

.ticket-background-icon {
  position: absolute;
  right: 40px;
  color: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.ticket-background-icon i {
  font-size: 110px;
}

.ticket-image-bg {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  object-fit: cover;
  border-radius: 15px;
}

.ticket-image-centered .ticket-image-bg {
  object-fit: cover;
  object-position: center center;
}

.ticket-image-bg + .ticket-text {
  z-index: 10;
  color: #fff;
  position: relative;
}

.ticket-fill.ticket-image .ticket-discount,
.ticket-fill.ticket-image .ticket-description {
  z-index: 10;
  position: relative;
}

.ticket-fill:active {
  opacity: 0.9;
}

/* Text color yellow */
.text-color-yellow {
  color: #e5b32d;
}

/* Dark mode for tickets */

.dark .ticket-fill {
  background: #0ee9b3;
}

.dark .ticket-fill:not(.ticket-image) .ticket-discount,
.dark .ticket-fill:not(.ticket-image) .ticket-description,
.dark .ticket-fill:not(.ticket-image) .ticket-text {
  color: #000 !important;
}


.dark .ticket-fill.ticket-image {
  background: none;
}

/* Timeline */
.timeline {
  padding: 0;
}

.timeline-item-text {
  color: var(--text-color);
  margin-top: 5px;
  line-height: 1.8em;
}

.timeline-item-text p {
  margin: 0 0 10px 0;
  color: var(--text-color);
  font-size: 15px;
}

.timeline-item-text p:last-child {
  margin-bottom: 0;
}

.timeline-item-date {
  font-weight: 500;
  color: var(--title-color);
  font-size: 15px;
}

.timeline-item-divider:after,
.timeline-item-divider:before {
  width: 1px;
  opacity: 0.2;
  background: #41454b;
}

.timeline-item-divider {
  background: var(--title-color);
}

.timeline-item-content {
  margin-top: -4px;
  margin-bottom: 5px;
}

.timeline-item-inner {
  padding-top: 0;
}

.timeline-item-title {
  font-weight: 500;
  font-size: 15px;
  color: var(--title-color);
  margin-bottom: 5px;
}

.timeline-item-text img {
  border-radius: 10px;
  width: 100%;
  margin-top: 10px;
  display: block;
  max-width: 100%;
  height: auto;
}

/* Timeline images responsive */
@media (min-width: 768px) {
  .timeline-item-text img {
    max-width: 500px;
  }
}

@media (min-width: 1024px) {
  .timeline-item-text img {
    max-width: 400px;
  }
}

/* Dark mode for timeline */
.dark .timeline-item-inner {
  background: transparent;
}

.dark .timeline-item-divider:after,
.dark .timeline-item-divider:before {
  background: #fff;
}

/* Information Blocks */
.information-block {
  background-color: #f5f9ff;
  background-image: url("../img/images/pattern-general.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  color: var(--title-color);
  text-align: center;
  border-radius: 15px;
  padding: 25px 20px 20px 20px;
  margin: 20px 0;
}

.information-block.error-message {
  background-color: #ffeaea;
  background-image: url("../img/images/pattern-error.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.information-block.success-message {
  background-color: #e8f5e9;
  background-image: url("../img/images/pattern-success.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.information-block.success-message h2,
.information-block.success-message p {
  color: #599c63 !important;
}

.information-block.error-message h2,
.information-block.error-message p {
  color: #b14b4b !important;
}

.information-block img {
  width: 30%;
  max-width: 150px;
  height: auto;
  margin-bottom: 10px;
}

.information-block h2 {
  font-size: 30px;
  margin: 10px 0 0 0;
  font-weight: 600;
  color: var(--title-color);
}

.information-block p {
  color: var(--title-color);
  margin: 10px 0 10px 0;
  font-weight: 500;
  line-height: 1.5;
  font-size: 15px;
}

/* Dark mode for information blocks */
.dark .information-block:not(.success-message, .error-message) h2,
.dark .information-block:not(.success-message, .error-message) p {
  color: #1e2b47 !important;
}

/* Link Banners */
.link-banner {
  padding: 15px 15px 15px 20px;
  position: relative;
  border-radius: 15px;
  margin: 15px 0;
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: var(--title-color);
  overflow: hidden;
  background-color: var(--light-gray);
}

.link-banner i {
  margin-right: 10px;
  font-size: 35px;
  font-weight: 400;
  color: var(--title-color);
}

.link-banner-text {
  display: flex;
  flex-direction: column;
  color: var(--title-color);
  margin-left: 10px;
}

.link-banner-title {
  font-weight: 500;
  font-size: 15px;
  color: var(--title-color);
}

.link-banner-subtitle {
  font-weight: 400;
  font-size: 14px;
  margin-top: 2px;
  color: var(--title-color);
  opacity: 0.7;
}

.link-banner img {
  margin-right: 10px;
  max-height: 40px;
  width: auto;
}

.link-chevron::before {
  font-family: "framework7-core-icons";
  font-weight: normal;
  font-style: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "liga";
  text-align: center;
  display: block;
  width: 8px;
  height: 14px;
  position: absolute;
  top: 50%;
  margin-top: -7px;
  font-size: var(--f7-list-chevron-icon-font-size, 20px);
  line-height: 14px;
  color: var(--title-color);
  pointer-events: none;
  right: calc(var(--f7-list-item-padding-horizontal, 16px) + var(--f7-safe-area-right, 0px));
  content: var(--f7-list-chevron-icon-right, "chevron_right");
}

.link-banner.bg-color-primary,
.link-banner.bg-color-primary .link-banner-text,
.link-banner.bg-color-primary .link-banner-title,
.link-banner.bg-color-primary i,
.link-banner.bg-color-primary.link-chevron::before {
  color: #fff;
}

.link-banner.bg-color-primary .link-banner-subtitle {
  color: #fff;
  opacity: 0.8;
}

.link-banner.bg-color-dark:not(.bg-color-black) {
  background-color: var(--title-color) !important;
}

.link-banner.bg-color-dark:not(.bg-color-black),
.link-banner.bg-color-dark:not(.bg-color-black) .link-banner-text,
.link-banner.bg-color-dark:not(.bg-color-black) .link-banner-title,
.link-banner.bg-color-dark:not(.bg-color-black) i,
.link-banner.bg-color-dark:not(.bg-color-black).link-chevron::before {
  color: #fff;
}

.link-banner.bg-color-dark:not(.bg-color-black) .link-banner-subtitle {
  color: #fff;
  opacity: 0.8;
}

.link-banner.bg-color-black {
  background-color: #000 !important;
}

.link-banner.bg-color-black,
.link-banner.bg-color-black .link-banner-text,
.link-banner.bg-color-black .link-banner-title,
.link-banner.bg-color-black i,
.link-banner.bg-color-black.link-chevron::before {
  color: #fff !important;
}

.link-banner.bg-color-black .link-banner-subtitle {
  color: #fff !important;
  opacity: 0.8;
}

.link-banner.dark-theme-green {
  background-color: #0ee9b3;
}

.link-banner.dark-theme-green .link-banner-text,
.link-banner.dark-theme-green .link-banner-title,
.link-banner.dark-theme-green i,
.link-banner.dark-theme-green .link-banner-subtitle,
.link-banner.dark-theme-green.link-chevron::before {
  color: #000;
}

.link-banner.error-message {
  background-color: #ffeaea;
  background-image: url("../img/images/pattern-error.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.link-banner.error-message .link-banner-title,
.link-banner.error-message .link-banner-subtitle,
.link-banner.error-message i,
.link-banner.error-message.link-chevron::before {
  color: #9b3d3d;
}

.link-banner.success-message {
  background-color: #e8f5e9;
  background-image: url("../img/images/pattern-success.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.link-banner.success-message .link-banner-title,
.link-banner.success-message .link-banner-subtitle,
.link-banner.success-message i,
.link-banner.success-message.link-chevron::before {
  color: #508d59;
}

/* Dark mode for link banners */
.dark .link-banner.dark-theme-green {
  background-color: #0ee9b3;
}

.dark .link-banner.dark-theme-green .link-banner-title,
.dark .link-banner.dark-theme-green i,
.dark .link-banner.dark-theme-green .link-banner-subtitle,
.dark .link-banner.dark-theme-green.link-chevron::before {
  color: #000;
}

.dark .link-banner.bg-color-dark:not(.bg-color-black) {
  background-color: var(--light-gray) !important;
}

.dark .link-banner.bg-color-black {
  background-color: #000 !important;
}

.dark .link-banner.bg-color-black,
.dark .link-banner.bg-color-black .link-banner-text,
.dark .link-banner.bg-color-black .link-banner-title,
.dark .link-banner.bg-color-black i,
.dark .link-banner.bg-color-black .link-banner-subtitle,
.dark .link-banner.bg-color-black.link-chevron::before {
  color: #fff !important;
}

/* Info Block */
.info-block {
  background-color: var(--light-gray);
  padding: 15px 20px;
  border-radius: 15px;
  margin-top: 20px;
  margin-bottom: 25px;
  position: relative;
}

.info-block p {
  font-size: 15px;
  color: #708197;
  margin: 0;
}

.info-block-icon {
  position: absolute;
  top: -15px;
  right: -15px;
  background-color: #ffffff;
  padding: 4px;
  border-radius: 50%;
}

.info-block-icon i {
  font-size: 25px;
  color: var(--title-color);
}

/* Dark mode for info block */
.dark .info-block-icon {
  background-color: var(--background-color);
}

/* Text Align Center */
.text-align-center {
  text-align: center;
}

/* Preloader Demo */
.preloader-demo > div {
  text-align: center;
}

.preloader-big {
  height: 40px;
  width: 40px;
}

/* Preloader Styles - Asegurar que se vean */
.preloader {
  display: inline-block !important;
  vertical-align: middle;
  width: var(--f7-preloader-size, 20px);
  height: var(--f7-preloader-size, 20px);
  font-size: 0;
  position: relative;
  color: var(--f7-preloader-color, #6c6c6c);
}

.preloader:not([class*='color-']) {
  color: #6c6c6c;
}

.preloader .preloader-inner {
  width: 100%;
  height: 100%;
  display: block;
  position: relative;
  animation: ios-preloader-spin 1s steps(8, end) infinite;
}

.preloader-inner-line {
  display: block;
  width: 11.6%;
  height: 33.33%;
  border-radius: 100px;
  background: currentColor;
  position: absolute;
  left: 50%;
  top: 50%;
  transform-origin: center 150%;
}

.preloader-inner-line:nth-child(1) {
  transform: translate(-50%, -150%) rotate(0deg);
  opacity: 0.27;
}

.preloader-inner-line:nth-child(2) {
  transform: translate(-50%, -150%) rotate(45deg);
  opacity: 0.35285714;
}

.preloader-inner-line:nth-child(3) {
  transform: translate(-50%, -150%) rotate(90deg);
  opacity: 0.43571429;
}

.preloader-inner-line:nth-child(4) {
  transform: translate(-50%, -150%) rotate(135deg);
  opacity: 0.51857143;
}

.preloader-inner-line:nth-child(5) {
  transform: translate(-50%, -150%) rotate(180deg);
  opacity: 0.60142857;
}

.preloader-inner-line:nth-child(6) {
  transform: translate(-50%, -150%) rotate(225deg);
  opacity: 0.68428571;
}

.preloader-inner-line:nth-child(7) {
  transform: translate(-50%, -150%) rotate(270deg);
  opacity: 0.76714286;
}

.preloader-inner-line:nth-child(8) {
  transform: translate(-50%, -150%) rotate(315deg);
  opacity: 0.85;
}

@keyframes ios-preloader-spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.preloader.color-multi .preloader-inner-line {
  animation: ios-preloader-multicolor 3s linear infinite;
}

@keyframes ios-preloader-multicolor {
  0%, 100% {
    background-color: #2196f3;
  }
  25% {
    background-color: #ff3b30;
  }
  50% {
    background-color: #4cd964;
  }
  75% {
    background-color: #ff9500;
  }
}

.preloader[class*='color-'] {
  --f7-preloader-color: var(--f7-theme-color);
  color: var(--f7-theme-color);
}

.preloader.color-blue {
  --f7-preloader-color: #2196f3;
  color: #2196f3;
}

.preloader.color-red {
  --f7-preloader-color: #ff3b30;
  color: #ff3b30;
}

.preloader.color-purple {
  --f7-preloader-color: #9c27b0;
  color: #9c27b0;
}

.preloader.color-teal {
  --f7-preloader-color: #009688;
  color: #009688;
}

.preloader.color-orange {
  --f7-preloader-color: #ff9500;
  color: #ff9500;
}

.preloader.color-green {
  --f7-preloader-color: #4cd964;
  color: #4cd964;
}

/* Progress Bars */
.progressbar-infinite,
.progressbar {
  margin: 20px 0;
  height: 8px;
  background-color: var(--light-gray);
}

.progressbar span {
  background-color: var(--f7-theme-color, #007aff);
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  transition-duration: 150ms;
}

.progressbar-infinite:before {
  content: '';
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  background-color: var(--f7-theme-color, #007aff);
  left: 0;
  animation: ios-progressbar-infinite 1s linear infinite;
}

.progressbar-infinite.color-multi:before {
  width: 400%;
  background-image: linear-gradient(to right, #4cd964, #5ac8fa, #007aff, #34aadc, #5856d6, #ff2d55, #5856d6, #34aadc, #007aff, #5ac8fa, #4cd964);
  background-size: 25% 100%;
  background-repeat: repeat-x;
  animation: ios-progressbar-infinite-multicolor 3s linear infinite;
}

@keyframes ios-progressbar-infinite {
  0% {
    transform: translate3d(-100%, 0, 0);
  }
  100% {
    transform: translate3d(100%, 0, 0);
  }
}

@keyframes ios-progressbar-infinite-multicolor {
  0% {
    transform: translate3d(0%, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Checkboxes - Estilos específicos del proyecto */
.ios .checkbox i:after,
.ios .icon-checkbox:after {
  font-size: 20px;
  font-weight: 600;
  content: 'checkbox_ios' !important; /* Asegurar que el contenido esté presente */
}

.checkbox.checkbox-inline {
  margin-right: 5px;
}

/* Override border-radius para checkboxes normales */
.icon-checkbox,
.checkbox i {
  border-radius: 5px !important;
}

/* Override border-radius para checkboxes redondeados - mayor especificidad */
.checkbox-rounded .icon-checkbox,
.checkbox-rounded .checkbox i,
.item-checkbox.checkbox-rounded .icon-checkbox,
.item-checkbox.checkbox-rounded .checkbox i,
label.checkbox-rounded .icon-checkbox,
label.checkbox-rounded .checkbox i {
  border-radius: 50% !important;
}

/* Override border para checkboxes */
.icon-checkbox,
.checkbox i {
  border: 2px solid #c7c7cc !important;
}

/* Ajuste de posición del icono - solo ajustar top y left */
.icon-checkbox:after,
.checkbox i:after {
  top: -2px !important;
  left: -2px !important;
}

/* Forms */
input[type="text"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="password"],
select,
textarea {
  background-color: var(--light-gray);
  width: 100%;
  height: 44px;
  padding: 0 0 0 15px;
  border-radius: 10px;
  color: var(--title-color);
  font-weight: 500;
  margin-bottom: 20px;
  font-size: 15px;
  box-sizing: border-box;
}

select {
  padding-right: 40px;
  background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23828d9c%22%20d%3D%22M287%2C114.7L159.7%2C242c-3.2%2C3.2-8.4%2C3.2-11.6%2C0L5.4%2C114.7c-3.2-3.2-3.2-8.4%2C0-11.6l11.6-11.6c3.2-3.2%2C8.4-3.2%2C11.6%2C0l120.7%2C120.7l120.7-120.7c3.2-3.2%2C8.4-3.2%2C11.6%2C0l11.6%2C11.6C290.2%2C106.3%2C290.2%2C111.5%2C287%2C114.7z%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

::placeholder,
::-webkit-input-placeholder {
  color: #93a0b1;
  font-weight: 400;
}

input[type="date"],
input[type="datetime-local"] {
  padding-right: 10px;
  line-height: 42px;
}

textarea {
  height: 100px;
  padding-top: 12px;
  padding-bottom: 12px;
  resize: vertical;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--title-color);
  font-weight: 500;
  font-size: 15px;
}

form h1 {
  margin-top: 30px;
  margin-bottom: 20px;
  font-size: 24px;
  font-weight: 600;
  color: var(--title-color);
}

form h1:first-child {
  margin-top: 0;
}

/* Categories Grid */
.category-item {
  height: 100px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  display: block;
}

.category-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  filter: brightness(60%);
}

.category-name {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  line-height: 0;
  text-shadow: 0 0 20px #000;
  margin: 0;
}

.dark .category-item img {
  filter: brightness(70%);
}

/* Album Grid */
.album-grid {
  margin-top: 15px;
}

.album-grid a {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border-bottom: none !important;
  margin-bottom: 20px;
}

.album-grid a:nth-last-child(1),
.album-grid a:nth-last-child(2) {
  margin-bottom: 0px;
}

.album-grid img {
  width: 55px;
  border-radius: 6px;
  margin-right: 10px;
  flex-shrink: 0;
}

.album-details {
  width: calc(100% - 70px);
}

.album-grid a:nth-child(even) .album-details {
  width: calc(100% - 63px);
}

.album-title {
  font-size: 15px;
  color: var(--title-color);
  font-weight: 500;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.album-author {
  line-height: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  margin-top: 4px;
  color: var(--text-color);
}

/* Movie Card */
.card-movie {
  border-radius: 15px;
}

.card-movie-rating {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background-color: #fff;
  padding: 4px 8px 2px 6px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: var(--title-color);
  display: flex;
  align-items: center;
  gap: 3px;
  z-index: 10;
}

.card-movie-rating i {
  font-size: 12px;
  margin-bottom: 3px;
}

.card-movie .card-image img {
  aspect-ratio: 9/13;
  object-fit: cover;
  width: 100%;
}

/* Movie Card con card-image-footer - mantener aspect ratio de película */
.card-movie:has(.card-image-footer) .card-image img {
  aspect-ratio: 9/13 !important;
}

/* Rating sobre card-image-footer */
.card-movie .card-image-footer + .card-movie-rating,
.card-movie .card-image:has(.card-image-footer) .card-movie-rating {
  bottom: 15px;
  right: 18px;
}

/* Card image footer en la parte superior */
.card-image-footer-top {
  top: 0 !important;
  bottom: auto !important;
  padding: 15px 18px 60px 18px !important;
  background-image: linear-gradient(to bottom, rgb(24 24 24 / 95%) 0, rgba(0, 0, 0, 0) 100%) !important;
}

/* Rating cuando el footer está arriba */
.card-movie .card-image:has(.card-image-footer-top) .card-movie-rating {
  bottom: 8px;
  top: auto;
}

.dark .card-movie-rating {
  background-color: var(--background-color);
  color: #fff;
}

/* Author List */
.author-list .author-follow {
  height: 35px;
  margin: 0;
  color: #fff;
}

.author-list .item-media {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  flex-shrink: 0;
}

.author-list .item-media img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Single Post Author */
.single-post-author {
  display: flex;
  align-items: center;
  background-color: var(--light-gray);
  padding: 15px;
  border-radius: 15px;
  margin: 20px 0;
}

.single-post-author > img {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  margin-right: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.single-post-author .author-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 1;
}

.single-post-author .author-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--title-color);
  display: flex;
  align-items: center;
}

.single-post-author .author-description {
  color: var(--text-color);
}

/* Author Card */
.author-card {
  align-items: flex-start;
  padding: 20px;
}

.author-card-avatar-wrapper {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 20px;
}

.author-card-avatar-wrapper > img {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  margin-right: 0;
  object-fit: cover;
  flex-shrink: 0;
}


.author-card-details {
  flex: 1;
  min-width: 0;
  align-items: flex-start;
}

.author-card .author-name,
.author-card-name {
  font-size: 28px !important;
  font-weight: 700 !important;
  margin-bottom: 8px;
  margin-top: 0;
  line-height: 1.2;
}

.author-card-subtitle {
  margin-bottom: 12px;
  font-size: 14px;
}

.author-card-description {
  color: var(--text-color);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 15px;
  margin-top: 0;
}

.author-card-social {
  justify-content: flex-start !important;
  margin-bottom: 0 !important;
  margin-top: 0 !important;
  gap: 8px;
}

.author-card-social .contact-button {
  margin: 0 !important;
  background-color: var(--light-gray) !important;
}

.author-card-social .contact-button i {
  font-size: 20px;
}

.author-social-facebook i {
  color: #1877f2;
}

.author-social-instagram i {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.author-social-email i {
  color: var(--f7-theme-color);
}

.author-social-tiktok i {
  color: #000000;
}

/* Responsive Author Card */
@media (max-width: 767.98px) {
  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
  }

  .author-card-avatar-wrapper {
    margin-right: 0;
    margin-bottom: 15px;
  }

  .author-card-avatar-wrapper > img {
    width: 120px;
    height: 120px;
  }

  .author-card-details {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .author-card .author-name,
  .author-card-name {
    font-size: 22px !important;
    text-align: center;
  }

  .author-card-subtitle {
    text-align: center;
  }

  .author-card-description {
    text-align: left;
  }

  .author-card-social {
    justify-content: center !important;
    display: flex !important;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }
}

/* Author Card: Simple - Versión más compacta */
.author-card-simple {
  padding: 15px;
  align-items: center;
}

.author-card-simple-avatar {
  margin-right: 15px;
}

.author-card-simple-avatar > img {
  width: 80px;
  height: 80px;
}

.author-card-simple-details {
  flex: 1;
  min-width: 0;
}

.author-card-simple-name {
  font-size: 20px !important;
  font-weight: 600 !important;
  margin-bottom: 4px;
  margin-top: 0;
  line-height: 1.3;
}

.author-card-simple-subtitle {
  font-size: 13px;
  margin-bottom: 10px;
  color: var(--text-color);
  opacity: 0.8;
}

.author-card-simple-social {
  margin-top: 0 !important;
  gap: 6px;
}

.author-card-simple-social .contact-button {
  width: 32px;
  height: 32px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.author-card-simple-social .contact-button i {
  font-size: 16px;
}

/* Responsive Author Card Simple */
@media (max-width: 767.98px) {
  .author-card-simple {
    flex-direction: column;
    text-align: center;
    padding: 12px;
  }

  .author-card-simple-avatar {
    margin-right: 0;
    margin-bottom: 12px;
  }

  .author-card-simple-avatar > img {
    width: 70px;
    height: 70px;
  }

  .author-card-simple-details {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .author-card-simple-name {
    font-size: 18px !important;
    text-align: center;
  }

  .author-card-simple-subtitle {
    text-align: center;
  }

  .author-card-simple-social {
    justify-content: center !important;
  }
}

/* Author Card: Minimal - Versión más compacta con botón Follow */
.author-card-minimal {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 12px;
  background: var(--background-color);
  border: 1px solid var(--light-gray);
}

.author-card-minimal-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-card-minimal .author-details {
  flex: 1;
  min-width: 0;
}

.author-card-minimal .author-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.author-card-minimal .author-description {
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.8;
}

.author-card-minimal .author-follow {
  flex-shrink: 0;
  margin-left: auto;
  font-size: 13px;
  padding: 8px 16px;
  height: auto;
}

.author-card-minimal .verified-badge {
  font-size: 16px;
  margin-left: 4px;
}

/* Responsive Author Card Minimal */
@media (max-width: 767.98px) {
  .author-card-minimal {
    flex-wrap: wrap;
    padding: 10px;
  }

  .author-card-minimal-avatar {
    width: 45px;
    height: 45px;
  }

  .author-card-minimal .author-details {
    flex: 1 1 auto;
    min-width: 0;
  }

  .author-card-minimal .author-follow {
    width: 100%;
    margin-left: 0;
    margin-top: 8px;
    justify-content: center;
  }
}

  margin-top: 2px;
  font-size: 13px;
}

.single-post-author .author-follow {
  width: auto;
  margin-left: auto;
  padding: 0 15px 0 11px;
  height: 38px;
  flex-shrink: 0;
}

.verified-badge {
  margin-left: 2px;
  font-size: 19px;
}

/* Single Post Content */
.single-post-date {
  color: var(--text-color);
  font-size: 16px;
  margin-top: 10px;
}

.single-post-title {
  margin-top: 10px;
  margin-bottom: 15px;
  font-size: 28px;
  font-weight: 700;
  color: var(--title-color);
  line-height: 1.3;
}

.single-cover-image {
  border-radius: 8px;
  width: 100%;
  height: auto;
  margin: 15px 0;
  display: block;
}

.single-post-category {
  padding: 4px 10px;
  font-size: 14px;
  height: auto;
  border-radius: 6px;
  color: var(--title-color);
  background-color: var(--light-gray);
  font-weight: 500;
  margin-right: 5px;
  display: inline-block;
  margin-top: 15px;
}

.single-post-content {
  margin-top: 20px;
}

.single-post-content p {
  color: var(--text-color);
  font-size: 15px;
  line-height: 1.6;
  margin: 15px 0;
}

.single-post-content h2 {
  color: var(--title-color);
  font-size: 22px;
  font-weight: 600;
  margin: 25px 0 15px 0;
  line-height: 1.4;
}

.single-post-content img {
  border-radius: 8px;
  width: 100%;
  height: auto;
  margin: 20px 0;
  display: block;
}

/* Title Bottom Line */
.title-bottom-line {
  position: relative;
  margin-top: 30px;
  margin-bottom: 25px;
  color: var(--title-color);
  font-size: 22px;
  font-weight: 600;
}

.title-bottom-line::after {
  content: "";
  position: absolute;
  background-color: var(--f7-list-outline-border-color);
  display: block;
  z-index: 15;
  right: auto;
  bottom: -7px;
  left: 0;
  height: 1px;
  width: 100%;
  transform-origin: 50% 100%;
  transform: scaleY(calc(1 / var(--f7-device-pixel-ratio, 1)));
}

.comment-count {
  margin-left: 8px;
  font-size: 14px;
  padding: 2px 8px;
}

/* Comments */
.comment-list {
  margin-top: 30px;
}

.comment {
  display: flex;
  margin: 20px 0;
}

.comment > img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 13px;
  object-fit: cover;
  flex-shrink: 0;
}

.comment-infos {
  width: 100%;
  flex: 1;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.comment-header-left {
  display: flex;
  align-items: center;
}

.comment-infos .author-name {
  font-weight: 500;
  font-size: 15px;
  color: var(--title-color);
}

.comment-date {
  margin-left: 6px;
  color: var(--text-color);
  font-size: 15px;
  opacity: 0.8;
}

.comment-text {
  line-height: 1.55em;
  color: var(--text-color);
  font-size: 15px;
  margin-top: 2px;
}

.comment-options {
  flex-shrink: 0;
}

.comment-options .link {
  color: var(--text-color);
  opacity: 0.7;
  font-size: 18px;
}

.comment-reply {
  margin-left: 58px;
}

/* Form no-margin */
.grid.no-margin {
  margin: 0;
}

/* AdSense Containers - Responsive y Cumplimiento Legal */
.adsense-wrapper {
  position: relative;
  margin: 20px 0;
  width: 100%;
}

/* Etiqueta legal requerida por AdSense */
/* NOTA: AdSense NO agrega esta etiqueta automáticamente.
   Es responsabilidad del desarrollador incluirla para cumplir con las políticas.
   Si no quieres mostrarla, puedes ocultarla con: .adsense-label { display: none; }
   PERO esto puede violar las políticas de AdSense. */
.adsense-label {
  font-size: 9px;
  color: var(--text-color);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
  opacity: 0.7;
  font-weight: 500;
  display: block;
  text-align: center;
}

.adsense-container {
  width: 100%;
  display: block;
  background: var(--light-gray);
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  margin: 0;
  min-height: 50px;
}

/* Placeholder removido - contenedores listos para usar */

/* Medium Rectangle 300x250 - MÁS POPULAR */
.adsense-300x250 {
  min-height: 250px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.adsense-300x250-responsive {
  min-height: 250px;
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767.98px) {
  .adsense-300x250-responsive {
    max-width: 100%;
    min-height: 250px;
  }
}

/* Leaderboard 728x90 */
.adsense-728x90 {
  min-height: 90px;
  max-width: 728px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767.98px) {
  .adsense-728x90 {
    display: none;
  }
}

/* Responsive Banner - 728x90 Desktop / 320x50 Mobile */
.adsense-responsive-banner {
  min-height: 50px;
  max-width: 100%;
}

@media (min-width: 728px) {
  .adsense-responsive-banner {
    min-height: 90px;
    max-width: 728px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .adsense-responsive-banner .adsense-placeholder .adsense-size-desktop {
    display: block;
  }
  
  .adsense-responsive-banner .adsense-placeholder .adsense-size-mobile {
    display: none;
  }
}

@media (max-width: 727.98px) {
  .adsense-responsive-banner {
    min-height: 50px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .adsense-responsive-banner .adsense-placeholder .adsense-size-desktop {
    display: none;
  }
  
  .adsense-responsive-banner .adsense-placeholder .adsense-size-mobile {
    display: block;
  }
}

/* Large Rectangle 336x280 */
.adsense-336x280 {
  min-height: 280px;
  max-width: 336px;
  margin-left: auto;
  margin-right: auto;
}

.adsense-336x280-responsive {
  min-height: 280px;
  max-width: 336px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 767.98px) {
  .adsense-336x280-responsive {
    max-width: 100%;
    min-height: 280px;
  }
}

/* Wide Skyscraper 160x600 */
.adsense-160x600 {
  min-height: 600px;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991.98px) {
  .adsense-160x600 {
    display: none;
  }
}

.adsense-160x600-responsive {
  min-height: 600px;
  max-width: 160px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 991.98px) {
  .adsense-160x600-responsive {
    display: none;
  }
}

/* Mobile Banner 320x50 */
.adsense-320x50 {
  min-height: 50px;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  .adsense-320x50 {
    display: none;
  }
}

/* In-Article Ad - Responsive */
.adsense-in-article-wrapper {
  margin: 30px 0;
}

.adsense-in-article {
  min-height: 200px;
  width: 100%;
  max-width: 100%;
}

/* In-Feed Ad - Responsive */
.adsense-in-feed-wrapper {
  margin: 15px 0;
}

.adsense-in-feed {
  min-height: 100px;
  width: 100%;
  max-width: 100%;
}

/* Sidebar Ad - 300x250 Desktop / 300x600 Mobile */
.adsense-sidebar-wrapper {
  max-width: 300px;
  margin-left: auto;
  margin-right: auto;
}

.adsense-sidebar {
  min-height: 250px;
  max-width: 300px;
}

@media (min-width: 992px) {
  .adsense-sidebar {
    min-height: 250px;
  }
  
  .adsense-sidebar .adsense-placeholder .adsense-size-desktop {
    display: block;
  }
  
  .adsense-sidebar .adsense-placeholder .adsense-size-mobile {
    display: none;
  }
}

@media (max-width: 991.98px) {
  .adsense-sidebar-wrapper {
    max-width: 100%;
  }
  
  .adsense-sidebar {
    min-height: 600px;
    max-width: 100%;
  }
  
  .adsense-sidebar .adsense-placeholder .adsense-size-desktop {
    display: none;
  }
  
  .adsense-sidebar .adsense-placeholder .adsense-size-mobile {
    display: block;
  }
}

/* Sticky Ad - Solo móvil, bottom */
.adsense-sticky-wrapper {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: var(--background-color);
  border-top: 1px solid var(--light-gray);
  padding: 8px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  display: none;
}

@media (max-width: 767.98px) {
  .adsense-sticky-wrapper {
    display: block;
  }
  
  .adsense-sticky {
    min-height: 50px;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (min-width: 768px) {
  .adsense-sticky-wrapper {
    display: none !important;
  }
}

/* Dark mode adjustments */
.dark .adsense-container {
  background: var(--light-gray);
}

.dark .adsense-label {
  color: var(--text-color);
}

.dark .adsense-placeholder {
  color: var(--text-color);
}

.dark .adsense-placeholder p {
  color: var(--title-color);
}

/* Text Elements: Headings */
h1, h2, h3, h4, h5, h6 {
  color: var(--title-color);
  font-weight: 600;
  margin: 20px 0 15px 0;
  line-height: 1.3;
}

h1 {
  font-size: 32px;
  margin-top: 0;
}

h2 {
  font-size: 28px;
}

h3 {
  font-size: 24px;
}

h4 {
  font-size: 20px;
}

h5 {
  font-size: 18px;
}

h6 {
  font-size: 16px;
}

/* Text Elements: Paragraphs */
p {
  color: var(--text-color);
  margin: 15px 0;
  line-height: 1.6;
  font-size: 16px;
}

/* Text Elements: Lists */
ul, ol {
  color: var(--text-color);
  margin: 15px 0;
  padding-left: 30px;
}

ul {
  list-style-type: disc;
}

ol {
  list-style-type: decimal;
}

li {
  margin: 8px 0;
  line-height: 1.6;
}

ul ul, ol ol, ul ol, ol ul {
  margin: 5px 0;
  padding-left: 25px;
}

ul ul {
  list-style-type: circle;
}

ul ul ul {
  list-style-type: square;
}

/* Text Elements: Definition Lists */
dl {
  margin: 15px 0;
  color: var(--text-color);
}

dt {
  font-weight: 600;
  color: var(--title-color);
  margin-top: 15px;
  margin-bottom: 5px;
}

dd {
  margin-left: 20px;
  margin-bottom: 10px;
  line-height: 1.6;
}

/* Text Elements: Blockquotes */
blockquote {
  margin: 20px 0;
  padding: 15px 20px;
  border-left: 4px solid var(--f7-theme-color);
  background: var(--light-gray);
  border-radius: 4px;
  color: var(--text-color);
  font-style: italic;
}

blockquote p {
  margin: 0;
}

blockquote cite {
  display: block;
  margin-top: 10px;
  font-size: 14px;
  font-style: normal;
  color: var(--text-color);
  opacity: 0.8;
}

blockquote cite::before {
  content: "— ";
}

/* Text Elements: Inline Text */
strong, b {
  font-weight: 600;
  color: var(--title-color);
}

em, i {
  font-style: italic;
}

u {
  text-decoration: underline;
}

s {
  text-decoration: line-through;
}

mark {
  background-color: #ffeb3b;
  color: #000;
  padding: 2px 4px;
  border-radius: 3px;
}

.dark mark {
  background-color: #fdd835;
  color: #000;
}

small {
  font-size: 85%;
}

code {
  background: var(--light-gray);
  color: var(--f7-theme-color);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 90%;
}

kbd {
  background: var(--title-color);
  color: var(--background-color);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 90%;
}

sup {
  font-size: 75%;
  vertical-align: super;
}

sub {
  font-size: 75%;
  vertical-align: sub;
}

abbr {
  text-decoration: underline dotted;
  cursor: help;
}

/* Text Elements: Code Blocks */
pre {
  background: var(--light-gray);
  border-radius: 8px;
  padding: 15px;
  overflow-x: auto;
  margin: 20px 0;
  line-height: 1.5;
  font-family: 'Courier New', Courier, monospace;
  font-size: 14px;
}

pre code {
  background: transparent;
  padding: 0;
  color: var(--text-color);
  font-size: inherit;
}

/* Text Elements: Horizontal Rules */
hr {
  border: none;
  border-top: 1px solid var(--light-gray);
  margin: 30px 0;
  height: 0;
}

/* Dark mode adjustments for text elements */
.dark h1, .dark h2, .dark h3, .dark h4, .dark h5, .dark h6 {
  color: var(--title-color);
}

/* Asegurar que los h4 en card-image-footer siempre sean blancos, incluso en modo oscuro */
.dark .card-image-footer h2,
.dark .card-image-footer h3,
.dark .card-image-footer h4 {
  color: #fff !important;
}

.dark p, .dark li, .dark dd {
  color: var(--text-color);
}

.dark blockquote {
  background: var(--light-gray);
  border-left-color: var(--f7-theme-color);
}

.dark code {
  background: rgba(255, 255, 255, 0.1);
  color: #4cd964;
}

.dark pre {
  background: rgba(255, 255, 255, 0.05);
}

.dark pre code {
  color: var(--text-color);
}

.dark hr {
  border-top-color: var(--light-gray);
}

.dark .adsense-sticky-wrapper {
  background: var(--background-color);
  border-top-color: var(--light-gray);
}

/* Accordion - Asegurar que funcione sin Framework7 JS */
.accordion-item-content {
  position: relative;
  overflow: hidden;
  height: 0;
  font-size: 14px;
  transition-duration: 300ms;
}

.accordion-item-opened > .accordion-item-content {
  height: auto;
}

/* Navbars Profesionales */
.nav-pro {
  background: var(--background-color);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

.nav-pro-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  height: 70px;
  position: relative;
  gap: 16px;
}

.nav-pro-logo {
  display: flex;
  align-items: center;
  height: 40px;
  text-decoration: none;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-pro-logo-img {
  height: 100%;
  width: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

/* Logo para modo claro: logo_white.png */
.nav-pro-logo-light {
  display: block;
}

/* Logo para modo oscuro: logo.png */
.nav-pro-logo-dark {
  display: none;
}

/* En modo oscuro, mostrar logo.png y ocultar logo_white.png */
.dark .nav-pro-logo-light {
  display: none;
}

.dark .nav-pro-logo-dark {
  display: block;
}

.nav-pro-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
  flex-shrink: 0;
  order: -1;
}

.nav-pro-toggle span {
  display: block;
  width: 25px;
  height: 3px;
  background: var(--title-color);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-pro-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.nav-pro-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-pro-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.nav-pro-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 8px;
  align-items: center;
  flex: 1;
  justify-content: center;
}

.nav-pro-item {
  position: relative;
}

.nav-pro-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  color: var(--title-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-pro-link:hover {
  background-color: var(--light-gray);
  color: var(--f7-theme-color);
}

.nav-pro-link i {
  font-size: 11px;
  transition: transform 0.2s ease;
}

.nav-pro-item:hover .nav-pro-link i {
  transform: rotate(180deg);
}

.nav-pro-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--background-color);
  border: 1px solid var(--light-gray);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  list-style: none;
  margin: 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1000;
}

.nav-pro-item:hover .nav-pro-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-pro-dropdown li {
  margin: 0;
}

.nav-pro-dropdown a {
  display: block;
  padding: 12px 20px;
  color: var(--title-color);
  text-decoration: none;
  font-size: 14px;
  transition: all 0.2s ease;
}

.nav-pro-dropdown a:hover {
  background-color: var(--light-gray);
  color: var(--f7-theme-color);
  padding-left: 24px;
}

.nav-pro-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 1001;
  flex-shrink: 0;
}

.nav-pro-action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  color: var(--title-color);
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
  font-size: 20px;
}

.nav-pro-action:hover {
  background-color: var(--light-gray);
  color: var(--f7-theme-color);
}

/* Nav Pro 4: Con Búsqueda */
.nav-pro-4 .nav-pro-menu {
  flex: 0 1 auto;
  margin-right: auto;
}

.nav-pro-4 .nav-pro-search {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-left: 16px;
  margin-right: 12px;
}

.nav-pro-search-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-pro-search-input {
  background-color: var(--light-gray) !important;
  width: 250px;
  height: 44px;
  padding: 0 0 0 15px;
  border-radius: 10px !important;
  color: var(--title-color);
  font-weight: 500;
  font-size: 15px;
  box-sizing: border-box;
  margin: 0 !important;
  border: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  box-shadow: none !important;
}

.nav-pro-search-input:focus {
  background-color: var(--light-gray) !important;
}

.nav-pro-search-input::placeholder {
  color: #93a0b1;
  font-weight: 400;
}

.nav-pro-search-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--light-gray);
  border: none;
  border-radius: 10px;
  color: var(--title-color);
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.nav-pro-search-button:hover {
  background-color: var(--f7-theme-color);
  color: #fff;
}

.nav-pro-search-button i {
  font-size: 18px;
}

@media (min-width: 768px) {
  .nav-pro-4 .nav-pro-search-input {
    width: 280px;
  }
}

@media (min-width: 1024px) {
  .nav-pro-4 .nav-pro-search-input {
    width: 320px;
  }
}

/* Nav Pro 1: Estilo por defecto (ya definido arriba) */

/* Nav Pro 2: Minimalista */
.nav-pro-2 {
  box-shadow: none;
  border-bottom: 1px solid var(--light-gray);
}

.nav-pro-2 .nav-pro-container {
  height: 64px;
}

.nav-pro-2 .nav-pro-link {
  font-weight: 400;
  padding: 8px 14px;
}

.nav-pro-2 .nav-pro-link:hover {
  background-color: transparent;
  color: var(--f7-theme-color);
}

/* Nav Pro 3: Centrado */
.nav-pro-3 .nav-pro-container {
  flex-direction: column;
  height: auto;
  padding: 20px 24px;
  gap: 16px;
}

.nav-pro-3 .nav-pro-menu {
  justify-content: center;
  flex-wrap: wrap;
}

.nav-pro-3 .nav-pro-actions {
  position: absolute;
  right: 24px;
  top: 20px;
}

/* Responsive - Mobile */
@media (max-width: 991px) {
  .nav-pro {
    position: relative;
  }

  .nav-pro-container {
    height: 64px;
    padding: 0 20px;
  }

  .nav-pro-toggle {
    display: flex;
  }

  .nav-pro-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--background-color);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-top: 1px solid var(--light-gray);
    z-index: 999;
  }

  .nav-pro-menu.active {
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    padding: 8px 0;
  }

  .nav-pro-item {
    width: 100%;
  }

  .nav-pro-link {
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    justify-content: space-between;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-pro-link:last-child {
    border-bottom: none;
  }

  .nav-pro-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--light-gray);
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(0, 0, 0, 0.02);
    border-radius: 0;
  }

  .dark .nav-pro-dropdown {
    background: rgba(255, 255, 255, 0.03);
  }

  .nav-pro-item.active .nav-pro-dropdown {
    max-height: 600px;
  }

  .nav-pro-dropdown a {
    padding: 12px 20px 12px 40px;
    border-bottom: 1px solid var(--light-gray);
  }

  .nav-pro-dropdown a:last-child {
    border-bottom: none;
  }

  .nav-pro-link i {
    transform: rotate(0deg);
    transition: transform 0.3s ease;
  }

  .nav-pro-item.active .nav-pro-link i {
    transform: rotate(180deg);
  }

  .nav-pro-2 .nav-pro-container {
    height: 64px;
  }

  .nav-pro-3 .nav-pro-container {
    height: auto;
    padding: 16px 20px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .nav-pro-3 .nav-pro-logo {
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
  }

  .nav-pro-3 .nav-pro-menu {
    width: 100%;
    order: 3;
  }

  .nav-pro-3 .nav-pro-actions {
    position: absolute;
    right: 20px;
    top: 16px;
  }

  .nav-pro-3 .nav-pro-toggle {
    position: absolute;
    left: 20px;
    top: 16px;
  }

  .nav-pro-4 .nav-pro-search {
    order: 4;
    width: 100%;
    max-width: 100%;
    margin: 12px 0 0 0;
  }

  .nav-pro-4 .nav-pro-search-form {
    width: 100%;
  }

  .nav-pro-4 .nav-pro-search-input {
    width: 100%;
    flex: 1;
  }

  .nav-pro-4 .nav-pro-menu {
    order: 3;
  }

  .nav-pro-4 .nav-pro-actions {
    order: 2;
  }
}

/* Navbar Desktop - Mantener para compatibilidad */
.navbar-desktop {
  background: var(--background-color);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.navbar-desktop-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  height: 60px;
}

.navbar-desktop-left {
  flex-shrink: 0;
}

.navbar-desktop-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--title-color);
  text-decoration: none;
}

.navbar-desktop-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

.navbar-desktop-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}

.navbar-desktop-item {
  position: relative;
}

.navbar-desktop-link {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 15px;
  color: var(--title-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.navbar-desktop-link:hover {
  background-color: var(--light-gray);
}

.navbar-desktop-link i {
  font-size: 12px;
  transition: transform 0.2s;
}

.navbar-desktop-item:hover .navbar-desktop-link i {
  transform: rotate(180deg);
}

.navbar-desktop-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--background-color);
  border: 1px solid var(--light-gray);
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  list-style: none;
  margin: 5px 0 0 0;
  padding: 8px 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
  z-index: 1000;
}

.navbar-desktop-item:hover .navbar-desktop-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.navbar-desktop-dropdown li {
  margin: 0;
}

.navbar-desktop-dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--title-color);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.navbar-desktop-dropdown a:hover {
  background-color: var(--light-gray);
}

.navbar-desktop-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.navbar-desktop-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--title-color);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.navbar-desktop-icon:hover {
  background-color: var(--light-gray);
}

/* Responsive - Mobile */
@media (max-width: 767px) {
  .navbar-desktop-container {
    flex-wrap: wrap;
    height: auto;
    padding: 10px;
  }

  .navbar-desktop-center {
    order: 3;
    width: 100%;
    margin-top: 10px;
  }

  .navbar-desktop-menu {
    flex-direction: column;
    width: 100%;
    gap: 0;
  }

  .navbar-desktop-item {
    width: 100%;
  }

  .navbar-desktop-link {
    width: 100%;
    padding: 12px 15px;
    border-bottom: 1px solid var(--light-gray);
    border-radius: 0;
  }

  .navbar-desktop-dropdown {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    border-top: 1px solid var(--light-gray);
    margin: 0;
    padding: 0;
    display: none;
  }

  .navbar-desktop-item.active .navbar-desktop-dropdown {
    display: block;
  }

  .navbar-desktop-link i {
    margin-left: auto;
  }
}

/* Navbar Minimalista */
.navbar-minimal {
  background: var(--background-color);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-minimal-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
}

.navbar-minimal-logo {
  font-size: 18px;
  font-weight: 600;
  color: var(--title-color);
  text-decoration: none;
}

.navbar-minimal-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 30px;
}

.navbar-minimal-menu a {
  color: var(--title-color);
  text-decoration: none;
  font-size: 14px;
  font-weight: 400;
  transition: color 0.2s;
}

.navbar-minimal-menu a:hover {
  color: var(--f7-theme-color);
}

.navbar-minimal-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 35px;
  height: 35px;
  color: var(--title-color);
  text-decoration: none;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.navbar-minimal-icon:hover {
  background-color: var(--light-gray);
}

/* Navbar con Iconos */
.navbar-icons {
  background: var(--background-color);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-icons-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
}

.navbar-icons-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--title-color);
  text-decoration: none;
}

.navbar-icons-logo i {
  font-size: 24px;
  color: var(--f7-theme-color);
}

.navbar-icons-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 5px;
}

.navbar-icons-menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  color: var(--title-color);
  text-decoration: none;
  font-size: 12px;
  border-radius: 8px;
  transition: background-color 0.2s;
  min-width: 70px;
}

.navbar-icons-menu a:hover {
  background-color: var(--light-gray);
}

.navbar-icons-menu i {
  font-size: 20px;
}

.navbar-icons-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--title-color);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.navbar-icons-icon:hover {
  background-color: var(--light-gray);
}

/* Navbar Centrado */
.navbar-centered {
  background: var(--background-color);
  border-bottom: 1px solid var(--light-gray);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-centered-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  position: relative;
}

.navbar-centered-logo {
  font-size: 22px;
  font-weight: 700;
}

.navbar-centered-logo a {
  color: var(--title-color);
  text-decoration: none;
}

.navbar-centered-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 25px;
}

.navbar-centered-menu a {
  color: var(--title-color);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s;
}

.navbar-centered-menu a:hover {
  color: var(--f7-theme-color);
}

.navbar-centered-right {
  position: absolute;
  right: 20px;
  top: 20px;
}

.navbar-centered-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--title-color);
  text-decoration: none;
  border-radius: 8px;
  transition: background-color 0.2s;
}

.navbar-centered-icon:hover {
  background-color: var(--light-gray);
}

/* Navbar Vertical */
.navbar-vertical {
  width: 250px;
  background: var(--background-color);
  border-right: 1px solid var(--light-gray);
  display: flex;
  flex-direction: column;
  height: 500px;
  position: sticky;
  top: 0;
}

.navbar-vertical-header {
  padding: 20px;
  border-bottom: 1px solid var(--light-gray);
}

.navbar-vertical-logo {
  font-size: 20px;
  font-weight: 700;
  color: var(--title-color);
  text-decoration: none;
}

.navbar-vertical-menu {
  flex: 1;
  list-style: none;
  margin: 0;
  padding: 10px 0;
  overflow-y: auto;
}

.navbar-vertical-menu li {
  margin: 0;
}

.navbar-vertical-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  color: var(--title-color);
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.2s;
}

.navbar-vertical-menu a:hover {
  background-color: var(--light-gray);
}

.navbar-vertical-menu i {
  font-size: 20px;
  width: 24px;
  text-align: center;
}

.navbar-vertical-footer {
  padding: 15px 20px;
  border-top: 1px solid var(--light-gray);
}

.navbar-vertical-icon {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--title-color);
  text-decoration: none;
  font-size: 14px;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.2s;
}

.navbar-vertical-icon:hover {
  background-color: var(--light-gray);
}

/* Responsive para navbars adicionales */
@media (max-width: 767px) {
  .navbar-minimal-menu {
    flex-wrap: wrap;
    gap: 15px;
  }

  .navbar-icons-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .navbar-centered-menu {
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
  }

  .navbar-vertical {
    width: 100%;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--light-gray);
  }
}

/* Ticket Slider Size */
.ticket-slider-size-container {
  display: flex;
  margin-bottom: 20px;
  margin-left: -15px;
  margin-right: -15px;
  padding: 0 15px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.ticket-slider-size-container::-webkit-scrollbar {
  display: none;
}

.ticket-slider-size {
  width: 308.333px;
  min-width: 308.333px;
  max-width: 308.333px;
  flex-shrink: 0;
  margin-bottom: 0;
  margin-right: 15px;
}

.ticket-wrapper {
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-bottom: 20px;
}

.ticket-wrapper .ticket-slider-size {
  width: 100%;
  min-width: 100%;
  max-width: 100%;
  margin-right: 0;
}

/* Stack vertical para ticket-wrapper */
.ticket-wrapper-stack {
  flex: 1 1 0;
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin-bottom: 0;
}

.ticket-wrapper-stack .ticket-stack {
  flex: 1;
  height: auto;
  min-height: 200px;
  margin-bottom: 10px;
}

.ticket-wrapper-stack .ticket-image-bg {
  height: 100%;
  object-fit: cover;
}

.ticket-wrapper-slider {
  width: 308.333px;
  min-width: 308.333px;
  max-width: 308.333px;
  flex-shrink: 0;
  margin-bottom: 0;
  margin-right: 15px;
}

.ticket-no-text {
  margin-bottom: 15px;
  width: 100%;
  height: 140px !important;
  min-height: 140px;
  max-height: 140px;
}

.ticket-external-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0;
  padding: 0 5px;
  line-height: 1.3;
  text-align: left;
}

.ticket-external-title-slider {
  font-size: 16px;
  padding: 0;
  margin-top: 10px;
}

/* Button Colors - Usando variables CSS de Framework7 */
.color-light-gray {
  --f7-button-text-color: var(--title-color);
  --f7-text-color: var(--title-color);
  --f7-theme-color: #ecf1f5;
  --f7-theme-color-rgb: 236, 241, 245;
  --f7-theme-color-shade: #d1dde7;
  --f7-theme-color-tint: #f6f8fa;
  --f7-badge-text-color: var(--title-color);
}

.color-light-gray.button-fill {
  background-color: #ecf1f5;
  color: var(--title-color);
}

.color-dark {
  --f7-theme-color: #1e2b47;
  --f7-theme-color-rgb: 30, 43, 71;
  --f7-theme-color-shade: #121a2a;
  --f7-theme-color-tint: #2a3c64;
}

.color-dark.button-fill {
  background-color: #1e2b47;
  color: #fff;
}

.color-green {
  --f7-theme-color: #4cd964;
  --f7-theme-color-rgb: 76, 217, 100;
}

.color-green.button-fill {
  background-color: #4cd964;
  color: #fff;
}

.color-red {
  --f7-theme-color: #ff3b30;
  --f7-theme-color-rgb: 255, 59, 48;
}

.color-red.button-fill {
  background-color: #ff3b30;
  color: #fff;
}

.color-yellow {
  --f7-theme-color: #ffcc00;
  --f7-theme-color-rgb: 255, 204, 0;
}

.color-yellow.button-fill {
  background-color: #ffcc00;
  color: #000;
}

.color-orange {
  --f7-theme-color: #ff9500;
  --f7-theme-color-rgb: 255, 149, 0;
}

.color-orange.button-fill {
  background-color: #ff9500;
  color: #fff;
}

.color-purple {
  --f7-theme-color: #af52de;
  --f7-theme-color-rgb: 175, 82, 222;
}

.color-purple.button-fill {
  background-color: #af52de;
  color: #fff;
}

.color-deeppurple {
  --f7-theme-color: #5856d6;
  --f7-theme-color-rgb: 88, 86, 214;
}

.color-deeppurple.button-fill {
  background-color: #5856d6;
  color: #fff;
}

.color-lightblue {
  --f7-theme-color: #5ac8fa;
  --f7-theme-color-rgb: 90, 200, 250;
}

.color-lightblue.button-fill {
  background-color: #5ac8fa;
  color: #fff;
}

.color-teal {
  --f7-theme-color: #5ac8fa;
  --f7-theme-color-rgb: 90, 200, 250;
}

.color-teal.button-fill {
  background-color: #5ac8fa;
  color: #fff;
}

.color-lime {
  --f7-theme-color: #cddc39;
  --f7-theme-color-rgb: 205, 220, 57;
}

.color-lime.button-fill {
  background-color: #cddc39;
  color: #000;
}

/* Swiper Container */
swiper-container {
  display: block;
  margin: 0 -15px 20px;
  padding: 0 15px;
}

swiper-slide {
  display: inline-block;
  width: auto;
}

/* Responsive - Tablet (768px+) */
@media (min-width: 768px) {
  body {
    background-color: var(--body-bg);
  }
  
  .page-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
  }
  
  .post-horizontal {
    padding: 12px 12px 12px 15px;
  }
  
  .post-horizontal .post-image img {
    min-width: 80px;
    max-width: 80px;
    height: 80px;
  }
  
  .card-image-footer h2 {
    font-size: 24px;
  }
  
  .navbar {
    padding: 0 30px;
  }
  
  .card {
    margin: 25px 0;
    max-width: 600px;
  }
  
  .list {
    margin: 20px 0 30px;
  }
  
  .section-title {
    font-size: 20px;
    margin-top: 30px;
  }
  
  /* Grid para cards en tablet */
  .post-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .post-list .post-horizontal {
    margin-bottom: 0;
  }
}

/* Responsive - Desktop (1024px+) */
@media (min-width: 1024px) {
  .page-content {
    padding: 30px;
    max-width: 1400px;
  }
  
  .post-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .post-horizontal {
    padding: 14px 14px 14px 17px;
    max-width: 100%;
    transition: all 0.3s ease;
  }
  
  .post-horizontal .post-image img {
    min-width: 90px;
    max-width: 90px;
    height: 90px;
  }
  
  .post-horizontal .post-title {
    font-size: 16px;
    line-height: 24px;
  }
  
  .card-image-footer {
    padding: 80px 25px 20px;
  }
  
  .card-image-footer h2 {
    font-size: 28px;
    line-height: 32px;
  }
  
  .navbar {
    padding: 0 40px;
    height: 60px;
  }
  
  .navbar .title {
    font-size: 20px;
  }
  
  .navbar-large .title-large-text {
    font-size: 32px;
    padding-left: 40px;
  }
  
  .button {
    max-width: 300px;
    margin: 15px auto;
    transition: all 0.3s ease;
  }
  
  .list {
    max-width: 100%;
  }
  
  .section-title {
    font-size: 22px;
    margin-top: 40px;
    margin-bottom: 20px;
  }
  
  /* Hover effects para desktop */
  .post-horizontal:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 15px 0px #555f6925;
  }
  
  .card {
    transition: all 0.3s ease;
    max-width: 500px;
    margin: 20px auto;
  }
  
  .card:hover {
    transform: translateY(-2px);
    box-shadow: 0px 4px 15px 0px #555f6925;
  }
  
  .button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
  }
  
  .item-link {
    transition: background-color 0.2s ease;
  }
  
  .item-link:hover {
    background-color: var(--light-gray);
  }
  
  .navbar a {
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  
  .navbar a:hover {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Responsive - Large Desktop (1280px+) */
@media (min-width: 1280px) {
  .page-content {
    padding: 40px;
  }
  
  .post-horizontal {
    padding: 16px 16px 16px 19px;
  }
  
  .card-image-footer {
    padding: 100px 30px 25px;
  }
  
  .card-image-footer h2 {
    font-size: 32px;
    line-height: 36px;
  }
}

/* ============================================
   HERO SECTIONS - Article Headers
   ============================================ */

/* Base styles para todas las hero sections */
.article-hero {
  position: relative;
  width: 100%;
  margin-bottom: 40px;
}

.article-hero-date {
  display: block;
  font-size: 14px;
  color: var(--text-color);
  margin-bottom: 12px;
  font-weight: 500;
}

.article-hero-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 15px 0;
}

.article-hero-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: var(--text-color);
  margin: 0 0 20px 0;
  font-weight: 400;
}

.article-hero-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.article-hero-category {
  display: inline-block;
  padding: 6px 14px;
  background-color: var(--light-gray);
  color: var(--title-color);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.article-hero-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 25px;
  display: block;
  object-fit: cover;
}

.article-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.7));
  z-index: 1;
}

.article-hero-content {
  position: relative;
  z-index: 2;
}

/* Dark mode */
.dark .article-hero-title {
  color: var(--title-color);
}

.dark .article-hero-subtitle {
  color: var(--text-color);
}

.dark .article-hero-category {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--title-color);
}

/* Hero 1: Imagen arriba, texto abajo */
.article-hero-1 {
  padding: 20px 0;
}

.article-hero-1 .article-hero-image {
  margin-bottom: 25px;
}

/* Hero 2: Imagen de fondo con texto superpuesto centrado */
.article-hero-2 {
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  border-radius: 15px;
  overflow: hidden;
}

.article-hero-2 .article-hero-content {
  text-align: center;
  max-width: 800px;
  color: #fff;
}

.article-hero-2 .article-hero-date,
.article-hero-2 .article-hero-title,
.article-hero-2 .article-hero-subtitle {
  color: #fff;
}

.article-hero-2 .article-hero-category {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}

/* Hero 3: Imagen izquierda, texto derecha */
.article-hero-3 {
  padding: 40px 0;
}

.article-hero-3 .article-hero-image {
  border-radius: 15px;
  width: 100%;
  height: auto;
  margin-bottom: 0;
}

.article-hero-3 .article-hero-content {
  padding: 20px 0 20px 30px;
}

@media (max-width: 767.98px) {
  .article-hero-3 .article-hero-content {
    padding: 30px 0 0 0;
  }
}

/* Hero 4: Gradiente con texto centrado */
.article-hero-4 {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 20px;
  border-radius: 15px;
  text-align: center;
}

.article-hero-4 .article-hero-content {
  max-width: 800px;
  margin: 0 auto;
  color: #fff;
}

.article-hero-4 .article-hero-date,
.article-hero-4 .article-hero-title,
.article-hero-4 .article-hero-subtitle {
  color: #fff;
}

.article-hero-4 .article-hero-category {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
}

/* Dark mode para Hero 4 */
.dark .article-hero-4 {
  background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
}

/* Hero 5: Imagen fondo con overlay y texto izquierda */
.article-hero-5 {
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 60px 0;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.article-hero-5 .container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.article-hero-5 .row {
  align-items: center;
}

.article-hero-5 .article-hero-content {
  color: #fff;
  position: relative;
  z-index: 2;
  padding: 0;
  max-width: 100%;
}

.article-hero-5 .article-hero-date {
  color: #fff;
  margin-bottom: 12px;
  display: block;
}

.article-hero-5 .article-hero-title {
  color: #fff;
  margin: 0 0 15px 0;
  font-size: 42px;
  line-height: 1.2;
  font-weight: 700;
}

.article-hero-5 .article-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 25px 0;
  font-size: 18px;
  line-height: 1.6;
  font-weight: 400;
}

.article-hero-5 .article-hero-categories {
  margin-top: 0;
}

.article-hero-5 .article-hero-category {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Hero 6: Texto izquierda, imagen derecha con botones */
.article-hero-6 {
  padding: 60px 0;
}

.article-hero-6 .article-hero-content {
  padding: 0;
}

.article-hero-6 .article-hero-title {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 20px 0;
}

.article-hero-6 .article-hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0 0 30px 0;
  font-weight: 400;
}

.article-hero-6 .article-hero-meta {
  margin-top: 25px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.article-hero-6 .article-hero-categories {
  margin-top: 0;
}

.article-hero-6 .article-hero-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-hero-6 .article-hero-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.article-hero-6 .article-hero-author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.article-hero-6 .article-hero-author-name {
  font-size: 15px;
  font-weight: 500;
  color: var(--title-color);
  line-height: 1.2;
}

.article-hero-6 .article-hero-author-role {
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.2;
}

.article-hero-6 .article-hero-image-wrapper {
  width: 100%;
  height: auto;
}

.article-hero-6 .article-hero-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  margin-bottom: 0;
  object-fit: cover;
  display: block;
}

@media (max-width: 991.98px) {
  .article-hero-6 {
    padding: 40px 0;
  }
  
  .article-hero-6 .article-hero-title {
    font-size: 36px;
  }
  
  .article-hero-6 .article-hero-subtitle {
    font-size: 16px;
  }
  
  .article-hero-6 .article-hero-image-wrapper {
    margin-top: 30px;
  }
}

@media (max-width: 767.98px) {
  .article-hero-6 {
    padding: 30px 0;
  }
  
  .article-hero-6 .article-hero-title {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .article-hero-6 .article-hero-subtitle {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .article-hero-6 .article-hero-buttons {
    flex-direction: column;
    gap: 12px;
  }
  
  .article-hero-6 .article-hero-buttons .button {
    width: 100%;
    max-width: 100%;
  }
}

/* Hero 7: Texto izquierda, imagen derecha (variación 1) */
.article-hero-7 {
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 0;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.article-hero-7 .article-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 50%, rgba(0, 0, 0, 0.3) 100%);
  z-index: 1;
}

.article-hero-7 .container {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.article-hero-7 .row {
  justify-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
}

.article-hero-7 .article-hero-content {
  padding: 0;
  color: #fff;
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
  width: 100%;
}

.article-hero-7 .article-hero-image-placeholder {
  display: none;
}

.article-hero-7 .article-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-color);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.article-hero-7 .article-hero-title {
  color: #fff;
}

.article-hero-7 .article-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
}

.article-hero-7 .article-hero-tag-dot {
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
}

.article-hero-7 .article-hero-tag-text {
  color: #fff;
}

/* Asegurar que card-category en article-hero-7 use EXACTAMENTE los mismos estilos que en card-image-footer */
/* Usar la misma especificidad que .card-image-footer .card-category.color-dark */
.article-hero-7 .card-category.color-dark,
a.article-hero-7 .card-category.color-dark,
.article-hero-7 .article-hero-content .card-category.color-dark {
  background-color: #1e2b47 !important;
  background: #1e2b47 !important;
  color: #fff !important;
  border: none !important;
  padding: 4px 10px !important;
  display: inline-block !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  min-height: 22px !important;
  border-radius: 5px !important;
  margin-bottom: 10px !important;
}

.dark .article-hero-7 .card-category.color-dark,
.dark a.article-hero-7 .card-category.color-dark,
.dark .article-hero-7 .article-hero-content .card-category.color-dark {
  background-color: #0ee9b3 !important;
  color: #000 !important;
}

.article-hero-7 .article-hero-title {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px 0;
}

.article-hero-7 .article-hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 25px 0;
  font-weight: 400;
}

.article-hero-7 .article-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.article-hero-7 .article-hero-meta-item {
  display: inline-flex;
  align-items: center;
}

.article-hero-7 .article-hero-meta-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 4px;
}

.article-hero-7 .article-hero-meta-value {
  color: #fff;
  font-weight: 500;
}

.article-hero-7 .article-hero-meta-separator {
  color: rgba(255, 255, 255, 0.5);
}

.article-hero-7 .article-hero-date {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

/* Hero 8: Texto izquierda, imagen derecha (variación 2) */
.article-hero-8 {
  min-height: 500px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 60px 0;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
}

.article-hero-8 .article-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
}

.article-hero-8 .container {
  position: relative;
  z-index: 2;
}

.article-hero-8 .row {
  justify-content: flex-start;
}

.article-hero-8 .article-hero-content {
  padding: 50px 40px;
  color: #fff;
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 100%;
  margin-left: 20px;
}

.article-hero-8 .article-hero-image-placeholder {
  display: none;
}

.article-hero-8 .article-hero-categories {
  margin-top: 0;
  margin-bottom: 20px;
  justify-content: flex-start;
}

.article-hero-8 .article-hero-title {
  font-size: 48px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  margin: 0 0 20px 0;
}

.article-hero-8 .article-hero-subtitle {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 30px 0;
  font-weight: 400;
}

.article-hero-8 .article-hero-category {
  background-color: rgba(255, 255, 255, 0.2);
  color: #fff;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.article-hero-8 .article-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.article-hero-8 .article-hero-date {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 500;
}

.article-hero-8 .article-hero-share {
  display: flex;
  align-items: center;
  gap: 12px;
}

.article-hero-8 .article-hero-share-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.article-hero-8 .article-hero-share-buttons {
  display: flex;
  gap: 8px;
}

.article-hero-8 .article-hero-share-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.2s;
  color: #fff;
  font-size: 16px;
}

.article-hero-8 .article-hero-share-facebook {
  background-color: #1877f2;
}

.article-hero-8 .article-hero-share-facebook:hover {
  background-color: #166fe5;
  transform: translateY(-2px);
}

.article-hero-8 .article-hero-share-x {
  background-color: #000;
}

.article-hero-8 .article-hero-share-x:hover {
  background-color: #1a1a1a;
  transform: translateY(-2px);
}

.article-hero-8 .article-hero-share-x svg {
  width: 16px;
  height: 16px;
}

.article-hero-8 .article-hero-share-whatsapp {
  background-color: #25d366;
}

.article-hero-8 .article-hero-share-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
}


@media (max-width: 991.98px) {
  .article-hero-7,
  .article-hero-8 {
    min-height: 400px;
    padding: 50px 20px;
  }
  
  .article-hero-7 .article-hero-title,
  .article-hero-8 .article-hero-title {
    font-size: 36px;
  }
  
  .article-hero-7 .article-hero-subtitle,
  .article-hero-8 .article-hero-subtitle {
    font-size: 16px;
  }
  
  .article-hero-8 .article-hero-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 767.98px) {
  .article-hero-7,
  .article-hero-8 {
    min-height: 350px;
    padding: 40px 15px;
  }
  
  .article-hero-7 .article-hero-title,
  .article-hero-8 .article-hero-title {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .article-hero-7 .article-hero-subtitle,
  .article-hero-8 .article-hero-subtitle {
    font-size: 15px;
    margin-bottom: 25px;
  }
  
  .article-hero-7 .article-hero-meta {
    font-size: 13px;
  }
  
  .article-hero-8 .article-hero-content {
    padding: 25px 15px;
  }
  
  .article-hero-8 .article-hero-footer {
    gap: 12px;
  }
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
  .article-hero-title {
    font-size: 28px;
  }
  
  .article-hero-subtitle {
    font-size: 16px;
  }
  
  .article-hero-2,
  .article-hero-5 {
    min-height: 400px;
    padding: 50px 20px;
  }
  
  .article-hero-5 .article-hero-title {
    font-size: 36px;
  }
  
  .article-hero-5 .article-hero-subtitle {
    font-size: 16px;
  }
  
  .article-hero-4 {
    padding: 60px 20px;
  }
}

@media (max-width: 767.98px) {
  .article-hero {
    margin-bottom: 30px;
  }
  
  .article-hero-title {
    font-size: 24px;
    line-height: 1.3;
  }
  
  .article-hero-subtitle {
    font-size: 15px;
  }
  
  .article-hero-2,
  .article-hero-5 {
    min-height: 350px;
    padding: 40px 15px;
  }
  
  .article-hero-5 .article-hero-title {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .article-hero-5 .article-hero-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  .article-hero-5 .article-hero-title {
    font-size: 28px;
    line-height: 1.3;
  }
  
  .article-hero-5 .article-hero-subtitle {
    font-size: 15px;
    margin-bottom: 20px;
  }
  
  .article-hero-3 .article-hero-content {
    padding-left: 0;
  }
  
  .article-hero-4 {
    padding: 40px 15px;
  }
  
  .article-hero-categories {
    gap: 8px;
  }
  
  .article-hero-category {
    font-size: 12px;
    padding: 5px 12px;
  }
}

@media (max-width: 575.98px) {
  .article-hero-title {
    font-size: 22px;
  }
  
  .article-hero-subtitle {
    font-size: 14px;
  }
  
  .article-hero-2,
  .article-hero-5 {
    min-height: 300px;
  }
}

/* ============================================
   HERO INDEX - Layout para página principal
   ============================================ */

.hero-index {
  margin-bottom: 40px;
}

.hero-index-main {
  height: 100%;
  min-height: 800px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 15px;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 40px;
  margin-bottom: 0;
}

.hero-index-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0) 100%);
  z-index: 1;
}

.hero-index-content {
  position: relative;
  z-index: 2;
  color: #fff;
  width: 100%;
}

.hero-index-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--accent-color);
  color: #fff;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 20px;
}

.hero-index-tag-dot {
  width: 8px;
  height: 8px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
}

.hero-index-tag-text {
  color: #fff;
}

.hero-index-title {
  font-size: 36px;
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
  margin: 0 0 15px 0;
}

.hero-index-subtitle {
  font-size: 18px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 20px 0;
  font-weight: 400;
}

.hero-index-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.hero-index-date {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.hero-index-separator {
  color: rgba(255, 255, 255, 0.5);
}

.hero-index-location {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.hero-index-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
  height: 100%;
}

.hero-index .row {
  align-items: stretch;
}

.hero-index .col-lg-8,
.hero-index .col-lg-4 {
  display: flex;
  flex-direction: column;
}

.hero-index-item {
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
  border-radius: 15px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
}

.hero-index-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--block-shadow);
}

.hero-index-item {
  flex: 1;
  min-height: 0;
}

.hero-index-item-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 60%;
  overflow: hidden;
}

.hero-index-item-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.hero-index-item:hover .hero-index-item-img {
  transform: scale(1.05);
}

.hero-index-item-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-color);
  color: #fff;
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.hero-index-item-tag-dot {
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
}

.hero-index-item-tag-text {
  color: #fff;
}

.hero-index-item-content {
  padding: 15px;
}

.hero-index-item-date {
  display: block;
  font-size: 12px;
  color: var(--text-color);
  margin-bottom: 8px;
  font-weight: 500;
}

.hero-index-item-title {
  font-size: 16px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--title-color);
  margin: 0;
}

@media (max-width: 991.98px) {
  .hero-index-main {
    min-height: 400px;
    height: auto;
    padding: 30px 20px;
    margin-bottom: 20px;
  }
  
  .hero-index-title {
    font-size: 28px;
  }
  
  .hero-index-subtitle {
    font-size: 16px;
  }
  
  .hero-index-sidebar {
    gap: 15px;
    height: auto;
  }
  
  .hero-index-item {
    flex: none;
  }
  
  .hero-index-item-image {
    height: 160px;
    padding-bottom: 0;
  }
  
  .hero-index-item-img {
    position: relative;
  }
}

@media (max-width: 767.98px) {
  .hero-index-main {
    min-height: 350px;
    height: auto;
    padding: 25px 15px;
  }
  
  .hero-index-title {
    font-size: 24px;
    line-height: 1.3;
  }
  
  .hero-index-subtitle {
    font-size: 15px;
    margin-bottom: 15px;
  }
  
  .hero-index-item-image {
    height: 140px;
    padding-bottom: 0;
  }
  
  .hero-index-item-img {
    position: relative;
  }
  
  .hero-index-item-title {
    font-size: 15px;
  }
}

/* ============================================
   HERO INDEX V2 - Layout con dimensiones del ejemplo
   ============================================ */

.hero-index-v2 {
  margin-bottom: 20px;
}

.hero-index-v2 .row {
  align-items: stretch;
}

.hero-index-v2 .col-lg-8,
.hero-index-v2 .col-lg-4 {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-index-v2-main {
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--background-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
  box-shadow: var(--block-shadow);
}

.hero-index-v2-main-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-index-v2-main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-index-v2-main-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-color);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

/* Cuando tiene color inline, el punto usa el mismo color que el texto */
.hero-index-v2-main-tag[style*="background-color"] .hero-index-v2-main-tag-dot {
  background-color: currentColor;
}

.hero-index-v2-main-tag-dot {
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
}

.hero-index-v2-main-tag-text {
  color: inherit;
}

.hero-index-v2-content {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-index-v2-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.hero-index-v2-category {
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
}

.hero-index-v2-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 8px 0;
}

.hero-index-v2-subtitle {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-color);
  margin: 0;
  font-weight: 400;
}

.hero-index-v2-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-color);
}

.hero-index-v2-date {
  color: var(--text-color);
  font-weight: 500;
}

.hero-index-v2-separator {
  color: var(--text-color);
  opacity: 0.5;
}

.hero-index-v2-location {
  color: var(--text-color);
  font-weight: 500;
}

.hero-index-v2-sidebar {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  height: 100%;
}

.hero-index-v2-sidebar-vertical {
  display: flex;
  flex-direction: column;
  grid-template-columns: none;
  gap: 12px;
  height: 100%;
}

.hero-index-v2-item {
  display: flex;
  flex-direction: column;
  background: var(--background-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  min-height: 0;
  box-shadow: var(--block-shadow);
}

.hero-index-v2-sidebar-vertical .hero-index-v2-item {
  flex: 1;
  width: 100%;
  min-height: 0;
}

.hero-index-v2-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--block-shadow);
}

.hero-index-v2-item-image {
  position: relative;
  width: 100%;
  height: 120px;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-index-v2-sidebar-vertical .hero-index-v2-item-image {
  height: 0;
  padding-bottom: 30%;
  flex-shrink: 0;
}

.hero-index-v2-item-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.hero-index-v2-item:hover .hero-index-v2-item-img {
  transform: scale(1.05);
}

.hero-index-v2-item-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--accent-color);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
}

/* Cuando tiene color inline, el punto usa el mismo color que el texto */
.hero-index-v2-item-tag[style*="background-color"] .hero-index-v2-item-tag-dot {
  background-color: currentColor;
}

.hero-index-v2-item-tag-dot {
  width: 5px;
  height: 5px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
}

.hero-index-v2-item-tag-text {
  color: inherit;
}

.hero-index-v2-item-content {
  padding: 10px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
}

.hero-index-v2-sidebar-vertical .hero-index-v2-item-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.hero-index-v2-item-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-color);
  margin-bottom: 6px;
  font-weight: 500;
}

.hero-index-v2-item-category {
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
}

.hero-index-v2-item-separator {
  color: var(--text-color);
  opacity: 0.5;
}

.hero-index-v2-item-date {
  color: var(--text-color);
  font-weight: 500;
}

.hero-index-v2-item-title {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--title-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .hero-index-v2-main {
    height: auto;
    margin-bottom: 20px;
  }
  
  .hero-index-v2-content {
    padding: 15px;
  }
  
  .hero-index-v2-title {
    font-size: 22px;
  }
  
  .hero-index-v2-subtitle {
    font-size: 13px;
  }
  
  .hero-index-v2-sidebar {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    height: auto;
  }
  
  .hero-index-v2-item-image {
    height: 100px;
  }
}

@media (max-width: 767.98px) {
  .hero-index-v2-main {
    height: auto;
  }
  
  .hero-index-v2-content {
    padding: 12px;
  }
  
  .hero-index-v2-title {
    font-size: 20px;
    line-height: 1.3;
  }
  
  .hero-index-v2-subtitle {
    font-size: 12px;
  }
  
  .hero-index-v2-sidebar {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .hero-index-v2-item-image {
    height: 140px;
  }
  
  .hero-index-v2-item-title {
    font-size: 14px;
  }
}

/* ============================================
   HERO INDEX V3 - Layout con 2 cards
   ============================================ */

.hero-index-v3 {
  margin-bottom: 40px;
}

.hero-index-v3 .row {
  align-items: stretch;
}

.hero-index-v3 .col-lg-7,
.hero-index-v3 .col-lg-5 {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.hero-index-v3-main {
  height: 100%;
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 0;
}

.hero-index-v3-main-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-index-v3-main-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-index-v3-main-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--accent-color);
  color: #fff;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
}

.hero-index-v3-main-tag-dot {
  width: 6px;
  height: 6px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
}

.hero-index-v3-main-tag-text {
  color: #fff;
}

.hero-index-v3-content {
  padding: 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.hero-index-v3-meta-top {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-color);
  margin-bottom: 10px;
  font-weight: 500;
}

.hero-index-v3-category {
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
}

.hero-index-v3-title {
  font-size: 24px;
  line-height: 1.3;
  font-weight: 700;
  color: var(--title-color);
  margin: 0 0 8px 0;
}

.hero-index-v3-subtitle {
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-color);
  margin: 0;
  font-weight: 400;
}

.hero-index-v3-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-color);
}

.hero-index-v3-date {
  color: var(--text-color);
  font-weight: 500;
}

.hero-index-v3-separator {
  color: var(--text-color);
  opacity: 0.5;
}

.hero-index-v3-location {
  color: var(--text-color);
  font-weight: 500;
}

.hero-index-v3-sidebar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
  align-items: stretch;
}

.hero-index-v3-item {
  display: flex;
  flex-direction: column;
  background-color: var(--background-color);
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
  color: inherit;
  flex: 1 1 0;
  min-height: 0;
}

.hero-index-v3-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--block-shadow);
}

.hero-index-v3-item-image {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 60%;
  overflow: hidden;
  flex-shrink: 0;
}

.hero-index-v3-item-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.hero-index-v3-item:hover .hero-index-v3-item-img {
  transform: scale(1.05);
}

.hero-index-v3-item-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background-color: var(--accent-color);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  z-index: 2;
}

.hero-index-v3-item-tag-dot {
  width: 5px;
  height: 5px;
  background-color: #fff;
  border-radius: 50%;
  display: inline-block;
}

.hero-index-v3-item-tag-text {
  color: #fff;
}

.hero-index-v3-item-content {
  padding: 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 0;
}

.hero-index-v3-item-meta {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  color: var(--text-color);
  margin-bottom: 6px;
  font-weight: 500;
}

.hero-index-v3-item-category {
  color: var(--text-color);
  font-weight: 600;
  text-transform: uppercase;
}

.dark .hero-index-v3-item-category {
  color: #0ee9b3;
}

.hero-index-v3-item-separator {
  color: var(--text-color);
  opacity: 0.5;
}

.hero-index-v3-item-date {
  color: var(--text-color);
  font-weight: 500;
}

.hero-index-v3-item-title {
  font-size: 13px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--title-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (max-width: 991.98px) {
  .hero-index-v3-main {
    height: auto;
    margin-bottom: 20px;
  }
  
  .hero-index-v3-content {
    padding: 15px;
  }
  
  .hero-index-v3-title {
    font-size: 22px;
  }
  
  .hero-index-v3-subtitle {
    font-size: 13px;
  }
  
  .hero-index-v3-sidebar {
    gap: 12px;
    height: auto;
  }
  
  .hero-index-v3-item {
    flex: none;
  }
  
  .hero-index-v3-item-image {
    height: 0;
    padding-bottom: 50%;
  }
}

@media (max-width: 767.98px) {
  .hero-index-v3-main {
    height: auto;
  }
  
  .hero-index-v3-content {
    padding: 12px;
  }
  
  .hero-index-v3-title {
    font-size: 20px;
    line-height: 1.3;
  }
  
  .hero-index-v3-subtitle {
    font-size: 12px;
  }
  
  .hero-index-v3-item-image {
    height: 0;
    padding-bottom: 50%;
  }
  
  .hero-index-v3-item-title {
    font-size: 14px;
  }
}

/* ============================================
   REDES SOCIALES - Social Media Components
   ============================================ */

/* Colores de marcas de redes sociales */
:root {
  --social-facebook: #1877f2;
  --social-x: #000000;
  --social-instagram: #e4405f;
  --social-youtube: #ff0000;
  --social-linkedin: #0077b5;
  --social-tiktok: #000000;
  --social-whatsapp: #25d366;
  --social-telegram: #0088cc;
}

/* Base para botones de redes sociales */
.social-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.social-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  border-radius: 50%;
  color: #fff;
  font-size: 20px;
  width: 50px;
  height: 50px;
  position: relative;
  overflow: hidden;
}

.social-button svg {
  width: 20px;
  height: 20px;
  display: block;
}

.social-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.social-button:active {
  transform: translateY(-1px);
}

/* Colores específicos por red social */
.social-facebook {
  background-color: var(--social-facebook);
}

.social-x {
  background-color: var(--social-x);
}

.social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-youtube {
  background-color: var(--social-youtube);
}

.social-linkedin {
  background-color: var(--social-linkedin);
}

.social-tiktok {
  background-color: var(--social-tiktok);
}

.social-whatsapp {
  background-color: var(--social-whatsapp);
}

.social-telegram {
  background-color: var(--social-telegram);
}

/* Estilo 1: Botones circulares simples */
.social-buttons-1 .social-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

/* Estilo 2: Botones rectangulares con texto */
.social-buttons-2 {
  flex-direction: column;
  align-items: stretch;
}

.social-buttons-2 .social-button {
  width: 100%;
  max-width: 250px;
  height: 50px;
  border-radius: 8px;
  justify-content: flex-start;
  padding: 0 20px;
  gap: 12px;
}

.social-buttons-2 .social-button span {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* Estilo 3: Botones con borde y fondo claro */
.social-buttons-3 .social-button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: transparent;
  border: 2px solid;
  color: var(--title-color);
}

.social-buttons-3 .social-facebook {
  border-color: var(--social-facebook);
  color: var(--social-facebook);
}

.social-buttons-3 .social-x {
  border-color: var(--social-x);
  color: var(--social-x);
}

.social-buttons-3 .social-instagram {
  border-color: #e4405f;
  color: #e4405f;
}

.social-buttons-3 .social-youtube {
  border-color: var(--social-youtube);
  color: var(--social-youtube);
}

.social-buttons-3 .social-linkedin {
  border-color: var(--social-linkedin);
  color: var(--social-linkedin);
}

.social-buttons-3 .social-button:hover {
  background-color: var(--light-gray);
}

/* Enlaces de redes sociales con contador */
.social-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.social-link {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px;
  border-radius: 12px;
  text-decoration: none;
  background-color: var(--light-gray);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.social-link:hover {
  transform: translateX(5px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.social-link.social-facebook:hover {
  border-color: var(--social-facebook);
  background-color: rgba(24, 119, 242, 0.1);
}

.social-link.social-x:hover {
  border-color: var(--social-x);
  background-color: rgba(0, 0, 0, 0.1);
}

.social-link.social-instagram:hover {
  border-color: #e4405f;
  background-color: rgba(228, 64, 95, 0.1);
}

.social-link.social-youtube:hover {
  border-color: var(--social-youtube);
  background-color: rgba(255, 0, 0, 0.1);
}

.social-link-icon {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  flex-shrink: 0;
}

.social-link-icon svg {
  width: 20px;
  height: 20px;
  display: block;
}

.social-link.social-facebook .social-link-icon {
  background-color: var(--social-facebook);
}

.social-link.social-x .social-link-icon {
  background-color: var(--social-x);
}

.social-link.social-instagram .social-link-icon {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-link.social-youtube .social-link-icon {
  background-color: var(--social-youtube);
}

.social-link-info {
  flex: 1;
}

.social-link-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--title-color);
  margin-bottom: 4px;
}

.social-link-count {
  font-size: 13px;
  color: var(--text-color);
}

/* Compartir en redes sociales */
.social-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 20px;
  background-color: var(--light-gray);
  border-radius: 12px;
}

.social-share-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  margin-right: 5px;
}

.social-share-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  transition: all 0.3s ease;
}

.social-share-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.social-share-button i,
.social-share-button svg {
  font-size: 18px;
  width: 18px;
  height: 18px;
  display: block;
}

.social-share-button.social-link {
  background-color: var(--title-color);
}

.social-share-button.social-link:hover {
  background-color: var(--text-color);
}

/* Dark mode */
.dark .social-link {
  background-color: rgba(255, 255, 255, 0.05);
}

.dark .social-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dark .social-buttons-3 .social-button:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.dark .social-share {
  background-color: rgba(255, 255, 255, 0.05);
}

/* Responsive */
@media (max-width: 767.98px) {
  .social-buttons {
    gap: 12px;
  }
  
  .social-button {
    width: 45px;
    height: 45px;
    font-size: 18px;
  }
  
  .social-buttons-2 .social-button {
    max-width: 100%;
  }
  
  .social-share {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .social-share-label {
    margin-right: 0;
    margin-bottom: 10px;
  }
  
  .social-share-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .social-button {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .social-link-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
  
  .social-link-name {
    font-size: 15px;
  }
  
  .social-link-count {
    font-size: 12px;
  }
}

/* ============================================
   FOOTER - Site Footer Components
   ============================================ */

/* Base styles para todos los footers */
.site-footer {
  background-color: var(--light-gray);
  color: var(--text-color);
  padding: 40px 0 20px;
  margin-top: 50px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer a {
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.site-footer a:hover {
  color: #fff;
}

.footer-logo-img {
  height: 40px;
  width: auto;
  max-width: 200px;
}

/* ============================================
   FOOTER 1: Completo con Múltiples Columnas
   ============================================ */
.footer-1 {
  background-color: var(--light-gray);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-top {
  padding: 40px 0 30px;
}

.footer-brand {
  margin-bottom: 25px;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 15px;
}

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-color);
  margin: 0;
  max-width: 300px;
}

.footer-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.footer-nav-group {
  margin: 0;
}

.footer-nav-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0 0 15px 0;
  font-family: inherit;
}

.footer-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-nav-list li {
  margin-bottom: 10px;
}

.footer-nav-list li:last-child {
  margin-bottom: 0;
}

.footer-nav-list a {
  font-size: 14px;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
  display: inline-block;
}

.footer-nav-list a:hover {
  color: var(--title-color);
}

.footer-divider {
  height: 1px;
  background-color: rgba(0, 0, 0, 0.08);
  margin: 0;
}

.footer-bottom {
  padding: 25px 0 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
}

.footer-copyright {
  font-size: 13px;
  color: var(--text-color);
  margin: 0;
  opacity: 0.8;
}

.footer-social-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-social-label {
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.8;
}

.footer-social {
  display: flex;
  gap: 8px;
}

.footer-social .social-button {
  width: 36px;
  height: 36px;
  font-size: 16px;
  border-radius: 10px;
  background-color: var(--background-color);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--title-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-social .social-button:hover {
  background-color: var(--title-color);
  color: var(--background-color);
  transform: translateY(-2px);
}

/* ============================================
   FOOTER 2: Minimalista Centrado
   ============================================ */
.footer-2 {
  background-color: var(--light-gray);
  padding: 50px 0 30px;
  text-align: center;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-content-centered {
  max-width: 600px;
  margin: 0 auto;
}

.footer-logo-centered {
  margin-bottom: 20px;
}

.footer-description-centered {
  font-size: 15px;
  line-height: 1.8;
  color: var(--text-color);
  margin: 0 0 25px 0;
}

.footer-social-centered {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 30px;
}

.social-link-minimal {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  text-decoration: none;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: var(--background-color);
  transition: all 0.3s ease;
  font-size: 18px;
}

.social-link-minimal:hover {
  color: var(--title-color);
  border-color: var(--title-color);
  transform: translateY(-2px);
  background-color: var(--background-color);
}

.footer-nav-centered {
  margin-bottom: 30px;
}

.footer-nav-list-minimal {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
}

.footer-nav-list-minimal li {
  margin: 0;
}

.footer-nav-list-minimal a {
  font-size: 14px;
  color: var(--text-color);
  text-decoration: none;
  padding: 8px 12px;
  transition: color 0.3s ease;
}

.footer-nav-list-minimal a:hover {
  color: var(--title-color);
}

.footer-nav-separator {
  color: var(--text-color);
  opacity: 0.3;
  padding: 0 5px;
}

.footer-copyright-centered {
  font-size: 13px;
  color: var(--text-color);
  margin: 0;
  opacity: 0.8;
}

/* ============================================
   FOOTER 3: Con Newsletter
   ============================================ */
.footer-3 {
  background-color: var(--light-gray);
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-newsletter {
  background-color: var(--background-color);
  padding: 40px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 0;
}

.footer-newsletter-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0 0 10px 0;
}

.footer-newsletter-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0 0 20px 0;
}

.footer-newsletter-form {
  margin-top: 20px;
}

.footer-newsletter-input-group {
  display: flex;
  gap: 10px;
  max-width: 500px;
}

.footer-newsletter-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  background-color: var(--light-gray);
  color: var(--title-color);
  font-size: 14px;
  outline: none;
  transition: all 0.3s ease;
}

.footer-newsletter-input::placeholder {
  color: var(--text-color);
  opacity: 0.6;
}

.footer-newsletter-input:focus {
  border-color: var(--title-color);
  background-color: var(--background-color);
}

.footer-newsletter-button {
  padding: 12px 24px;
  background-color: var(--title-color);
  color: var(--background-color);
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.footer-newsletter-button:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.footer-newsletter-button i {
  font-size: 16px;
}

.footer-main {
  padding: 40px 0 30px;
}

.footer-column {
  margin-bottom: 30px;
}

.footer-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0 0 15px 0;
}

.footer-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0 0 20px 0;
}

.footer-bottom {
  padding: 25px 0 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.footer-legal-list {
  list-style: none;
  padding: 0;
  margin: 15px 0 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.footer-legal-list li {
  margin: 0;
}

.footer-legal-list a {
  font-size: 13px;
  color: var(--text-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-legal-list a:hover {
  color: var(--title-color);
}

/* Dark mode */
.dark .site-footer {
  background-color: var(--light-gray);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.dark .footer-1,
.dark .footer-2,
.dark .footer-3 {
  background-color: var(--light-gray);
  border-top-color: rgba(255, 255, 255, 0.08);
}

.dark .footer-divider,
.dark .footer-bottom {
  border-top-color: rgba(255, 255, 255, 0.08);
}

.dark .footer-newsletter {
  background-color: var(--background-color);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.dark .footer-social .social-button {
  background-color: var(--background-color);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--title-color);
}

.dark .footer-social .social-button:hover {
  background-color: var(--title-color);
  color: var(--background-color);
}

.dark .social-link-minimal {
  background-color: var(--background-color);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--title-color);
}

.dark .social-link-minimal:hover {
  border-color: var(--title-color);
  background-color: var(--background-color);
}

.dark .footer-newsletter-input {
  background-color: var(--light-gray);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--title-color);
}

.dark .footer-newsletter-input:focus {
  background-color: var(--background-color);
  border-color: var(--title-color);
}

/* Responsive */
@media (max-width: 991.98px) {
  .site-footer {
    padding: 35px 0 20px;
  }
  
  .footer-top {
    padding: 35px 0 25px;
  }
  
  .footer-nav-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
  
  .footer-main {
    padding: 35px 0 25px;
  }
  
  .footer-newsletter {
    padding: 35px 0;
  }
}

@media (max-width: 767.98px) {
  .site-footer {
    padding: 30px 0 15px;
  }
  
  .footer-top {
    padding: 30px 0 20px;
  }
  
  .footer-nav-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
    gap: 15px;
  }
  
  .footer-social-wrapper {
    flex-direction: column;
    gap: 12px;
  }
  
  .footer-2 {
    padding: 40px 0 25px;
  }
  
  .footer-main {
    padding: 30px 0 20px;
  }
  
  .footer-newsletter {
    padding: 30px 0;
  }
  
  .footer-newsletter-title {
    font-size: 18px;
  }
  
  .footer-newsletter-input-group {
    flex-direction: column;
    max-width: 100%;
  }
  
  .footer-newsletter-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 575.98px) {
  .footer-tagline {
    font-size: 13px;
  }
  
  .footer-nav-title,
  .footer-title {
    font-size: 14px;
  }
  
  .footer-nav-list a {
    font-size: 13px;
  }
  
  .footer-newsletter-title {
    font-size: 17px;
  }
  
  .footer-newsletter-description {
    font-size: 13px;
  }
  
  .footer-newsletter-input {
    font-size: 14px;
    padding: 11px 14px;
  }
  
  .footer-newsletter-button {
    padding: 11px 20px;
    font-size: 13px;
  }
}

/* ============================================
   BREAKING NEWS - Banners de Noticias Urgentes
   Estilo Yui Template
   ============================================ */

/* Breaking News - Link Banner Style */
.bg-color-red {
  background-color: #e74c3c !important;
}

.breaking-news-banner.bg-color-red {
  background-color: #e74c3c;
}

.breaking-news-banner.bg-color-red .link-banner-text,
.breaking-news-banner.bg-color-red .link-banner-title,
.breaking-news-banner.bg-color-red .link-banner-subtitle,
.breaking-news-banner.bg-color-red i,
.breaking-news-banner.bg-color-red.link-chevron::before {
  color: #fff;
}

.breaking-badge {
  display: inline-block;
  background-color: rgba(0, 0, 0, 0.25);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 8px;
  animation: breakingPulse 2s ease-in-out infinite;
}

@keyframes breakingPulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

/* Breaking News - Card Style */
.breaking-news-card {
  border-left: 4px solid #e74c3c;
  margin-bottom: 15px;
}

.breaking-news-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 8px;
}

.breaking-badge-card {
  background-color: #e74c3c;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 4px;
  animation: breakingPulse 2s ease-in-out infinite;
}

.breaking-news-time {
  font-size: 12px;
  color: var(--text-color);
  opacity: 0.7;
}

.breaking-news-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0 0 10px 0;
  line-height: 1.4;
}

.breaking-news-card-text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color);
  margin: 0;
}

/* Breaking News - Ticker Style */
.breaking-news-ticker-container {
  display: flex;
  align-items: center;
  background-color: #e74c3c;
  border-radius: 15px;
  padding: 12px 15px;
  margin: 15px 0;
  overflow: hidden;
  position: relative;
}

.breaking-news-ticker-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(0, 0, 0, 0.2);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 6px 12px;
  border-radius: 8px;
  flex-shrink: 0;
  margin-right: 15px;
}

.breaking-news-ticker-badge i {
  font-size: 14px;
}

.breaking-news-ticker-scroll {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.breaking-news-ticker-scroll::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to right, transparent, #e74c3c);
  z-index: 1;
  pointer-events: none;
}

.breaking-news-ticker-items {
  display: flex;
  gap: 30px;
  animation: breakingTicker 25s linear infinite;
  white-space: nowrap;
}

@keyframes breakingTicker {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

.breaking-news-ticker-link {
  display: inline-block;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 0 10px;
  transition: opacity 0.3s ease;
}

.breaking-news-ticker-link:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Dark mode */
.dark .breaking-news-card {
  border-left-color: #e74c3c;
}

.dark .breaking-news-time {
  color: var(--text-color);
  opacity: 0.7;
}

.dark .breaking-news-card-title {
  color: var(--title-color);
}

.dark .breaking-news-card-text {
  color: var(--text-color);
}

/* Responsive */
@media (max-width: 767.98px) {
  .breaking-news-ticker-container {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 10px 12px;
  }
  
  .breaking-news-ticker-badge {
    margin-right: 0;
    margin-bottom: 5px;
    align-self: flex-start;
  }
  
  .breaking-news-ticker-scroll {
    width: 100%;
  }
  
  .breaking-news-card-title {
    font-size: 16px;
  }
  
  .breaking-news-card-text {
    font-size: 13px;
  }
}

@media (max-width: 575.98px) {
  .breaking-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
  
  .breaking-news-ticker-badge {
    font-size: 10px;
    padding: 5px 10px;
  }
  
  .breaking-news-ticker-link {
    font-size: 13px;
  }
  
  .breaking-news-card-title {
    font-size: 15px;
  }
}

/* ============================================
   COOKIE BANNER - Conforme a GDPR/UE
   ============================================ */

.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background-color: #1e2b47;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  max-height: 90vh;
  overflow-y: auto;
}

/* Cuando el banner está dentro de component-preview, mostrarlo como ejemplo visual */
.component-preview .cookie-banner {
  position: relative;
  bottom: auto;
  left: auto;
  right: auto;
  transform: translateY(0);
  margin: 15px 0;
  border-radius: 15px;
  max-height: none;
  overflow: visible;
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  padding: 25px;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cookie Banner - Básico */
.cookie-banner-basic .cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: wrap;
}

.cookie-banner-text {
  flex: 1;
  min-width: 250px;
}

.cookie-banner-title {
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cookie-banner-title i {
  font-size: 20px;
  color: var(--f7-theme-color, #007aff);
}

.cookie-banner-description {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

.cookie-banner-link {
  color: var(--f7-theme-color, #007aff);
  text-decoration: underline;
  transition: color 0.3s ease;
}

.cookie-banner-link:hover {
  color: #fff;
}

.cookie-banner-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cookie-banner-button {
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  min-width: 120px;
}

.cookie-banner-button-reject {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner-button-reject:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cookie-banner-button-accept {
  background-color: var(--f7-theme-color, #007aff);
  color: #fff;
}

.cookie-banner-button-accept:hover {
  background-color: var(--primary-color, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Cookie Banner - Avanzado */
.cookie-banner-advanced .cookie-banner-content {
  padding: 30px;
}

.cookie-banner-settings {
  margin: 25px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.cookie-category {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  transition: all 0.3s ease;
}

.cookie-category:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.cookie-category-info {
  flex: 1;
}

.cookie-category-title {
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  margin: 0 0 6px 0;
}

.cookie-category-description {
  font-size: 13px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.2);
  transition: 0.3s;
  border-radius: 28px;
}

.cookie-toggle-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  transition: 0.3s;
  border-radius: 50%;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background-color: var(--f7-theme-color, #007aff);
}

.cookie-toggle input:checked + .cookie-toggle-slider:before {
  transform: translateX(22px);
}

.cookie-toggle input:disabled + .cookie-toggle-slider {
  opacity: 0.5;
  cursor: not-allowed;
}

.cookie-banner-button-settings {
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner-button-settings:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.cookie-banner-button-accept-all {
  background-color: var(--f7-theme-color, #007aff);
  color: #fff;
}

.cookie-banner-button-accept-all:hover {
  background-color: var(--primary-color, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Cookie Banner - Minimalista */
.cookie-banner-minimal {
  background-color: rgba(30, 43, 71, 0.98);
  backdrop-filter: blur(10px);
}

.cookie-banner-minimal .cookie-banner-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 25px;
  flex-wrap: wrap;
}

.cookie-banner-description-minimal {
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-banner-actions-minimal {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.cookie-banner-button-minimal {
  padding: 10px 20px;
  border: none;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.cookie-banner-button-reject-minimal {
  background-color: transparent;
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.cookie-banner-button-reject-minimal:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
  background-color: rgba(255, 255, 255, 0.05);
}

.cookie-banner-button-accept-minimal {
  background-color: var(--f7-theme-color, #007aff);
  color: #fff;
}

.cookie-banner-button-accept-minimal:hover {
  background-color: var(--primary-color, #0056b3);
}

/* Dark mode */
.dark .cookie-banner {
  background-color: #0f0f0f;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .cookie-category {
  background-color: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .cookie-category:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.12);
}

.dark .cookie-banner-minimal {
  background-color: rgba(15, 15, 15, 0.98);
}

/* Responsive */
@media (max-width: 991.98px) {
  .cookie-banner-basic .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-banner-actions {
    width: 100%;
  }
  
  .cookie-banner-button {
    flex: 1;
    min-width: auto;
  }
  
  .cookie-category-header {
    flex-direction: column;
    gap: 15px;
  }
  
  .cookie-toggle {
    align-self: flex-start;
  }
}

@media (max-width: 767.98px) {
  .cookie-banner-content {
    padding: 20px;
  }
  
  .cookie-banner-advanced .cookie-banner-content {
    padding: 25px 20px;
  }
  
  .cookie-banner-title {
    font-size: 16px;
  }
  
  .cookie-banner-description,
  .cookie-banner-description-minimal {
    font-size: 13px;
  }
  
  .cookie-banner-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .cookie-banner-button {
    width: 100%;
  }
  
  .cookie-banner-actions-minimal {
    width: 100%;
    flex-direction: column;
  }
  
  .cookie-banner-button-minimal {
    width: 100%;
  }
  
  .cookie-banner-minimal .cookie-banner-content {
    flex-direction: column;
    align-items: stretch;
  }
  
  .cookie-category {
    padding: 16px;
  }
  
  .cookie-category-title {
    font-size: 15px;
  }
  
  .cookie-category-description {
    font-size: 12px;
  }
}

@media (max-width: 575.98px) {
  .cookie-banner-content {
    padding: 18px 15px;
  }
  
  .cookie-banner-title {
    font-size: 15px;
  }
  
  .cookie-banner-title i {
    font-size: 18px;
  }
  
  .cookie-banner-button {
    padding: 11px 20px;
    font-size: 13px;
  }
  
  .cookie-banner-button-minimal {
  padding: 10px 18px;
  font-size: 12px;
  }
}

/* ============================================
   LANGUAGE DIALOG - Diálogo de cambio de idioma
   ============================================ */
.language-dialog {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 10000;
  background-color: var(--background-color, #1e2b47);
  border-radius: 15px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  min-width: 300px;
  transform: translateY(calc(100% + 20px));
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  pointer-events: none;
}

.language-dialog.show {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Cuando el diálogo está dentro de component-preview, mostrarlo como ejemplo visual */
.component-preview .language-dialog {
  position: relative;
  bottom: auto;
  left: auto;
  transform: translateY(0);
  opacity: 1;
  margin: 15px 0;
  pointer-events: auto;
}

.language-dialog {
  position: relative;
}

.language-dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--text-color, rgba(255, 255, 255, 0.7));
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
  padding: 0;
}

.language-dialog-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--title-color, #fff);
  transform: scale(1.1);
}

.language-dialog-close i {
  font-size: 18px;
}

.language-dialog-content {
  padding: 20px;
  padding-top: 20px;
}

.language-dialog-text {
  margin-bottom: 20px;
  padding-right: 30px;
}

.language-dialog-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--title-color, #fff);
  margin: 0 0 10px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-dialog-title i {
  font-size: 18px;
  color: var(--f7-theme-color, #007aff);
}

.language-dialog-description {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-color, rgba(255, 255, 255, 0.8));
  margin: 0;
}

.language-dialog-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.language-dialog-button {
  width: 100%;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.language-dialog-button-accept {
  background-color: var(--f7-theme-color, #007aff);
  color: #fff;
}

.language-dialog-button-accept:hover {
  background-color: var(--primary-color, #0056b3);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 122, 255, 0.3);
}

/* Dark mode */
.dark .language-dialog {
  background-color: var(--background-color, #0f0f0f);
  border: 1px solid rgba(255, 255, 255, 0.1);
}


/* Responsive */
@media (max-width: 767.98px) {
  .language-dialog {
    bottom: 15px;
    left: 15px;
    right: 15px;
    max-width: none;
    min-width: auto;
  }
  
  .language-dialog-close {
    top: 10px;
    right: 10px;
    width: 28px;
    height: 28px;
  }
  
  .language-dialog-close i {
    font-size: 16px;
  }
  
  .language-dialog-content {
    padding: 18px;
    padding-top: 18px;
  }
  
  .language-dialog-text {
    padding-right: 25px;
  }
  
  .language-dialog-title {
    font-size: 15px;
  }
  
  .language-dialog-title i {
    font-size: 16px;
  }
  
  .language-dialog-description {
    font-size: 13px;
  }
  
  .language-dialog-actions {
    width: 100%;
  }
  
  .language-dialog-button {
    width: 100%;
  }
}

@media (max-width: 575.98px) {
  .language-dialog {
    bottom: 10px;
    left: 10px;
    right: 10px;
  }
  
  .language-dialog-close {
    top: 8px;
    right: 8px;
    width: 26px;
    height: 26px;
  }
  
  .language-dialog-close i {
    font-size: 14px;
  }
  
  .language-dialog-content {
    padding: 15px;
    padding-top: 15px;
  }
  
  .language-dialog-text {
    padding-right: 22px;
  }
  
  .language-dialog-title {
    font-size: 14px;
  }
  
  .language-dialog-title i {
    font-size: 15px;
  }
  
  .language-dialog-description {
    font-size: 12px;
  }
  
  .language-dialog-button {
    padding: 10px 18px;
    font-size: 13px;
  }
}

/* ============================================
   SHEET MODAL - Modales tipo Sheet
   ============================================ */

.sheet-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000 !important;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.sheet-backdrop.backdrop-in {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sheet-modal {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 32vh;
  max-height: 90vh;
  background: var(--background-color);
  z-index: 10001 !important;
  display: none;
  transform: translate3d(0, 100%, 0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
  pointer-events: auto;
  will-change: transform;
  opacity: 0;
}

.sheet-modal.modal-in {
  display: block;
  transform: translate3d(0, 0, 0);
  opacity: 1;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.sheet-modal.modal-out {
  transform: translate3d(0, 100%, 0);
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

.sheet-modal-inner {
  height: 100%;
  overflow-y: auto;
  position: relative;
  -webkit-overflow-scrolling: touch;
}

.sheet-modal[data-swipe-to-close="true"] {
  height: auto;
  max-height: 70vh;
}

.sheet-modal[data-swipe-to-close="true"] .sheet-modal-inner::before {
  content: "";
  width: 40px;
  height: 6px;
  position: absolute;
  left: 50%;
  top: 8px;
  margin-left: -20px;
  border-radius: 3px;
  background: var(--text-color);
  opacity: 0.3;
  z-index: 15;
}

.sheet-modal .page-content {
  padding: 0 20px 20px 20px;
}

.sheet-modal[data-swipe-to-close="true"] .page-content {
  padding-top: 20px;
}

.sheet-modal .toolbar {
  position: relative;
  width: 100%;
  background: var(--background-color);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.sheet-modal .toolbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
}

.sheet-modal .toolbar .link {
  color: var(--title-color);
  font-weight: 600;
  text-decoration: none;
}

/* Dark mode */
.dark .sheet-modal {
  background: var(--background-color);
}

.dark .sheet-backdrop {
  background: rgba(0, 0, 0, 0.6);
}

.dark .sheet-modal[data-swipe-to-close="true"] .sheet-modal-inner::before {
  background: var(--text-color);
  opacity: 0.5;
}

/* ============================================
   TABS - Componentes de pestañas
   ============================================ */

.segmented.segmented-strong {
  --f7-segmented-strong-padding: 3px;
  --f7-segmented-strong-between-buttons: 0px;
  background-color: var(--light-gray);
  border-radius: 15px;
  padding: var(--f7-segmented-strong-padding);
  display: flex;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: fit-content;
  max-width: 100%;
}

.segmented.segmented-strong .button {
  margin: 0;
  border-radius: 12px;
  flex: 1;
  position: relative;
  z-index: 1;
  height: 44px;
  min-height: 44px;
  min-width: 80px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 500;
  line-height: 44px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: transparent;
  border: none;
  color: var(--text-color);
  white-space: nowrap;
}

.segmented.segmented-strong .button.tab-link-active {
  color: #fff;
}

.segmented-strong .segmented-highlight {
  --f7-segmented-highlight-num: 1;
  --f7-segmented-highlight-active: 0;
  --f7-segmented-highlight-padding: calc(var(--f7-segmented-strong-padding) * 2);
  --f7-segmented-highlight-between: var(--f7-segmented-strong-between-buttons);
  --f7-segmented-highlight-width: calc((100% - var(--f7-segmented-highlight-padding) - var(--f7-segmented-highlight-between) * (var(--f7-segmented-highlight-num) - 1)) / var(--f7-segmented-highlight-num));
  position: absolute;
  background-color: var(--title-color);
  border-radius: 12px;
  box-shadow: none;
  left: var(--f7-segmented-strong-padding);
  top: var(--f7-segmented-strong-padding);
  height: calc(100% - var(--f7-segmented-highlight-padding));
  width: var(--f7-segmented-highlight-width);
  z-index: 0;
  transform: translateX(calc(var(--f7-segmented-highlight-active) * (100% + var(--f7-segmented-highlight-between))));
  transition: transform 0.2s, width 0.2s;
}

/* Dos botones - el highlight es el 3er hijo (después de 2 botones) */
.segmented.segmented-strong .button:nth-child(2) ~ .segmented-highlight {
  --f7-segmented-highlight-num: 2;
}

/* Primer botón activo (índice 0) */
.segmented.segmented-strong .button:nth-child(1).tab-link-active ~ .segmented-highlight {
  --f7-segmented-highlight-active: 0;
}

/* Segundo botón activo (índice 1) */
.segmented.segmented-strong .button:nth-child(2).tab-link-active ~ .segmented-highlight {
  --f7-segmented-highlight-active: 1;
}

/* Tres botones - el highlight es el 4to hijo (después de 3 botones) */
.segmented.segmented-strong .button:nth-child(3) ~ .segmented-highlight {
  --f7-segmented-highlight-num: 3;
}

/* Tercer botón activo (índice 2) */
.segmented.segmented-strong .button:nth-child(3).tab-link-active ~ .segmented-highlight {
  --f7-segmented-highlight-active: 2;
}

.custom-tabs {
  margin-top: 20px;
}

.custom-tabs .tab {
  display: none;
  padding: 20px 0;
}

.custom-tabs .tab.tab-active {
  display: block;
}

.custom-tabs .tab p {
  margin: 0 0 15px 0;
  line-height: 1.8;
  color: var(--text-color);
}

.custom-tabs .tab p:last-child {
  margin-bottom: 0;
}

/* Dark mode */
.dark .segmented.segmented-strong {
  background-color: var(--light-gray);
}

.dark .segmented-strong .segmented-highlight {
  background-color: var(--title-color);
}

.dark .segmented.segmented-strong .button.tab-link-active {
  color: #181c22;
}

/* Ajustes para que el contenido de la BD (con Bootstrap) funcione correctamente */
.single-post-content .d-flex {
  display: flex !important;
}

.single-post-content .justify-content-center {
  justify-content: center !important;
}

.single-post-content .align-items-center {
  align-items: center !important;
}

.single-post-content .col-1,
.single-post-content .col-2,
.single-post-content .col-3,
.single-post-content .col-4,
.single-post-content .col-5,
.single-post-content .col-6,
.single-post-content .col-7,
.single-post-content .col-8,
.single-post-content .col-9,
.single-post-content .col-10,
.single-post-content .col-11,
.single-post-content .col-12,
.single-post-content .col-sm-1,
.single-post-content .col-sm-2,
.single-post-content .col-sm-3,
.single-post-content .col-sm-4,
.single-post-content .col-sm-5,
.single-post-content .col-sm-6,
.single-post-content .col-sm-7,
.single-post-content .col-sm-8,
.single-post-content .col-sm-9,
.single-post-content .col-sm-10,
.single-post-content .col-sm-11,
.single-post-content .col-sm-12,
.single-post-content .col-xs-12 {
  position: relative;
  width: 100%;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
  margin-top: var(--bs-gutter-y);
}

/* Utilidades de Bootstrap comunes en contenido */
.single-post-content .mb-1 { margin-bottom: 0.25rem !important; }
.single-post-content .mb-2 { margin-bottom: 0.5rem !important; }
.single-post-content .mb-3 { margin-bottom: 1rem !important; }
.single-post-content .mb-4 { margin-bottom: 1.5rem !important; }
.single-post-content .mb-5 { margin-bottom: 3rem !important; }

.single-post-content .mt-1 { margin-top: 0.25rem !important; }
.single-post-content .mt-2 { margin-top: 0.5rem !important; }
.single-post-content .mt-3 { margin-top: 1rem !important; }
.single-post-content .mt-4 { margin-top: 1.5rem !important; }
.single-post-content .mt-5 { margin-top: 3rem !important; }

.single-post-content .w-100 { width: 100% !important; }
.single-post-content .h-100 { height: 100% !important; }

.single-post-content .d-block { display: block !important; }
.single-post-content .d-inline { display: inline !important; }
.single-post-content .d-inline-block { display: inline-block !important; }
.single-post-content .d-flex { display: flex !important; }
.single-post-content .d-none { display: none !important; }

.single-post-content .text-center { text-align: center !important; }
.single-post-content .text-left { text-align: left !important; }
.single-post-content .text-right { text-align: right !important; }

.single-post-content .text-muted {
  color: var(--text-color) !important;
  opacity: 0.7;
}

.single-post-content .shadow-1-strong {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

.single-post-content .rounded {
  border-radius: 0.375rem !important;
}

.single-post-content .rounded-lg {
  border-radius: 0.5rem !important;
}

.single-post-content .rounded-circle {
  border-radius: 50% !important;
}

.single-post-content .lazyloaded {
  opacity: 1;
  transition: opacity 0.3s;
}

.single-post-content .article-gallery-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.single-post-content .article-gallery-link:hover {
  opacity: 0.9;
}

/* Dark mode para utilidades de Bootstrap */
.dark .single-post-content .text-muted {
  color: var(--text-color) !important;
  opacity: 0.7;
}

.dark .single-post-content .shadow-1-strong {
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.3) !important;
}

/* Responsive para contenido con Bootstrap */
@media (max-width: 575.98px) {
  .single-post-content .col-xs-12 {
    flex: 0 0 auto;
    width: 100%;
  }
}

@media (min-width: 576px) {
  .single-post-content .col-sm-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
}

@media (min-width: 768px) {
  .single-post-content .col-md-10 {
    flex: 0 0 auto;
    width: 83.33333333%;
  }
}

/* ============================================
   ARTICLE STYLES - Estilos específicos para artículos
   ============================================ */

/* Ajustes para que Bootstrap funcione con el contenido de la BD */
.article-container {
  padding: 20px 15px;
}

/* Responsive para Bootstrap grid */
@media (max-width: 991.98px) {
  .article-sidebar {
    margin-top: 40px;
  }
  
  .article-sidebar > div {
    position: static !important;
  }
}

@media (min-width: 992px) {
  .article-sidebar > div {
    position: sticky;
    top: 80px;
  }
}

/* Asegurar que las imágenes de Bootstrap se vean bien */
.single-post-content img {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  margin: 20px 0;
  display: block;
}

/* Estilos del contenido del artículo */
.single-post-content {
  color: var(--text-color);
  line-height: 1.8;
  font-size: 16px;
}

.single-post-content p {
  margin: 20px 0;
}

.single-post-content h3 {
  margin-top: 40px;
  margin-bottom: 20px;
  color: var(--title-color);
}

.single-post-content ol {
  margin: 20px 0;
  padding-left: 30px;
}

.single-post-content ol li {
  margin: 10px 0;
  line-height: 1.8;
}

.single-post-content strong {
  color: var(--title-color);
  font-weight: 600;
}

/* Responsive para layout de dos columnas con Bootstrap */
@media (min-width: 768px) {
  .article-container {
    padding: 40px 30px;
  }
  .single-post-content {
    font-size: 18px;
  }
}

/* Estilos para cards de posts relacionados */
.related-posts .card {
  transition: transform 0.2s, box-shadow 0.2s;
}

.related-posts .card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.related-posts .card-image-footer h3 {
  font-size: 16px;
  line-height: 1.4;
  -webkit-line-clamp: 3;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Estilos para eventos relacionados */
.article-sidebar .detailed-list {
  margin-top: 0;
}

.article-sidebar .detailed-list .item-link {
  text-decoration: none;
  color: inherit;
}

.article-sidebar .detailed-list .item-name {
  font-weight: 600;
  color: var(--title-color);
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 4px;
}

.article-sidebar .detailed-list .item-footer {
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.8;
}

.article-sidebar .detailed-list .item-after .badge {
  font-size: 11px;
  padding: 4px 8px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
}

.article-sidebar .item-media img {
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
  display: block;
}

.article-sidebar .detailed-list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.article-sidebar .detailed-list li {
  margin-bottom: 12px;
}

.article-sidebar .detailed-list li:last-child {
  margin-bottom: 0;
}

/* ============================================
   PRÓXIMAS CARRERAS
   ============================================ */
.proximas-carreras-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding: 0 5px;
}

.proximas-carreras-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0;
}

.proximas-carreras-timezone {
  font-size: 13px;
  color: var(--text-color);
  font-weight: 400;
}

/* Calendar Header - Mejorado para diseño y SEO */
.calendar-header {
  margin-bottom: 30px;
  display: block;
  position: relative;
  background-color: transparent !important;
  background: transparent !important;
  padding: 0 !important;
  height: auto !important;
  line-height: normal !important;
}

.calendar-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 20px;
  background-color: transparent !important;
  background: transparent !important;
  position: relative;
}

.calendar-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0;
  line-height: 1.2;
}

.calendar-subtitle {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-color);
  margin: 8px 0 0 0;
  line-height: 1.5;
  opacity: 0.85;
}

.calendar-season-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  margin-top: 0;
}

.calendar-season-selector label {
  font-size: 15px;
  font-weight: 500;
  color: var(--title-color);
  margin: 0;
  white-space: nowrap;
}

.calendar-season-selector select {
  min-width: 140px;
  max-width: 200px;
  width: auto;
  margin: 0;
  margin-bottom: 0;
}


/* Responsive para móvil */
@media (max-width: 768px) {
  .calendar-header {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    overflow: visible !important;
  }
  
  .calendar-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 16px;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .calendar-title {
    font-size: 24px;
    width: 100%;
    display: block !important;
    visibility: visible !important;
  }
  
  .calendar-subtitle {
    font-size: 14px;
    margin: 6px 0 0 0;
    width: 100%;
    display: block !important;
    visibility: visible !important;
  }
  
  .calendar-season-selector {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
  .calendar-season-selector label {
    display: block !important;
    visibility: visible !important;
  }
  
  .calendar-season-selector select {
    width: 100%;
    max-width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
  
}

.proximas-carreras-container {
  display: flex;
  gap: 10px;
  overflow-x: visible;
  overflow-y: visible;
  padding-bottom: 0;
  flex-wrap: nowrap;
}

.proximas-carreras-card {
  flex: 1 1 calc(16.666% - 8.33px);
  min-width: 0;
  max-width: calc(16.666% - 8.33px);
  background: var(--background-color);
  border-radius: 12px;
  padding: 12px;
  position: relative;
  box-shadow: var(--block-shadow);
  border: 2px solid transparent;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
}

.proximas-carreras-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.proximas-carreras-card-live {
  border-color: #41d359;
}

.proximas-carreras-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 28px;
  height: 21px;
  border-radius: 4px;
  overflow: hidden;
  z-index: 2;
}

.proximas-carreras-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proximas-carreras-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  z-index: 2;
  line-height: 1.2;
}

.proximas-carreras-badge-wrc {
  background-color: #ff9925;
  color: #fff;
}

.proximas-carreras-badge-imsa {
  background-color: #e2206e;
  color: #fff;
}

.proximas-carreras-badge-formula-e {
  background-color: #089bea;
  color: #fff;
}

.proximas-carreras-badge-nascar {
  background-color: #ffc62b;
  color: #1e2b47;
}

.proximas-carreras-content {
  margin-top: 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.proximas-carreras-race-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0 0 6px 0;
  line-height: 1.2;
  min-height: 34px;
}

.proximas-carreras-location {
  font-size: 12px;
  color: var(--text-color);
  margin: 0 0 10px 0;
  line-height: 1.2;
}

.proximas-carreras-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-top: auto;
  gap: 8px;
}

.proximas-carreras-datetime {
  display: flex;
  flex-direction: column;
  gap: 2px;
  line-height: 1.2;
}

.proximas-carreras-date {
  font-size: 11px;
  color: var(--text-color);
  font-weight: 500;
}

.proximas-carreras-time {
  font-size: 12px;
  color: var(--title-color);
  font-weight: 600;
}

.proximas-carreras-status {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.proximas-carreras-countdown {
  font-size: 12px;
  color: #ffc62b;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.proximas-carreras-status-live {
  display: flex;
  align-items: center;
  gap: 4px;
}

.proximas-carreras-live-icon {
  width: 7px;
  height: 7px;
  background-color: #41d359;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-live 2s infinite;
}

.proximas-carreras-status-label {
  font-size: 10px;
  color: #41d359;
  font-weight: 600;
  text-transform: uppercase;
}

.proximas-carreras-status-value {
  font-size: 12px;
  color: #41d359;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}

/* Modo oscuro */
.dark .proximas-carreras-card,
body.dark .proximas-carreras-card {
  background-color: #0e232d;
  border-color: rgba(255, 255, 255, 0.1);
}

.dark .proximas-carreras-card-live,
body.dark .proximas-carreras-card-live {
  border-color: #ffc62b;
}

/* Modo oscuro - Hero cards */
.dark .hero-index-v2-main,
body.dark .hero-index-v2-main,
.dark .hero-index-v2-item,
body.dark .hero-index-v2-item {
  background-color: #0e232d;
}

/* Mostrar/ocultar según dispositivo */
.proximas-carreras-desktop {
  display: flex;
}

.proximas-carreras-mobile {
  display: none;
}

/* Responsive */
@media (max-width: 1200px) {
  .proximas-carreras-card {
    flex: 1 1 calc(25% - 7.5px);
    max-width: calc(25% - 7.5px);
  }
}

@media (max-width: 768px) {
  /* Ocultar versión desktop (cards) en móvil */
  .proximas-carreras-desktop {
    display: none !important;
  }
  
  /* Mostrar versión mobile (stock list) en móvil */
  .proximas-carreras-mobile {
    display: block !important;
  }
  
  .proximas-carreras-title {
    font-size: 18px;
  }
  
  .proximas-carreras-timezone {
    font-size: 12px;
  }
}

/* ============================================
   PRÓXIMAS CARRERAS (ESTILO STOCK LIST)
   ============================================ */
.carreras-stock-list {
  margin: 10px 0 20px 0;
}

.carreras-stock-item {
  box-shadow: var(--block-shadow);
  display: flex;
  align-items: center;
  padding: 12px 15px;
  border-radius: 13px;
  margin-bottom: 8px;
  background-color: var(--background-color);
  transition: transform 0.2s ease;
  gap: 12px;
}

.carreras-stock-item:active {
  transform: scale(0.98);
}

.carreras-stock-item:hover {
  transform: translateX(2px);
}

.carreras-stock-item img {
  width: 36px;
  height: 27px;
  flex-shrink: 0;
  border-radius: 4px;
  object-fit: cover;
  align-self: center;
}

.carreras-stock-details {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-width: 0;
  gap: 4px;
}

.carreras-stock-top,
.carreras-stock-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.carreras-stock-top {
  margin-bottom: 0;
}

.carreras-stock-title-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.carreras-stock-badge {
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1.2;
  align-self: flex-start;
}

.carreras-stock-badge-wrc {
  background-color: #ff9925;
  color: #fff;
}

/* Fechas: mostrar completa en desktop, corta en móvil */
.carreras-stock-date {
  position: relative;
}

.carreras-stock-date-short {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

@media (max-width: 768px) {
  .carreras-stock-date-full {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  .carreras-stock-date-short {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border-width: 0;
  }
}

.carreras-stock-badge-imsa {
  background-color: #e2206e;
  color: #fff;
}

.carreras-stock-badge-formula-e {
  background-color: #089bea;
  color: #fff;
}

.carreras-stock-badge-nascar {
  background-color: #ffc62b;
  color: #1e2b47;
}

.carreras-stock-title {
  font-weight: 500;
  color: var(--title-color);
  font-size: 15px;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.carreras-stock-datetime {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
  gap: 1px;
  line-height: 1.2;
}

.carreras-stock-date {
  color: var(--text-color);
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.carreras-stock-time {
  color: var(--title-color);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.carreras-stock-location {
  color: var(--text-color);
  font-size: 13px;
  flex: 1;
  min-width: 0;
  line-height: 1.2;
}

.carreras-stock-status {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
}

.carreras-stock-countdown {
  font-size: 13px;
  font-weight: 500;
  color: #ffc62b;
  white-space: nowrap;
  line-height: 1.2;
}

.carreras-stock-status-live {
  display: flex;
  align-items: center;
  gap: 4px;
}

.carreras-stock-live-icon {
  width: 7px;
  height: 7px;
  background-color: #41d359;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse-live 2s infinite;
}

@keyframes pulse-live {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.1);
  }
}

.carreras-stock-status-label {
  font-size: 10px;
  color: #41d359;
  font-weight: 600;
  text-transform: uppercase;
  line-height: 1;
}

.carreras-stock-status-value {
  font-size: 12px;
  color: #41d359;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
}


/* Modo oscuro */
.dark .carreras-stock-item,
body.dark .carreras-stock-item {
  background-color: #0e232d;
}

/* Responsive */
@media (max-width: 768px) {
  .carreras-stock-item {
    padding: 10px 12px;
    gap: 10px;
  }
  
  .carreras-stock-item img {
    width: 32px;
    height: 24px;
  }
  
  .carreras-stock-title {
    font-size: 14px;
  }
  
  .carreras-stock-location {
    font-size: 12px;
  }
  
  .carreras-stock-date {
    font-size: 11px;
  }
  
  .carreras-stock-time {
    font-size: 12px;
  }
  
  .carreras-stock-countdown,
  .carreras-stock-status-value {
    font-size: 12px;
  }
  
  .carreras-stock-badge {
    font-size: 9px;
    padding: 2px 6px;
  }
}

/* ============================================
   PRÓXIMA CARRERA - ESTILOS
   ============================================ */

/* Próxima Carrera: Estilo 1 - Header Destacado */
.proxima-carrera-header-destacado {
  background-color: var(--background-color);
  border-radius: 13px;
  padding: 16px;
  box-shadow: var(--block-shadow);
}

.proxima-carrera-header-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-color);
  margin-bottom: 12px;
  opacity: 0.7;
}

.proxima-carrera-header-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.proxima-carrera-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.proxima-carrera-header-flag {
  width: 40px;
  height: 30px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.proxima-carrera-header-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proxima-carrera-header-info {
  flex: 1;
  min-width: 0;
}

.proxima-carrera-header-categoria {
  margin-bottom: 4px;
}

.proxima-carrera-header-nombre {
  font-size: 20px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0 0 6px 0;
  line-height: 1.2;
}

.proxima-carrera-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-color);
}

.proxima-carrera-header-fecha {
  position: relative;
}

.proxima-carrera-header-sep {
  opacity: 0.5;
}

.proxima-carrera-header-hora {
  font-weight: 600;
  color: var(--title-color);
}

.proxima-carrera-header-right {
  text-align: right;
  flex-shrink: 0;
}

.proxima-carrera-header-lugar {
  font-size: 13px;
  color: var(--text-color);
  line-height: 1.3;
}

.proxima-carrera-header-fecha-short {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Próxima Carrera: Estilo 2 - Inline Badge */
.proxima-carrera-inline {
  background-color: var(--background-color);
  border-radius: 13px;
  padding: 12px 15px;
  box-shadow: var(--block-shadow);
  display: flex;
  align-items: center;
  gap: 12px;
}

.proxima-carrera-inline-flag {
  width: 36px;
  height: 27px;
  border-radius: 4px;
  overflow: hidden;
  flex-shrink: 0;
}

.proxima-carrera-inline-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proxima-carrera-inline-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.proxima-carrera-inline-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.proxima-carrera-inline-label {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-color);
  opacity: 0.8;
  padding: 2px 0;
}

.proxima-carrera-inline-categoria {
  margin: 0;
}

.proxima-carrera-inline-nombre {
  font-size: 16px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0;
  line-height: 1.2;
}

.proxima-carrera-inline-bottom {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-color);
}

.proxima-carrera-inline-fecha {
  position: relative;
}

.proxima-carrera-inline-hora {
  font-weight: 600;
  color: var(--title-color);
}

.proxima-carrera-inline-lugar {
  flex: 1;
  min-width: 0;
}

.proxima-carrera-inline-fecha-short {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Próxima Carrera: Estilo 3 - Card Vertical */
.proxima-carrera-vertical {
  background-color: var(--background-color);
  border-radius: 13px;
  padding: 16px;
  box-shadow: var(--block-shadow);
  text-align: center;
  max-width: 300px;
}

/* Próxima Carrera Slider - Compacto como ticket */
.proxima-carrera-slider {
  background-color: var(--background-color);
  border-radius: 15px;
  padding: 20px 30px;
  box-shadow: var(--block-shadow);
  width: 308.333px;
  min-width: 308.333px;
  max-width: 308.333px;
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.proxima-carrera-slider-label {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
  color: var(--title-color);
  margin-bottom: 5px;
}

.proxima-carrera-slider-categoria {
  margin-bottom: 5px;
  display: inline-block;
}

.proxima-carrera-slider-nombre {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-color);
  margin: 5px 0;
  line-height: 1.3;
}

.proxima-carrera-slider-info {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 5px;
}

.proxima-carrera-slider-flag {
  width: 32px;
  height: 24px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}

.proxima-carrera-slider-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proxima-carrera-slider-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.proxima-carrera-slider-fecha,
.proxima-carrera-slider-hora,
.proxima-carrera-slider-lugar {
  font-weight: 500;
  font-size: 14px;
  color: var(--text-color);
  line-height: 1.3;
}

.proxima-carrera-slider-fecha {
  color: var(--title-color);
}

.proxima-carrera-slider-lugar {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proxima-carrera-slider-fecha-short {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive para Próxima Carrera Slider */
@media (max-width: 768px) {
  .proxima-carrera-slider-fecha-full {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  .proxima-carrera-slider-fecha-short {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border-width: 0;
  }
}

.proxima-carrera-vertical-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-color);
  margin-bottom: 12px;
  opacity: 0.7;
}

.proxima-carrera-vertical-flag {
  width: 48px;
  height: 36px;
  border-radius: 8px;
  overflow: hidden;
  margin: 0 auto 10px;
}

.proxima-carrera-vertical-flag img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.proxima-carrera-vertical-categoria {
  margin: 0 auto 8px;
  display: inline-block;
}

.proxima-carrera-vertical-nombre {
  font-size: 22px;
  font-weight: 600;
  color: var(--title-color);
  margin: 0 0 16px 0;
  line-height: 1.2;
}

.proxima-carrera-vertical-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.proxima-carrera-vertical-detail {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--light-gray);
}

.proxima-carrera-vertical-detail:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.proxima-carrera-vertical-detail-label {
  font-size: 12px;
  color: var(--text-color);
  font-weight: 500;
  flex-shrink: 0;
  min-width: 50px;
}

.proxima-carrera-vertical-detail-value {
  font-size: 13px;
  color: var(--title-color);
  font-weight: 500;
  text-align: right;
  flex: 1;
}

.proxima-carrera-vertical-fecha {
  position: relative;
}

.proxima-carrera-vertical-fecha-short {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* Responsive para Próxima Carrera */
@media (max-width: 768px) {
  .proxima-carrera-header-destacado {
    padding: 12px;
  }
  
  .proxima-carrera-header-main {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  
  .proxima-carrera-header-right {
    text-align: left;
    width: 100%;
  }
  
  .proxima-carrera-header-nombre {
    font-size: 18px;
  }
  
  .proxima-carrera-inline {
    padding: 10px 12px;
    gap: 10px;
  }
  
  .proxima-carrera-inline-flag {
    width: 32px;
    height: 24px;
  }
  
  .proxima-carrera-inline-nombre {
    font-size: 15px;
  }
  
  .proxima-carrera-inline-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  
  .proxima-carrera-vertical {
    max-width: 100%;
    padding: 14px;
  }
  
  .proxima-carrera-vertical-nombre {
    font-size: 20px;
  }
  
  .proxima-carrera-vertical-detail {
    flex-direction: column;
    gap: 4px;
  }
  
  .proxima-carrera-vertical-detail-value {
    text-align: left;
  }
  
  .proxima-carrera-header-fecha-full,
  .proxima-carrera-inline-fecha-full,
  .proxima-carrera-vertical-fecha-full {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
  
  .proxima-carrera-header-fecha-short,
  .proxima-carrera-inline-fecha-short,
  .proxima-carrera-vertical-fecha-short {
    position: static;
    width: auto;
    height: auto;
    padding: 0;
    margin: 0;
    overflow: visible;
    clip: auto;
    white-space: nowrap;
    border-width: 0;
  }
}

/* Clasificaciones (Standings) Tables */
.standings-table-wrapper {
  overflow-x: auto;
  margin-bottom: 15px;
  -webkit-overflow-scrolling: touch;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  color: var(--text-color);
  min-width: 100%;
}

.standings-table thead {
  border-bottom: 2px solid var(--light-gray);
}

.standings-table th {
  text-align: left;
  padding: 8px 6px;
  font-weight: 600;
  color: var(--title-color);
  font-size: 12px;
  white-space: nowrap;
}

.standings-table th.standings-th-right {
  text-align: right;
}

.standings-table th.standings-th-center {
  text-align: center;
}

.standings-table tbody {
  font-size: 14px;
}

.standings-table tbody tr {
  border-bottom: 1px solid var(--light-gray);
}

.standings-table tbody tr:last-child {
  border-bottom: none;
}

.standings-table td {
  padding: 10px 6px;
  font-size: 14px;
}

.standings-table td.standings-pos {
  font-weight: 600;
  color: var(--title-color);
}

.standings-table td.standings-name {
  color: var(--text-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.standings-table td.standings-points {
  text-align: right;
  font-weight: 600;
  color: var(--title-color);
}

.standings-table td.standings-wins {
  text-align: center;
  color: var(--text-color);
}

.standings-table td.standings-change {
  text-align: center;
  width: 40px;
  min-width: 40px;
  padding: 10px 4px;
}

/* Timezone Converter - Estilos para las horas */
.time-display {
  display: inline-block;
}

.time-display-active {
  font-weight: 500;
  color: var(--title-color);
}

/* Control de selector de hora */
.calendar-timezone-control {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.calendar-timezone-control .segmented {
  width: auto;
  min-width: 180px;
}

.calendar-timezone-control .segmented .button {
  height: 36px;
  min-height: 36px;
  line-height: 36px;
  font-size: 13px;
  padding: 0 16px;
  min-width: 70px;
}

@media (max-width: 768px) {
  .calendar-timezone-control {
    margin-top: 10px;
    justify-content: center;
  }
  
  .calendar-timezone-control .segmented {
    width: 100%;
    max-width: 100%;
  }
  
  .calendar-timezone-control .segmented .button {
    flex: 1;
    min-width: 0;
    font-size: 12px;
    padding: 0 10px;
    height: 32px;
    min-height: 32px;
    line-height: 32px;
  }
}

.standings-pilot-name {
  display: inline;
}

.standings-color-bar {
  display: inline-block;
  width: 24px;
  height: 16px;
  border-radius: 2px;
  flex-shrink: 0;
  vertical-align: middle;
}

.standings-flag {
  width: 16px;
  height: 12px;
  border-radius: 2px;
  vertical-align: middle;
  flex-shrink: 0;
  object-fit: cover;
}

.standings-change-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

.standings-change-icon {
  font-size: 12px;
  line-height: 1;
}

.standings-change-icon.up {
  color: #22c55e;
}

.standings-change-icon.down {
  color: #ef4444;
}

.standings-change-number {
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-color);
}

/* Tabla simple (solo POS y PILOTO) */
.standings-table-simple th:first-child {
  width: 50px;
}

.standings-table-simple td.standings-name {
  width: 100%;
}

.standings-button-wrapper {
  text-align: center;
  margin-top: 15px;
}

.standings-button {
  font-size: 13px;
  padding: 10px 20px;
}

/* Responsive - Standings Tables */
@media (max-width: 768px) {
  .standings-table tbody {
    font-size: 13px;
  }
  
  .standings-table th {
    padding: 6px 4px;
    font-size: 11px;
  }
  
  .standings-table td {
    padding: 8px 4px;
    font-size: 13px;
  }
  
  .standings-table td.standings-change {
    padding: 8px 2px;
    width: 36px;
    min-width: 36px;
  }
  
  .standings-color-bar {
    width: 20px;
    height: 14px;
  }
  
  .standings-flag {
    width: 14px;
    height: 10px;
  }
  
  .standings-change-icon {
    font-size: 11px;
  }
  
  .standings-change-number {
    font-size: 10px;
  }
  
  .standings-button {
    font-size: 12px;
    padding: 8px 16px;
  }
}

/* Dark mode - Standings Tables */
.dark .standings-table,
body.dark .standings-table {
  color: var(--text-color);
}

.dark .standings-table th,
body.dark .standings-table th {
  color: var(--title-color);
  border-bottom-color: var(--light-gray);
}

.dark .standings-table tbody tr,
body.dark .standings-table tbody tr {
  border-bottom-color: var(--light-gray);
}

