:root {
  --primary: #92206f;
  --primary-dark: #6f1655;
  --accent: #1fa3e0;
  --nav-bg: #1a1d26;
  --text: #222;
  --muted: #6b7280;
  --bg: #efefef;
  --white: #ffffff;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  --radius: 10px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background: var(--bg);
}

img {
  max-width: 100%;
  display: block;
}

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

button {
  font: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 10px;
  top: 10px;
  background: #000;
  color: #fff;
  padding: 10px 12px;
  z-index: 9999;
}

.container {
  width: min(100% - 32px, var(--container));
  margin: 0 auto;
}

/* =========================
   TOPBAR
========================= */

.topbar {
  background: #f8f8f8;
  border-bottom: 1px solid #ddd;
  font-size: 0.95rem;
}

.topbar-inner {
  min-height: 42px;
  display: flex;
  align-items: center;
}

.topbar-left {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #666;
  flex-wrap: wrap;
}

.ultimas-link {
  color: var(--accent);
  font-weight: 700;
}

.ticker-label {
  font-weight: 700;
  color: var(--primary);
}

.ticker {
  position: relative;
  overflow: hidden;
  flex: 1;
  min-width: 0;
  height: 42px;
  display: flex;
  align-items: center;
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  white-space: nowrap;
  will-change: transform;
  animation: ticker-scroll 34s linear infinite;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-sep {
  color: #999;
  font-weight: 700;
}

.ultimas-link {
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
}

.ultimas-link:hover {
  text-decoration: underline;
}

@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}



/* =========================
   BRANDING
========================= */

.branding {
  background: #fff;
  padding: 34px 0 28px;
}

.branding-inner {
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand-logo img {
  width: 150px;
  height: auto;
  object-fit: contain;
}

.brand-text h1 {
  margin: 0;
  color: var(--primary);
  font-size: clamp(2.3rem, 4vw, 5rem);
  line-height: 1.05;
  font-weight: 900;
}

.brand-text p {
  margin: 10px 0 0;
  color: var(--primary);
  font-size: clamp(1rem, 1.7vw, 1.85rem);
  text-transform: uppercase;
}

/* =========================
   NAV
========================= */

.main-nav {
  background: var(--nav-bg);
  border-top: 4px solid var(--accent);
  position: relative;
  z-index: 30;
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.home-link {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  background: #2ca8df;
  color: #fff;
  font-size: 1.1rem;
  flex: 0 0 auto;
}

.nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: stretch;
}

.nav-item {
  position: relative;
}

.nav-link,
.dropdown-toggle {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0 18px;
  min-height: 46px;
  display: flex;
  align-items: center;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.nav-link:hover,
.dropdown-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
}

.dropdown {
  position: relative;
}

.dropdown-toggle {
  gap: 8px;
}

.dropdown-arrow {
  font-size: 0.72rem;
  opacity: 0.85;
  transition: transform 0.2s ease;
}

.dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid #ddd;
  box-shadow: var(--shadow);
  display: none;
  z-index: 100;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.dropdown-menu a {
  color: #222;
  display: block;
  padding: 14px 16px;
  border-bottom: 1px solid #eee;
  transition: background 0.2s ease, color 0.2s ease;
}

.dropdown-menu a:last-child {
  border-bottom: 0;
}

.dropdown-menu a:hover {
  background: #f5f7fb;
  color: var(--primary);
}

.dropdown.open .dropdown-menu {
  display: block;
}

.nav-toggle {
  margin-left: auto;
  display: none;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.5rem;
  min-height: 46px;
  padding: 0 12px;
  cursor: pointer;
}

/* =========================
   HOME / HERO
========================= */

.main-layout {
  padding: 34px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 14px;
}

.hero-main {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: #000;
}

.slider {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 430px;
}

.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.7s ease;
  display: block;
  color: #fff;
}

.slide.active {
  opacity: 1;
  z-index: 1;
}

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

.slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.72) 16%,
    rgba(0, 0, 0, 0.18) 52%,
    rgba(0, 0, 0, 0.06) 100%
  );
  pointer-events: none;
}

.slide-overlay {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
}

.hero-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-tags span {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 6px 10px;
  line-height: 1;
  color: #fff;
}

.hero-tags span:nth-child(1) {
  background: #3da5ff;
}

.hero-tags span:nth-child(2) {
  background: #67c45a;
}

.hero-tags span:nth-child(3) {
  background: #9e9e9e;
}

.hero-tags span:nth-child(4) {
  background: #c8a14b;
}

.slide-overlay h2 {
  margin: 0 0 14px;
  font-size: clamp(1.55rem, 2.15vw, 2.45rem);
  line-height: 1.12;
  max-width: 85%;
  text-transform: uppercase;
  text-shadow: 0 3px 16px rgba(0, 0, 0, 0.35);
}

.hero-meta {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  margin-top: 8px;
}

.slider-dots {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: flex;
  gap: 8px;
  z-index: 3;
}

.slider-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.slider-dots button.active {
  background: #fff;
}

.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: white;
  font-size: 20px;
  cursor: pointer;
  z-index: 4;
  transition: all 0.2s ease;
}

.slider-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.slider-arrow.prev {
  left: 16px;
}

.slider-arrow.next {
  right: 16px;
}

/* =========================
   CARDS GENERALES
========================= */

.general-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.general-card {
  position: relative;
  min-height: 210px;
  overflow: hidden;
  background: #111;
}

.general-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.general-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.76), rgba(0, 0, 0, 0.18));
}


.general-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease;
}

.general-card:hover {
  transform: translateY(-3px);
}

.general-card:hover img {
  transform: scale(1.03);
}

.general-overlay {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
}

.general-overlay h3 {
  margin: 0 0 8px;
  font-size: clamp(0.95rem, 1.2vw, 1.3rem);
  line-height: 1.2;
  text-transform: uppercase;
}

.general-overlay p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}

/* =========================
   NEWS
========================= */

.news-section {
  margin-top: 42px;
}

.section-title {
  max-width: var(--container);
  margin: 0 auto 32px;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 4px;
}

.section-title span {
  width: 6px;
  height: 34px;
  background: var(--accent);
  border-radius: 4px;
  display: inline-block;
}

.section-title h2 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1.2;
  color: var(--primary);
  font-weight: 800;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.news-card {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.news-card img {
  width: 100%;
  height: 270px;
  object-fit: cover;
}

.news-card {
  text-decoration: none;
  color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

.news-card:hover img {
  transform: scale(1.03);
}

.news-card img {
  transition: transform 0.35s ease;
}

.news-content {
  padding: 18px 18px 20px;
}

.news-cat {
  display: inline-block;
  font-size: 0.86rem;
  font-weight: 700;
  color: #1788cf;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.news-content h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  line-height: 1.25;
}

.news-content p {
  margin: 0;
  color: #5c6470;
  line-height: 1.45;
  font-size: 0.98rem;
}

/* =========================
   QUICK LINKS
========================= */

.quick-links {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.quick-card {
  background: #fff;
  border-top: 4px solid var(--accent);
  padding: 18px 18px 20px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

.quick-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.quick-card p {
  margin: 0;
  color: #5c6470;
  line-height: 1.45;
}

/* =========================
   FOOTER
========================= */

.site-footer {
  margin-top: 36px;
  background: #1c212b;
  color: #fff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  padding: 36px 0;
}

.footer-grid h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.footer-grid p {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.84);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
  padding: 16px;
  color: rgba(255, 255, 255, 0.82);
}

.footer-bottom a {
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* =========================
   ARTICLE
========================= */

.article-layout {
  padding: 28px 0 40px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #6b7280;
  font-size: 0.95rem;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--accent);
  font-weight: 700;
}

.article-card {
  background: #fff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  padding: 28px;
}

.article-header {
  margin-bottom: 22px;
}

.article-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.article-tags span {
  background: #eaf6fd;
  color: #0b74b5;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 999px;
}

.article-header h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1.08;
  color: #1f2937;
}

.article-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #6b7280;
  font-size: 0.95rem;
}

.article-hero {
  margin: 0 0 24px;
}

.article-hero img {
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.article-content {
  font-size: 1.08rem;
  line-height: 1.8;
  color: #374151;
}

.article-content p {
  margin: 0 0 20px;
}

.related-news {
  margin-top: 34px;
}

/* =========================
   PÁGINAS INTERNAS
========================= */

.page-layout {
  padding: 28px 0 40px;
}

.page-header {
  margin-bottom: 22px;
}

.page-title {
  margin: 0 0 10px;
  font-size: clamp(2rem, 3vw, 3rem);
  color: #1f2937;
}

.page-subtitle {
  margin: 0;
  color: #6b7280;
  font-size: 1.05rem;
}

.page-card {
  background: #ffffff;
  padding: 28px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
  line-height: 1.75;
}

.page-card p {
  margin: 0 0 18px;
}

.page-image {
  margin: 20px 0 28px;
}

.page-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

/* =========================
   CONTACTO
========================= */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.contact-title {
  margin: 0 0 18px;
  font-size: 1.5rem;
  color: #1f2937;
}

.contact-list p {
  margin: 0 0 12px;
  color: #374151;
}

.map-box {
  margin-top: 22px;
  overflow: hidden;
}

.contact-form {
  display: grid;
  gap: 12px;
}

.contact-form label {
  font-weight: 700;
  color: #374151;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid #d1d5db;
  padding: 12px 14px;
  font: inherit;
  background: #fff;
  color: #111827;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(31, 163, 224, 0.2);
  border-color: var(--accent);
}

.contact-btn {
  margin-top: 8px;
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
}

.contact-btn:hover {
  background: var(--primary-dark);
}

/* =========================
   GALERÍA
========================= */

.gallery-section {
  margin-top: 40px;
  padding: 60px 0;
  background: var(--bg);
}

.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.16);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.gallery-item:hover img {
  transform: scale(1.08);
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  z-index: 9999;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-image {
  max-width: min(1100px, 92vw);
  max-height: 88vh;
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.lightbox-close {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: scale(1.06);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .general-grid {
    grid-template-columns: 1fr 1fr;
  }

  .news-grid,
  .quick-links {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .branding-inner {
    flex-direction: column;
    text-align: center;
  }

    .topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 0;
  }

  .ticker {
    width: 100%;
    height: 34px;
  }

  .ticker-track {
    animation-duration: 26s;
  }



  .brand-logo img {
    width: 120px;
  }

  .nav-toggle {
    display: block;
  }

  .nav-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    flex-direction: column;
    display: none;
  }

  .nav-list.open {
    display: flex;
  }

  .nav-link,
  .dropdown-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 14px 18px;
  }

  .dropdown-menu {
    position: static;
    min-width: 100%;
    border: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    border-radius: 0;
  }

  .dropdown-menu a {
    padding: 12px 18px;
    background: #fff;
  }

  .hero-main,
  .slider {
    min-height: 360px;
  }

  .slide-overlay h2 {
    max-width: 100%;
    font-size: clamp(1.3rem, 5vw, 2rem);
  }

  .article-card {
    padding: 18px;
  }

  .article-header h1 {
    font-size: clamp(1.7rem, 6vw, 2.4rem);
  }

  .article-content {
    font-size: 1rem;
    line-height: 1.7;
  }

  .page-card {
    padding: 18px;
  }

  .page-title {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .topbar {
    font-size: 0.86rem;
  }

  .home-link {
    width: 42px;
    height: 42px;
  }

    .topbar-left {
    gap: 6px;
    font-size: 0.82rem;
  }

  .ticker {
    height: 30px;
  }

  .ultimas-link {
    font-size: 0.84rem;
  }


  .general-grid {
    grid-template-columns: 1fr;
  }

  .general-card {
    min-height: 220px;
  }

  .news-card img {
    height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .slider-arrow {
    width: 38px;
    height: 38px;
    font-size: 18px;
  }

  .slider-arrow.prev {
    left: 10px;
  }

  .slider-arrow.next {
    right: 10px;
  }

  .slider-dots {
    right: 12px;
    bottom: 14px;
  }
}


.general-card {
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 0.25s ease;
}

.general-card:hover {
  transform: translateY(-3px);
}

.general-card:hover img {
  transform: scale(1.03);
}

@media (max-width: 520px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    margin-bottom: 24px;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .lightbox {
    padding: 16px;
  }

  .lightbox-close {
    top: 12px;
    right: 12px;
    width: 42px;
    height: 42px;
    font-size: 1.8rem;
  }
}

.slide {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hidden-field {
  display: none;
}

.contact-form textarea {
  resize: vertical;
  min-height: 140px;
}

.contact-form input,
.contact-form textarea {
  border-radius: 8px;
}

.contact-btn {
  border-radius: 8px;
}