/**
 * @file
 * Estilos principales de CasaEditora: Hero + Footer + componentes generales.
 */

/* ========================================
   HERO SECTION
   ======================================== */
.page-wrapper :focus{
  box-shadow: unset !important;
}
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1.1);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1); }
  to { transform: scale(1.1); }
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /*background: linear-gradient(135deg, rgba(26, 58, 92, 0.85) 0%, rgba(26, 26, 46, 0.7) 100%);*/
}

.hero-content--centered {
  position: absolute;
  z-index: 2;
  bottom: 190px;
  text-align: left;
  padding: 0 40px;
}

@media (max-width: 575.98px) {
  .hero-content--centered {
    bottom: 0;
  }
}

.hero-content--centered h1 {
  font-weight: 700;
  color: var(--color-white);
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-description {
  color: var(--color-white);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 30px;
  text-align: left;
}

.hero-description p {
  margin: 0;
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 10px 25px;
  border-radius: 30px;
  transition: var(--transition);
}

.hero-btn:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--color-white);
  color: var(--color-white);
}

.hero-btn i {
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.hero-side-text {
  position: absolute;
  bottom: 60px;
  left: 0;
  z-index: 2;
  background: #0670b2;;
  padding: 30px 40px;
  max-width: 350px;
}

.hero-side-text span {
  color: var(--color-white);
  font-size: 42px;
  font-weight: 800;
  line-height: 1.1;
  text-transform: uppercase;
}

/* ========================================
   ABOUT - QUIÉNES SOMOS
   ======================================== */
.about-grid {
  align-items: center;
}

.about-images {
  position: relative;
  min-height: 450px;
}

.about-img-main {
  position: absolute;
  top: 0;
  right: 0;
  width: 75%;
  z-index: 1;
}

.about-img-main img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  width: 100%;
  height: 350px;
  object-fit: cover;
}

.about-img-secondary {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 55%;
  z-index: 2;
  border: 6px solid var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.about-img-secondary img {
  height: 280px;
  object-fit: cover;
}

.about-badge {
  position: absolute;
  top: 15%;
  left: -10px;
  width: 180px;
  height: 180px;
  background: #0670b2;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: var(--shadow-md);
}

.about-badge .badge-content,
.about-badge .badge-content * {
  color: white !important;
  background: transparent !important;
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
}

.badge-text {
  color: var(--color-white);
  font-size: 13px;
  font-weight: 400;
}

.badge-year {
  color: var(--color-white);
  font-size: 30px;
  font-weight: 700;
}

.about-content .section-subtitle {
  color: var(--color-text-light);
  font-size: 12px;
}

.about-content .section-subtitle::before {
  background: #0670b2;;
}

.about-desc,
.about-desc * {
  color: var(--color-text-light) !important;
  background-color: transparent !important;
  background: transparent !important;
  font-family: var(--font-primary) !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.about-desc {
  margin-bottom: 25px;
}

.about-desc p {
  margin: 0 0 10px !important;
}

.about-desc p:last-child {
  margin-bottom: 0 !important;
}

.about-features,
.about-features * {
  color: var(--color-text) !important;
  background-color: transparent !important;
  background: transparent !important;
  font-family: var(--font-primary) !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.about-features {
  margin-bottom: 30px;
}

.about-features ul {
  padding-left: 18px;
  list-style: disc;
}

.about-features ul li {
  margin-bottom: 8px;
  font-weight: 500;
}

.about-features ul li::marker {
  color: #0670b2;
}

.btn-read-more {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-white);
  background: #0670b2;;
  padding: 12px 30px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.btn-read-more:hover {
  background: #2563eb;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

/* ========================================
   STATISTICS - PARALLAX
   ======================================== */
.stats {
  position: relative;
  padding: 80px 0;
  overflow: hidden;
}

.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  inset: -50% 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  will-change: transform;
}

.stats-overlay {
  position: absolute;
  inset: 0;
  background: rgb(12 20 69 / 41%);}

.stats-decorations {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.deco-circle {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
}

.deco-circle-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -50px;
}

.deco-circle-2 {
  width: 200px;
  height: 200px;
  bottom: -60px;
  left: 10%;
}

.deco-line {
  position: absolute;
  background: rgba(255, 255, 255, 0.05);
}

.deco-line-1 {
  width: 1px;
  height: 100%;
  left: 25%;
  top: 0;
}

.deco-line-2 {
  width: 1px;
  height: 100%;
  right: 25%;
  top: 0;
}

.stats-content-wrapper {
  position: relative;
  z-index: 2;
}

.stats-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
}

.stat-item {
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-md);
}

.stat-item:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-5px);
}

.stat-icon {
  font-size: 40px;
  color: rgba(59, 130, 246, 0.8);
  margin-bottom: 15px;
  transition: var(--transition);
}

.stat-item:hover .stat-icon {
  color: rgba(59, 130, 246, 1);
  transform: scale(1.15);
}

.stat-icon i {
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.stat-item:hover .stat-icon i {
  filter: drop-shadow(0 0 20px rgba(59, 130, 246, 0.6));
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1;
  margin-bottom: 8px;
  transition: var(--transition);
}

.stat-item:hover .stat-number {
  color: #0670b2;;
}

.stat-label {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 400;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  display: inline-block;
  transition: var(--transition);
}

.stat-item:hover .stat-label {
  color: var(--color-white);
  border-color: #0670b2;;
  background: rgba(59, 130, 246, 0.2);
}

.stats-description,
.stats-description * {
  color: rgba(255, 255, 255, 0.9) !important;
  background-color: transparent !important;
  background: transparent !important;
  font-family: var(--font-primary) !important;
}

.stats-description {
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.stats-description h2,
.stats-description h3 {
  color: black !important;
  font-weight: 700 !important;
  margin-bottom: 15px;
}

.stats-description p {
  line-height: 1.8 !important;
  font-size: 15px !important;
}

/* ========================================
   EXPLORE / PRÓXIMOS LANZAMIENTOS
   ======================================== */
.explore {
  background: var(--color-white);
}

.explore-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
}

.explore-layout > *:not(.explore-heading):not(.explore-card) {
  display: contents;
}

.explore-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
}

.explore-heading .section-subtitle {
  display: block;
}

.explore-heading .section-title {
  max-width: 500px;
  margin-bottom: 0;
}

.explore-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
}


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

.explore-card:hover img {
  transform: scale(1.1);
}

.explore-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 25px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.explore-card-content h3 {
  color: transparent;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.explore-card-content p {
  color: #fff;
  font-size: 13px;
  margin: 5px 0 0;
}

.explore-tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  border-radius: 3px;
  color: var(--color-white);
  margin-bottom: 8px;
}

.explore-tag--red { background: #0670b2; }
.explore-tag--blue { background: #0670b2;; }
.explore-tag--green { background: #22c55e; }

/* ========================================
   CATEGORIES / PROCESO EDITORIAL
   ======================================== */
.categories {
  padding-bottom: 0;
}

.categories-header {
  margin-bottom: 40px;
}

.categories-desc,
.categories-desc * {
  color: var(--color-text-light);
  background-color: transparent;
  background: transparent;
  font-family: var(--font-primary);
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.categories-desc svg * {
  color: #fff;
}
.categories-desc i {
  color: #fff;
}

.categories-content,
.categories-content * {
  background-color: transparent !important;
  background: transparent !important;
  font-family: var(--font-primary) !important;
}

.categories-content {
  margin-bottom: 0;
}

/* Category cards (si el contenido tiene estructura de tarjetas) */
.categories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 0;
}

.category-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 25px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: var(--transition);

}

.category-card:hover {
  box-shadow: var(--shadow-md);
  border-color: #0670b2;
  transform: translateY(-3px);
}

.category-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  font-size: 20px;
  color: #0670b2;
  flex-shrink: 0;
  transition: var(--transition);
}

.category-card:hover .category-icon {
  background: #0670b2 !important;
  color: black !important;
  border-color: #0670b2 !important;
}

.category-card:hover .category-icon svg {
  fill: var(--color-white);
}

.category-card h4 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 3px;
}

.category-card p {
  font-size: 12px;
  /*color: var(--color-text-light);*/
  color: #fff;
}

/* Video CTA */
.video-cta-wrapper {
  position: relative;
  margin-top: 60px;
}

.video-cta-badge {
  position: absolute;
  right: 312px;
  top: -60px;
  background: #0670b2;
  color: var(--color-white);
  padding: 25px 30px;
  width: 180px;
  text-align: center;
  z-index: 5;
  border-radius: var(--radius-sm);
}

.video-cta-badge i {
  font-size: 28px;
  margin-bottom: 10px;
  display: block;
}

.video-cta-badge p {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
}

.video-cta {
  position: relative;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.video-cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.video-cta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.video-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: none;
  background: #0670b2;
  color: var(--color-white);
  font-size: 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  position: relative;
  margin-bottom: 25px;
}

.play-btn::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2px solid white;
  animation: pulseRing 2s infinite;
}

@keyframes pulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.4); opacity: 0; }
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px white;
}

.play-btn i {
  margin-left: 4px;
}

.video-cta-content h3 {
  color: var(--color-white);
  font-size: 28px;
  font-weight: 600;
  max-width: 500px;
  margin: 0;
}

/* YouTube Modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgb(0 0 0 / 36%);
  align-items: center;
  justify-content: center;
}

.video-modal.active {
  display: flex;
}

.video-modal-content {
  position: relative;
  width: 80%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
}

.video-modal-content iframe {
  width: 100%;
  height: 100%;
  border-radius: var(--radius-md);
}

.video-modal-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 36px;
  cursor: pointer;
  transition: var(--transition);
}

.video-modal-close:hover {
  color: #0670b2;
  transform: scale(1.2);
}

/* ========================================
   SERVICES / CÓMO HACER UN LIBRO
   ======================================== */
.services {
  position: relative;
  overflow: hidden;
}

.services-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center right;
}

.services-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(245, 245, 245, 1) 0%, rgba(245, 245, 245, 0.95) 55%, rgba(245, 245, 245, 0.4) 100%);
}

.services-inner {
  position: relative;
  z-index: 2;
  max-width: 650px;
  margin: auto;
}

.services-inner .section-subtitle::before {
  background: #0670b2;;
}

.services-desc,
.services-desc * {
  color: var(--color-text-light) !important;
  /*background-color: transparent !important;*/
  /*background: transparent !important;*/
  font-family: var(--font-primary) !important;
  font-size: 14px !important;
  line-height: 1.8 !important;
}

.services-desc {
  margin-top: 20px;
}

.services-desc p {
  margin: 0 0 10px !important;
}

.services-desc p:last-child {
  margin-bottom: 0 !important;
}

.services-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  margin-top: 30px;
}

.service-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 20px;
  background: var(--color-white);
  border-radius: var(--radius-md);
  transition: var(--transition);
  cursor: pointer;
}

.service-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.service-icon {
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #0670b2;;
  flex-shrink: 0;
}

.service-info h4 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 2px;
}

.service-info a {
  font-size: 12px;
  color: var(--color-text-light);
  transition: var(--transition);
}

.service-info a:hover {
  color: #0670b2;;
}

/* ========================================
   FOOTER
   ======================================== */
.cae-footer {
  background: var(--color-dark);
  padding: 30px 0;
  text-align: center;
}

.cae-footer .footer-content {
  max-width: var(--container-width);
  margin: 0 auto;
}

.cae-footer p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  margin: 0;
}

/* ========================================
   SCROLL TO TOP BUTTON
   ======================================== */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 50px;
  height: 50px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  box-shadow: var(--shadow-md);
}

.scroll-to-top:hover {
  background: #0670b2;
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

/* ========================================
   CATÁLOGO DE LIBROS / PROJECTS CAROUSEL
   ======================================== */
.projects {
  background: var(--color-white);
  padding-bottom: 100px;
}

.projects .section-subtitle,
.team .section-subtitle,
.blog .section-subtitle {
  display: block;
  width: fit-content;
  margin: 0 auto 12px;
}

.projects .section-title,
.team .section-title,
.blog .section-title {
  text-align: center;
}

.projects-carousel-wrapper {
  position: relative;
  margin-top: 40px;
  padding: 0 30px;
}

.projects-carousel {
  display: flex;
  gap: 20px;
  overflow: hidden;
  scroll-behavior: smooth;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.projects-carousel:active {
  cursor: grabbing;
}

.projects-carousel > * {
  display: contents;
}

.project-card {
  flex: 0 0 calc(25% - 15px);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  border: 1px solid var(--color-border);
}

.project-card-img {
  width: 100%;
  overflow: hidden;
  flex-shrink: 0;
}

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

.project-card:hover .project-card-img img {
  transform: scale(1.1);
}

.project-overlay {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px;
  background: var(--color-white, #fff);
  transition: var(--transition);
}

.project-card:hover .project-overlay {
  background: var(--color-white, #fff);
}

.project-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--color-primary, #0670b2);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.project-overlay h4 {
  color: var(--color-dark, #1a1a1a);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.project-desc,
.project-desc p {
  color: var(--color-text, #555) !important;
  background: transparent !important;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}

.project-link {
  color: #0670b2;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: var(--transition);
  margin-top: auto;
}

.project-link:hover {
  color: var(--color-primary, #0670b2);
  text-decoration: underline;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text);
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: var(--transition);
}

.carousel-btn:hover {
  background: #0670b2;
  color: var(--color-white);
  border-color: #0670b2;
}

.carousel-btn:focus,
.carousel-btn:focus-visible {
  outline: 2px solid #0670b2;
  outline-offset: 2px;
  border-color: #0670b2;
}

.carousel-btn--prev { left: 0; }
.carousel-btn--next { right: 0; }

/* ========================================
   BLOQUE PROMOCIONAL / DOWNLOAD
   ======================================== */
.download {
  position: relative;
  min-height: 500px;
  overflow: hidden;
}

.download-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}

.download-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(26, 26, 46, 0.95) 0%, rgba(26, 26, 46, 0.85) 50%, rgba(26, 26, 46, 0.4) 100%);
}

.download-accent {
  position: absolute;
  top: -80px;
  right: -80px;
  width: 300px;
  height: 300px;
  background: #0670b2;
  border-radius: 50%;
  z-index: 1;
}

.download-inner {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 100px 0;
  gap: 40px;
}

.download-content {
  max-width: 500px;
}

.download-content h2 {
  color: var(--color-white);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.2;
}

.download-desc,
.download-desc p {
  color: rgba(255, 255, 255, 0.6) !important;
  background: transparent !important;
  font-size: 14px;
  margin-bottom: 25px;
  line-height: 1.7;
}

.section-subtitle--white {
  color: #0670b2 !important;
}

.section-subtitle--white::before {
  background: var(--color-white) !important;
}

.download-buttons {
  display: flex;
  gap: 15px;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 600;
  color: var(--color-white);
  text-decoration: none;
  transition: var(--transition);
}
.download-btn--sitio {
  background: white;
  color: black;
}

.download-btn--sitio:hover {
  background: white;
  color: black !important;
}
.download-btn--google {
  background: #0670b2;
}

.download-btn--apple {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.download-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--color-white);
}

.download-btn i {
  font-size: 18px;
}

/* ========================================
   CONSEJO EDITORIAL / TEAM
   ======================================== */
.team {
  background: var(--color-white);
  text-align: center;
}


.team-group-title {
  text-align: center;
  font-size: 28px;
  font-weight: 600;
  color: #0670b2;
  margin-top: 40px;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

.team-group-title:first-child {
  margin-top: 10px;
}

.team-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 44px;
  margin-top: 30px;
  justify-content: center;
}
.team-grid-w {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 30px;
  justify-content: center;
}

.team-grid > *:not(.team-card) {
  display: contents;
}


.team-card {
  flex: 0 0 calc(25% - 23px);
  max-width: calc(19% - 23px);
}

.team-card {
  text-align: center;
  transition: var(--transition);
  min-width: 0;
}

.team-card:hover {
  transform: translateY(-5px);
}
.team-card-w {
  flex: 0 0 calc(20% - 20px);
  max-width: calc(12% - 23px);
}

.team-card-w {
  text-align: center;
  transition: var(--transition);
  min-width: 0;
}

.team-card-w:hover {
  transform: translateY(-5px);
}

.team-photo {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.team-card:hover .team-photo img {
  transform: scale(1.05);
}
.team-card-w:hover .team-photo img {
  transform: scale(1.05);
}

.team-card h4 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.team-card-w h4 {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
}

.team-card > p {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}
.team-card-w > p {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 12px;
}

.team-social {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.team-social a {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  /*border: 1px solid var(--color-border);*/
  /*border-radius: 50%;*/
  border-radius: 0%;
  font-size: 14px;
  color: var(--color-text-light);
  transition: var(--transition);
  text-decoration: none;
  /*background-color: #0071b8;*/
}

.team-social a:hover {
  /* background: var(--color-accent-red, #e74c3c);*/
  color: var(--color-white);
  /*border-color: var(--color-accent-red, #e74c3c);*/
}

/* ========================================
   NOTICIAS / BLOG
   ======================================== */
.blog {
  background: var(--color-white);
}


.blog .section-title {
  margin-bottom: 50px;
}

.blog-grid > *:not([class*="col-"]),
.blog-grid > * > *:not([class*="col-"]) {
  display: contents;
}

.blog-grid [class*="col-"] {
  padding-left: calc(var(--bs-gutter-x, 1.5rem) * .5);
  padding-right: calc(var(--bs-gutter-x, 1.5rem) * .5);
  margin-bottom: var(--bs-gutter-y, 1.5rem);
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
  display: flex;
  flex-direction: column;
}

.blog-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.blog-image {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-date {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #0670b2;
  color: var(--color-white);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  text-align: center;
  font-size: 11px;
  line-height: 1.2;
}

.blog-body {
  padding: 25px;
  padding-top: 10px !important;
}

.blog-meta {
  display: flex;
  gap: 20px;
  margin-bottom: 12px;
}

.blog-meta span {
  font-size: 12px;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-meta i {
  color: #0670b2;
  font-size: 11px;
}

.blog-body h4 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
}

.blog-body > p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0px;
}

.blog-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 15px;
}

.blog-tag {
  font-size: 12px;
  color: #0670b2;
  font-weight: 500;
  position: relative;
  padding-left: 12px;
}

.blog-tag::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #0670b2;
  border-radius: 50%;
}

.blog-arrow {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0670b2;
  color: var(--color-white);
  border-radius: 50%;
  font-size: 12px;
  transition: var(--transition);
  text-decoration: none;
}

.blog-arrow:hover {
  background: #0670b2;
  transform: translateX(3px);
  color: var(--color-white);
}

/* ========================================
   GALERÍA (staircase layout)
   ======================================== */
.gallery {
  background: var(--color-light);
}

.gallery-staircase {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 30px;
  align-items: start;
}

.gallery-staircase > * {
  display: contents;
}

.gallery-heading {
  grid-column: 1;
  grid-row: 1;
  padding-top: 20px;
  display: block;
}

.gallery-title {
  font-size: 42px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 8px;
}

.gallery-desc {
  color: var(--color-text-light);
  font-size: 14px;
  max-width: 300px;
}

.gallery-item--1 {
  grid-column: 2;
  grid-row: 1 / 3;
  margin-top: 60px;
  display: block;
}

.gallery-item--2 {
  grid-column: 3;
  grid-row: 1 / 3;
  align-self: start;
  display: block;
}

.gallery-item {
  overflow: hidden;
  border-radius: var(--radius-md);
  display: block;
}

.gallery-item img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.gallery-caption {
  text-align: left;
  font-size: 24px;
  font-weight: 500;
  color: var(--color-text);
  margin-top: 12px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ========================================
   CONTÁCTENOS
   ======================================== */
.contactenos {
  background: var(--color-light);
}

.contactenos-heading {
  text-align: center;
  margin-bottom: 10px;
}

.contactenos-autoridades {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}

.autoridad-card {
  display: inline-block;
  text-align: center;
  margin: 0 20px 20px;
}

.autoridad-foto {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 15px;
}

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

.autoridad-info h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.autoridad-cargo {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 8px;
}

.autoridad-email {
  font-size: 13px;
  color: #0670b2;;
  text-decoration: none;
  transition: var(--transition);
}

.autoridad-email:hover {
  color: #0670b2;
}

.autoridad-desc,
.autoridad-desc p {
  font-size: 13px;
  color: var(--color-text-light);
  margin-top: 8px;
  line-height: 1.6;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.contactenos-intro {
  font-size: 14px;
  color: var(--color-text-light);
  margin-bottom: 15px;
  font-weight: 500;
}

.contactenos-datos {
  display: flex;
  flex-direction: column;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-item:last-child {
  border-bottom: none;
}

.contact-icon {
  width: 45px;
  height: 45px;
  min-width: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0670b2;
  color: var(--color-white);
  border-radius: 50%;
  flex-shrink: 0;
  font-size: 16px;
}

.contact-text h4 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.contact-text p {
  font-size: 13px;
  color: var(--color-text-light);
  margin-bottom: 4px;
  line-height: 1.6;
}

.contact-text a {
  color: #0670b2;;
  text-decoration: none;
  transition: var(--transition);
}

.contact-text a:hover {
  color: #0670b2;
}

.contactenos-form {
  background: var(--color-white);
  padding: 40px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ========================================
   BLOQUE PARALLAX (imagen fullwidth con scroll)
   ======================================== */
.parallax-image-section {
  height: 450px;
  position: relative;
  overflow: hidden;
}

.parallax-image-section .parallax-bg {
  inset: -30% 0;
}

.parallax-bg--auto {
  position: absolute;
  background-size: cover;
  background-position: center;
}

.parallax-bg--auto img {
  display: none;
}

/* ========================================
   RESPONSIVE - TABLET (max-width: 1024px)
   ======================================== */
@media (max-width: 1024px) {
  .section { padding: 70px 0; }
  .section-title { font-size: 30px; }
  .stat-number { font-size: 40px; }
  .explore-layout { grid-template-columns: 1fr 1fr; }
  .explore-heading { grid-column: 1 / -1; margin-bottom: 10px; }
  .donde-layout { grid-template-columns: 1fr 1fr; }
  .donde-heading { grid-column: 1 / -1; margin-bottom: 10px; }
  .categories-grid { grid-template-columns: repeat(2, 1fr); }
  .video-cta { height: 350px; }
  .services-list { grid-template-columns: 1fr; }
  .project-card { flex: 0 0 calc(33.333% - 14px); }
  .gallery-staircase { grid-template-columns: 1fr 1fr; }
  .gallery-heading { grid-column: 1 / -1; }
  .gallery-item--1 { grid-column: 1; grid-row: auto; margin-top: 40px; }
  .gallery-item--2 { grid-column: 2; grid-row: auto; margin-top: 0; }
  .team-card { flex: 0 0 calc(50% - 15px); max-width: calc(50% - 15px); }
  .team-grid { gap: 20px; }
  .team-card {   flex: 0 0 calc(25% - 19px);   max-width: calc(25% - 19px); }
  .team-card-w {   flex: 0 0 calc(25% - 19px);   max-width: calc(25% - 19px); }
}

/* ========================================
   RESPONSIVE - MOBILE (max-width: 768px)
   ======================================== */
@media (max-width: 768px) {
  .section { padding: 60px 0; }
  .section-title { font-size: 26px; }

  /* Hero */
  .hero { min-height: 500px; }
  .hero-content--centered { padding: 0 20px; }
  .hero-content--centered h1 { font-size: 34px; }
  .hero-description p { font-size: 14px; }
  .hero-side-text { display: none; }

  /* About */
  .about-images {
    max-width: 100%;
    margin: 0 auto;
    min-height: auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
  }

  .about-img-main {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
  }

  .about-img-main img {
    height: auto;
  }

  .about-img-secondary {
    position: relative;
    bottom: auto;
    left: auto;
    width: 80%;
    margin-top: -40px;
    align-self: flex-end;
  }

  .about-img-secondary img {
    height: 200px;
  }

  .about-badge {
    top: 10px;
    left: 10px;
    width: 100px;
    height: 100px;
  }

  .badge-year { font-size: 24px; }
  .badge-text { font-size: 11px; }

  .about-features { flex-direction: column; gap: 0; }

  /* Stats */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .stat-number { font-size: 36px; }
  .stat-icon { font-size: 32px; }

  .team-card-w h4 {
    font-size: 14px;
  }

  /* Explore */
  .explore-layout {
    grid-template-columns: 1fr;
  }

  .explore-heading { margin-bottom: 10px; }

  .explore-card { height: 250px; }

  /* Donde encontrarnos */
  .donde-layout {
    grid-template-columns: 1fr;
  }

  .donde-heading { margin-bottom: 10px; }

  /* Categories */
  .categories-grid { grid-template-columns: 1fr; }
  .video-cta { height: 300px; }
  .video-cta-content h3 { font-size: 22px; }
  .video-cta-badge { right: 20px; top: -50px; width: 150px; padding: 20px; }
  .video-cta-badge p { font-size: 13px; }

  /* Services */
  .services-inner { max-width: 100%; }
  .services-list { grid-template-columns: 1fr 1fr; }

  /* Projects carousel */
  .project-card { flex: 0 0 calc(50% - 10px); }
  .projects-carousel-wrapper { padding: 0 30px; }

  /* Download */
  .download-inner { flex-direction: column; text-align: center; padding: 60px 0; }
  .download-content { max-width: 100%; }
  .download-content h2 { font-size: 28px; }
  .download-accent { display: none; }
  .download-buttons { justify-content: center; }

  /* Parallax */
  .parallax-image-section { height: 300px; }

  /* Gallery */
  .gallery-staircase { grid-template-columns: 1fr; }
  .gallery-item--1 { grid-column: 1; grid-row: auto; }
  .gallery-item--2 { grid-column: 1; grid-row: auto; margin-top: 0; }
  .gallery-title { font-size: 34px; }

  /* Contactenos */
  .contactenos-form { padding: 25px; }

  /* Team */
  .team-card { flex: 0 0 calc(50% - 13px); max-width: calc(50% - 13px); }
  .team-card-w { flex: 0 0 calc(50% - 8px);   max-width: calc(50% - 8px); }
  .team-grid { gap: 25px; }
  .team-grid-w { gap: 16px; }

  /* Scroll to top */
  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
  }
}

/* ========================================
   RESPONSIVE - MOBILE SMALL (max-width: 480px)
   ======================================== */
@media (max-width: 480px) {
  .section { padding: 50px 0; }
  .section-title { font-size: 22px; }
  .container { padding-left: 15px; padding-right: 15px; }

  .hero-content--centered h1 { font-size: 28px; }

  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat-number { font-size: 30px; }
  .video-modal-content { width: 95%; }
  .play-btn { width: 60px; height: 60px; font-size: 22px; }
  .video-cta-badge { display: none; }
  .services-list { grid-template-columns: 1fr; }
  .project-card { flex: 0 0 calc(100% - 10px); }
  .download-buttons { flex-direction: column; align-items: center; }
  .download-content h2 { font-size: 24px; }
  .team-card { flex: 0 0 calc(50% - 8px); max-width: calc(50% - 8px); }
  .team-card-w { flex: 0 0 calc(50% - 8px);   max-width: calc(50% - 8px); }
  .team-grid { max-width: none; margin: 40px auto 0; }
  .team-grid-w {   gap: 16px;   max-width: none;   margin: 30px 0 0; }
}

/* ========================================
   DONDE ENCONTRARNOS
   ======================================== */
.donde-encontrarnos {
  background: var(--color-white);
}

.donde-layout {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
}

.donde-layout > *:not(.donde-heading):not(.donde-card) {
  display: contents;
}

.donde-heading {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-right: 20px;
}

.donde-heading .section-title {
  max-width: 500px;
  margin-bottom: 0;
}

.donde-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--color-white);
  transition: var(--transition);
  width: 230px;
}
@media (max-width: 768px) {
  .donde-card {
    width: 100%;
  }
}

.donde-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-5px);
}

.donde-card-image {
  position: relative;
  height: 225px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f7fa;
  padding: 20px;
}

.donde-card-image img {
  max-width: 225px;
  max-height: 200px;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform 0.5s ease;
}

.donde-card:hover .donde-card-image img {
  transform: scale(1.1);
}

.donde-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
}

.donde-card-overlay h3 {
  color: var(--color-white);
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.donde-card-overlay p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  margin: 5px 0 0;
}

.donde-card-body {
  padding: 10px;
}

.donde-card-desc {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-light);
}

/* ========================================
   Ver Más Button
   ======================================== */
.btn-ver-mas {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 36px;
  background: var(--color-primary);
  color: var(--color-white);
  border-radius: 12px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: var(--transition);
  letter-spacing: 0.5px;
}

.btn-ver-mas:hover {
  background: #0670b2;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-ver-mas i {
  transition: transform 0.3s ease;
}

.btn-ver-mas:hover i {
  transform: translateX(4px);
}
.row.g-4.blog-grid {
  justify-content: flex-start;
}
input#edit-actions-submit {
  background: var(--color-primary);
  border-radius: 12px;
}

input#edit-actions-submit:hover {
  background: #0670b2;
  border-radius: 12px;
}

/* =====================================================
   REVISIÓN PAR
   ===================================================== */
.revision-par {
  background: var(--color-white);
}

.revision-par-header {
  margin-bottom: 50px;
}

.revision-par-desc {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.revision-par-desc p {
  margin: 0;
}

.revision-par-body {
  margin-top: 10px;
}

.revision-par-image {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.revision-par-image::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  border: 4px solid rgba(6, 112, 178, 0.15);
  pointer-events: none;
}

.revision-par-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.revision-par-desc-inferior {
  font-size: 15px;
  line-height: 1.8;
  color: var(--color-text-light);
}

.revision-par-desc-inferior p {
  margin: 0 0 12px;
}

.revision-par-desc-inferior p:last-child {
  margin-bottom: 0;
}

@media (max-width: 991px) {
  .revision-par-header {
    margin-bottom: 30px;
  }

  .revision-par-image {
    margin-bottom: 30px;
  }
}

/* ========================================
   PÁGINA DE NOTICIAS — HERO
   ======================================== */
.noticias-hero {
  position: relative;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding-top: 100px;
  padding-bottom: 0;
}

.noticias-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.05);
  animation: heroZoom 25s ease-in-out infinite alternate;
}

.noticias-hero__bg--default {
  background: linear-gradient(135deg, #0c1445 0%, #1a3a5c 50%, #0670b2 100%);
  transform: none;
  animation: none;
}

.noticias-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 20, 69, 0.92) 0%,
    rgba(6, 112, 178, 0.75) 100%
  );
  z-index: 1;
}

.noticias-hero .container {
  padding-top: 60px;
  padding-bottom: 40px;
}

.noticias-breadcrumb {
  --bs-breadcrumb-divider-color: rgba(255,255,255,0.5);
  --bs-breadcrumb-item-active-color: rgba(255,255,255,0.8);
}

.noticias-breadcrumb .breadcrumb-item a {
  color: rgba(255,255,255,0.75);
  font-size: 13px;
  transition: color 0.3s ease;
}

.noticias-breadcrumb .breadcrumb-item a:hover {
  color: #fff;
}

.noticias-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
  color: rgba(255,255,255,0.4);
}

.noticias-hero__title {
  font-size: clamp(32px, 5vw, 58px);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.5px;
}

.noticias-hero__desc {
  color: rgba(255,255,255,0.82);
  font-size: 15px;
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 10px;
}

.noticias-hero__desc p { margin: 0; }

.noticias-hero__scroll-btn {
  color: rgba(255,255,255,0.85);
  font-size: 13px;
  font-weight: 500;
  border: 1px solid rgba(255,255,255,0.35);
  padding: 9px 22px;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.noticias-hero__scroll-btn i {
  animation: bounceDown 2s infinite;
}

.noticias-hero__scroll-btn:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
  color: #fff;
}


/* ========================================
   PÁGINA DE NOTICIAS — FILTROS
   ======================================== */
.noticias-page {
  background: var(--color-light);
}

.noticias-filter-bar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 22px 28px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
}

/* Buscador */
.noticias-search {
  position: relative;
}

.noticias-search__icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 14px;
  pointer-events: none;
  z-index: 1;
}

.noticias-search__input {
  padding-left: 44px;
  border-radius: 30px;
  border: 1px solid var(--color-border);
  font-family: var(--font-primary);
  font-size: 14px;
  color: var(--color-text);
  background: var(--color-light);
  height: 46px;
  transition: 0.3s ease;
  box-shadow: none;
}

.noticias-search__input:focus {
  border-color: #0670b2;
  box-shadow: 0 0 0 3px rgba(6, 112, 178, 0.12);
  background: #fff;
  outline: none;
}

.noticias-search__input::placeholder {
  color: #aaa;
}


/* ========================================
   PÁGINA DE NOTICIAS — TOGGLE DE VISTA
   ======================================== */
.noticias-view-toggle {
  display: flex;
  gap: 6px;
}

.noticias-view-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: #fff;
  color: var(--color-text-light);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

.noticias-view-btn:hover {
  border-color: #0670b2;
  color: #0670b2;
}

.noticias-view-btn.active {
  background: #0670b2;
  border-color: #0670b2;
  color: #fff;
}

/* ========================================
   PÁGINA DE NOTICIAS — VISTA LISTA
   ======================================== */
.blog-card--list {
  flex-direction: row;
  height: auto;
}

.blog-card--list .blog-image {
  width: 260px;
  min-width: 260px;
  height: auto;
  min-height: 180px;
  flex-shrink: 0;
}

.blog-card--list .blog-body {
  padding: 20px 25px;
}

/* ========================================
   PÁGINA DE NOTICIAS — SIN RESULTADOS
   ======================================== */
.noticias-empty {
  color: var(--color-text-light);
}

.noticias-empty__icon i {
  color: var(--color-border);
}

.noticias-empty h4 {
  color: var(--color-text);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ========================================
   RESPONSIVE — PÁGINA DE NOTICIAS
   ======================================== */
@media (max-width: 991px) {
  .noticias-hero {
    min-height: 340px;
    padding-top: 80px;
  }

  .noticias-filter-bar {
    padding: 18px 20px;
  }

  .blog-card--list {
    flex-direction: column;
  }

  .blog-card--list .blog-image {
    width: 100%;
    height: 220px;
  }
}

@media (max-width: 767px) {
  .noticias-hero {
    padding-top: 70px;
  }

  .noticias-hero .container {
    padding-top: 40px;
    padding-bottom: 20px;
  }

  .noticias-filter-bar {
    padding: 16px;
  }

  .noticias-view-toggle {
    display: none;
  }
}
.blog-arrow:focus {
  outline: none;
  box-shadow: none;
}
.noticias-search .form-control {
  padding: 1.375rem 2.75rem;

}
#hero .slider-social {
  display: inline-block;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 30px;
  z-index: 13;
}
#hero .list-unstyled {
  padding-left: 0;
  list-style: none;
}
#hero .slider-social a {
  display: block;
  width: 30px;
  height: 30px;
  text-align: center;
  line-height: 30px;
  border-radius: 50px;
  color: #fff;
  font-size: 17px;
  margin: 3px;
  border: 1px solid transparent;
  -webkit-transition: background-color .2s ease-in-out;
  -moz-transition: background-color .2s ease-in-out;
  -ms-transition: background-color .2s ease-in-out;
  -o-transition: background-color .2s ease-in-out;
  transition: background-color .2s ease-in-out;
}
#hero .slider-social a svg {
  text-align: center;
  line-height: 30px;
  fill: #fff;
  width: 17px;
  height: 20px;
}
/* SOLO RESPONSIVE: slider-social horizontal */
@media (max-width: 768px) {
  #hero .slider-social {
    top: auto;
    right: auto;
    left: 50%;
    bottom: 12px;
    transform: translateX(-50%);
    display: block; /* o inline-block, cualquiera */
    width: auto;
  }

  #hero .slider-social .list-unstyled {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
  }

  #hero .slider-social .list-unstyled li {
    display: inline-flex;
    margin: 0;
  }

  #hero .slider-social .list-unstyled li a {
    margin: 0;
  }
}
.donde-layout {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}


.donde-encontrarnos .donde-layout {
  display: grid !important;
  grid-template-columns: 450px 1fr !important;
  gap: 25px !important;
  align-items: start !important;
}

.donde-encontrarnos .views-element-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 16px !important;
}

/* Tablet */
@media (max-width: 992px) {
  .donde-encontrarnos .donde-layout {
    grid-template-columns: 1fr !important;
  }

  .donde-encontrarnos .views-element-container {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Móvil */
@media (max-width: 576px) {
  .donde-encontrarnos .views-element-container {
    grid-template-columns: 1fr !important;
  }
}

.categories-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:22px;
}
.category-card{
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:12px;
  padding:24px;
  display:flex;
  gap:18px;
  align-items:flex-start;
  transition:all .2s ease;
}
.category-card:hover{
  transform:translateY(-4px);
  box-shadow:0 10px 20px rgba(0,0,0,0.06);
}
.category-icon{
  min-width:46px;
  height:46px;
  border-radius:48%;
  background:#0670b2;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#0670b2;
}
.category-card h4{
  margin:0 0 6px 0;
  font-size:18px;
  line-height:1.3;
  word-break:normal;
  overflow-wrap:normal;
  hyphens:none;
}
.category-card p{
  margin:0;
  color:#6b7280;
  font-size:14px;
  line-height:1.5;
}
.category-content{
  display:flex;
  flex-direction:column;
}
/*#revision-par .category-card {
	background: #0670b2;
}
#revision-par .category-card p, #revision-par .category-card h4 {
	color: #fff;
}*/


#revision-par .category-card {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  padding: 1.5rem;
  gap: 1rem;
}

#revision-par .category-card .category-icon {
  flex-shrink: 0;
}

#revision-par .category-card .category-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

#revision-par .category-card .category-content h4 {
  margin: 0;
}

#revision-par .category-card .category-content p {
  margin: 0;
}

#revision-par .category-card .btn-ver-mas {
  align-self: center;
  margin-top: auto;
  margin-left: -60px;
}

#proceso-editorial .category-card .btn-ver-mas {
  align-self: center;
  margin-top: auto;
  margin-left: -60px;
}
#revision-par .btn-ver-mas svg {
  display: inline-block;
  vertical-align: middle;
  width: 25px;
  height: 25px;
  margin-right: 5px;
  stroke: currentColor;

}
#proceso-editorial .btn-ver-mas svg {
  display: inline-block;
  vertical-align: middle;
  width: 25px;
  height: 25px;
  margin-right: 5px;
  stroke: currentColor;

}
#revision-par .category-icon svg {
  width: 25px;
  height: 25px;
  stroke: #ffffff;
}
#proceso-editorial .category-icon svg {
  width: 25px;
  height: 25px;
  stroke: #ffffff;
}
#revision-par .category-card:hover .category-icon {
  background: #0670b2 !important;
  color: black !important;
  border-color: #0670b2 !important;
}

#revision-par .category-icon {
  min-width: 46px;
  height: 46px;
  border-radius: 28%;
  background: #0670b2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0670b2;
}

@media (max-width: 768px) {
  #revision-par .category-card {
    flex-direction: column;
    align-items: flex-start;
  }
  #revision-par .category-card .category-content {
    width: 100%;
  }
  #proceso-editorial .category-card {
    flex-direction: column;
    align-items: flex-start;
  }
  #proceso-editorial .category-card .category-content {
    width: 100%;
  }
}
