/* GENERATED — no editar. Regenerar: php scripts/build-lapeando-css.php */

/*------------------------------------------------------------------
[Yui Template CSS]

Project: Yui - ThemeForest
Version: 2.2
Author:	Xioyuna


[Table of contents]

1. Fonts
2. Root Variables
3. General
4. Navbar
5. Tab Bar
6. Custom Color Schemes
7. Buttons
8. Lists
9. Section Title
10. Post List
11. Badges
12. Checkboxes
13. Columns
14. Icons
15. Infinite Scroll
16. Notifications
17. Panel
18. Photo Browser
19. Popover
20. Popup
21. Preloader
22. Progress Bar
23. Radio
24. Range Slider
25. Toasts
26. Sheet Modal
27. Stepper
28. Swipe To Delete
29. Text Editor
30. Toggle Buttons
31. Tooltip
32. Tabs
33. Accordion
34. Cards
35. Slider
36. Forms
37. Rating
38. Ticket
39. Timeline
40. Sign Up
41. Messages List
42. Chat
43. Single
44. Create post
45. Transparent Navbar
46. Movie
47. Calendar
48. Help Center
49. Information block
50. Stocks
51. Author List
52. Categories Slider
53. Authors Slider
54. Contact
55. Settings
56. Categories Page
57. Profile
58. Search
59. Forgot Password
60. Onboarding
61. Notifications
62. Movie Slider
63. Album Grid
64. Panel
65. Album 
66. Dark Theme

-------------------------------------------------------------------*/

/* 1. Fonts — Rubik vía Google Fonts en includes/head.php */

/* 2. Root Variables */

:root {
  --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);
}
:root .dark {
  --title-color: #fff;
  --text-color: #9aa9b2;
  --background-color: #001119;
  --light-gray: #0e232d;
}

/* 3. General */

body {
  font-family: "Rubik", -apple-system, SF Pro Text, SF UI Text, system-ui, Helvetica Neue, Helvetica, Arial, sans-serif;
}
.page {
  background-color: var(--background-color);
}
.page-content {
  padding-left: 15px;
  padding-right: 15px;
  padding-bottom: calc(var(--f7-page-toolbar-bottom-offset, 0px) + var(--f7-safe-area-bottom) + var(--f7-page-content-extra-padding-bottom, 0px) + 20px);
}
.full-width {
  margin-left: -15px;
  margin-right: -15px;
  width: calc(100% + 30px) !important;
}
p {
  line-height: 1.8em;
  color: var(--text-color);
  font-size: 15px;
}
h1,
h2,
h3 {
  font-weight: 600;
  color: var(--title-color);
}
h1 {
  font-size: 28px;
  margin-bottom: 20px;
}
ul {
  padding-left: 20px;
}
ul li {
  padding: 4px 0;
  color: var(--text-color);
}
iframe {
  width: calc(100%);
  border-radius: 15px;
  border: none;
}

body:not(.page-articulo) iframe {
  height: 230px;
}
.page-content img {
  width: 100%;
}
.page-theme-transition {
  transition: background-color 0.4s;
}
.ios .router-transition-forward .page-next:before,
.ios .router-transition-backward .page-current:before,
.page-shadow-effect,
.page-opacity-effect,
.ios .router-transition-forward .page-current:after,
.ios .router-transition-backward .page-previous:after {
  background: none;
}
::-webkit-scrollbar {
  display: none;
}

/* 4. Navbar */

.navbar-bg {
  background-color: var(--background-color);
  transition: background-color 0.4s;
}
.navbar .title {
  color: var(--title-color);
}
.navbar-bg:after {
  display: none;
}
.navbar-profile img {
  border-radius: 50%;
  width: 30px;
}
.navbar-arrow {
  padding-left: 2px;
  width: 25px;
}
.arrow-back {
  font-weight: 400;
  font-size: 26px;
  padding-right: 10px;
  width: 25px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: subpixel-antialiased;
}
.navbar a i {
  color: var(--title-color);
}
.navbar .title-large {
  height: 58px;
}
.navbar .title-large-text {
  color: var(--title-color);
  padding-left: 15px;
}
.ios .navbar .left a + a,
.ios .navbar .right a + a {
  margin-left: 0;
}
.navbar .icon .badge {
  font-size: 11px;
  font-weight: 600;
}

/* 5. Tab Bar */

.toolbar {
  background-color: var(--background-color);
  transition: background-color 0.4s, transform 0.4s;
}
.tabbar a,
.tabbar-icons a {
  color: #8896b8;
}
.tabbar-icons .tabbar-label {
  font-size: 10px;
}
.toolbar-bottom:before,
.ios .toolbar-bottom-ios:before,
.md .toolbar-bottom-md:before {
  background-color: #dedede;
  transition: background-color 0.4s, transform 0.4s;
}

/* 6. Custom Color Schemes */

.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-dark {
  --f7-theme-color: #1e2b47;
  --f7-theme-color-rgb: 30, 43, 71;
  --f7-theme-color-shade: #121a2a;
  --f7-theme-color-tint: #2a3c64;
}

/* 7. Buttons */

.button {
  width: 100%;
  height: 44px;
  text-transform: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 10px;
  margin: 10px 0;
}
.button img {
  width: 17px;
  max-width: 17px;
  max-height: 17px;
  margin-right: 7px;
}
p.row .button {
  margin-top: 0;
  margin-bottom: 0;
}
.button i {
  font-size: 18px;
  font-weight: 400;
}
.button-icon-right i {
  margin-left: 6px;
}
.button-icon-left i {
  margin-right: 6px;
}
.button-round {
  border-radius: 22px;
}

/* 8. Lists */

.list {
  margin-top: 15px;
  margin-bottom: 25px;
}
.list li {
  color: var(--title-color);
  padding-top: 0;
  padding-bottom: 0;
}
.list .item-inner {
  padding-top: 14px;
  padding-bottom: 14px;
}
.list .item-title {
  font-size: 15px;
  font-weight: 500;
  color: var(--title-color);
}
.simple-list ul li,
.links-list ul li a {
  min-height: 50px;
}
.links-list a,
.simple-list ul li {
  color: var(--title-color);
  font-size: 15px;
  font-weight: 500;
}
.colored-icons-list a {
  justify-content: flex-start;
  padding: 11px var(--f7-list-item-padding-horizontal);
  height: auto;
}
.colored-icon {
  background-color: #ebebf2;
  border-radius: 50%;
  height: 38px;
  width: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 15px;
  color: var(--title-color);
}
.colored-icon .icon {
  font-size: 19px;
}
.colored-icon.yellow {
  color: #e5b32d;
  background-color: rgba(229, 179, 45, 0.2);
}
.colored-icon.blue {
  color: #0091de;
  background-color: rgba(0, 145, 222, 0.1);
}
.colored-icon.green {
  color: #19b48e;
  background-color: rgba(25, 180, 142, 0.1);
}
.colored-icon.pink {
  color: #e2206e;
  background-color: rgba(226, 32, 95, 0.1);
}
.colored-icon.orange {
  color: #ee8f30;
  background-color: rgba(255, 156, 60, 0.16);
}
.colored-icon.red {
  color: #d8422e;
  background-color: rgba(216, 66, 46, 0.13);
}
.colored-icon.purple {
  color: #9146da;
  background-color: rgba(145, 70, 218, 0.15);
}
.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;
}
.icon-bold {
  font-weight: 600;
}
.simple-list .item-inner::after {
  display: none;
}
.simple-list .item-inner {
  padding-right: 0;
}
.list-with-icons .item-media img {
  max-height: 35px;
  max-width: 35px;
  height: auto;
  width: auto;
  border-radius: 50%;
}
.list .item-after {
  color: var(--text-color);
}

/* 9. Section Title */

.section-title {
  margin-top: 25px;
  margin-bottom: 0px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--title-color);
  font-size: 18px;
  font-weight: 600;
}
.section-title .left i {
  font-size: 16px;
}
.section-title a {
  font-weight: 500;
  font-size: 15px;
  color: var(--f7-theme-color);
}

/* 10. Post List */

.post-list {
  margin: 10px 0 20px 0;
}
.post-list .post-horizontal {
  margin-bottom: 10px;
  align-items: normal;
}
.post-horizontal {
  box-shadow: var(--block-shadow);
  display: flex;
  padding: 15px 15px 15px 17px;
  border-radius: 15px;
  justify-content: space-between;
}
.post-horizontal .post-image {
  margin-left: 10px;
  line-height: 0;
}
.post-horizontal .post-image img {
  object-fit: cover;
  border-radius: 15px;
  min-width: 84px;
  max-width: 84px;
  height: 84px;
}
.post-horizontal .post-title {
  color: var(--title-color);
  font-weight: 500;
  line-height: 22px;
  font-size: 14px;
  margin: 2px 0 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2; /* number of lines to show */
  -webkit-box-orient: vertical;
}
.post-horizontal .post-category,
.post-horizontal .post-date {
  color: var(--text-color);
  font-size: 14px;
}
.post-horizontal .post-date {
  line-height: 0;
}

/* 11. Badges */

.icon-list .icon {
  margin: 0 15px;
}
.badge {
  padding: 0 6px;
  font-size: 13px;
  font-weight: 500;
  line-height: 20px;
}
i .badge {
  padding: 0 4px;
  font-size: 10px;
}
.badge-with-icon {
  height: 24px;
  padding: 0 10px 0 6px;
}
.badge-with-icon i {
  font-size: 17px !important;
  margin-right: 3px;
}
.badge-with-image {
  padding-left: 0;
  height: 24px;
  font-weight: 500;
  font-size: 14px;
  padding-right: 8px;
}
.badge-with-image img {
  height: 24px;
  width: auto;
  border-radius: 12px;
  margin-right: 6px;
}

/* 12. Checkboxes */

.ios .checkbox i:after,
.ios .icon-checkbox:after {
  font-size: 20px;
  font-weight: 600;
}
.checkbox.checkbox-inline {
  margin-right: 5px;
}
.icon-checkbox,
.checkbox i {
  border-radius: 5px;
}
.checkbox-rounded .icon-checkbox,
.checkbox-rounded .checkbox i {
  border-radius: 50%;
}
.icon-checkbox,
.checkbox i {
  border: 2px solid #c7c7cc;
}
.icon-checkbox:after,
.checkbox i:after {
  top: -2px;
  left: -2px;
}

/* 13. Columns */

.grid {
  margin: 10px 0;
}
.grid-demo > * {
  padding: 20px 0;
  font-weight: 500;
  color: var(--title-color);
  background-color: var(--light-gray);
  border-radius: 6px;
  text-align: center;
}
.grid-demo {
  margin: 15px 0;
}
.grid-buttons-demo {
  margin-top: 0;
  margin-bottom: 0;
}
.grid-buttons-demo .button {
  margin-bottom: 0;
  margin-top: 0;
}
.grid-no-margin {
  margin: 0;
}

/* 14. Icons */

.demo-icons {
  display: grid;
  grid-template-columns: repeat(auto-fill, 60px);
  justify-content: space-between;
  grid-gap: 1rem;
  justify-items: center;
}
.demo-icons i {
  margin: 10px;
  font-size: 30px;
}

/* 15. Infinite Scroll */

.infinite-scroll-demo .post-horizontal .post-image {
  border-radius: 15px;
  min-width: 84px;
  max-width: 84px;
  height: 84px;
  background-color: var(--title-color);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 600;
  font-size: 30px;
}

/* 16. Notifications */

.notification-image {
  border-radius: 50%;
}

/* 17. Panel */

.panel-backdrop {
  background-color: rgba(0, 0, 0, 0.3);
}

/* 18. Photo Browser */

.photo-browser-page .navbar .title {
  color: #fff;
}
.navbar-photo-browser .right .link svg,
.navbar-photo-browser .right .link i {
  color: #fff;
}

/* 19. Popover */

.popover-inner .block {
  margin: 20px 0;
  padding: 0 20px;
}

/* 20. Popup */

.popup-demo {
  padding-top: 0;
  padding-bottom: 0;
  display: flex;
  flex-direction: column;
}
.popup-demo img {
  width: 80%;
  margin-top: 40px;
}
.popup-content {
  margin-top: 10px;
  flex: 1;
  text-align: center;
}
.popup-demo .button {
  margin-bottom: 25px;
  min-height: 44px;
}
.popup-demo .swipe-down-text {
  margin-bottom: 25px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
}

/* 21. Preloader */

.preloader-big {
  height: 40px;
  width: 40px;
}
.preloader-demo > div {
  text-align: center;
}

/* 22. Progress Bar */

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

/* 23. Radio */

.ios .icon-radio:after {
  font-size: 24px;
}
.radio .icon-radio {
  width: 24px;
  height: 24px;
  border: 2px solid #c7c7cc;
}
p .icon-radio {
  margin-right: 1px;
}
.ios p .icon-radio:after {
  font-size: 22px;
}

/* 24. Range Slider */

.range-slider-with-icons {
  width: 100%;
  margin: 0 16px;
}
.range-slider-title-value {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.range-slider-title-value .range-value {
  color: var(--title-color);
  font-weight: 500;
  font-size: 15px;
}

/* 25. Toasts */

.toast-button.button {
  width: auto;
}

/* 26. Sheet Modal */

.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: #666;
  cursor: pointer;
  z-index: 15;
}
.sheet-modal {
  height: 32vh;
}
.sheet-modal[data-swipe-to-close="true"] {
  border-top-right-radius: 20px;
  border-top-left-radius: 20px;
  height: auto;
  max-height: 70vh;
}
.sheet-modal .page-content {
  padding: 0 20px 20px 20px;
}
.sheet-modal[data-swipe-to-close="true"] .page-content {
  padding-top: 20px;
}
.sheet-modal::before {
  display: none !important;
}

/* 27. Stepper */

.stepper .stepper-input-wrap input {
  background-color: transparent;
  padding: 0;
  border-radius: 0;
  color: var(--title-color);
  width: 40px;
}
.stepper-input-wrap,
.stepper-value {
  border: none;
}
.stepper-button:last-child,
.stepper-button-minus:last-child,
.stepper-button-plus:last-child,
.stepper-button:first-child,
.stepper-button-minus:first-child,
.stepper-button-plus:first-child {
  border-radius: 8px;
}
.stepper-button,
.stepper-button-minus,
.stepper-button-plus {
  width: 28px;
}
.stepper-button-plus:after,
.stepper-button-minus:after {
  width: 12px;
}
.stepper-button-plus:before {
  height: 12px;
}
.stepper.color-light-gray .stepper-button-minus::after,
.stepper.color-light-gray .stepper-button-plus::before,
.stepper.color-light-gray .stepper-button-plus::after {
  background-color: var(--title-color);
}

/* 28. Swipe To Delete */

.swipeout-actions-left > a,
.swipeout-actions-right > a,
.swipeout-actions-left > button,
.swipeout-actions-right > button,
.swipeout-actions-left > span,
.swipeout-actions-right > span,
.swipeout-actions-left > div,
.swipeout-actions-right > div {
  font-weight: 500;
  font-size: 15px;
}

/* 29. Text Editor */

.text-editor {
  margin-right: 0;
  margin-left: 0;
  border-radius: 10px;
  border: 1px solid #e0e3e6;
  margin-top: 0;
  background-color: var(--light-gray);
}
.text-editor-content .text-editor-placeholder {
  color: #93a0b1;
}
.text-editor-toolbar {
  border-bottom: 1px solid #e0e3e6;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  background-color: var(--light-gray);
}
.text-editor-toolbar::after {
  display: none;
}
.input-outline {
  border: 2px solid #e0e3e6 !important;
  background: none !important;
}

/* 30. Toggle Buttons */

.ios .toggle-icon:after {
  box-shadow: none;
}
.ios .toggle-icon:before {
  background-color: #e9e9ea;
}

/* 31. Tooltip */

.icon-tooltip {
  color: var(--title-color);
}
/* 32. Tabs */

.segmented.segmented-strong .button {
  margin: 0;
  border-radius: 12px;
}
.custom-tabs .tab {
  padding-left: 10px;
  padding-right: 10px;
}
.segmented.segmented-strong {
  background-color: var(--light-gray);
  border-radius: 15px;
}
.segmented-strong .segmented-highlight {
  box-shadow: none;
  background-color: var(--title-color);
  border-radius: 12px;
}
.segmented-strong {
  --f7-segmented-strong-padding: 3px;
}
.segmented.segmented-strong .button.tab-link-active {
  color: #fff;
}

/* 33. Accordion */

.accordion-item-content {
  padding: 0 20px;
}
.accordion-item-content p {
  font-size: 15px;
  margin: 0px 0 5px;
}
.list.accordion-list .item-title {
  color: var(--title-color);
  font-weight: 500;
  font-size: 15px;
}

/* 34. Cards */

.card {
  background: none;
  border-radius: 18px;
  box-shadow: var(--block-shadow);
  overflow: hidden;
  margin: 20px 0;
  display: block;
}
.section-title + .card {
  margin-top: 10px;
}
.card-footer:before {
  display: none;
}
.card-image {
  border-radius: 0;
  display: block;
  min-height: auto;
  padding: 0;
  line-height: 0;
  position: relative;
}
.card-image:has(.card-image-footer) img {
  object-fit: cover;
  aspect-ratio: 16/10;
}
.card-image:has(~ .card-author-footer) img {
  aspect-ratio: 16/9;
}
.card-image-footer {
  position: absolute;
  bottom: 0;
  padding: 60px 18px 15px 18px;
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgb(24 24 24 / 95%) 100%);
  color: #fff;
  width: 100%;
  box-sizing: border-box;
  line-height: var(--f7-line-height);
}
.card-image-footer h2 {
  margin: 0;
  font-size: 19px;
  line-height: 24px;
  font-weight: 500;
  color: #fff;
}
.card .card-category {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  padding: 2px 8px;
  margin-bottom: 10px;
  border-radius: 5px;
}
.card .card-author {
  display: flex;
  align-items: center;
}
.card .card-author span {
  opacity: 0.9;
}
.card .card-author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 8px;
}
.card .card-category.bg-color-white {
  color: var(--title-color);
}
a {
  transition: opacity 0.1s ease;
}
a:active {
  opacity: 0.95;
}
swiper-slide .card {
  margin: 0;
}
.card-author-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 16px;
}
.card-author-footer .author-image {
  width: 35px;
  border-radius: 50%;
  height: auto;
}
.card-author-footer .card-footer-middle {
  margin-left: 12px;
}
.card-author-footer .card-author {
  color: var(--title-color);
  font-weight: 500;
  font-size: 15px;
}
.card-author-footer .card-date {
  color: var(--text-color);
}
.card-author-footer .card-footer-right {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-color);
  margin-left: auto;
}
.card-author-footer .card-footer-right i {
  font-size: 22px;
}
.card-big-footer {
  display: block;
  padding: 20px;
}
.card-big-footer h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  margin-bottom: -5px;
}
.card-big-footer .button {
  margin-bottom: 0;
  margin-top: 15px;
}
.card-big-footer .button i {
  margin-left: 5px;
  font-weight: 600;
}
img.card-big-footer-image {
  height: auto;
}

/* 35. Slider */

swiper-container {
  margin-top: 10px;
  margin-bottom: -20px;
  padding-bottom: 20px;
}

/* 36. Forms */

input[type="text"],
input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="password"],
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;
}
::placeholder,
::-webkit-input-placeholder {
  color: #93a0b1;
  font-weight: 400;
}
input[type="date"],
input[type="datetime-local"] {
  padding-right: 10px;
  line-height: 42px;
}
.searchbar input[type="search"] {
  background-color: var(--light-gray);
}
label:not(.checkbox, .item-checkbox, .radio, .item-radio, .toggle) {
  font-weight: 500;
  margin-bottom: 7px;
  font-size: 15px;
  display: block;
}
form .button {
  margin: 20px 0;
}
textarea {
  padding-top: 15px;
  padding-bottom: 15px;
  min-height: 100px;
}
form h1 {
  margin-bottom: 0;
}

/* 37. Rating */

.rating-block {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 40px 25px;
}
.rating-block-note {
  font-weight: 500;
  font-size: 30px;
  margin: 20px 0;
}
.rating-block-text {
  text-align: center;
  color: var(--text-color);
}
.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;
}
.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;
}
.rating-block-star i {
  font-size: 18px;
  margin-left: 3px;
}
.rating-block-bar {
  margin: 0 10px;
}
.rating-block-percentage {
  font-weight: 500;
  width: 44px;
}
.rating-bg {
  background-color: #f5f9ff;
  border-radius: 15px;
}

/* 38. Ticket */

.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-discount {
  font-size: 40px;
  font-weight: 600;
  color: var(--title-color);
}
.ticket-text {
  text-transform: uppercase;
  font-weight: 600;
  font-size: 14px;
}
.ticket-description {
  font-weight: 500;
  font-size: 14px;
}
.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;
}
.ticket-fill .ticket-discount {
  color: #fff;
  font-weight: 500;
  z-index: 10;
}
.ticket-fill .ticket-description {
  color: #fff;
  font-weight: 500;
  z-index: 10;
}
.ticket-background-icon {
  position: absolute;
  right: 40px;
  color: rgba(255, 255, 255, 0.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-bg + .ticket-text {
  z-index: 10;
  color: #fff;
}
.ticket-fill:active {
  opacity: 0.9;
}

/* 39. Timeline */

.timeline {
  padding: 0;
}
.timeline-item-text {
  color: var(--text-color);
  margin-top: 5px;
  line-height: 1.8em;
}
.timeline-item-date {
  font-weight: 500;
}
.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-text img {
  border-radius: 10px;
}

/* 40. Sign Up */

.signup-image,
.signin-image {
  display: flex;
  align-items: center;
  justify-content: center;
}
.signup-image img {
  width: 85%;
}
.signin-image img {
  width: 90%;
}
.google-button {
  background-color: #eff7e5;
}
.login-separator {
  font-size: 14px;
}
.signup-tos {
  font-size: 13px;
}
.signup-tos a {
  color: var(--text-color);
  text-decoration: underline;
}
.signup-have-account {
  color: var(--title-color);
  font-weight: 500;
  font-size: 15px;
}
.signin-links {
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 41. Messages List */

.list-title {
  margin: 25px 0 10px 0;
}
.list-title + .list {
  margin-top: 5px;
}
.detailed-list {
  margin-top: 10px;
}
.detailed-list .item-content {
  padding-left: 15px;
}
.detailed-list .item-link .item-inner {
  padding-right: 15px;
  margin-left: 15px;
}
.detailed-list .item-media img {
  width: 50px;
  border-radius: 50%;
}
.message-list.detailed-list .item-after .badge {
  padding: 0 6px;
  min-width: 22px;
}
.detailed-list .item-footer {
  line-height: 16px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 14px;
  margin-top: 4px;
  color: var(--text-color);
  padding-right: 5px;
}
.detailed-list .item-name {
  font-size: 15px;
  color: var(--title-color);
  font-weight: 500;
}
.detailed-list .item-link .item-inner:before {
  display: none;
}
.detailed-list .item-after {
  font-size: 14px;
}
.detailed-list .item-unread {
  font-weight: 500;
  color: var(--title-color);
}
.detailed-list .item-name .badge {
  margin-left: 3px;
  padding: 0 8px;
}
.searchbar-inner {
  padding: 0 15px;
}
.searchbar-backdrop.searchbar-backdrop-in {
  opacity: 0;
}
.searchbar.searchbar-inline {
  margin-top: 10px;
  margin-bottom: -5px;
}
.searchbar.searchbar-inline .searchbar-input-wrap {
  height: 40px;
}

/* 42. Chat */

.messagebar textarea {
  min-height: auto;
  background-color: var(--light-gray);
  border: none;
  margin-bottom: 0;
  font-weight: 400;
  font-size: 15px;
}
.ios .message-received {
  margin-left: 15px;
}
.ios .message-sent {
  margin-right: 15px;
}
.messagebar .send-link i {
  transform: rotate(45deg);
  margin-left: -6px;
  margin-right: 3px;
}
.ios .message + .message:not(.message-first) {
  margin-top: 2px;
}
.messages-date {
  font-size: 14px;
  margin: 15px 0 5px;
  color: var(--text-color);
  text-align: center;
  width: 100%;
  line-height: 1;
}
.message-bubble {
  font-size: 15px;
}
.page[data-name="chat"] .page-content {
  padding-bottom: calc(var(--f7-page-toolbar-bottom-offset, 0px) + var(--f7-safe-area-bottom) + var(--f7-page-content-extra-padding-bottom, 0px));
}
.ios .message-sent .message-bubble {
  padding: 8px 20px 8px 13px;
}
.ios .message-received .message-bubble {
  padding: 8px 13px 8px 20px;
}
.messagebar .toolbar-inner {
  padding-bottom: 3px;
}

/* 43. Single */

.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;
}
.single-cover-image {
  border-radius: 8px;
}
.single-post-actions {
  font-size: 25px;
}
.single-post-category {
  padding: 4px 10px;
  font-size: 14px;
  height: auto;
  border-radius: 6px;
  color: var(--title-color);
  background-color: var(--light-gray);
  font-size: 14px;
  font-weight: 500;
  margin-right: 5px;
  display: inline-block;
  margin-top: 15px;
}
.single-post-content img {
  border-radius: 8px;
}
.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;
  border-radius: 50%;
  margin-right: 12px;
}
.single-post-author .author-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.single-post-author .author-name {
  font-weight: 500;
  font-size: 15px;
}
.single-post-author .author-description {
  color: var(--text-color);
  margin-top: 2px;
  font-size: 13px;
}
.single-post-author .author-follow {
  width: auto;
  margin-left: auto;
  padding: 0 15px 0 11px;
  height: 38px;
}
.verified-badge {
  margin-left: 2px;
  font-size: 19px;
}
.comment-list {
  margin-top: 30px;
}
.comment {
  display: flex;
  margin: 20px 0;
}
.comment-author {
  display: flex;
  align-items: center;
}
.comment > img {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  margin-right: 13px;
}
.comment-header-left {
  display: flex;
  align-items: center;
}
.comment-date {
  margin-left: 6px;
  color: var(--text-color);
  font-size: 15px;
  opacity: 0.8;
}
.comment-infos {
  width: 100%;
}
.comment-infos .author-name {
  font-weight: 500;
  font-size: 15px;
}
.comment-text {
  line-height: 1.55em;
  color: var(--text-color);
  font-size: 15px;
  margin-top: 2px;
}
.title-bottom-line {
  position: relative;
  margin-top: 30px;
  margin-bottom: 25px;
}
.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)));
}
.comment-count {
  margin-bottom: 2px;
  margin-left: 2px;
}
.comment-header {
  display: flex;
  justify-content: space-between;
  width: 100%;
}
.comment-reply {
  margin-left: 60px;
}
.comment-header i {
  color: var(--title-color);
  font-size: 18px;
  width: 10px;
  font-weight: 600;
}

/* 44. Create post */

.create-post-cover {
  background-color: var(--light-gray);
  height: 25vh;
  border-radius: 10px;
  width: 100%;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  position: relative;
  font-size: 14px;
  color: #93a0b1;
}
.create-post-cover i {
  margin-bottom: 5px;
}
.create-post-cover input[type="file"] {
  background-color: red;
  position: absolute;
  width: 95%;
  height: 90%;
  opacity: 0;
  z-index: 99;
  cursor: pointer;
}

/* 45. Transparent Navbar */

.stick-top {
  margin-top: -50px;
}
.navbar-transparent .navbar-inner .left a i {
  color: #fff;
  transition: color 00s;
  text-shadow: 0px 0px 11px #000;
}
.navbar-transparent.navbar-transparent-visible .navbar-inner .left a i {
  color: #000;
  transition: color 0s;
  text-shadow: none;
}

/* 46. Movie */

.movie-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 30px;
}
.page-content .movie-cover {
  width: calc(70vw - 30px);
  border-radius: 25px;
  max-height: 342px;
  object-fit: cover;
}
.movie-infos {
  width: 100%;
  margin-left: 15px;
}
.movie-block {
  background-color: var(--light-gray);
  color: var(--title-color);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  margin-bottom: 15px;
  padding: 19px 0;
}
.movie-block:last-child {
  margin-bottom: 0;
}
.movie-block i {
  font-size: 20px;
}
.movie-block-name {
  margin: 5px 0 1px 0;
  color: #708197;
  font-weight: 400;
}
.movie-block-text {
  font-weight: 600;
}
.casting .grid > div {
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-start;
}
.casting .grid {
  margin-bottom: 20px;
}
img.actor-image {
  border-radius: 50%;
  width: 60px;
  margin-bottom: 10px;
}
.actor-firstname,
.actor-lastname {
  text-align: center;
  line-height: 1.4em;
  color: var(--title-color);
  font-weight: 500;
  font-size: 13px;
}
.movie-rating {
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: -15px;
}
.movie-distribution .item-inner .item-after {
  font-size: 15px;
  font-weight: 500;
  color: var(--title-color);
}
.movie-distribution.list .item-title {
  font-weight: 400;
  color: var(--text-color);
}

/* 47. Calendar */

.calendar-day-number {
  font-weight: 500;
}
.calendar .toolbar .toolbar-inner .center {
  font-weight: 500;
}
.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-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: 100%;
  height: 100%;
  font-size: 20px;
  position: absolute;
  top: 50%;
  width: 8px;
  height: 14px;
  margin-top: -7px;
  font-size: var(--f7-list-chevron-icon-font-size);
  line-height: 14px;
  color: var(--title-color);
  pointer-events: none;
  right: calc(var(--f7-list-item-padding-horizontal) + var(--f7-safe-area-right));
  content: var(--f7-list-chevron-icon-right);
}
.link-banner.bg-color-primary,
.link-banner.bg-color-primary .link-banner-text,
.link-banner.bg-color-primary i,
.link-banner.bg-color-primary.link-chevron::before,
.link-banner.bg-color-dark,
.link-banner.bg-color-dark .link-banner-text,
.link-banner.bg-color-dark i,
.link-banner.bg-color-dark.link-chevron::before {
  color: #fff;
}
.link-banner.bg-color-dark {
  background-color: var(--title-color);
}
.link-banner.bg-color-primary .link-banner-subtitle {
  color: #fff;
  opacity: 0.8;
}
.link-banner.bg-color-dark .link-banner-subtitle {
  color: #fff;
  opacity: 0.8;
}
.detailed-list .item-media img.event-thumbnail {
  border-radius: 17px;
}
.link-banner.error-message,
.link-banner.success-message {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}
.link-banner.error-message {
  background-image: url("../../img/images/pattern-error.png");
}
.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 .link-banner-title,
.link-banner.success-message .link-banner-subtitle,
.link-banner.success-message i,
.link-banner.success-message.link-chevron::before {
  color: #508d59;
}
.link-banner.success-message {
  background-image: url("../../img/images/pattern-success.png");
}
.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;
}

/* 48. Help Center */

.help-center-banner {
  border-radius: 15px;
}
.simple-link-banner i {
  font-size: 25px;
}
.simple-link-banner .link-banner-text {
  font-size: 15px;
  margin-left: 2px;
}
.help-center-title {
  margin-top: 20px;
  margin-bottom: -5px;
  font-size: 2em;
}
.searchbar-help-center.searchbar-inline {
  margin-top: 20px;
}
.help-center-links {
  margin-bottom: 30px;
}
.light-gray-title {
  color: #99a0a7;
  font-weight: 500;
  font-size: 13px;
  text-transform: uppercase;
  margin-top: 30px;
  margin-bottom: 10px;
}
.light-gray-title .badge {
  padding: 0;
  margin-left: 3px;
  margin-bottom: 2px;
}
.faq-list .list.accordion-list .item-title {
  font-size: 15px;
}

/* 49. Information block */

.information-block {
  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-image: url("../../img/images/pattern-error.png");
}
.information-block.success-message {
  background-image: url("../../img/images/pattern-success.png");
}
.information-block.success-message h2,
.information-block.success-message p {
  color: #599c63;
}
.information-block.error-message h2,
.information-block.error-message p {
  color: #b14b4b;
}
.information-block img {
  width: 30%;
}
.information-block h2 {
  font-size: 30px;
  margin: 10px 0 0 0;
}
.information-block p {
  color: var(--title-color);
  margin: 10px 0 10px 0;
  font-weight: 500;
  line-height: 1.5;
}

/* 50. Stocks */

.stock-item {
  box-shadow: var(--block-shadow);
  display: flex;
  padding: 13px 15px;
  border-radius: 13px;
  margin-bottom: 8px;
}
.stock-item img {
  width: 40px;
  margin-right: 15px;
}
.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,
.stock-item-value {
  font-weight: 500;
  color: var(--title-color);
  font-size: 15px;
}
.stock-item-name {
  color: var(--text-color);
  font-size: 14px;
}
.stock-item-change {
  font-size: 14px;
  font-weight: 500;
}

/* 51. Author List */

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

/* 52. Categories Slider */

.category-slide {
  background-color: var(--light-gray);
  color: var(--title-color);
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  padding: 10px 16px;
  display: flex;
  border-radius: 20px;
}
.categories-slider swiper-slide {
  width: auto;
}
.categories-slider {
  margin-top: 15px;
}

/* 53. Authors Slider */

.authors-slider {
  margin-top: 20px;
}
.authors-slider swiper-slide {
  width: auto;
}
.author-slide {
  display: flex;
  flex-direction: column;
  width: 85px;
}
.author-slide img {
  width: 60px;
  border-radius: 50%;
}
.author-slide .author-name {
  text-align: center;
  color: var(--title-color);
  font-weight: 500;
  margin-top: 7px;
}

/* 54. Contact */

.contact-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--light-gray);
  color: var(--title-color);
  font-weight: 500;
  padding: 13px 5px 10px;
  border-radius: 15px;
}
.contact-block i {
  margin: 0;
  font-size: 22px;
  padding-right: 0px;
  font-weight: 400;
}
.contact-block .contact-method {
  font-size: 14px;
  margin-top: 4px;
}
.contact-input {
  height: 150px;
}

/* 55. Settings */

.settings-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 25px 0 35px;
}
.settings-image {
  position: relative;
}
.edit-profile-image {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background-color: #0091de;
  border-radius: 50%;
  border: 1px solid #fff;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.edit-profile-image i {
  color: #fff;
  font-size: 15px;
}
.settings-name {
  font-weight: 500;
  font-size: 15px;
  margin-top: 20px;
  margin-bottom: 2px;
}
.settings-image img {
  width: 120px;
  border-radius: 50%;
}
.settings-email {
  color: #99a0a7;
  font-weight: 400;
}
.settings-list .colored-icon {
  border-radius: 10px;
  height: 32px;
  width: 32px;
}
.settings-list .colored-icon.yellow,
.dark .settings-list .colored-icon.yellow {
  color: #fff;
  background-color: #ffc62b;
}
.settings-list .colored-icon.blue,
.dark .settings-list .colored-icon.blue {
  color: #fff;
  background-color: #089bea;
}
.settings-list .colored-icon.green,
.dark .settings-list .colored-icon.green {
  color: #fff;
  background-color: #41d359;
}
.settings-list .colored-icon.pink,
.dark .settings-list .colored-icon.pink {
  color: #fff;
  background-color: #f20f6a;
}
.settings-list .colored-icon.orange,
.dark .settings-list .colored-icon.orange {
  color: #fff;
  background-color: #ff9925;
}
.settings-list .colored-icon.red,
.dark .settings-list .colored-icon.red {
  color: #fff;
  background-color: #ff4530;
}
.settings-list .colored-icon.purple,
.dark .settings-list .colored-icon.purple {
  color: #fff;
  background-color: #9638f3;
}
.settings-list .colored-icon.gray,
.dark .settings-list .colored-icon.gray {
  color: #fff;
  background-color: #878787;
}
.settings-list .item-after {
  padding-right: 20px;
  font-size: 15px;
}
.settings-list .item-title {
  color: var(--title-color);
  font-size: 15px;
  font-weight: 500;
}
.list .item-content.toggle-setting {
  padding-left: 0;
}
.toggle-setting .item-inner {
  padding-left: 15px;
}
.toggle-setting .item-after {
  padding-right: 0;
}
.settings-list .item-after:has(.toggle) {
  padding-right: 0;
}

/* 56. Categories Page */

.category-item {
  height: 100px;
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}
.category-item img {
  object-fit: cover;
  height: 100%;
  width: 100%;
  border-radius: 15px;
  overflow: hidden;
  filter: brightness(60%);
}
.category-name {
  position: absolute;
  top: 50%;
  width: 100%;
  text-align: center;
  color: #fff;
  font-weight: 600;
  font-size: 18px;
  line-height: 0;
  text-shadow: 0 0 20px #000;
}

/* 57. Profile */

.profile-header {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 20px 0 20px;
}
.profile-image {
  position: relative;
}
.profile-online {
  position: absolute;
  bottom: 6px;
  right: 15px;
  background-color: #0091de;
  border-radius: 50%;
  border: 2px solid #fff;
  width: 15px;
  height: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.profile-image img {
  width: 120px;
  border-radius: 50%;
}
.profile-name {
  color: var(--title-color);
  font-weight: 500;
  font-size: 20px;
  margin-top: 15px;
}
.profile-subtitle {
  color: #99a0a7;
  font-weight: 400;
  font-size: 15px;
  margin-bottom: 5px;
}
.profile-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 30px;
}
.profile-buttons .contact-button {
  background-color: var(--light-gray);
  color: var(--title-color);
  border-radius: 15px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 7px;
}
.profile-buttons .contact-button i {
  padding: 0;
  font-size: 20px;
}
.profile-buttons .author-follow {
  width: auto;
  margin: 0 7px;
  padding: 0 20px 0 15px;
}
.profile-stats {
  margin-bottom: 30px;
}
.grid.grid-gap.profile-stats {
  gap: 0;
}
.profile-stat {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e3e5;
  text-align: center;
}
.profile-stat:last-child {
  border-right: none;
}
.profile-stat-number {
  font-weight: 600;
  font-size: 20px;
}
.profile-stat-title {
  color: var(--text-color);
  font-size: 15px;
}

/* 58. Search */

.searchbar-search-page.searchbar-inline {
  margin-top: 10px;
  margin-bottom: 20px;
}
.search-grid {
  margin-bottom: 30px;
}
.search-grid a {
  font-size: 15px;
  border-top: 1px solid #e2e3e5;
  text-align: left;
  margin-top: 12px;
  padding-top: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}
.search-grid a:nth-child(1),
.search-grid a:nth-child(2) {
  border-top: none;
  margin-top: 5px;
  padding-top: 0;
}
.search-grid a:nth-child(odd) {
  margin-right: 10px;
}
.search-grid a:nth-child(even) {
  margin-left: 10px;
}
.search-grid a i {
  font-size: 20px;
  margin-right: 6px;
}

/* 59. Forgot Password */

.centered-text {
  text-align: center;
}
.forgot-password-text {
  margin: 10px 0 30px;
}

/* 60. Onboarding */

.page-onboarding {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: calc(var(--f7-page-toolbar-bottom-offset, 0px) + var(--f7-safe-area-bottom) + var(--f7-page-content-extra-padding-bottom, 0px) - 20px);
}
.navbar a.link.onboarding-skip {
  font-weight: 500;
  color: var(--title-color);
  padding-right: 8px;
}
.swiper-onboarding swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.swiper-onboarding swiper-slide img {
  width: 75%;
  margin-top: 20px;
}
.swiper-onboarding swiper-slide .onboarding-title {
  font-size: 40px;
  font-weight: 600;
  color: var(--title-color);
  padding: 0 30px;
  text-align: center;
  line-height: 1.2;
  margin: 20px 0 10px;
}
.swiper-onboarding swiper-slide .onboarding-subtitle {
  font-size: 15px;
  padding: 0 30px;
  text-align: center;
  color: var(--text-color);
  margin: 10px 0 30px;
}
.onboarding-next-button i {
  margin-left: 5px;
  font-weight: 600;
}
.router-transition-f7-dive-forward,
.router-transition-f7-dive-backward {
  background: #fff;
}
@media (max-height: 885px) {
  .swiper-onboarding swiper-slide img {
    width: 70%;
  }
  .swiper-onboarding swiper-slide .onboarding-title {
    font-size: 30px;
  }
}
@media (max-height: 770px) {
  .swiper-onboarding swiper-slide img {
    width: 55%;
  }
  .swiper-onboarding swiper-slide .onboarding-title {
    font-size: 25px;
  }
  .swiper-onboarding swiper-slide .onboarding-subtitle {
    font-size: 15px;
  }
}

/* 61. Notifications */

.notification-list .item-date-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
}
.notification-list .item-date {
  color: #99a0a7;
  font-size: 14px;
  font-weight: 400;
}
.notification-list .item-time {
  color: #99a0a7;
  font-size: 14px;
  font-weight: 400;
}
.notification-list .item-description {
  font-weight: 500;
  font-size: 14px;
  color: var(--title-color);
  white-space: normal;
}
.notification-list .item-description i {
  font-size: 20px;
  margin-right: 4px;
  line-height: 0.9;
}
.notification-list.detailed-list .item-media img {
  width: 50px;
}
.notification-list.list .item-inner {
  padding-top: 10px;
  padding-bottom: 10px;
}
.segmented.segmented-strong .button.active-state {
  background-color: transparent;
}

/* 62. Movie Slider */

.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);
}
.card-movie-rating i {
  font-size: 12px;
  margin-bottom: 3px;
}
.card-movie .card-image img {
  aspect-ratio: 9/13;
  object-fit: cover;
}

/* 63. 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;
}
.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);
}

/* 64. Panel */

.panel-links a {
  justify-content: flex-start;
}
.panel-links a i {
  margin-right: 15px;
  font-size: 23px;
}
.panel .profile-header {
  margin-bottom: 40px;
  margin-top: 40px;
}
.panel .profile-header .profile-image img {
  width: 90px;
}
.panel .profile-header .profile-image .profile-online {
  bottom: 7px;
  right: 7px;
  width: 12px;
  height: 12px;
}
.panel .profile-header .profile-name {
  font-size: 19px;
  margin-top: 5px;
}
.panel .profile-header .profile-subtitle {
  font-size: 14px;
}
.panel-logout {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
  font-weight: 500;
}
.panel-logout i {
  font-size: 25px;
  margin-left: 5px;
}

/* 65. Album  */

.card.card-album .card-image img {
  aspect-ratio: 1/1;
  object-fit: cover;
}
.card.card-album {
  border-radius: 8px;
}
.album-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.album-header .album-cover {
  width: 80%;
  border-radius: 10px;
}
.album-header .album-title {
  font-weight: 600;
  font-size: 26px;
  margin-top: 20px;
}
.album-header .album-artist {
  font-weight: 400;
  font-size: 16px;
  color: var(--text-color);
  margin-bottom: 20px;
}
.grid.grid-gap.album-stats {
  gap: 0;
}
.album-stats {
  margin-bottom: 40px;
}
.album-stat {
  display: flex;
  flex-direction: column;
  border-right: 1px solid #e2e3e5;
  text-align: center;
}
.album-stat:last-child {
  border-right: none;
}
.album-stat-number {
  font-weight: 600;
  font-size: 20px;
}
.album-stat-title {
  color: var(--text-color);
  font-size: 15px;
}
.album-tracklist .item-inner .item-title {
  font-weight: 500;
  color: var(--title-color);
}

/* 66. Dark Theme */

.dark .colored-icon.yellow {
  background-color: rgba(229, 179, 45, 0.2);
}
.dark .colored-icon.blue {
  background-color: rgba(0, 145, 222, 0.25);
}
.dark .colored-icon.green {
  background-color: rgba(25, 180, 142, 0.2);
}
.dark .colored-icon.pink {
  background-color: rgba(226, 32, 95, 0.2);
}
.dark .colored-icon.orange {
  background-color: rgba(255, 156, 60, 0.2);
}
.dark .colored-icon.red {
  background-color: rgba(216, 66, 46, 0.3);
}
.dark .colored-icon.purple {
  background-color: rgba(145, 70, 218, 0.3);
}
.dark .light-gray-title {
  color: #8191a6;
}
.dark .toolbar-bottom:before,
.ios .dark .toolbar-bottom-ios:before,
.md .dark .toolbar-bottom-md:before {
  background-color: rgba(255, 255, 255, 0.15);
}
.dark .info-block-icon {
  background-color: var(--background-color);
  color: #8191a6;
}
.dark .info-block p {
  color: #7f91a7;
}
.dark .button.color-dark {
  background-color: #0ee9b3;
  color: #181c22;
}
.dark .button.color-light-gray {
  background-color: #102733;
}
.dark .post-horizontal {
  box-shadow: none;
  background-color: var(--light-gray);
}
.dark .infinite-scroll-demo .post-horizontal .post-image {
  background-color: var(--text-color);
}
.dark .notification {
  background: var(--light-gray);
}
.dark .panel {
  background-color: var(--light-gray);
}
.dark .sheet-modal {
  background: var(--light-gray);
}
.dark .segmented.segmented-strong .button.tab-link-active {
  color: #181c22;
}
.dark .text-editor {
  border: 1px solid #363d43;
}
.dark .text-editor-toolbar {
  border-bottom: 1px solid #363d43;
}
.dark .badge.color-light-gray {
  color: var(--background-color);
}
.dark .stepper.color-light-gray .stepper-button-minus::after,
.dark .stepper.color-light-gray .stepper-button-plus::before,
.dark .stepper.color-light-gray .stepper-button-plus::after {
  background-color: var(--background-color);
}
.dark .card .card-category.bg-color-white {
  color: var(--background-color);
}
.dark .card {
  box-shadow: none;
}
.dark .card-image-footer {
  background-image: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0, rgb(24 24 24 / 80%) 100%);
}
.dark .card-author-footer {
  background-color: var(--light-gray);
}
.dark .card-big-footer {
  background-color: var(--light-gray);
}
.dark .card-movie-rating {
  background-color: var(--background-color);
  color: #fff;
}
.dark .badge.color-black {
  background-color: #ffffff;
  color: var(--background-color);
}
.dark .post-horizontal .post-category {
  color: #0ee9b3;
}
.dark .stock-item {
  background-color: var(--light-gray);
  box-shadow: none;
}
.dark .rating-bg {
  background-color: var(--light-gray);
}
.dark .rating-block-total {
  background-color: var(--light-gray);
}
.dark .ticket-fill {
  background: #0ee9b3;
}
.dark .ticket-fill:not(.ticket-image) i,
.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 .timeline-item-inner {
  background: transparent;
}
.dark .timeline-item-divider:after,
.dark .timeline-item-divider:before {
  background: #fff;
}
.dark .information-block:not(.success-message, .error-message) h2,
.dark .information-block:not(.success-message, .error-message) p {
  color: #1e2b47;
}
.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 {
  background-color: var(--light-gray) !important;
}
.dark .category-item img {
  filter: brightness(70%);
}
.dark .profile-stat {
  border-right: 1px solid #2d3d4a;
}
.dark .profile-stat:last-child {
  border-right: none;
}
.dark .album-stat {
  border-right: 1px solid #2d3d4a;
}
.dark .album-stat:last-child {
  border-right: none;
}
.dark .profile-online {
  border: 2px solid var(--background-color);
}
.dark .edit-profile-image {
  border: 1px solid var(--background-color);
}
.dark .search-grid a {
  border-top: 1px solid #2d3d4a;
}
.dark .search-grid a:nth-child(1),
.dark .search-grid a:nth-child(2) {
  border-top: none;
}
.router-transition-f7-dive-forward,
.router-transition-f7-dive-backward {
  background: var(--background-color);
}
.bg-color-primary {
  background-color: var(--f7-theme-color) !important;
}
.dark .panel .profile-header .profile-image .profile-online {
  border: 2px solid var(--light-gray);
}
.ios .dark .message-received .message-bubble {
  background-color: var(--light-gray);
}
.dark .ticket-fill.ticket-image {
  background: none;
}

/* 66. RTL Languages */

html[dir="rtl"] .album-grid img {
  margin-right: 0;
  margin-left: 10px;
}

html[dir="rtl"] .detailed-list .item-link .item-inner {
  padding-right: 0;
  padding-left: 15px;
  margin-left: 0;
}
html[dir="rtl"] .post-horizontal .post-image {
  margin-left: 0;
  margin-right: 10px;
}
html[dir="rtl"] .button-icon-left i {
  margin-right: 0;
  margin-left: 5px;
}
html[dir="rtl"] .colored-icon {
  margin-right: 0;
  margin-left: 10px;
}
html[dir="rtl"] .navbar a .arrow-back {
  transform: rotate(180deg);
  padding-right: 0;
  padding-left: 3px;
}
html[dir="rtl"] input[type="text"],
html[dir="rtl"] input[type="email"],
html[dir="rtl"] input[type="password"] {
  padding: 0 15px 0 0px;
}
html[dir="rtl"] textarea {
  padding: 15px 15px 0 15px;
}
html[dir="rtl"] .messagebar-area textarea {
  padding: 6px 16px;
}
html[dir="rtl"] .button img {
  margin-right: 0;
  margin-left: 7px;
}
html[dir="rtl"] .single-post-author > img {
  margin-right: 0;
  margin-left: 12px;
}
html[dir="rtl"] .single-post-author .author-follow {
  margin-right: auto;
  margin-left: inherit;
}
html[dir="rtl"] .comment > img {
  margin-right: 0;
  margin-left: 15px;
}
html[dir="rtl"] .comment-date {
  margin-right: 6px;
  margin-left: 0;
}
html[dir="rtl"] .comment-reply {
  margin-right: 60px;
  margin-left: 0;
}
html[dir="rtl"] .movie-infos {
  margin-right: 15px;
  margin-left: 0;
}
html[dir="rtl"] .link-chevron::before {
  display: none;
}
html[dir="rtl"] .link-banner img,
html[dir="rtl"] .link-banner i {
  margin-right: 0;
  margin-left: 10px;
}
html[dir="rtl"] .simple-list .item-inner {
  padding-left: 0;
}
html[dir="rtl"] .rating-block-star i {
  margin-right: 3px;
  margin-left: 0;
}
html[dir="rtl"] .album-stat:first-child,
html[dir="rtl"] .profile-stat:first-child {
  border-right: none;
}
html[dir="rtl"] .album-stat:last-child,
html[dir="rtl"] .profile-stat:last-child {
  border-right: 1px solid #e2e3e5;
}
html[dir="rtl"] .settings-list .item-after {
  padding-left: 20px;
  padding-right: 0;
}
html[dir="rtl"] .settings-list .item-after:has(.toggle) {
  padding-left: 0;
}
html[dir="rtl"] .search-grid a {
  text-align: right;
}
html[dir="rtl"] .search-grid a i {
  margin-right: 0;
  margin-left: 6px;
}
html[dir="rtl"] .accordion-opposite .accordion-item > .item-content:before {
  right: 8px;
}
html[dir="rtl"] .badge-with-image img {
  margin-right: 0;
  margin-left: 6px;
}
html[dir="rtl"] .badge-with-image {
  padding-right: 0;
  padding-left: 8px;
}
html[dir="rtl"] .checkbox.checkbox-inline {
  margin-right: 0;
  margin-left: 5px;
}
html[dir="rtl"] .card-author-footer .card-footer-middle {
  margin-right: 12px;
}
html[dir="rtl"] .card-author-footer .card-footer-right {
  margin-right: auto;
  margin-left: inherit;
}
html[dir="rtl"] .badge-with-icon {
  padding: 0 6px 0 10px;
}
html[dir="rtl"] .badge-with-icon i {
  margin-right: 0;
  margin-left: 3px;
}
html[dir="rtl"] .card .card-author img {
  margin-right: 0;
  margin-left: 8px;
}
html[dir="rtl"] .detailed-list .item-content {
  padding-left: 0;
}
html[dir="rtl"] .light-gray-title .badge {
  margin-left: 0;
  margin-right: 3px;
}
html[dir="rtl"] .post-horizontal {
  padding: 15px 17px 15px 15px;
}
html[dir="rtl"] .search-grid a:nth-child(odd) {
  margin-left: 10px;
  margin-right: 0;
}
html[dir="rtl"] .search-grid a:nth-child(even) {
  margin-left: 0;
}
html[dir="rtl"] .onboarding-next-button i {
  margin-left: 0;
  margin-right: 5px;
  transform: rotate(180deg);
}
html[dir="rtl"] .segmented.segmented-strong .button {
  color: #fff;
}
html[dir="rtl"] .segmented.segmented-strong .button.tab-link-active {
  color: var(--title-color);
}
html[dir="rtl"] .dark .segmented.segmented-strong .button {
  color: #1e2b47;
}
html[dir="rtl"] .dark .segmented.segmented-strong .button.tab-link-active {
  color: #fff;
}
html[dir="rtl"] .stepper .stepper-input-wrap input {
  padding-right: 0;
}
html[dir="rtl"] .card-big-footer .button i {
  transform: rotate(180deg);
  margin-left: 0;
  margin-right: 5px;
}
html[dir="rtl"] .stock-item img {
  margin-left: 15px;
  margin-right: 0;
}
html[dir="rtl"] .rating-block-total-text {
  margin-left: 0;
  margin-right: 5px;
}
html[dir="rtl"] .panel-links a i {
  margin-left: 15px;
  margin-right: 0;
}


/* 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);
}

/* Rubik: @font-face desde Google Fonts (includes/head.php), no hay .woff2 en /fonts/ */

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;
  }

  /* Noticias: anuncio entre posts dentro de .post-list en grid — ocupar las 2 columnas (ancho para AdSense) */
  .noticias-page .page-content .col-lg-9 .post-list .noticias-post-list-ad-span {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }
}

/* 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;
}

/* Cancelado / pospuesto / TBD: no usar el mismo amarillo que la cuenta atrás */
.proximas-carreras-status-sentinel,
.carreras-stock-status-sentinel {
  color: #e85d4c;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.02em;
}

.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);
}



/**
 * Estilos personalizados para Lapeando Redesign
 * Navbar limpio con colores de UI Kit
 * Mobile-first approach
 */
/*
.post-horizontal .post-category:hover,
.dark .post-horizontal .post-category:hover,
body.dark .post-horizontal .post-category:hover {
  color: var(--accent-color, #0ee9b3) !important;
  opacity: 1 !important;
}

.item-link:hover,
.dark .item-link:hover,
body.dark .item-link:hover {
  color: var(--accent-color, #0ee9b3) !important;
  opacity: 1 !important;
}

/* Asegurar que todos los textos en hover usen el color verde claro */
/* EXCLUIR .single-post-content para no afectar el contenido de artículos */
a:hover:not(.single-post-content *),
.dark a:hover:not(.single-post-content *),
body.dark a:hover:not(.single-post-content *),
span:hover:not(.carreras-stock-countdown):not(.carreras-stock-status-value):not(.proximas-carreras-countdown):not(.proximas-carreras-status-value):not(.single-post-content *),
.dark span:hover:not(.carreras-stock-countdown):not(.carreras-stock-status-value):not(.proximas-carreras-countdown):not(.proximas-carreras-status-value):not(.single-post-content *),
body.dark span:hover:not(.carreras-stock-countdown):not(.carreras-stock-status-value):not(.proximas-carreras-countdown):not(.proximas-carreras-status-value):not(.single-post-content *),
p:hover:not(.single-post-content *),
.dark p:hover:not(.single-post-content *),
body.dark p:hover:not(.single-post-content *),
div:hover:not(.single-post-content *),
.dark div:hover:not(.single-post-content *),
body.dark div:hover:not(.single-post-content *),
li:hover:not(.single-post-content *),
.dark li:hover:not(.single-post-content *),
body.dark li:hover:not(.single-post-content *) {
  color: var(--accent-color, #0ee9b3) !important;
  opacity: 1 !important;
}

/* Excepciones: elementos que NO deben cambiar de color en hover */
a:hover .post-title,
a:hover .card-title,
a:hover h1,
a:hover h2,
a:hover h3,
a:hover h4,
a:hover h5,
a:hover h6,
a:hover p,
a:hover span:not(.link),
.nav-link:hover,
.dropdown-item:hover,
.footer-nav-list a:hover,
.lapeando-footer-section a:hover,
.button:hover,
.social-button:hover,
.carreras-stock-countdown:hover,
.carreras-stock-status-value:hover,
.proximas-carreras-countdown:hover,
.proximas-carreras-status-value:hover,
.dark a:hover .post-title,
body.dark a:hover .post-title,
.dark a:hover .card-title,
body.dark a:hover .card-title {
  color: inherit !important;
}

/* Mantener opacidad 1 para todos los elementos en hover */
.dark .nav-link:hover,
body.dark .nav-link:hover,
.dark .dropdown-item:hover,
body.dark .dropdown-item:hover,
.dark .post-horizontal:hover *,
body.dark .post-horizontal:hover *,
.dark .card:hover *,
body.dark .card:hover *,
.dark .item-link:hover *,
body.dark .item-link:hover * {
  opacity: 1 !important;
}
*/

/* ============================================
   OVERRIDE: Reglas de hover del UI kit - Cancelar cambios de opacity
   ============================================ */
/* REGLA GLOBAL: Mantener opacidad completa en hover */
/* Excluir contenido de artículos para preservar estilos inline de tablas embed */
*:hover:not(.single-post-content *):not(.single-post-content) {
  opacity: 1 !important;
}

/* Excepciones: elementos que SÍ pueden cambiar opacidad (imágenes, fondos, etc.) */
img:hover,
picture:hover,
svg:hover,
video:hover,
iframe:hover,
canvas:hover,
input[type="image"]:hover {
  opacity: inherit !important;
}

/* ============================================
   BODY - Usar el mismo fondo que el UI kit
   ============================================ */
body {
  background-color: var(--body-bg, #f5f5f5);
  color: var(--text-color, #828d9c);
  transition: background-color 0.3s, color 0.3s;
}

/* Modo oscuro - usar el mismo selector que la UI kit */
body.dark,
.dark body {
  background-color: var(--body-bg, #001119);
}

/* ============================================
   NAVBAR PRINCIPAL
   ============================================ */
.navbar {
  background-color: var(--background-color, #fff);
  border-bottom: 1px solid var(--light-gray, #ecf1f5);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s, border-color 0.3s;
}

.dark .navbar {
  background-color: var(--background-color, #001119);
  border-bottom-color: var(--light-gray, #0e232d);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--title-color, #1e2b47);
  text-decoration: none;
}

.dark .logo {
  color: var(--title-color, #fff);
}

.logo img {
  height: 2.5rem;
  width: auto;
  object-fit: contain;
}

.logo-light {
  display: block;
}

.logo-dark {
  display: none;
}

.dark .logo-light {
  display: none;
}

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

.nav-menu {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.5rem 1rem;
  color: var(--title-color, #1e2b47) !important;
  text-decoration: none;
  border-radius: 4px;
  transition: background-color 0.2s, color 0.2s;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.nav-link:hover {
  background-color: var(--light-gray, #ecf1f5);
  color: var(--title-color, #1e2b47) !important;
}

.dark .nav-link {
  color: var(--title-color, #fff) !important;
}

.dark .nav-link:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--title-color, #fff) !important;
}

.dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: var(--background-color, #fff);
  border: 1px solid var(--light-gray, #ecf1f5);
  border-radius: 4px;
  min-width: 200px;
  display: none;
  margin-top: 0.5rem;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  z-index: 1000;
}

.dark .dropdown {
  background-color: var(--background-color, #001119);
  border-color: var(--light-gray, #0e232d);
}

.nav-item:hover .dropdown {
  display: block;
}

.dropdown-item {
  display: block;
  padding: 0.75rem 1rem;
  color: var(--title-color, #1e2b47) !important;
  text-decoration: none;
  transition: background-color 0.2s, color 0.2s;
  font-size: 0.875rem;
}

.dropdown-item:hover {
  background-color: var(--light-gray, #ecf1f5);
  color: var(--title-color, #1e2b47) !important;
}

.dark .dropdown-item {
  color: var(--title-color, #fff) !important;
}

.dark .dropdown-item:hover {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--title-color, #fff) !important;
}

.nav-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

/* Búsqueda usando UI Kit */
.nav-actions .nav-pro-search {
  display: flex;
  align-items: center;
}

.nav-actions .nav-pro-search-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-actions .nav-pro-search-input {
  width: 200px;
  transition: width 0.3s;
}

.nav-actions .nav-pro-search-input:focus {
  width: 250px;
}

.search-mobile {
  display: none;
  width: 100%;
  margin-bottom: 1rem;
}

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

.search-mobile .nav-pro-search-input {
  width: 100% !important;
}

.theme-toggle {
  background: none;
  border: 2px solid var(--light-gray, #ecf1f5);
  color: var(--title-color, #1e2b47);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.theme-toggle:hover {
  border-color: var(--f7-theme-color, #007aff);
}

.dark .theme-toggle {
  border-color: var(--light-gray, #0e232d);
  color: var(--title-color, #fff);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--title-color, #1e2b47);
  border-radius: 2px;
  transition: all 0.3s;
}

.dark .menu-toggle span {
  background-color: var(--title-color, #fff);
}

@media (max-width: 768px) {
  .nav-menu {
    position: fixed;
    top: 70px;
    left: -100%;
    width: 250px;
    height: calc(100vh - 70px);
    background-color: var(--background-color, #fff);
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem;
    transition: left 0.3s;
    border-right: 1px solid var(--light-gray, #ecf1f5);
    overflow-y: auto;
  }

  .dark .nav-menu {
    background-color: var(--background-color, #001119);
    border-right-color: var(--light-gray, #0e232d);
  }

  .nav-menu.active {
    left: 0;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    width: 100%;
    justify-content: space-between;
  }

  .dropdown {
    position: static;
    display: none;
    margin: 0;
    border: none;
    box-shadow: none;
    padding-left: 1rem;
    background: transparent;
  }

  .nav-item.active .dropdown {
    display: block;
  }

  .nav-actions .nav-pro-search {
    display: none;
  }

  .search-mobile {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

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

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

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

/* Contenedor de contenido principal - usando Bootstrap container */
.lapeando-page-content {
  padding: 2rem 0;
}

/* ============================================
   AJUSTES RESPONSIVE GENERALES - Móvil
   ============================================ */
/* En móvil, permitir que el contenido ocupe todo el ancho disponible */
/* Aplica a todas las páginas que usan .lapeando-page-content con row/col */
@media (max-width: 767.98px) {
  .lapeando-page-content > .container {
    max-width: none;
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  .lapeando-page-content > .container > .row {
    margin-left: -12px;
    margin-right: -12px;
    width: calc(100% + 24px);
  }

  .lapeando-page-content > .container > .row > [class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
    width: 100%;
    max-width: 100%;
    flex: 0 0 auto;
  }

  /* Tablas responsive en móvil */
  .standings-table-wrapper {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }

  .standings-table {
    min-width: 320px;
    width: 100%;
  }
}

/* Tablas Chase: mismas anchos de columna para alinear arriba y abajo del divider */
.standings-table.standings-table-fixed-cols {
  table-layout: fixed;
}
.standings-table-fixed-cols .standings-col-pos { width: 10%; }
.standings-table-fixed-cols .standings-col-name { width: 58%; }
.standings-table-fixed-cols .standings-col-pts { width: 18%; }
.standings-table-fixed-cols .standings-col-change { width: 14%; }

/* Línea divisoria Chase (NASCAR): bloque entre dos tablas, ocupa todo el ancho */
.standings-chase-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 8px 0;
  box-sizing: border-box;
}
.standings-chase-divider .standings-chase-line {
  flex: 1 1 0;
  height: 0;
  border-top: 4px solid #e6b800;
  min-width: 20px;
}
.standings-chase-divider .standings-chase-text {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: #b38600;
  text-transform: uppercase;
  flex-shrink: 0;
}
.dark .standings-chase-divider .standings-chase-line,
body.dark .standings-chase-divider .standings-chase-line {
  border-top-color: #e6b800;
}
.dark .standings-chase-divider .standings-chase-text,
body.dark .standings-chase-divider .standings-chase-text {
  color: #f0c814;
}

/* ============================================
   FOOTER - Optimizado para SEO (2026)
   ============================================ */
footer {
  background-color: var(--background-color, #fff);
  border-top: 1px solid var(--light-gray, #ecf1f5);
  padding: 3rem 0 1.5rem;
  margin-top: 4rem;
  color: var(--text-color, #828d9c);
}

.dark footer {
  background-color: var(--background-color, #1e2b47);
  border-top-color: var(--light-gray, #2a3c64);
}

/* Footer siempre en modo oscuro */
footer.footer-dark,
.footer-dark {
  background-color: #001119 !important;
  border-top-color: #0e232d !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-dark .footer-title,
.footer-dark .footer-nav-title {
  color: #fff !important;
}

.footer-dark .footer-description {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-dark .lapeando-footer-section a,
.footer-dark .footer-nav-list a {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-dark .lapeando-footer-section a:hover,
.footer-dark .footer-nav-list a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
  opacity: 1;
}

.footer-dark .footer-bottom {
  border-top-color: #0e232d !important;
}

.footer-dark .footer-copyright p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-dark .footer-language-label {
  color: rgba(255, 255, 255, 0.7) !important;
}

.footer-dark .footer-language-selector .form-select {
  background-color: #001119 !important;
  border-color: #0e232d !important;
  color: #fff !important;
}

/* Footer sections - específico para evitar conflictos */
.lapeando-footer-section {
  margin-bottom: 2rem;
}

.footer-brand {
  margin-bottom: 1rem;
}

.footer-logo-link {
  display: inline-block;
  margin-bottom: 1rem;
  text-decoration: none;
}

.footer-logo-img {
  max-height: 50px;
  width: auto;
  height: auto;
  display: block;
}

.footer-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--title-color, #1e2b47);
  margin-bottom: 0.75rem;
}

.dark .footer-title {
  color: var(--title-color, #fff);
}

.footer-description {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-color, #828d9c);
  margin: 0;
}

.footer-nav-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--title-color, #1e2b47);
  margin-bottom: 1rem;
}

.dark .footer-nav-title {
  color: var(--title-color, #fff);
}

.footer-nav {
  margin-bottom: 0;
}

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

.footer-nav-list li {
  margin-bottom: 0.5rem;
}

/* Enlaces en footer - específico para no interferir con UI kit */
.lapeando-footer-section a,
.footer-nav-list a {
  color: var(--text-color, #828d9c);
  text-decoration: none;
  transition: color 0.2s ease;
  font-size: 0.9rem;
  display: inline-block;
}

.lapeando-footer-section a:hover,
.footer-nav-list a:hover {
  color: inherit !important;
  text-decoration: none;
  opacity: 1 !important;
}

/* Asegurar que en modo oscuro los textos en hover sean visibles */
.dark .lapeando-footer-section a:hover,
.dark .footer-nav-list a:hover,
footer.footer-dark .lapeando-footer-section a:hover,
footer.footer-dark .footer-nav-list a:hover {
  color: rgba(255, 255, 255, 0.9) !important;
  opacity: 1 !important;
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--light-gray, #ecf1f5);
}

.dark .footer-bottom {
  border-top-color: var(--light-gray, #2a3c64);
}

.footer-copyright {
  text-align: center;
}

.footer-copyright p {
  font-size: 0.875rem;
  color: var(--text-color, #828d9c);
  margin: 0;
}

/* Botones de redes sociales en footer */
.footer-social-buttons {
  display: flex;
  gap: 12px;
  margin-top: 1.5rem;
}

.footer-social-buttons .social-button {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: all 0.3s ease;
  color: #fff;
  font-size: 18px;
}

.footer-social-buttons .social-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.footer-social-buttons .social-button svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Colores específicos para botones sociales en footer */
.footer-social-buttons .social-facebook {
  background-color: #1877f2;
}

.footer-social-buttons .social-x {
  background-color: #000000;
}

.footer-social-buttons .social-instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.footer-social-buttons .social-tiktok {
  background-color: #000000;
}

/* Responsive */
@media (max-width: 767.98px) {
  footer {
    padding: 2rem 0 1rem;
    margin-top: 2rem;
  }

  .lapeando-footer-section {
    margin-bottom: 1.5rem;
    text-align: center;
  }

  .footer-brand {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .footer-logo-link {
    display: flex;
    justify-content: center;
  }

  .footer-nav {
    text-align: center;
  }

  .footer-nav-list {
    display: inline-block;
    text-align: left;
  }

  .footer-language-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 200px;
    margin: 1rem auto 0;
  }

  .footer-language-selector .form-select {
    text-align: center;
  }

  .footer-social-buttons {
    justify-content: center;
  }

  .footer-title {
    font-size: 1.1rem;
  }

  .footer-nav-title {
    font-size: 0.95rem;
  }
}

@media (max-width: 575.98px) {
  .lapeando-page-content {
    padding: 1rem 0;
  }

  .lapeando-footer-section {
    margin-bottom: 1.5rem;
  }

  footer {
    padding: 1.5rem 0 1rem;
  }
}

/* Mobile-first: padding reducido en móvil */
@media (max-width: 575.98px) {
  .lapeando-page-content {
    padding: 1rem 0;
  }

  .lapeando-footer-section {
    margin-bottom: 1.5rem;
  }
}

/* ============================================
   FOOTER LANGUAGE SELECTOR
   ============================================ */
.footer-language-selector {
  margin-top: 1.5rem;
}

.footer-language-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-color, #828d9c);
}

.dark .footer-language-label {
  color: var(--text-color, rgba(255, 255, 255, 0.7));
}

.footer-language-selector .form-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--light-gray, #ecf1f5);
  background-color: var(--background-color, #fff);
  color: var(--title-color, #1e2b47);
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dark .footer-language-selector .form-select {
  background-color: var(--background-color, #001119);
  border-color: var(--light-gray, #0e232d);
  color: var(--title-color, #fff);
}

.footer-language-selector .form-select:hover {
  border-color: var(--primary-color, #007aff);
}

.footer-language-selector .form-select:focus {
  outline: none;
  border-color: var(--primary-color, #007aff);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

@media (max-width: 767.98px) {
  .footer-language-selector {
    margin-top: 1rem;
  }

  .footer-language-label {
    font-size: 0.85rem;
  }

  .footer-language-selector .form-select {
    padding: 0.45rem 0.65rem;
    font-size: 0.85rem;
  }
}

/* Tablet y desktop: más espacio */
@media (min-width: 768px) {
  .lapeando-page-content {
    padding: 1rem 0;
  }
}

/* Reducir padding-top cuando viene después de un hero full-width */
@media (min-width: 768px) {
  .article-hero-full-width + .lapeando-page-content {
    padding-top: 1.5rem;
  }
}

/* ============================================
   HERO 10 - Ajustes para móvil
   ============================================ */
@media (max-width: 991.98px) {
  /* Aumentar tamaño de imágenes en tablet */
  .hero-index-v2-item-image {
    height: 140px !important;
  }

  /* Asegurar que los badges sean visibles en móvil */
  .hero-index-v2-item-meta .hero-index-v2-item-tag,
  .hero-index-v2-meta-top .hero-index-v2-main-tag {
    position: static !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

@media (max-width: 767.98px) {
  /* Aumentar tamaño de imágenes en móvil */
  .hero-index-v2-item-image {
    height: 180px !important;
  }

  /* Asegurar que los badges sean visibles en móvil */
  .hero-index-v2-item-meta .hero-index-v2-item-tag,
  .hero-index-v2-meta-top .hero-index-v2-main-tag {
    position: static !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* ============================================
   HERO 10 - Ajustes para cards uniformes
   ============================================ */
@media (min-width: 992px) {
  /* Asegurar que el sidebar tenga la misma altura que la card grande */
  .hero-index-v2 .col-lg-5 {
    display: flex;
    flex-direction: column;
  }

  .hero-index-v2-sidebar {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr); /* 2 filas de igual altura */
    gap: 12px;
    height: 100%; /* Misma altura que la card grande */
    flex: 1;
  }

  /* Hacer que cada card pequeña ocupe toda la altura de su celda del grid */
  .hero-index-v2-item {
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  /* Aumentar el tamaño de la imagen sin afectar la altura total de la card */
  .hero-index-v2-item-image {
    height: 160px; /* Aumentada de 120px a 160px */
    flex-shrink: 0;
    position: relative;
  }

  /* Título sin truncar - mostrar completo */
  .hero-index-v2-item-title {
    display: block;
    line-height: 1.4;
    margin: 0;
    overflow: visible;
  }

  /* Reducir padding del contenido para aprovechar mejor el espacio */
  .hero-index-v2-item-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;
    padding: 8px 10px 6px 10px; /* Padding reducido en la parte inferior */
  }

  /* Ajustar el meta para que el badge y la fecha estén alineados */
  .hero-index-v2-item-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    margin-top: 0;
    line-height: 1.2;
    flex-wrap: wrap;
  }

  /* Badge tag en el meta (sin posición absoluta) */
  .hero-index-v2-item-meta .hero-index-v2-item-tag {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
  }

  .hero-index-v2-meta-top .hero-index-v2-main-tag {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
  }

  /* Asegurar que el título esté cerca del meta sin espacio extra */
  .hero-index-v2-item-title {
    margin-top: 0;
    margin-bottom: 0;
    line-height: 1.3;
  }

  /* Ajustar el meta-top de la card grande también */
  .hero-index-v2-meta-top {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
  }

  .hero-index-v2-meta-top .card-category {
    display: inline-block;
    margin: 0;
  }
}

/* ============================================
   ESTILOS PARA ANUNCIOS PUBLICITARIOS
   ============================================ */
.anuncio-contenedor {
  margin: 0 auto;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.anuncio-banner {
  width: 100%;
  padding: 0;
  display: flex;
  justify-content: center;
  background-color: var(--light-gray, #f5f5f5);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  overflow: hidden;
}

.anuncio-banner ins {
  width: 100%;
  min-height: 250px;
  display: block;
}

.anuncio-etiqueta {
  font-size: 11px;
  color: var(--text-color, #777);
  margin-top: 4px;
  text-align: center;
  font-family: Arial, sans-serif;
}

.anuncio-card .anuncio-banner {
  border-radius: 4px;
}

.anuncio-card .anuncio-banner ins {
  min-height: 180px;
}

.anuncio-sidebar .anuncio-banner ins {
  min-height: 280px;
}

/* 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;
}

/* Sidebar sticky en desktop - igual que página vieja */
@media (min-width: 992px) {
  /* Asegurar que los contenedores padres no tengan overflow que rompa el sticky */
  .lapeando-page-content .page-content {
    overflow: visible !important;
  }

  .lapeando-page-content .container.position-relative {
    overflow: visible !important;
  }

  .lapeando-page-content .container.position-relative .row {
    overflow: visible !important;
  }

  .lapeando-page-content .container.position-relative .row .col-lg-3 {
    overflow: visible !important;
    z-index: 999;
  }

  .lapeando-page-content .container.position-relative .row .col-lg-3 .article-sidebar {
    position: sticky;
    top: 0;
    align-self: flex-start;
    z-index: 999;
  }

  /* Sidebar content sticky - respetar navbar */
  .sidebar-content.sticky-top {
    position: sticky;
    top: 80px;
    align-self: flex-start;
    z-index: 999;
  }
}

/* En móvil: desactivar sticky y permitir scroll normal */
@media (max-width: 991.98px) {
  .article-sidebar {
    position: static !important;
  }
}

/* Posts del sidebar: cada uno ocupa todo el ancho */
.sidebar-content .post-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* En móvil, hacer que post-list tenga el mismo ancho que carreras-stock-list (sin padding del container) */
@media (max-width: 767.98px) {
  /* Remover padding de las columnas en móvil para que post-list pueda expandirse */
  .page-content .container .row .col-12,
  .page-content .container .row .col-lg-9 {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  /* Salir completamente del padding del container para igualar el ancho de carreras-stock-list */
  /* carreras-stock-list está en page-content (padding: 15px), así que necesitamos salir del container también */
  .page-content .container .row .col-12 .post-list,
  .page-content .container .row .col-lg-9 .post-list {
    margin-left: -15px;
    margin-right: -15px;
    padding-left: 15px;
    padding-right: 15px;
    width: calc(100% + 30px);
    max-width: none;
    box-sizing: border-box;
  }

  /* Asegurar que los post-horizontal tengan el mismo ancho que carreras-stock-item */
  .page-content .container .post-list .post-horizontal {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }

  /* Asegurar que el contenedor no tenga overflow que corte el contenido */
  .page-content .container {
    overflow: visible;
    padding-left: 0;
    padding-right: 0;
  }

  /* Asegurar que row no tenga márgenes que interfieran */
  .page-content .container .row {
    margin-left: 0;
    margin-right: 0;
  }
}

.sidebar-content .post-horizontal {
  width: 100%;
  display: block;
}

.sidebar-content .post-horizontal .infos {
  width: 100%;
  flex: 1;
}

/* No truncar títulos y subtítulos en el sidebar */
.sidebar-content .post-title {
  -webkit-line-clamp: unset !important;
  display: block !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}

.sidebar-content .post-subtitle {
  -webkit-line-clamp: unset !important;
  display: block !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}

/* No truncar títulos y subtítulos en la columna principal (9) */
.col-lg-9 .post-title {
  -webkit-line-clamp: unset !important;
  display: block !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}

.col-lg-9 .post-subtitle {
  -webkit-line-clamp: unset !important;
  display: block !important;
  overflow: visible !important;
  text-overflow: unset !important;
  white-space: normal !important;
}

/* Modo oscuro */
.dark .anuncio-banner,
body.dark .anuncio-banner {
  background-color: #222;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dark .anuncio-etiqueta,
body.dark .anuncio-etiqueta {
  color: #aaa;
}

/* Responsive */
@media (max-width: 768px) {
  .anuncio-contenedor {
    margin: 15px auto;
  }
  .anuncio-banner {
    border-radius: 6px;
  }
  .anuncio-banner ins {
    min-height: 200px;
  }

  /* Permitir que los títulos de posts horizontales se muestren completos en móvil */
  .post-horizontal .post-title {
    -webkit-line-clamp: unset !important;
    display: block !important;
    overflow: visible !important;
    text-overflow: unset !important;
    white-space: normal !important;
  }
}

/* Categoría para ticket-external-title */
.ticket-external-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  padding: 0 5px;
}

.ticket-external-category {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-color, #828d9c);
  text-transform: uppercase;
  margin-bottom: 0;
  text-decoration: none;
  transition: color 0.3s;
  display: inline-block;
}

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

.dark .ticket-external-category:hover,
body.dark .ticket-external-category:hover {
  color: var(--title-color, #fff);
}

.ticket-external-date {
  font-size: 11px;
  color: var(--text-color, #828d9c);
  opacity: 0.8;
  line-height: 1;
}

.dark .ticket-external-category,
body.dark .ticket-external-category {
  color: #0ee9b3;
}

/* ============================================
   PICTURE TAG - Soporte para WebP
   ============================================ */
/* Asegurar que picture funcione correctamente en contenedores con padding-bottom */
.hero-index-v2-main-image picture {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  margin: 0;
  padding: 0;
}

.hero-index-v2-main-image picture img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

.hero-index-v2-item-image picture {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  display: block;
  margin: 0;
  padding: 0;
}

.hero-index-v2-item-image picture img {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

/* Asegurar que picture también funcione en otros contenedores */
.post-image picture,
.card-image picture,
.ticket-wrapper picture {
  display: block;
  width: 100%;
  height: 100%;
}

.post-image picture img,
.card-image picture img,
.ticket-wrapper picture img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   PRÓXIMAS CARRERAS - Responsive
   ============================================ */
/* Asegurar que el contenedor vertical se muestre como flex en móvil */
.carreras-stock-list.d-flex {
  flex-direction: column;
}

/* Ocultar header duplicado en móvil si es necesario */
.proximas-carreras-section .carreras-stock-list + .proximas-carreras-header {
  display: none;
}

/* Asegurar que el header se muestre solo una vez */
.proximas-carreras-section .proximas-carreras-header {
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.proximas-carreras-header-right {
  display: flex;
  align-items: center;
  gap: 15px;
  flex-wrap: wrap;
}

.proximas-carreras-timezone {
  font-size: 14px;
  opacity: 0.7;
  color: var(--text-color);
}

.proximas-carreras-link-calendario {
  font-size: 12px;
  color: var(--f7-theme-color);
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s;
  opacity: 0.8;
}

.proximas-carreras-link-calendario:hover {
  opacity: 0.8;
  text-decoration: underline;
}

/* Wrapper para el link en desktop (en el header) */
.proximas-carreras-link-wrapper-desktop {
  display: block;
}

/* Wrapper para el link en móvil (al final de la lista) */
.proximas-carreras-link-wrapper-mobile {
  display: none;
  text-align: center;
  margin-top: 15px;
  padding: 10px 0;
}

/* Centrar contenido solo cuando hay menos de 6 carreras */
.proximas-carreras-container.proximas-carreras-desktop.proximas-carreras-centrado {
  justify-content: center;
  flex-wrap: wrap;
}

/* Reducir espacios entre secciones */
.proximas-carreras-section {
  margin-bottom: 0 !important;
}

.proximas-carreras-section .container {
  margin-bottom: 0;
}

/* En móvil, el header debe estar antes del componente vertical */
@media (max-width: 767.98px) {
  .proximas-carreras-section .proximas-carreras-header {
    margin-bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .proximas-carreras-header-right {
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Ocultar "Ver más" en el header en móvil */
  .proximas-carreras-link-wrapper-desktop {
    display: none;
  }

  /* Mostrar "Ver más" al final de la lista en móvil */
  .proximas-carreras-link-wrapper-mobile {
    display: block;
  }

  .carreras-stock-list {
    margin-top: 0;
    margin-bottom: 0;
  }
}

/* En desktop, ocultar el link móvil y mostrar el del header */
@media (min-width: 768px) {
  .proximas-carreras-link-wrapper-mobile {
    display: none;
  }

  .proximas-carreras-link-wrapper-desktop {
    display: block;
  }
}

/* Reducir espacios en page-content */
.page-content {
  margin-top: 0 !important;
  padding-top: 0;
}

/* Sección del banner de resultados en index: poco espacio arriba y abajo */
.reb-home-section.page-content {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.reb-home-section .container {
  margin-top: 4px !important;
  margin-bottom: 6px !important;
}

/* ============================================
   PAGE TITLE SECTION
   ============================================ */
/* ============================================
   BREADCRUMBS
   ============================================ */
.breadcrumbs-section {
  padding: 12px 0 0 0;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  flex-wrap: wrap;
}

.breadcrumbs-item {
  color: var(--text-color, #828d9c);
  transition: color 0.3s;
}

.breadcrumbs-item a {
  color: var(--text-color, #828d9c);
  text-decoration: none;
  transition: color 0.3s;
}

.breadcrumbs-item a:hover {
  color: var(--title-color, #1e2b47);
  text-decoration: underline;
}

.breadcrumbs-item-active {
  color: var(--title-color, #1e2b47);
  font-weight: 500;
}

.dark .breadcrumbs-item a:hover,
body.dark .breadcrumbs-item a:hover {
  color: var(--title-color, #fff);
}

.dark .breadcrumbs-item-active,
body.dark .breadcrumbs-item-active {
  color: var(--title-color, #fff);
}

.breadcrumbs-separator {
  color: var(--text-color, #828d9c);
  opacity: 0.5;
  font-size: 12px;
}

.breadcrumbs-separator::after {
  content: '/';
}

/* ============================================
   PAGE TITLE SECTION
   ============================================ */
.page-title-section {
  padding: 0 !important;
  margin-bottom: 20px;
}

.page-title-section .container {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 4px !important;
  padding: 0 15px !important;
}

.page-title-section .page-title {
  color: var(--title-color, #1e2b47);
  font-size: 28px;
}

/* ============================================
   CALENDAR TITLE - Mostrar completo sin salirse de la pantalla
   ============================================ */
.calendar-title {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
  line-height: 1.2;
  white-space: normal;
  display: block;
  width: 100%;
}

.calendar-header-top {
  max-width: 100%;
  width: 100%;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* En desktop: título arriba, selectores en una línea debajo */
@media (min-width: 768px) {
  .calendar-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .calendar-title {
    width: 100%;
    margin-bottom: 0;
  }

  /* Contenedor para selectores en una línea */
  .calendar-selectors-wrapper {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    gap: 20px;
    flex-wrap: wrap;
  }

  /* Asegurar que ambos selectores estén perfectamente alineados */
  .calendar-selectors-wrapper .standings-type-selector,
  .calendar-selectors-wrapper .calendar-season-selector {
    display: flex;
    align-items: center;
    margin: 0;
    flex: 0 0 auto;
  }

  .standings-type-selector,
  .calendar-season-selector {
    display: flex;
    align-items: center;
    margin: 0;
    flex: 0 0 auto;
  }
}

/* Asegurar que standings-type-selector sea visible */
.standings-type-selector {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Estilos para selector de tipo cuando se usa select (más de 3 tabs) */
.standings-type-selector,
.calendar-season-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  flex: 0 0 auto;
}

.standings-type-selector label,
.calendar-season-selector label {
  white-space: nowrap;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--title-color, #1e2b47);
  line-height: 1.5;
}

.dark .standings-type-selector label,
body.dark .standings-type-selector label,
.dark .calendar-season-selector label,
body.dark .calendar-season-selector label {
  color: var(--title-color, #fff);
}

.standings-type-selector select,
.calendar-season-selector select {
  min-width: 200px;
  padding: 8px 35px 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--light-gray, #ecf1f5);
  background-color: var(--background-color, #fff);
  color: var(--title-color, #1e2b47);
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%231e2b47' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 12px;
  height: 38px;
  box-sizing: border-box;
  margin-bottom: 0 !important; /* Eliminar margin-bottom que desalinea */
}

.dark .standings-type-selector select,
body.dark .standings-type-selector select,
.dark .calendar-season-selector select,
body.dark .calendar-season-selector select {
  background-color: var(--background-color, #001119);
  border-color: var(--light-gray, #0e232d);
  color: var(--title-color, #fff);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
}

.standings-type-selector select:hover,
.calendar-season-selector select:hover {
  border-color: var(--primary-color, #007aff);
}

.standings-type-selector select:focus,
.calendar-season-selector select:focus {
  outline: none;
  border-color: var(--primary-color, #007aff);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

/* Asegurar que standings-type-selector sea visible */
.standings-type-selector {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 767.98px) {
  .calendar-title {
    font-size: 24px !important;
    word-wrap: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
    width: 100%;
    line-height: 1.2;
    white-space: normal;
    display: block;
  }

  .calendar-header-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    max-width: 100%;
    width: 100%;
    overflow: visible;
  }

  .calendar-selectors-wrapper {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 15px;
    overflow-x: visible;
  }

  .calendar-selectors-wrapper .standings-type-selector {
    width: auto;
  }

  .calendar-season-selector,
  .standings-type-selector {
    margin-left: 0;
    margin-right: 0;
    width: auto;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .standings-type-selector label,
  .calendar-season-selector label {
    font-size: 13px;
  }

  .standings-type-selector select,
  .calendar-season-selector select {
    width: 100%;
    max-width: 200px;
    padding: 6px 30px 6px 10px;
    font-size: 13px;
    height: auto;
  }
}

/* ============================================
   CARRERAS STOCK BADGE - Asegurar visibilidad en modo oscuro
   ============================================ */
/* Badge por defecto sin color de la API */
.carreras-stock-badge.proximas-carreras-badge-default {
  background-color: var(--accent-color, #007aff);
  color: #fff;
}

.dark .carreras-stock-badge.proximas-carreras-badge-default,
body.dark .carreras-stock-badge.proximas-carreras-badge-default {
  background-color: var(--accent-color, #0ee9b3);
  color: #000;
}

/* Badges con estilos inline - asegurar color de texto visible */
.carreras-stock-badge[style*="background-color"]:not([style*="color"]) {
  color: #fff !important;
}

.dark .carreras-stock-badge[style*="background-color"]:not([style*="color"]),
body.dark .carreras-stock-badge[style*="background-color"]:not([style*="color"]) {
  color: #fff !important;
}

/* Si el badge tiene un color de fondo claro (amarillo), usar texto oscuro */
.carreras-stock-badge[style*="background-color: #ffc62b"],
.carreras-stock-badge[style*="background-color:#ffc62b"],
.carreras-stock-badge[style*="background-color: #FFC62B"],
.carreras-stock-badge[style*="background-color:#FFC62B"] {
  color: #1e2b47 !important;
}

/* Asegurar que todos los badges tengan color de texto definido */
.carreras-stock-badge:not([style*="color"]) {
  color: #fff;
}

.dark .carreras-stock-badge:not([style*="color"]),
body.dark .carreras-stock-badge:not([style*="color"]) {
  color: #fff;
}

/* Badges card-category en carreras-stock-item - evitar expansión */
.carreras-stock-title-wrapper .card-category.color-dark {
  display: inline-block !important;
  width: fit-content !important;
  max-width: none !important;
  align-self: flex-start !important;
  background-color: #1e2b47 !important;
  color: #fff !important;
  border: none !important;
  padding: 4px 10px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  min-height: 22px !important;
  border-radius: 2px !important;
  margin-bottom: 4px !important;
  margin-right: 0 !important;
  flex-shrink: 0 !important;
  white-space: nowrap !important;
}

.dark .carreras-stock-title-wrapper .card-category.color-dark,
body.dark .carreras-stock-title-wrapper .card-category.color-dark {
  background-color: #0ee9b3 !important;
  color: #000 !important;
}

/* ============================================
   FIX: Textos de Próximas Carreras en hover - Color único para ambos temas
   ============================================ */
/* CANCELADO: Color único que funciona bien en tema claro y oscuro */
/*
.carreras-stock-item:hover .carreras-stock-title,
.dark .carreras-stock-item:hover .carreras-stock-title,
body.dark .carreras-stock-item:hover .carreras-stock-title,
.proximas-carreras-card:hover .proximas-carreras-race-title,
.dark .proximas-carreras-card:hover .proximas-carreras-race-title,
body.dark .proximas-carreras-card:hover .proximas-carreras-race-title {
  color: var(--accent-color, #0ee9b3) !important;
  opacity: 1 !important;
}

.carreras-stock-item:hover .carreras-stock-location,
.dark .carreras-stock-item:hover .carreras-stock-location,
body.dark .carreras-stock-item:hover .carreras-stock-location,
.carreras-stock-item:hover .carreras-stock-date,
.dark .carreras-stock-item:hover .carreras-stock-date,
body.dark .carreras-stock-item:hover .carreras-stock-date,
.proximas-carreras-card:hover .proximas-carreras-location,
.dark .proximas-carreras-card:hover .proximas-carreras-location,
body.dark .proximas-carreras-card:hover .proximas-carreras-location,
.proximas-carreras-card:hover .proximas-carreras-date,
.dark .proximas-carreras-card:hover .proximas-carreras-date,
body.dark .proximas-carreras-card:hover .proximas-carreras-date {
  color: var(--accent-color, #0ee9b3) !important;
  opacity: 1 !important;
}

.carreras-stock-item:hover .carreras-stock-time,
.dark .carreras-stock-item:hover .carreras-stock-time,
body.dark .carreras-stock-item:hover .carreras-stock-time,
.proximas-carreras-card:hover .proximas-carreras-time,
.dark .proximas-carreras-card:hover .proximas-carreras-time,
body.dark .proximas-carreras-card:hover .proximas-carreras-time {
  color: var(--accent-color, #0ee9b3) !important;
  opacity: 1 !important;
}

/* Countdown y estado mantienen sus colores originales (amarillo y verde) */
.carreras-stock-item:hover .carreras-stock-countdown,
.dark .carreras-stock-item:hover .carreras-stock-countdown,
body.dark .carreras-stock-item:hover .carreras-stock-countdown,
.proximas-carreras-card:hover .proximas-carreras-countdown,
.dark .proximas-carreras-card:hover .proximas-carreras-countdown,
body.dark .proximas-carreras-card:hover .proximas-carreras-countdown {
  color: #ffc62b !important;
  opacity: 1 !important;
}

.carreras-stock-item:hover .carreras-stock-status-value,
.dark .carreras-stock-item:hover .carreras-stock-status-value,
body.dark .carreras-stock-item:hover .carreras-stock-status-value,
.proximas-carreras-card:hover .proximas-carreras-status-value,
.dark .proximas-carreras-card:hover .proximas-carreras-status-value,
body.dark .proximas-carreras-card:hover .proximas-carreras-status-value {
  color: #41d359 !important;
  opacity: 1 !important;
}

/* Títulos y textos del header */
.proximas-carreras-title:hover,
.dark .proximas-carreras-title:hover,
body.dark .proximas-carreras-title:hover {
  color: var(--accent-color, #0ee9b3) !important;
  opacity: 1 !important;
}

.proximas-carreras-timezone:hover,
.dark .proximas-carreras-timezone:hover,
body.dark .proximas-carreras-timezone:hover {
  color: var(--accent-color, #0ee9b3) !important;
  opacity: 1 !important;
}

/* Asegurar que todos los elementos dentro mantengan opacidad 1 en hover */
.carreras-stock-item:hover *,
.proximas-carreras-card:hover * {
  opacity: 1 !important;
}
*/

.dark .page-title-section .page-title,
body.dark .page-title-section .page-title {
  color: var(--title-color, #fff);
}

.page-title-section .page-indicator {
  color: var(--text-color, #828d9c);
  font-size: 14px;
  font-weight: 500;
  opacity: 0.9;
  transition: color 0.3s, opacity 0.3s;
  margin: 0 !important;
  line-height: 1.2;
}

.dark .page-indicator,
body.dark .page-indicator {
  color: var(--text-color, #9aa9b2);
  opacity: 1;
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination-wrapper {
  margin: 40px 0;
  display: flex;
  justify-content: center;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}

.pagination-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--light-gray, #ecf1f5);
  color: var(--title-color, #1e2b47);
  border-radius: 10px;
  text-decoration: none;
  font-weight: 500;
  transition: background-color 0.3s, color 0.3s;
}

.pagination-link:hover {
  background-color: var(--primary-color, #0091de);
  color: #fff;
}

.dark .pagination-link {
  background-color: var(--light-gray, #0e232d);
  color: var(--title-color, #fff);
}

.dark .pagination-link:hover {
  background-color: var(--primary-color, #0091de);
  color: #fff;
}

.pagination-info {
  color: var(--text-color, #828d9c);
  font-size: 14px;
  padding: 10px 20px;
}

.dark .pagination-info {
  color: var(--text-color, #828d9c);
}

.pagination-prev,
.pagination-next {
  min-width: 120px;
  justify-content: center;
}

@media (max-width: 768px) {
  .pagination {
    flex-direction: column;
    gap: 10px;
  }

  .pagination-link {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }

  .pagination-info {
    order: -1;
  }
}

/* ============================================
   AUTHOR PROFILE HEADER
   ============================================ */
.author-profile-header {
  margin: 30px 0 40px;
}

.author-profile-content {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  background-color: var(--background-color, #fff);
  padding: 30px;
  border-radius: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.dark .author-profile-content {
  background-color: var(--background-color, #001119);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.author-profile-image {
  flex-shrink: 0;
  width: 120px;
  height: 120px;
}

.author-profile-image img {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--light-gray, #ecf1f5);
}

.dark .author-profile-image img {
  border-color: var(--light-gray, #0e232d);
}

.author-profile-info {
  flex: 1;
  min-width: 0;
}

.author-profile-name {
  font-size: 28px;
  font-weight: 600;
  color: var(--title-color, #1e2b47);
  margin: 0 0 10px 0;
}

.dark .author-profile-name {
  color: var(--title-color, #fff);
}

.author-profile-location {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-color, #828d9c);
  font-size: 15px;
  margin-bottom: 15px;
}

.author-profile-location i {
  font-size: 18px;
}

.author-profile-description {
  color: var(--text-color, #828d9c);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.author-profile-stats {
  display: flex;
  gap: 30px;
  margin-bottom: 20px;
}

.author-stat {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.author-stat-number {
  font-size: 24px;
  font-weight: 600;
  color: var(--title-color, #1e2b47);
  line-height: 1;
}

.dark .author-stat-number {
  color: var(--title-color, #fff);
}

.author-stat-label {
  font-size: 14px;
  color: var(--text-color, #828d9c);
  margin-top: 5px;
}

/* ============================================
   AUTHOR PORTFOLIO TABS
   ============================================ */
.author-portfolio-tabs {
  margin: 40px 0;
}

.author-tabs-wrapper {
  margin-bottom: 30px;
}

.author-tabs-segmented {
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.author-tabs-segmented .tab-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  text-decoration: none;
  font-size: 14px;
  white-space: nowrap;
}

.author-tabs-segmented .tab-link i {
  font-size: 16px;
}

.author-tabs-description {
  text-align: center;
  margin-top: 8px;
}

.tab-desc-active {
  font-size: 12px;
  color: var(--text-color);
  opacity: 0.7;
}

.author-tabs-segmented .tab-count {
  background-color: rgba(0, 0, 0, 0.1);
  color: var(--text-color);
  padding: 2px 6px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 600;
  min-width: 20px;
  text-align: center;
  margin-left: 4px;
}

.author-tabs-segmented .tab-link-active .tab-count {
  background-color: rgba(255, 255, 255, 0.2);
  color: inherit;
}

/* Author Sections */
.author-section {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.author-section:first-of-type {
  margin-top: 2rem;
}

.author-section .title-bottom-line {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.author-section .title-bottom-line i {
  font-size: 1.25rem;
  color: var(--f7-theme-color, #007aff);
}

/* Ajustar article-hero-7 para grid de 2 columnas */
.author-section .row {
  display: flex;
  flex-wrap: wrap;
}

.author-section .row > [class*="col-"] {
  display: flex;
  flex-direction: column;
}

.author-section .row > [class*="col-"] > .article-hero-7 {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.author-section .article-hero-7 {
  min-height: 300px;
  height: 100%;
  padding: 30px 0;
}

.author-section .article-hero-7 .container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.author-section .article-hero-7 .row {
  flex: 1;
}

/* Ajustes para article-hero-7 en author-section */
.author-section .article-hero-7 .article-hero-content {
  text-align: left !important;
  max-width: 100% !important;
  margin: 0 !important;
}

/* Badge debe comportarse EXACTAMENTE igual que en destacados - usar los mismos estilos que card-image-footer */
.author-section .article-hero-7 .card-category.color-dark,
.author-section .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: 2px !important;
  margin-bottom: 10px !important;
  width: auto !important;
  max-width: none !important;
}

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

.author-section .article-hero-7 .article-hero-title {
  font-size: 22px;
  line-height: 1.25;
  margin-bottom: 10px;
  font-weight: 700;
  margin-top: 0;
}

.author-section .article-hero-7 .article-hero-subtitle {
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.4;
  opacity: 0.95;
}


.author-section .article-hero-7 .article-hero-meta {
  justify-content: flex-start;
  margin-top: 15px;
}


@media (max-width: 991.98px) {
  .author-section .article-hero-7 {
    min-height: 250px;
    padding: 20px 0;
  }

  .author-section .article-hero-7 .article-hero-title {
    font-size: 20px;
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 767.98px) {
  .author-tabs-segmented {
    flex-direction: column;
    gap: 10px;
  }

  .author-tab-button {
    width: 100%;
    justify-content: center;
  }
}

.author-profile-social {
  display: flex;
  gap: 12px;
}

.author-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background-color: var(--light-gray, #ecf1f5);
  color: var(--title-color, #1e2b47);
  border-radius: 12px;
  text-decoration: none;
  transition: background-color 0.3s, color 0.3s;
}

.author-social-link:hover {
  background-color: var(--primary-color, #0091de);
  color: #fff;
}

.dark .author-social-link {
  background-color: var(--light-gray, #0e232d);
  color: var(--title-color, #fff);
}

.dark .author-social-link:hover {
  background-color: var(--primary-color, #0091de);
  color: #fff;
}

.author-social-link i {
  font-size: 20px;
}

/* ============================================
   AUTHOR POSTS SECTIONS
   ============================================ */
.author-posts-section {
  margin: 40px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--title-color, #1e2b47);
  margin-bottom: 25px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.dark .section-title {
  color: var(--title-color, #fff);
}

.section-title i {
  font-size: 22px;
  color: var(--primary-color, #0091de);
}

@media (max-width: 768px) {
  .author-profile-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
  }

  .author-profile-info {
    width: 100%;
  }

  .author-profile-stats {
    justify-content: center;
  }

  .author-profile-social {
    justify-content: center;
  }

  .section-title {
    font-size: 20px;
  }
}

/* ============================================
   FAQ PAGE - Usar todo el ancho disponible
   ============================================ */
body.page-faq .lapeando-page-content .page-content {
  max-width: none !important;
  width: 100% !important;
  padding-left: 15px;
  padding-right: 15px;
}

@media (min-width: 768px) {
  body.page-faq .lapeando-page-content .page-content {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* ============================================
   ARTICLE PAGE - Hero Full Width (Hero 5 y Hero 7)
   ============================================ */
.article-hero-full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  border-radius: 0;
  margin-bottom: 0;
}

.article-hero-full-width .container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left:  15px;
  padding-right: 15px;
}

/* Página artículo: el hero va después del header como hijo de body; ancho real 100%, sin truco 100vw. */
@media (min-width: 768px) {
  body.page-articulo .article-hero-5.article-hero-full-width {
    width: 100%;
    max-width: none;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    position: relative;
  }
}

/* En móvil, el hero no ocupa todo el ancho */
@media (max-width: 767.98px) {
  .article-hero-full-width {
    width: 100%;
    left: auto;
    right: auto;
    margin-left: 0;
    margin-right: 0;
    border-radius: 15px;
    margin-left: 15px;
    margin-right: 15px;
    width: calc(100% - 30px);
  }

  .article-hero-5.article-hero-full-width .container {
    min-height: 350px;
  }

  .article-hero-5.article-hero-full-width .article-hero-content {
    text-align: left;
  }
}

/* Hero 6 móvil: .article-hero-5.full-width .container { display:flex } no aplica a este <article>; por si acaso reset */
body.page-articulo .page-articulo-hero-m6.article-hero-6 > .container {
  display: block;
  min-height: 0;
  align-items: stretch;
}

/* Ubicación solo si no hay bloque autor (evita duplicar) */
body.page-articulo .page-articulo-hero-m6 .article-hero-hero6-ubicacion--solo {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--text-color);
  opacity: 0.8;
  margin-bottom: 0;
  line-height: 1.3;
}

/* Lugar debajo del rol (línea aparte, sin pegar a “Fotografías”) */
body.page-articulo .page-articulo-hero-m6 .article-hero-hero6-loc-line {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.3;
  color: var(--text-color);
  opacity: 0.85;
}

/* Hero 6 ficha: meta + autor compactos en móvil (!important gana al ui-kit en merged) */
@media (max-width: 767.98px) {
  body.page-articulo .page-articulo-hero-m6.article-hero-6 .article-hero-subtitle {
    margin-bottom: 10px !important;
  }

  body.page-articulo .page-articulo-hero-m6.article-hero-6 .article-hero-meta {
    margin-top: 6px !important;
    gap: 6px !important;
    row-gap: 4px !important;
  }

  body.page-articulo .page-articulo-hero-m6 .article-hero-categories {
    margin-top: 0 !important;
    gap: 6px !important;
  }

  body.page-articulo .page-articulo-hero-m6 .article-hero-category {
    padding: 4px 10px !important;
    font-size: 11px !important;
    letter-spacing: 0.04em;
    line-height: 1.2 !important;
  }

  body.page-articulo .page-articulo-hero-m6 .article-hero-author {
    gap: 8px !important;
    align-items: center !important;
    margin-bottom: 0 !important;
  }

  body.page-articulo .page-articulo-hero-m6 .article-hero-author-avatar {
    width: 32px !important;
    height: 32px !important;
  }

  body.page-articulo .page-articulo-hero-m6 .article-hero-author-info {
    gap: 0 !important;
    min-width: 0;
  }

  body.page-articulo .page-articulo-hero-m6 .article-hero-author-name {
    font-size: 14px !important;
    line-height: 1.25 !important;
    font-weight: 600;
  }

  body.page-articulo .page-articulo-hero-m6 .article-hero-author-role {
    font-size: 12px !important;
    line-height: 1.35 !important;
    margin-top: 2px !important;
    display: block;
  }

  body.page-articulo .page-articulo-hero-m6 .article-hero-hero6-loc-line {
    margin-top: 1px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  body.page-articulo .page-articulo-hero-m6 .article-hero-hero6-ubicacion--solo {
    margin-top: 6px !important;
    font-size: 12px !important;
  }
}

/* Hero 6 móvil: imagen siempre visible (orden + URL absoluta en PHP); refuerzo frente a filtros */
@media (max-width: 991.98px) {
  body.page-articulo .page-articulo-hero-m6.article-hero-6 .article-hero-image-wrapper {
    margin-top: 0;
  }

  /* Imagen arriba en móvil/tablet: separar bloque de texto del kit */
  body.page-articulo .page-articulo-hero-m6.article-hero-6 .order-2.order-lg-1 .article-hero-content {
    margin-top: 24px;
  }
}

body.page-articulo .page-articulo-hero-m6 .article-hero-image-wrapper picture {
  display: block;
  max-width: 100%;
}

body.page-articulo .page-articulo-hero-m6 .article-hero-image,
body.page-articulo .page-articulo-hero-m6 .article-hero-image-wrapper img {
  display: block !important;
  max-width: 100%;
  height: auto;
  filter: none !important;
  opacity: 1 !important;
  -webkit-user-select: none;
  user-select: none;
}

body.page-articulo .page-articulo-hero-m6 .article-hero-image-wrapper {
  border-radius: 15px;
  overflow: hidden;
  background-color: var(--light-gray);
}

body.dark .page-articulo .page-articulo-hero-m6 .article-hero-image-wrapper,
body.dark.page-articulo .page-articulo-hero-m6 .article-hero-image-wrapper {
  background-color: var(--light-gray);
}

/* Modo oscuro: mismo contraste que el demo del kit (fondo página + tipografía) */
body.dark.page-articulo .page-articulo-hero-m6.article-hero-6,
.dark body.page-articulo .page-articulo-hero-m6.article-hero-6 {
  background-color: var(--body-bg);
}

body.dark.page-articulo .page-articulo-hero-m6 .article-hero-date,
.dark body.page-articulo .page-articulo-hero-m6 .article-hero-date {
  color: var(--text-color);
}

body.dark.page-articulo .page-articulo-hero-m6 .article-hero-title,
.dark body.page-articulo .page-articulo-hero-m6 .article-hero-title {
  color: var(--title-color);
}

body.dark.page-articulo .page-articulo-hero-m6 .article-hero-subtitle,
.dark body.page-articulo .page-articulo-hero-m6 .article-hero-subtitle {
  color: var(--text-color);
}

@media (min-width: 768px) {
  .article-hero-full-width .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Ajustes de alineación para article-hero-7 meta */
.article-hero-7 .article-hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  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;
  line-height: 1.5;
  vertical-align: middle;
}

.article-hero-7 .article-hero-meta-separator {
  display: inline-flex;
  align-items: center;
  margin: 0 8px;
  line-height: 1.5;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.5);
}

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

.article-hero-7 .article-hero-meta-value {
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
}

/* Estilos para links de autor/colaborador */
.article-hero-meta-value a {
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.article-hero-meta-value a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

.dark .article-hero-meta-value a:hover {
  opacity: 0.8;
}

/* Author card minimal + compact (debajo del artículo): rejilla para alinear nombre, rol y CTA */
.single-post-author.author-card-minimal.author-card-compact {
  align-items: flex-start;
  padding: 12px 14px !important;
  gap: 12px !important;
}

.author-card-compact .author-card-minimal-avatar {
  width: 44px !important;
  height: 44px !important;
  margin-top: 2px;
}

/* El contenedor apila nombre+rol a la izquierda y el botón a la derecha, centrado en altura */
.author-card-compact .author-details.author-details--stack {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  column-gap: 10px;
  row-gap: 1px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
}

.author-card-compact .author-details--stack > .author-name {
  display: contents !important;
}

.author-card-compact .author-details--stack .author-inline-name {
  grid-column: 1;
  grid-row: 1;
  align-self: end;
  margin: 0 !important;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-card-compact .author-details--stack .author-description.author-role-muted {
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  margin-top: 2px;
  line-height: 1.2;
}

.author-card-compact .author-details--stack .author-follow-small {
  grid-column: 2;
  grid-row: 1 / -1;
  align-self: center;
  justify-self: end;
  margin-left: 0 !important;
  font-size: 10px !important;
  padding: 5px 12px !important;
  min-height: 28px !important;
  height: auto !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}

.author-card-compact .author-follow-small i {
  font-size: 12px !important;
  margin-right: 4px !important;
}

/* Si en otro layout .author-name no usa --stack, mantener fila razonable */
.author-card-compact .author-details:not(.author-details--stack) > .author-name {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.author-card-compact .author-details:not(.author-details--stack) .author-name > span {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.author-card-compact .author-details:not(.author-details--stack) .author-follow-small {
  margin-left: auto !important;
}

@media (max-width: 767.98px) {
  .author-card-compact .author-details--stack .author-follow-small {
    font-size: 0 !important;
    padding: 6px !important;
    width: 32px !important;
    height: 32px !important;
    min-height: 32px !important;
    min-width: 32px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .author-card-compact .author-follow-small i {
    font-size: 14px !important;
    margin-right: 0 !important;
  }

  .author-card-compact .author-follow-text {
    display: none !important;
  }

  .author-card-compact .author-details--stack .author-inline-name {
    padding-right: 4px;
  }
}

.article-hero-7 .article-hero-date {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
  margin-bottom: 0 !important;
  display: inline-flex;
  align-items: center;
}

/* Ajustes para article-hero-5 full-width - contenido alineado a la izquierda */
.article-hero-5.article-hero-full-width .container {
  display: flex;
  align-items: center;
  min-height: 500px;
}

.article-hero-5.article-hero-full-width .row {
  width: 100%;
}

.article-hero-5.article-hero-full-width .article-hero-content {
  text-align: left;
}

/* Badge card-category color-dark para Hero 5 (móvil Hero 6 usa .article-hero-category del kit) */
.article-hero-5 .card-category.color-dark,
.article-hero-5 .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: 2px !important;
  margin-bottom: 15px !important;
  width: auto !important;
  max-width: none !important;
}

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

/* Badge tag para Hero 5 (mismo estilo que Hero 7) - DEPRECADO, usar card-category color-dark */
.article-hero-5 .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;
  margin-bottom: 20px;
}

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

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

.article-hero-5.article-hero-full-width .article-hero-title {
  margin-bottom: 15px;
}

.article-hero-5.article-hero-full-width .article-hero-subtitle {
  margin-bottom: 25px;
}

/* Ajustes de alineación para article-hero-5 meta */
.article-hero-5 .article-hero-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 25px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.article-hero-5 .article-hero-meta-item {
  display: inline-flex;
  align-items: center;
  line-height: 1.5;
  vertical-align: middle;
}

.article-hero-5 .article-hero-meta-separator {
  display: inline-flex;
  align-items: center;
  margin: 0 8px;
  line-height: 1.5;
  vertical-align: middle;
  color: rgba(255, 255, 255, 0.5);
}

.article-hero-5 .article-hero-meta-label {
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  margin-right: 4px;
  line-height: 1.5;
  vertical-align: middle;
}

.article-hero-5 .article-hero-meta-value {
  color: #fff;
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
}

.article-hero-5 .article-hero-meta .article-hero-date {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
  line-height: 1.5;
  vertical-align: middle;
  margin-bottom: 0;
  display: inline-flex;
  align-items: center;
}

/* ============================================
   Article Navigation Banners
   ============================================ */

/* Article Navigation Banners - Clases específicas para no interferir con otros link-banners */
.article-nav-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(--background-color);
  box-shadow: var(--block-shadow);
  text-decoration: none;
  transition: transform 0.2s ease;
}

.article-nav-banner-prev {
  padding-left: 40px;
}

.article-nav-banner-next {
  padding-right: 40px;
}

.article-nav-banner-text {
  display: flex;
  flex-direction: column;
  color: var(--title-color);
  margin-left: 0;
  flex: 1;
}

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

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

/* Chevron izquierdo */
.article-nav-banner-prev::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: 20px;
  line-height: 14px;
  color: var(--title-color);
  pointer-events: none;
  left: 16px;
  right: auto;
  content: "chevron_left";
}

/* Chevron derecho */
.article-nav-banner-next::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: 20px;
  line-height: 14px;
  color: var(--title-color);
  pointer-events: none;
  right: 16px;
  left: auto;
  content: "chevron_right";
}

/* Modo oscuro - mismo color que carreras-stock-item */
.dark .article-nav-banner,
body.dark .article-nav-banner {
  background-color: #0e232d;
}

/* Hover effect similar a carreras-stock-item */
.article-nav-banner:hover {
  transform: translateX(2px);
}

.article-nav-banner:active {
  transform: scale(0.98);
}

/* Asegurar que ambos banners tengan la misma altura y alineación */
.article-nav-banners-row {
  display: flex;
  align-items: stretch;
}

.article-nav-banners-row .col-12,
.article-nav-banners-row .col-md-6 {
  display: flex;
}

.article-nav-banners-row .article-nav-banner {
  min-height: 80px;
  margin: 0;
  width: 100%;
  display: flex;
  align-items: center;
}

/* Desktop: esquinas redondas solo en los bordes externos */
@media (min-width: 768px) {
  .article-nav-banners-row .col-md-6:first-child .article-nav-banner {
    border-radius: 15px 0 0 15px;
  }

  .article-nav-banners-row .col-md-6:last-child .article-nav-banner {
    border-radius: 0 15px 15px 0;
  }
}

/* Móvil: todas las esquinas redondas y separación mínima */
@media (max-width: 767.98px) {
  .article-nav-banners-row .col-12:first-child .article-nav-banner {
    margin-bottom: 8px;
    border-radius: 15px;
  }

  .article-nav-banners-row .col-12:last-child .article-nav-banner {
    margin-top: 0;
    border-radius: 15px;
  }
}

/* ============================================
   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;
}

.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;
  }
}

/* ============================================
   PÁGINA DE BÚSQUEDA
   ============================================ */
.search-header {
  margin-bottom: 2rem;
}

.search-form .input-group {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 600px;
}

.search-form .form-control {
  flex: 1;
  padding: 0.75rem 1rem;
  border: 1px solid var(--light-gray, #ecf1f5);
  border-radius: 8px 0 0 8px;
  font-size: 16px;
  height: 48px;
  line-height: 1.5;
  border-right: none;
}

.dark .search-form .form-control {
  background-color: var(--background-color, #001119);
  border-color: var(--light-gray, #0e232d);
  color: var(--text-color, #fff);
}

.search-form .button {
  white-space: nowrap;
  padding: 0.75rem 1.5rem;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border-radius: 0 8px 8px 0;
  margin: 0;
}

.search-results-info {
  font-size: 14px;
  margin-top: 0.5rem;
}

.no-results {
  padding: 3rem 1rem;
}

.no-results i {
  display: block;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.no-results h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.no-results p {
  max-width: 500px;
  margin: 0 auto 1.5rem;
}

/* ============================================
   Enlaces de cards de carreras (toda la card clickeable)
   ============================================ */
.proximas-carreras-card-link {
  display: contents;
  text-decoration: none;
  color: inherit;
}

.proximas-carreras-card-link:hover {
  text-decoration: none;
  color: inherit;
}

.carreras-stock-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
  width: 100%;
}

.carreras-stock-item-link:hover {
  text-decoration: none;
  color: inherit;
}

/* ============================================
   REGLA FINAL: Color de hover según tema (TODO EL PROYECTO)
   ============================================ */
/* En modo claro: hovers negros | En modo oscuro: hovers blancos */
/* Excluir contenido de artículos para preservar estilos inline */
html body *:hover:not(.single-post-content *):not(.single-post-content) {
  color: #000 !important;
}

html body.dark *:hover:not(.single-post-content *):not(.single-post-content),
html body .dark *:hover:not(.single-post-content *):not(.single-post-content) {
  color: #fff !important;
}

/* ============================================
   ESTILOS PARA CONTENIDO DE ARTÍCULOS
   Permitir que los estilos inline de tablas embed funcionen
   ============================================ */
.single-post-content {
  /* Permitir overflow para tablas anchas */
  overflow-x: auto;
}

/* CRÍTICO: NO modificar las tablas - ellas ya tienen sus propios estilos inline */
/* Las tablas vienen con estilos inline en el <style> tag dentro del contenido */
/* COMENTADO: Estas reglas estaban interfiriendo con los estilos inline de las tablas */
/*
.single-post-content .msa-export-wrapper,
.single-post-content .msa-export-wrapper *,
.single-post-content table.table,
.single-post-content table.table *,
.single-post-content table.table tr,
.single-post-content table.table tr *,
.single-post-content table.table td,
.single-post-content table.table th {
  background-color: revert !important;
  background: revert !important;
  color: revert !important;
}
*/

/* CRÍTICO: Excluir imágenes del contenido de artículos de los estilos de tema */
/* Las imágenes deben mantener sus estilos sin interferencia de tema claro/oscuro */
.single-post-content img,
.single-post-content .article-gallery-link,
.single-post-content .article-gallery-link img,
.single-post-content .d-flex img,
.single-post-content .col-10 img,
.single-post-content .col-sm-10 img,
.single-post-content .col-xs-12 img {
  /* Anular cualquier estilo de tema que pueda estar afectando las imágenes */
  filter: none !important;
  opacity: revert !important;
  background-color: transparent !important;
  background: transparent !important;
  border: revert !important;
  border-color: revert !important;
  /* Mantener vertical-align como en el proyecto viejo */
  vertical-align: middle;
}

/* En modo oscuro, asegurar que las imágenes del contenido no hereden estilos oscuros */
body.dark .single-post-content img,
body.dark .single-post-content .article-gallery-link,
body.dark .single-post-content .article-gallery-link img,
body.dark .single-post-content .d-flex img,
body.dark .single-post-content .col-10 img,
body.dark .single-post-content .col-sm-10 img,
body.dark .single-post-content .col-xs-12 img,
.dark .single-post-content img,
.dark .single-post-content .article-gallery-link,
.dark .single-post-content .article-gallery-link img,
.dark .single-post-content .d-flex img,
.dark .single-post-content .col-10 img,
.dark .single-post-content .col-sm-10 img,
.dark .single-post-content .col-xs-12 img {
  /* Anular cualquier filtro o estilo oscuro que pueda estar afectando las imágenes */
  filter: none !important;
  opacity: revert !important;
  background-color: transparent !important;
  background: transparent !important;
  border: revert !important;
  border-color: revert !important;
  /* Mantener vertical-align como en el proyecto viejo */
  vertical-align: middle;
}

/* CRÍTICO: Excluir imágenes dentro de tablas embed de los estilos de tema */
/* Las imágenes deben mantener sus estilos inline sin interferencia */
.single-post-content .msa-export-wrapper img,
.single-post-content table.table img,
.single-post-content table.table td img,
.single-post-content table.table th img {
  /* Anular cualquier estilo de tema que pueda estar afectando las imágenes */
  filter: none !important;
  opacity: revert !important;
  background-color: transparent !important;
  background: transparent !important;
  border: revert !important;
  border-color: revert !important;
  /* Mantener vertical-align como en el proyecto viejo */
  vertical-align: middle;
}

/* COMENTADO: Estas reglas estaban interfiriendo con los estilos inline de las tablas */
/*
body.dark .single-post-content .msa-export-wrapper,
body.dark .single-post-content .msa-export-wrapper *,
.dark .single-post-content .msa-export-wrapper,
.dark .single-post-content .msa-export-wrapper *,
body.dark .single-post-content table.table,
body.dark .single-post-content table.table *,
.dark .single-post-content table.table,
.dark .single-post-content table.table *,
body.dark .single-post-content table.table tr,
body.dark .single-post-content table.table tr *,
.dark .single-post-content table.table tr,
.dark .single-post-content table.table tr *,
body.dark .single-post-content table.table td,
body.dark .single-post-content table.table th,
.dark .single-post-content table.table td,
.dark .single-post-content table.table th {
  background-color: revert !important;
  background: revert !important;
  color: revert !important;
}
*/

/* En modo oscuro, asegurar que las imágenes dentro de tablas no hereden estilos oscuros */
body.dark .single-post-content .msa-export-wrapper img,
body.dark .single-post-content table.table img,
body.dark .single-post-content table.table td img,
body.dark .single-post-content table.table th img,
.dark .single-post-content .msa-export-wrapper img,
.dark .single-post-content table.table img,
.dark .single-post-content table.table td img,
.dark .single-post-content table.table th img {
  /* Anular cualquier filtro o estilo oscuro que pueda estar afectando las imágenes */
  filter: none !important;
  opacity: revert !important;
  background-color: transparent !important;
  background: transparent !important;
  border: revert !important;
  border-color: revert !important;
  /* Mantener vertical-align como en el proyecto viejo */
  vertical-align: middle;
}

/* COMENTADO: Estas reglas estaban interfiriendo con los estilos inline de las tablas */
/*
.single-post-content table:not([class*="table"]),
.single-post-content .msa-export-wrapper table,
.single-post-content .msa-export-wrapper table * {
  border-collapse: inherit !important;
  width: inherit !important;
  max-width: inherit !important;
  margin: inherit !important;
  padding: inherit !important;
  color: inherit !important;
  font-size: inherit !important;
  background-color: inherit !important;
  border: inherit !important;
}

/* COMENTADO: Estas reglas estaban interfiriendo con los estilos inline de las tablas */
/*
.single-post-content .msa-export-wrapper,
.single-post-content .msa-export-wrapper * {
  color: inherit !important;
  font-size: inherit !important;
  padding: inherit !important;
  margin: inherit !important;
  background-color: inherit !important;
  border: inherit !important;
  line-height: inherit !important;
  font-weight: inherit !important;
}
*/

/* COMENTADO: Todas estas reglas estaban interfiriendo con los estilos inline de las tablas */
/* Las tablas ya tienen sus propios estilos inline y no deben ser modificadas */
/*
.single-post-content .msa-export-wrapper table.table > :not(caption) > tr,
.single-post-content .msa-export-wrapper table.table > :not(caption) > tr[class=""],
.single-post-content .msa-export-wrapper table.table > :not(caption) > tr[class],
.single-post-content .msa-export-wrapper table.table > tbody > tr,
.single-post-content .msa-export-wrapper table.table > tbody > tr[class=""],
.single-post-content .msa-export-wrapper table.table > tbody > tr[class],
.single-post-content .msa-export-wrapper table.table-striped > tbody > tr,
.single-post-content .msa-export-wrapper table.table-striped > tbody > tr[class=""],
.single-post-content .msa-export-wrapper table.table-striped > tbody > tr[class],
.single-post-content .msa-export-wrapper table.table-striped > tbody > tr:nth-of-type(odd),
.single-post-content .msa-export-wrapper table.table-striped > tbody > tr:nth-of-type(odd)[class=""],
.single-post-content .msa-export-wrapper table.table-striped > tbody > tr:nth-of-type(odd)[class],
.single-post-content .msa-export-wrapper table.table-hover > tbody > tr,
.single-post-content .msa-export-wrapper table.table-hover > tbody > tr[class=""],
.single-post-content .msa-export-wrapper table.table-hover > tbody > tr[class],
.single-post-content .msa-export-wrapper table.table-hover > tbody > tr:hover,
.single-post-content .msa-export-wrapper table.table-hover > tbody > tr:hover[class=""],
.single-post-content .msa-export-wrapper table.table-hover > tbody > tr:hover[class],
.single-post-content .msa-export-wrapper table > tbody > tr,
.single-post-content .msa-export-wrapper table > tbody > tr[class=""],
.single-post-content .msa-export-wrapper table > tbody > tr[class],
.single-post-content .msa-export-wrapper tr,
.single-post-content .msa-export-wrapper tr[class=""],
.single-post-content .msa-export-wrapper tr[class],
.single-post-content table.table > tbody > tr,
.single-post-content table.table > tbody > tr[class=""],
.single-post-content table.table > tbody > tr[class],
.single-post-content table.table-striped > tbody > tr,
.single-post-content table.table-striped > tbody > tr[class=""],
.single-post-content table.table-striped > tbody > tr[class],
.single-post-content table.table-striped > tbody > tr:nth-of-type(odd),
.single-post-content table.table-striped > tbody > tr:nth-of-type(odd)[class=""],
.single-post-content table.table-striped > tbody > tr:nth-of-type(odd)[class],
.single-post-content table.table-hover > tbody > tr,
.single-post-content table.table-hover > tbody > tr[class=""],
.single-post-content table.table-hover > tbody > tr[class],
.single-post-content table.table-hover > tbody > tr:hover,
.single-post-content table.table-hover > tbody > tr:hover[class=""],
.single-post-content table.table-hover > tbody > tr:hover[class],
.single-post-content table tr,
.single-post-content table tr[class=""],
.single-post-content table tr[class] {
  /* Anular box-shadow de Bootstrap que crea el efecto de fondo blanco */
  /* Los estilos inline de background-color se aplicarán después */
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  /* CRÍTICO: Anular el background-color que Bootstrap aplica directamente */
  background-color: transparent !important;
  background: transparent !important;
}

/* Anular estilos de Bootstrap para td/th que aplica a .table > :not(caption) > * > * */
/* Usar selectores más específicos que los de Bootstrap para asegurar prioridad */
/* CRÍTICO: También anular estilos para .table-striped y .table-hover */
.single-post-content .msa-export-wrapper table.table > :not(caption) > tr > td,
.single-post-content .msa-export-wrapper table.table > :not(caption) > tr > th,
.single-post-content .msa-export-wrapper table.table > tbody > tr > td,
.single-post-content .msa-export-wrapper table.table > tbody > tr > th,
.single-post-content .msa-export-wrapper table.table-striped > tbody > tr > td,
.single-post-content .msa-export-wrapper table.table-striped > tbody > tr > th,
.single-post-content .msa-export-wrapper table.table-striped > tbody > tr:nth-of-type(odd) > td,
.single-post-content .msa-export-wrapper table.table-striped > tbody > tr:nth-of-type(odd) > th,
.single-post-content .msa-export-wrapper table.table-hover > tbody > tr > td,
.single-post-content .msa-export-wrapper table.table-hover > tbody > tr > th,
.single-post-content .msa-export-wrapper table.table-hover > tbody > tr:hover > td,
.single-post-content .msa-export-wrapper table.table-hover > tbody > tr:hover > th,
.single-post-content .msa-export-wrapper table > tbody > tr > td,
.single-post-content .msa-export-wrapper table > tbody > tr > th,
.single-post-content .msa-export-wrapper tr td,
.single-post-content .msa-export-wrapper tr th,
.single-post-content table.table > tbody > tr > td,
.single-post-content table.table > tbody > tr > th,
.single-post-content table.table-striped > tbody > tr > td,
.single-post-content table.table-striped > tbody > tr > th,
.single-post-content table.table-striped > tbody > tr:nth-of-type(odd) > td,
.single-post-content table.table-striped > tbody > tr:nth-of-type(odd) > th,
.single-post-content table.table-hover > tbody > tr > td,
.single-post-content table.table-hover > tbody > tr > th,
.single-post-content table.table-hover > tbody > tr:hover > td,
.single-post-content table.table-hover > tbody > tr:hover > th,
.single-post-content table tr td,
.single-post-content table tr th {
  /* CRÍTICO: Bootstrap usa box-shadow inset para crear el efecto de fondo blanco */
  /* Anular box-shadow para que los estilos inline de background-color funcionen */
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
  /* Anular variables CSS de Bootstrap que puedan estar afectando el fondo */
  --bs-table-bg-state: transparent !important;
  --bs-table-accent-bg: transparent !important;
  --bs-table-hover-bg: transparent !important;
  /* CRÍTICO: Anular el background-color que Bootstrap aplica directamente */
  background-color: transparent !important;
  background: transparent !important;
}

/* REGLA ADICIONAL: Asegurar que los estilos inline de tr y td tengan máxima prioridad */
/* Esta regla se aplica después de todas las demás para garantizar que los estilos inline funcionen */
/* IMPORTANTE: Los estilos inline tienen máxima especificidad, pero Bootstrap puede estar usando !important */
.single-post-content .msa-export-wrapper tr[style],
.single-post-content .msa-export-wrapper tr[style] td,
.single-post-content .msa-export-wrapper tr[style] th,
.single-post-content .msa-export-wrapper td[style],
.single-post-content .msa-export-wrapper th[style],
.single-post-content table tr[style],
.single-post-content table tr[style] td,
.single-post-content table tr[style] th,
.single-post-content table td[style],
.single-post-content table th[style],
.single-post-content .msa-export-wrapper table.table tr[style],
.single-post-content .msa-export-wrapper table.table tr[style] td,
.single-post-content .msa-export-wrapper table.table tr[style] th {
  /* Los estilos inline tienen máxima especificidad - esta regla solo anula !important previos */
  /* No aplicar ningún estilo aquí - dejar que los estilos inline funcionen */
  background-color: revert !important;
  background: revert !important;
  color: revert !important;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}
*/

/* ============================================
   TABLAS EN CONTENIDO DE ARTÍCULOS - DISEÑO FIJO
   Aislar completamente las tablas de los estilos de tema
   Colores invertidos (fondo oscuro, texto claro)
   ============================================ */

/* Aislar tablas del contenido de los estilos de tema */
.single-post-content table,
.single-post-content .msa-export-wrapper,
.single-post-content .msa-export-wrapper table {
  /* Aislar del tema - forzar diseño fijo */
  isolation: isolate;
  contain: layout style paint;
}

/* Diseño fijo para todas las tablas en contenido - independiente del tema */
/* Colores invertidos: fondo oscuro, texto claro */
.single-post-content table,
.single-post-content .msa-export-wrapper table,
.single-post-content table.table,
.single-post-content table.table-striped,
.single-post-content table.table-hover {
  background-color: #2d3447 !important;
  color: #ffffff !important;
  border-collapse: collapse;
  width: 100%;
  margin: 1rem 0;
}

/* Encabezados de tabla - diseño fijo */
.single-post-content table thead,
.single-post-content .msa-export-wrapper table thead,
.single-post-content table.table thead {
  background-color: rgba(0, 0, 0, 0.3) !important;
}

.single-post-content table thead th,
.single-post-content .msa-export-wrapper table thead th,
.single-post-content table.table thead th {
  background-color: rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
  font-weight: 600;
  text-align: left;
  padding: 12px 16px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

/* Filas de tabla - diseño fijo */
.single-post-content table tbody tr,
.single-post-content .msa-export-wrapper table tbody tr,
.single-post-content table.table tbody tr {
  background-color: #2d3447 !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Filas pares para tablas striped - diseño fijo */
.single-post-content table.table-striped tbody tr:nth-of-type(odd),
.single-post-content .msa-export-wrapper table.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.03) !important;
  color: #ffffff !important;
}

/* Celdas - diseño fijo, pero respetar estilos inline de color */
.single-post-content table td,
.single-post-content .msa-export-wrapper table td,
.single-post-content table.table td {
  background-color: inherit !important;
  /* Color por defecto blanco, pero se respetará si hay style="color: ..." inline */
  color: #ffffff !important;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Celdas de encabezado - diseño fijo */
.single-post-content table th,
.single-post-content .msa-export-wrapper table th,
.single-post-content table.table th {
  background-color: inherit !important;
  color: #ffffff !important;
}

/* Hover en filas - diseño fijo, sin cambio de color de texto */
.single-post-content table.table-hover tbody tr:hover,
.single-post-content .msa-export-wrapper table.table-hover tbody tr:hover,
.single-post-content table tbody tr:hover,
.single-post-content .msa-export-wrapper table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
}

/* CRÍTICO: Anular cualquier hover verde de estilos globales */
.single-post-content table:hover,
.single-post-content table:hover *,
.single-post-content .msa-export-wrapper:hover,
.single-post-content .msa-export-wrapper:hover *,
.single-post-content table tr:hover,
.single-post-content table tr:hover *,
.single-post-content table td:hover,
.single-post-content table th:hover,
.single-post-content .msa-export-wrapper tr:hover,
.single-post-content .msa-export-wrapper tr:hover *,
.single-post-content .msa-export-wrapper td:hover,
.single-post-content .msa-export-wrapper th:hover {
  color: #ffffff !important;
  /* Anular cualquier color de hover verde */
}

/* CRÍTICO: Respetar estilos inline de color en elementos específicos */
/* Si un elemento tiene style="color: ...", ese color tiene prioridad */
.single-post-content table td[style*="color"],
.single-post-content table th[style*="color"],
.single-post-content table tr[style*="color"],
.single-post-content .msa-export-wrapper td[style*="color"],
.single-post-content .msa-export-wrapper th[style*="color"],
.single-post-content .msa-export-wrapper tr[style*="color"],
.single-post-content table td[style*="color"] *,
.single-post-content table th[style*="color"] *,
.single-post-content table tr[style*="color"] *,
.single-post-content .msa-export-wrapper td[style*="color"] *,
.single-post-content .msa-export-wrapper th[style*="color"] *,
.single-post-content .msa-export-wrapper tr[style*="color"] * {
  /* Los estilos inline tienen máxima especificidad, solo asegurar que no se sobrescriban */
  color: revert !important;
}

/* Texto dentro de tablas - siempre blanco por defecto, pero permitir estilos inline */
.single-post-content table *:not([style*="color"]),
.single-post-content .msa-export-wrapper *:not([style*="color"]),
.single-post-content table.table *:not([style*="color"]),
.single-post-content .msa-export-wrapper table *:not([style*="color"]) {
  color: #ffffff !important;
}

/* Excepciones: mantener colores específicos de Bootstrap para estados */
.single-post-content table .text-success,
.single-post-content .msa-export-wrapper .text-success {
  color: #28a745 !important;
}

.single-post-content table .text-warning,
.single-post-content .msa-export-wrapper .text-warning {
  color: #ffc107 !important;
}

.single-post-content table .text-danger,
.single-post-content .msa-export-wrapper .text-danger {
  color: #dc3545 !important;
}

.single-post-content table .text-info,
.single-post-content .msa-export-wrapper .text-info {
  color: #17a2b8 !important;
}

/* Anular cualquier estilo de tema que pueda afectar las tablas */
body.dark .single-post-content table,
body.dark .single-post-content .msa-export-wrapper,
.dark .single-post-content table,
.dark .single-post-content .msa-export-wrapper {
  /* Forzar diseño fijo - ignorar estilos de tema oscuro */
  background-color: inherit !important;
  color: inherit !important;
}

/* Asegurar que las imágenes dentro de tablas mantengan su estilo */
.single-post-content table img,
.single-post-content .msa-export-wrapper img {
  vertical-align: middle;
  max-width: 100%;
  height: auto;
}

/* Preservar clases de Bootstrap básicas del contenido */
.single-post-content .d-flex {
  display: flex !important;
}

.single-post-content .justify-content-center {
  justify-content: center !important;
}

.single-post-content .col-10,
.single-post-content .col-sm-10,
.single-post-content .col-xs-12 {
  flex: 0 0 auto;
  width: 100%;
}

@media (min-width: 576px) {
  .single-post-content .col-sm-10 {
    width: 83.33333333%;
  }
}

.single-post-content .mb-2 {
  margin-bottom: 0.5rem !important;
}

.single-post-content .mt-1 {
  margin-top: 0.25rem !important;
}

.single-post-content .text-muted {
  color: #6c757d !important;
}

.single-post-content .w-100 {
  width: 100% !important;
}

.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.25rem !important;
}

.single-post-content .d-block {
  display: block !important;
}

/* Preservar estilos de texto del contenido */
.single-post-content .text-success {
  color: #198754 !important;
}

.single-post-content .text-warning {
  color: #ffc107 !important;
}

.single-post-content .text-danger {
  color: #dc3545 !important;
}

/* Modo oscuro: ajustar colores de texto */
html body.dark .single-post-content .text-muted,
body.dark .single-post-content .text-muted {
  color: #adb5bd !important;
}

/* ============================================
   GALERÍA DE MINIATURAS - Grid de Bootstrap
   ============================================ */
/* CRÍTICO: Sobrescribir ui-kit.css que fuerza width: 100% en todas las columnas */
/* ui-kit.css tiene: .single-post-content .col-6 { width: 100%; } */
/* Estas reglas deben estar al final para tener máxima prioridad */

/* CRÍTICO: NO modificar las tablas - ellas ya tienen sus propios estilos inline */
/* Las tablas vienen con estilos inline en el <style> tag dentro del contenido */
/* Solo aplicar display: flex a filas .row (las tablas NO tienen elementos .row) */

/* Restaurar el comportamiento del grid de Bootstrap para filas con miniaturas */
/* Las tablas NO tienen elementos .row, así que esto solo afectará a las miniaturas */
.single-post-content .row {
  display: flex !important;
  flex-wrap: wrap !important;
  margin-right: calc(var(--bs-gutter-x, 0.75rem) * -0.5) !important;
  margin-left: calc(var(--bs-gutter-x, 0.75rem) * -0.5) !important;
}

/* Móvil por defecto (col-6 = 50%) - ESPECIFICIDAD MÁXIMA */
/* IMPORTANTE: Solo aplicar a columnas específicas de miniaturas (col-6 col-sm-4 col-md-3 col-lg-2) */
/* Estas clases específicas solo se usan para miniaturas, no para tablas */
/* ui-kit.css aplica width: 100% a todas las columnas, debemos sobrescribirlo */
.single-post-content .row > div.col-6.col-sm-4.col-md-3.col-lg-2 {
  flex: 0 0 auto !important;
  width: 50% !important;
  max-width: 50% !important;
}

/* Tablet pequeña (≥576px) - col-sm-4 = 33.333% */
@media (min-width: 576px) {
  .single-post-content .row > div.col-6.col-sm-4.col-md-3.col-lg-2 {
    flex: 0 0 auto !important;
    width: 33.33333333% !important;
    max-width: 33.33333333% !important;
  }
}

/* Tablet (≥768px) - col-md-3 = 25% */
@media (min-width: 768px) {
  .single-post-content .row > div.col-6.col-sm-4.col-md-3.col-lg-2 {
    flex: 0 0 auto !important;
    width: 25% !important;
    max-width: 25% !important;
  }
}

/* Desktop (≥992px) - col-lg-2 = 16.666% */
@media (min-width: 992px) {
  .single-post-content .row > div.col-6.col-sm-4.col-md-3.col-lg-2 {
    flex: 0 0 auto !important;
    width: 16.66666667% !important;
    max-width: 16.66666667% !important;
  }
}

/* Asegurar padding correcto SOLO en columnas de miniaturas - sobrescribir ui-kit.css */
.single-post-content .row > div.col-6.col-sm-4.col-md-3.col-lg-2 {
  padding-right: calc(var(--bs-gutter-x, 0.75rem) * 0.5) !important;
  padding-left: calc(var(--bs-gutter-x, 0.75rem) * 0.5) !important;
  margin-top: 0 !important; /* ui-kit.css agrega margin-top, lo removemos */
}

/* CRÍTICO: Sobrescribir ui-kit.css que aplica display: block a .article-gallery-link */
/* El enlace debe ser block para funcionar */
.single-post-content .row .article-gallery-link {
  display: block !important; /* Mantener block para el enlace */
  width: 100%;
  height: 100%;
}


