:root {
  --primary: #A4262C;
  --text: #222;
  --muted: #6b7280;
  --border: #e5e7eb;
  --bg: #f7f7f8;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, 'Helvetica Neue', Arial, 'Noto Sans', 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
  color: var(--text);
  background: var(--bg);
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.carousel-section {
  padding: 40px;
  margin-bottom: 40px;
  display: flex;
  gap: 40px;
  align-items: stretch;
  justify-content: space-around;
  max-width: 1500px;
  margin: 0 auto;
}

.carousel-container {
  max-width: 900px;
  position: relative;
  background: #A4262C;
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  flex: 1;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.carousel-title {
  text-align: center;
  color: white;
  font-size: 2.5rem;
  margin-bottom: 30px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  font-weight: 700;
  margin-top: 0;
}

.carousel {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.carousel-inner {
  position: relative;
  width: 100%;
  height: 400px;
}

.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(100%);
}

.carousel-item.active {
  opacity: 1;
  transform: translateX(0);
}

.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 15px;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
  color: white;
  padding: 60px 30px 30px;
  border-radius: 0 0 15px 15px;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.6s ease;
}

.carousel-item.active .carousel-caption {
  transform: translateY(0);
  opacity: 1;
}

.carousel-caption h3 {
  font-size: 1.8rem;
  margin-bottom: 0px;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.carousel-caption p {
  font-size: 1rem;
  line-height: 1.5;
  opacity: 0.9;
  max-width: 600px;
  margin-bottom: 15px;
}

.carousel-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 15px;
  flex-wrap: wrap;
}

.carousel-badge {
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.carousel-price {
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  padding: 6px 15px;
  border-radius: 20px;
  font-weight: 800;
  font-size: 1.1rem;
}

.carousel-btn {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
  padding: 12px 24px;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: inline-block;
  text-decoration: none;
}

.carousel-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.carousel-controls {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border: none;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  z-index: 10;
  display: none;
}

.carousel-controls:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-50%) scale(1.1);
}

.carousel-prev {
  left: 20px;
}

.carousel-next {
  right: 20px;
}

.carousel-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: white;
  transform: scale(1.2);
}

.indicator:hover {
  background: rgba(255, 255, 255, 0.7);
}

/* Progress bar */
.progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 0 0 15px 15px;
  overflow: hidden;
  z-index: 5;
}

.progress-bar {
  height: 100%;
  background: white;
  width: 100%;
  transform: translateX(-100%);
  transition: none;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.progress-bar.animate {
  animation: progressAnimation 5s linear;
}

.second-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 50%;
}

.article-second-content {
  border: 1px solid #A4262C;
  display: flex;
  align-items: center;
  border-radius: 12px;
  padding: 12px;
  border-left: 8px solid #A4262C;
}

.article-second-content img {
  width: 64px;
  height: 64px;
}

.left-zone {
  margin-left: 20px;
}

.left-zone h2 {
  margin-bottom: 0;
}

.left-zone p {
  margin-top: 12px;
}

.logo {
  width: 150px;
  margin-right: 50px;
}

@keyframes progressAnimation {
  from {
    transform: translateX(-100%);
  }

  to {
    transform: translateX(0%);
  }
}

.hero {
  background: var(--primary);
  color: #fff;
  padding: 0 28px;
}

.hero-inner {
  padding: 48px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.hero-title {
  margin: 0 0 6px;
  font-size: 30px;
  font-weight: 800;
}

.hero-sub {
  margin: 0;
  opacity: .9;
}

.search {
  position: relative;
  margin-top: 18px;
}

.search input {
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: none;
  padding: 0 104px 0 14px;
  font-size: 16px;
  color: #111;
}

.search button {
  position: absolute;
  right: 4px;
  top: 4px;
  bottom: 4px;
  padding: 0 16px;
  background: #ffffff22;
  color: #fff;
  border: 0;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
}

.search button:hover {
  background: #ffffff33;
}

.grid {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 16px;
  padding: 28px 0 40px;
}

@media (min-width: 640px) {
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow .2s ease, transform .2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  box-shadow: 0 10px 26px rgba(0, 0, 0, .08);
  transform: translateY(-2px);
}

.card-media {
  width: 100%;
  aspect-ratio: 16/9;
  background: #ddd center/cover no-repeat;
}

.card-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  height: 42px;
  overflow: hidden;
}

.card-meta {
  color: var(--muted);
  font-size: 13px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #f9fafb;
  color: #374151;
}

.badge.primary {
  background: #fff2f3;
  color: var(--primary);
  border-color: #ffdfe1;
}

.price {
  margin-left: auto;
  font-weight: 800;
  color: var(--primary);
}

.card-actions {
  padding: 12px 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid var(--primary);
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.btn:hover {
  filter: brightness(0.95);
}

.empty {
  background: #fff;
  border: 1px dashed var(--border);
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}

/* footer { border-top: 1px solid var(--border); padding: 18px 0; color: #6b7280; font-size: 14px; } */


.footer_wrapper {
  background: #111;
  color: #fff;
  justify-content: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#footer {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
}

#footer:after,
/* .footer_seo:after{ content:''; clear:both; width:100%; display:block;} */
.footer_seo {
  width: 100%;
  font-size: 13px;
  color: #fff;
  padding: 20px 0px;
  display: flex;
}

.footer_seo a,
.footer_data a {
  color: #fff !important;
  text-decoration: none;
}

.footer_seo .tit.col-4-3.foot_progs {
  float: left;
  width: 75%;
}

.footer_seo .tit.foot_cust {
  width: 25%;
  float: left;
}

.footer_seo .tit.col-4-3.foot_progs .column0,
.tit.col-4-3.foot_progs .column1 {
  width: 50%;
  float: left;
  margin: 0;
}

.footer_seo .tit.col-4-3.foot_progs .column0 li,
.tit.col-4-3.foot_progs .column1 li {
  padding-bottom: 7px;
}

.footer_data {
  margin: 20px 50px 0 50px;
  padding: 20px 0px 10px;
  border-top: 1px solid #fff;
  clear: both;
  font-size: 10px;
}

.footer_social {
  display: none;
}

.footer_seo .tit.col-4-3.foot_progs .column0 ul,
.footer_seo .tit.col-4-3.foot_progs .column1 ul {
  padding-left: 0px;
}

.patrocinadores {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 25px 0px;
}

.patrocinadores img {
  width: 100%;
  height: auto;
}

.logos_enae_fuerm_rm {
  width: 90%;
  max-width: 550px;
  margin: 40px auto;
  display: block;
}

.block__content {
  display: flex;
  justify-content: center;
}

#block-block-26 {
  background-color: #111;
}


.img-wrap {
  height: 100%;
}

.img-wrap img {
  height: 100% !important;
  object-fit: cover;
}


@media (max-width: 900px) {
  .carousel-section {
    flex-direction: column;
    padding: 40px 20px;
  }

  .carousel-container {
    width: 100%;
  }

  .second-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .carousel-title {
    font-size: 2rem;
    margin-bottom: 20px;
  }

  .carousel-inner {
    height: 300px;
  }

  .carousel-caption h3 {
    font-size: 1.3rem;
  }

  .carousel-caption p {
    font-size: 0.9rem;
  }

  .carousel-controls {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .carousel-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  @media (max-width: 500px) {
    #footer {
      flex-direction: column;
    }

    .hero-inner {
      flex-direction: column;
    }

    .logo {
      margin: 0 0 20px 0;
    }
  }
}


/* animaciones */
.card {
  opacity: 0;
  transform: translateY(30px) scale(0.95);
  animation-fill-mode: both;
  will-change: opacity, transform;
}

.card.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.card.animate-fade-up {
  animation: fadeUp 0.6s ease-out forwards;
}

.card.animate-fade-left {
  animation: fadeLeft 0.6s ease-out forwards;
}

.card.animate-fade-right {
  animation: fadeRight 0.6s ease-out forwards;
}

.card.animate-zoom {
  animation: zoomIn 0.5s ease-out forwards;
}

.card.animate-slide-up {
  animation: slideUp 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.card:hover {
  box-shadow: 0 20px 40px rgba(164, 38, 44, 0.15);
  transform: translateY(-8px) scale(1.02);
  border-color: var(--primary);
}

.card-start-date {
  position: absolute;
  top: 45px;
  right: -35px;
  background: rgba(193, 51, 58, 0.9);
  color: #fff;
  padding: 4px 30px;
  font-size: 11px;
  font-weight: bold;
  text-align: center;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
  min-width: 80px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeLeft {
  from {
    opacity: 0;
    transform: translateX(-40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeRight {
  from {
    opacity: 0;
    transform: translateX(40px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.8);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(60px) rotateX(15deg);
  }

  to {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

@media (prefers-reduced-motion: reduce) {

  .card,
  .card:hover {
    transition: none;
    animation: none;
  }

  .card {
    opacity: 1;
    transform: none;
  }
}