/*
 * Theme Name: Pixel Perfect Portfolio
 * Author: Pixel Perfect
 * Author URI/Mail: pixelperfectmk@gmail.com
 * Version: 1.0
 */


/* CUSTOM RESETS
================================================== */
a, button {
  -webkit-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
  cursor: pointer;
  outline: 0 none;
}

/* Blue Theme Overrides */
body {
  background: linear-gradient(180deg, #f7fdff 0%, #eef9ff 100%);
}

a {
  color: var(--site-primary);
}

a:hover,
a:focus {
  color: #005b85;
}

.site-navigation,
.site-header,
.mobile-menu-button,
.mobile-menu-dropdown,
.site-navigation .navbar-toggle,
.hero,
.hero .overlay {
  background-color: var(--site-primary) !important;
}

.site-navigation .navbar-nav > li > a,
.mobile-menu-button,
.mobile-menu-button i,
.mobile-menu-dropdown ul li a,
.site-navigation .navbar-toggle .icon-bar,
.hero,
.hero h1,
.hero h2,
.hero p {
  color: #ffffff !important;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a,
.mobile-menu-dropdown ul li a:hover,
.mobile-menu-dropdown ul li a:focus {
  color: var(--site-accent) !important;
  border-color: var(--site-accent) !important;
}

.hero-noticia-item,
.noticia-related-card,
.project-card,
.proyecto-card,
.trabajo-card,
.book-card,
.noticia-faq-item,
.noticia-detail-content,
.books-pagination,
.pagination-button,
.project,
.service,
.skill,
.resume,
.portfolio-item,
.timeline-panel,
.contact-form,
.form-control,
.hero-noticias {
  border-color: var(--site-border) !important;
  box-shadow: var(--site-shadow);
}

.hero-noticia-item,
.noticia-related-card,
.project-card,
.proyecto-card,
.trabajo-card,
.book-card,
.noticia-faq-item,
.noticia-detail-content,
.project,
.service,
.skill,
.resume,
.portfolio-item,
.timeline-panel,
.contact-form,
.hero-noticias,
.book-detail-image,
.book-detail-description,
.noticias-page-container,
.proyecto-detail-container,
.trabajo-detail-container {
  background: rgba(255, 255, 255, 0.94);
}

.hero-noticias-title,
.hero-noticia-titulo,
.hero-noticia-titulo-link,
.hero-noticia-leer-mas,
.btn-ver-mas-noticias,
.noticia-detail-title,
.noticia-section-heading h2,
.noticia-faq-item h3,
.project-title,
.proyecto-detail-title,
.trabajo-detail-title,
.book-detail-title,
.book-card-title,
h1, h2, h3, h4, h5, h6 {
  color: var(--site-primary);
}

.hero-noticia-texto,
.hero-noticia-fecha,
.hero-noticia-empty,
.project-description,
.proyecto-detail-content,
.trabajo-detail-content,
.noticia-detail-contenido,
.noticia-faq-respuesta,
.book-detail-description,
.book-card-meta,
p,
li {
  color: var(--site-text-muted);
}

.rectangle,
.big-rectangle {
  border-color: var(--site-primary);
  box-shadow: 10px 10px 0 0 rgba(0, 53, 79, 0.12);
}

.big-rectangle,
.blue-bg,
.service .rectangle,
.feature .rectangle,
.timeline .rectangle,
.btn,
.pagination-button.active,
.pagination-button:hover {
  background: var(--site-gradient);
}

.btn-ver-mas-noticias,
.pagination-button,
.site-navigation .navbar-nav > li > a,
.hero-noticia-leer-mas {
  border-color: var(--site-primary) !important;
}

.btn-ver-mas-noticias,
.pagination-button {
  color: var(--site-primary);
  background: rgba(255, 255, 255, 0.9);
}

.btn-ver-mas-noticias:hover,
.pagination-button:hover {
  color: #ffffff;
}

.btn-inverted {
  color: var(--site-primary);
  background: rgba(255, 255, 255, 0.92);
  border-color: var(--site-accent);
}

.btn-inverted:hover,
.btn-inverted:focus {
  background: var(--site-primary);
  border-color: var(--site-primary);
  color: #ffffff;
}

input:focus,
textarea:focus,
select:focus,
.form-control:focus {
  border-color: var(--site-accent) !important;
  box-shadow: 0 0 0 3px var(--site-accent-soft) !important;
}

.hero-noticias-list::-webkit-scrollbar-thumb {
  background: var(--site-primary);
}

.hero-noticias-list::-webkit-scrollbar-thumb:hover {
  background: #005b85;
}

.site-footer,
footer {
  background: var(--site-primary);
  color: #dffbff;
}

.site-footer a,
footer a {
  color: var(--site-accent);
}

::selection {
  background: var(--site-accent);
  color: var(--site-primary);
}

a:hover, a:focus {
  outline: 0 none;
  text-decoration: none;
}

:root {
  --site-primary: #00354F;
  --site-primary-deep: #00283c;
  --site-accent: #00E5FF;
  --site-accent-soft: rgba(0, 229, 255, 0.16);
  --site-surface: #f3fbff;
  --site-text: #00354F;
  --site-text-muted: #4b6675;
  --site-border: rgba(0, 53, 79, 0.18);
  --site-shadow: 0 14px 34px rgba(0, 53, 79, 0.12);
  --site-gradient: linear-gradient(135deg, #00354F 0%, #005b85 52%, #00E5FF 100%);
}

/* LAYOUT
================================================== */
html, body {
  width: 100%;
  min-height: 100%;
  height: auto;
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  color: var(--site-text);
}

body {
  padding-top: 0 !important;
  margin-top: 0 !important;
}

/* Prevenir overflow horizontal en móviles - aplicar box-sizing de forma segura */
*, *::before, *::after {
  box-sizing: border-box;
}

img, video, iframe, embed, object {
  max-width: 100%;
  height: auto;
}

/* Evitar que las imágenes se muestren como bloque por defecto si no tienen clase específica */
img:not(.img-responsive):not([class*="img-"]) {
  display: inline-block;
}

.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Asegurar que las tablas y elementos grandes no causen overflow */
table {
  width: 100%;
  max-width: 100%;
  table-layout: auto;
  border-collapse: collapse;
}

/* Prevenir texto muy largo sin saltos */
p, span, div, a, h1, h2, h3, h4, h5, h6, label, button {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

/* 
 * Background colors 
 */
.blue-bg {
  background-color: var(--site-primary);
}

/* 
 * Button
 */
.btn {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  background: var(--site-gradient);
  padding: 0 15px;
  color: #ffffff;
  height: 44px;
  line-height: 42px;
  border-radius: 20px;
  border: 1px solid var(--site-primary);
  text-transform: none;
  font-weight: 400;
  letter-spacing: -0.1px;
  transition: all 0.2s ease;
  box-shadow: 0 10px 26px rgba(0, 53, 79, 0.16);
}

.btn-inverted {
  color: var(--site-primary);
  background-color: rgba(255, 255, 255, 0.92);
  border-color: var(--site-accent);
}

.btn:hover,
.btn:focus {
  color: #ffffff;
  background: linear-gradient(135deg, #00283c 0%, #00354F 45%, #00E5FF 100%);
  border-color: var(--site-accent);
  opacity: 1;
  transform: translateY(-1px);
}

.btn-inverted:hover,
.btn-inverted:focus {
  color: #ffffff;
  background: var(--site-primary);
  border-color: var(--site-primary);
}

/* 
 * Rectangle 
 */
.rectangle,
.big-rectangle {
  display: inline-block;
  width: 50px;
  height: 50px;
  border: 1px solid #000000;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -webkit-box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.1);
  -o-box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 4px 4px 0px 0px rgba(0, 0, 0, 0.1);
}

.rectangle i,
.big-rectangle img,
.rectangle span,
.rectangle img {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: 22px;
  transform: translate(-50%, -50%) rotate(-45deg);
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  -moz-transform: translate(-50%, -50%) rotate(-45deg);
  -o-transform: translate(-50%, -50%) rotate(-45deg);
  -ms-transform: translate(-50%, -50%) rotate(-45deg);
}

.big-rectangle {
  position: absolute;
  right: auto;
  top: 50%;
  left: 50%;
  margin: 0 auto;
  width: 230px;
  height: 230px;
  background-color: #000000;
  border: 0;
  transform: translate(-50%, -50%) rotate(45deg);
  -webkit-transform: translate(-50%, -50%) rotate(45deg);
  -moz-transform: translate(-50%, -50%) rotate(45deg);
  -o-transform: translate(-50%, -50%) rotate(45deg);
  -ms-transform: translate(-50%, -50%) rotate(45deg);
  -webkit-box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.1);
  -o-box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.1);
  -moz-box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 10px 10px 0px 0px rgba(0, 0, 0, 0.1);
}

.medium-rectangle {
  width: 75px;
  height: 75px;
}

/*
 * Slick Slider
 */
.slick-slider {
  position: relative;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -ms-touch-action: pan-y;
  touch-action: pan-y;
  -webkit-tap-highlight-color: transparent;
}

.slick-slider.slick-track, .slick-slider.slick-list {
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -o-transform: translate3d(0, 0, 0);
  -ms-transform: translate3d(0, 0, 0);
}

.slick-list {
  position: relative;
  overflow: hidden;
}

.slick-list:focus, .slick-list:hover {
  outline: none;
}

.slick-list.draggable {
  padding: 10px;
}

.slick-list.dragging {
  cursor: pointer;
  cursor: hand;
}

.slick-track:before, .slick-track:after {
  display: table;
  content: '';
}

.slick-track:after {
  clear: both;
}

.slick-loading .slick-track {
  visibility: hidden;
}

.slick-slide {
  display: none;
  float: left;
  height: 100%;
  min-height: 1px;
}

[dir='rtl'] .slick-slide {
  float: right;
}

.slick-slide.slick-loading img {
  display: none;
}

.slick-slide.dragging img {
  pointer-events: none;
}

.slick-initialized .slick-slide {
  display: block;
}

.slick-loading .slick-slide {
  visibility: hidden;
}

.carousel-control.left i,
.review-carousel .slick.rectangle.slick-prev i {
  padding-right: 3px;
}

.carousel-control.right i,
.review-carousel .slick.rectangle.slick-next i {
  padding-left: 3px;
}

/*
 * Social Network
 */
.social-icons.small {
  margin: 50px auto 0;
}

.social-icons.small .rectangle {
  margin: 0 4px;
  width: 30px;
  height: 30px;
  color: #fff;
}

.social-icons.small .rectangle i {
  font-size: 14px;
  -webkit-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
}

.social-icons.small .rectangle:hover {
  background-color: #fff;
}

.social-icons.small .rectangle:hover i {
  color: #000000;
}

.social-icons .rectangle {
  box-shadow: none;
  display: inline-block;
}

/* Image responsive */
.img-res {
  display: block;
  width: 100vw;
  height: 100vh;
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* HEADER
================================================== */
.site-header {
  height: 60px;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1000;
  background-color: transparent;
}

.site-logo {
  display: inline-block;
  position: relative;
  padding: 0 30px 0 15px;
  height: 60px;
  background-color: #000000;
  z-index: 2;
}

.site-logo:before {
  content: '';
  position: absolute;
  width: 2000px;
  height: 100%;
  top: 0;
  right: 0;
  background-color: #000000;
}

.site-logo a {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  display: inline-block;
  margin-top: 17px;
  font-size: 26px;
  font-weight: 600;
  line-height: 26px;
  color: #ffffff;
  text-transform: none;
  letter-spacing: -0.3px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.site-logo a:hover {
  opacity: 0.8;
  text-decoration: none;
  color: #ffffff;
}

/* Navigation */
.site-navigation {
  background-color: rgba(0, 0, 0, 0.7);
  position: relative;
  z-index: 1000;
}

.site-navigation.affix {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 1005;
  background-color: #000000 !important;
}

.site-navigation .navbar-nav {
  padding-top: 23px;
}

.site-navigation .navbar-nav > li > a {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  padding: 0px 3px 21px;
  font-size: 14px;
  font-weight: 400;
  line-height: 14px;
  color: #ffffff;
  text-transform: none;
  letter-spacing: -0.1px;
  border-bottom: 2px solid transparent;
  -webkit-transition: border-color 0.25s ease-in-out;
  -o-transition: border-color 0.25s ease-in-out;
  -moz-transition: border-color 0.25s ease-in-out;
  transition: border-color 0.25s ease-in-out;
}

.site-navigation .navbar-nav.navbar-right {
  margin-right: 0;
}

.site-navigation .navbar-nav > li + li > a {
  margin-left: 25px;
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a,
.nav > li > a:hover,
.nav > li.active > a {
  background-color: transparent;
  border-color: #ffffff;
}

.nav > li > a:focus {
  background-color: transparent;
}

@media only screen and (max-width: 1199px) {
  /* HEADER */
  .site-navigation .navbar-nav > li + li > a {
    margin-left: 15px;
  }
  .service p {
    bottom: 10px;
  }
}

@media only screen and (max-width: 991px) {
  /* HEADER */
  .site-navigation .navbar-nav > li + li > a {
    margin-left: 8px;
  }
}

@media only screen and (max-width: 767px) {
  /* HEADER - Ocultar completamente en móvil */
  .site-header {
    display: none !important;
  }
}

/* Botón flotante de menú móvil - solo visible en móvil */
.mobile-menu-button {
  display: none;
}

.mobile-menu-dropdown {
  display: none;
}

/* Menu Refresh */
.site-header {
  height: auto;
  padding-top: 18px;
  background: transparent !important;
}

.site-navigation {
  background: transparent !important;
  box-shadow: none !important;
}

.site-header::before,
.site-header::after,
.site-navigation::before,
.site-navigation::after {
  display: none !important;
  content: none !important;
}

.site-navigation > .container {
  background: transparent !important;
  box-shadow: none !important;
}

.site-nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 20px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(0, 42, 63, 0.78) 0%, rgba(0, 68, 99, 0.72) 58%, rgba(0, 229, 255, 0.14) 100%);
  border: 1px solid rgba(0, 229, 255, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 16px 36px rgba(0, 25, 38, 0.22);
}

.site-navigation.affix {
  background: transparent !important;
}

.site-navigation.affix .site-nav-shell {
  margin-top: 8px;
  background: linear-gradient(135deg, rgba(0, 42, 63, 0.9) 0%, rgba(0, 68, 99, 0.86) 58%, rgba(0, 229, 255, 0.18) 100%);
  box-shadow: 0 18px 42px rgba(0, 25, 38, 0.26);
}

.navbar-header.page-scroll {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo {
  height: auto;
  padding: 0;
  background: transparent;
}

.site-logo:before {
  display: none;
}

.site-logo a {
  margin-top: 0;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
}

.site-logo a:hover {
  opacity: 1;
  color: var(--site-accent);
}

.main-menu.navbar-collapse {
  padding: 0;
  border: 0;
  box-shadow: none;
}

.site-navigation .navbar-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 0;
}

.site-navigation .navbar-nav > li + li > a {
  margin-left: 0;
}

.site-navigation .navbar-nav > li > a {
  padding: 11px 16px;
  border-radius: 999px;
  border-bottom: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.02em;
  color: rgba(255,255,255,0.88);
}

.navbar-nav > li > a:hover,
.navbar-nav > li.active > a,
.nav > li > a:hover,
.nav > li.active > a {
  background: rgba(0, 229, 255, 0.12);
  color: #ffffff;
  border-color: transparent;
}

.site-navigation .navbar-nav > li.nav-contact-item > a {
  background: linear-gradient(135deg, rgba(0,53,79,0.84) 0%, rgba(0,229,255,0.22) 100%);
  color: #ffffff;
  border: 1px solid rgba(0,229,255,0.24);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04);
}

.site-navigation .navbar-nav > li.nav-contact-item > a:hover {
  background: linear-gradient(135deg, #00354F 0%, #00E5FF 100%);
  color: #ffffff;
}

@media only screen and (max-width: 767px) {
  .site-header,
  .site-navigation {
    background: transparent !important;
  }

  /* Botón flotante de menú móvil */
  .mobile-menu-button {
    display: flex !important;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 18px;
    right: 18px;
    width: 56px;
    height: 56px;
    background: rgba(0, 18, 28, 0.82);
    color: #ffffff;
    border-radius: 18px;
    text-decoration: none;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
    z-index: 99999 !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 229, 255, 0.18);
    cursor: pointer;
    pointer-events: auto !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .mobile-menu-button:hover,
  .mobile-menu-button:focus {
    background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
    color: #ffffff;
    text-decoration: none;
    transform: scale(1.04);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.34);
  }
  
  .mobile-menu-button:active {
    transform: scale(0.95);
  }
  
  .mobile-menu-button i {
    font-size: 24px;
    color: #ffffff !important;
  }
  
  .mobile-menu-button.active {
    background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
  }
  
  /* Menú desplegable móvil */
  .mobile-menu-dropdown {
    position: fixed;
    top: 86px;
    right: 18px;
    left: 18px;
    background: rgba(0, 18, 28, 0.92);
    border-radius: 24px;
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.34);
    z-index: 99998 !important;
    min-width: 0;
    max-width: none;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(10px);
    transition: all 0.3s ease;
    overflow: hidden;
    pointer-events: none !important;
    display: block !important;
    border: 1px solid rgba(0, 229, 255, 0.16);
    backdrop-filter: blur(18px);
  }
  
  .mobile-menu-dropdown.active {
    pointer-events: auto !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) !important;
    display: block !important;
  }
  
  /* Ajustar posición del menú cuando hay botón de volver atrás arriba */
  .mobile-menu-dropdown.has-back-button-top {
    top: 86px;
    right: 18px;
  }
  
  .mobile-menu-dropdown ul {
    list-style: none;
    margin: 0;
    padding: 10px;
  }
  
  .mobile-menu-dropdown ul li {
    margin: 0;
    padding: 0;
  }
  
  .mobile-menu-dropdown ul li a {
    display: block;
    padding: 14px 16px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: rgba(255,255,255,0.92);
    text-decoration: none;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
  }
  
  .mobile-menu-dropdown ul li:last-child a {
    border-bottom: none;
  }
  
  .mobile-menu-dropdown ul li a:hover,
  .mobile-menu-dropdown ul li a:focus {
    background-color: rgba(0, 229, 255, 0.12);
    color: #ffffff;
    text-decoration: none;
  }
  
  /* Los botones de volver atrás están en la izquierda, así que no necesitamos ajustar el menú */
  
  /* Ajustes para móviles más pequeños */
  @media only screen and (max-width: 480px) {
    .mobile-menu-button {
      width: 50px;
      height: 50px;
      top: 14px !important;
      right: 20px !important;
      left: auto !important;
    }
    
    .mobile-menu-button i {
      font-size: 20px;
    }
    
    .mobile-menu-dropdown {
      top: 72px;
      right: 20px;
      left: 20px;
      min-width: 0;
    }
  }
}

@media only screen and (max-width: 480px) {
  .site-header {
    height: 52px;
  }
  
  .site-logo {
    font-size: 14px;
  }
  
  .site-logo a {
    font-size: 14px;
    padding: 0 8px;
    letter-spacing: 0.5px;
  }
  
  .site-navigation .navbar-toggle {
    height: 52px;
    line-height: 52px;
    padding: 6px 8px;
  }
  
  .site-navigation .navbar-toggle .icon-bar {
    width: 20px;
    height: 2px;
  }
  
  .site-navigation .navbar-nav > li > a {
    font-size: 13px;
    padding: 7px 12px;
    margin: 6px 0;
  }
  
  .site-navigation .navbar-collapse {
    max-height: calc(100vh - 52px);
  }
}

/* HERO
================================================== */
.hero {
  background: url(../img/hero.webp) center no-repeat;
  height: 100%;
  width: 100%;
  display: table;
  position: relative;
  background-size: cover;
}

.background-overlay:before {
  content: '';
  background-color: rgba(0, 0, 0, 0.5);
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
}

.hero-content {
  color: #ffffff;
  display: table-cell;
  vertical-align: middle;
  position: relative;
}

.hero-content h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  width: 100%;
  padding: 0 15px;
  font-size: 40px;
  font-weight: 600;
  text-align: center;
  margin: 0 auto;
  text-transform: none;
  letter-spacing: -0.5px;
}

.hero-content p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  padding: 0 15px;
  margin: 30px auto 0;
  text-align: center;
  text-transform: none;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.hero-content .hero-job {
  font-size: 18px;
}

.hero-content .hero-job span {
  padding-bottom: 5px;
  border-bottom: 1px solid #ffffff;
}

.hero-content .hero-job-desc {
  font-size: 14px;
  max-width: 700px;
}

.hero-arrow {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 30px;
  width: 20px;
  margin: 0 auto;
  text-align: center;
}

.hero-arrow a {
  font-size: 28px;
  color: #ffffff;
}

@-webkit-keyframes home-arrow-down {
  from {
    transform: translate3d(0, 0px, 0);
    -webkit-transform: translate3d(0, 0px, 0);
    -moz-transform: translate3d(0, 0px, 0);
    -o-transform: translate3d(0, 0px, 0);
    -ms-transform: translate3d(0, 0px, 0);
    filter: alpha(opacity=0);
    -webkit-filter: alpha(opacity=0);
    opacity: 0;
  }
  10% {
    transform: translate3d(0, 5px, 0);
    -webkit-transform: translate3d(0, 5px, 0);
    -moz-transform: translate3d(0, 5px, 0);
    -o-transform: translate3d(0, 5px, 0);
    -ms-transform: translate3d(0, 5px, 0);
    filter: alpha(opacity=100);
    -webkit-filter: alpha(opacity=100);
    opacity: 1;
  }
  to {
    transform: translate3d(0, 30px, 0);
    -webkit-transform: translate3d(0, 30px, 0);
    -moz-transform: translate3d(0, 30px, 0);
    -o-transform: translate3d(0, 30px, 0);
    -ms-transform: translate3d(0, 30px, 0);
    filter: alpha(opacity=0);
    -webkit-filter: alpha(opacity=0);
    opacity: 0;
  }
}

@keyframes home-arrow-down {
  from {
    transform: translate3d(0, 0px, 0);
    -webkit-transform: translate3d(0, 0px, 0);
    -moz-transform: translate3d(0, 0px, 0);
    -o-transform: translate3d(0, 0px, 0);
    -ms-transform: translate3d(0, 0px, 0);
    filter: alpha(opacity=0);
    -webkit-filter: alpha(opacity=0);
    opacity: 0;
  }
  10% {
    transform: translate3d(0, 5px, 0);
    -webkit-transform: translate3d(0, 5px, 0);
    -moz-transform: translate3d(0, 5px, 0);
    -o-transform: translate3d(0, 5px, 0);
    -ms-transform: translate3d(0, 5px, 0);
    filter: alpha(opacity=100);
    -webkit-filter: alpha(opacity=100);
    opacity: 1;
  }
  to {
    transform: translate3d(0, 30px, 0);
    -webkit-transform: translate3d(0, 30px, 0);
    -moz-transform: translate3d(0, 30px, 0);
    -o-transform: translate3d(0, 30px, 0);
    -ms-transform: translate3d(0, 30px, 0);
    filter: alpha(opacity=0);
    -webkit-filter: alpha(opacity=0);
    opacity: 0;
  }
}

.home-arrow-down {
  -moz-animation: home-arrow-down 2s infinite;
  -webkit-animation: home-arrow-down 2s infinite;
  animation: home-arrow-down 2s infinite;
  -webkit-animation-play-state: running;
  animation-play-state: running;
}

.home-arrow-down:hover {
  -webkit-animation-play-state: paused;
  animation-play-state: paused;
}

/* HERO MINIMALISTA
================================================== */
.hero-minimal {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: url(../img/portfolio-7.jpg) center no-repeat;
  background-size: cover;
  background-attachment: scroll;
  padding: 80px 20px;
  margin: 0;
}

.hero-minimal:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4);
  z-index: 0;
}

.hero-container-wrapper {
  display: flex;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  gap: 60px;
  align-items: center;
  justify-content: center;
  z-index: 1;
  position: relative;
  flex-wrap: wrap;
}

.hero-left-column {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 600px;
}

.hero-minimal-content {
  text-align: center;
  margin: 0 auto;
  z-index: 1;
}

.hero-right-column {
  flex: 1 1 45%;
  min-width: 300px;
  max-width: 500px;
}

/* SECCIÓN NOTICIAS EN HERO
================================================== */
.hero-noticias {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 20px;
  padding: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.hero-noticias-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 25px 0;
  letter-spacing: -0.3px;
  text-transform: none;
  line-height: 1.2;
  border-bottom: 2px solid #000000;
  padding-bottom: 15px;
}

.hero-noticias-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  flex: 1;
  overflow-y: auto;
  min-height: 0;
}

.hero-noticia-item {
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 12px;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.hero-noticia-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.hero-noticia-link:hover {
  text-decoration: none;
  color: inherit;
}

.hero-noticia-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 0, 0, 0.2);
}

.hero-noticia-imagen {
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 8px;
  margin-bottom: 15px;
}

.hero-noticia-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.hero-noticia-content {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.hero-noticia-titulo {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  margin: 0;
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.hero-noticia-texto {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: #333333;
  margin: 0 0 12px 0;
  line-height: 1.6;
  letter-spacing: -0.1px;
}

.hero-noticia-titulo-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.hero-noticia-titulo-link:hover {
  color: #000000;
  text-decoration: underline;
}

.hero-noticia-imagen-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.hero-noticia-imagen-link:hover {
  opacity: 0.9;
  text-decoration: none;
}

.hero-noticia-footer-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.hero-noticia-fecha {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #666666;
  letter-spacing: 0.2px;
}

.hero-noticia-leer-mas {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #000000;
  text-decoration: none;
  border-bottom: 1px solid #000000;
  transition: all 0.2s ease;
  padding-bottom: 2px;
}

.hero-noticia-leer-mas:hover {
  color: #000000;
  border-bottom-color: #000000;
  text-decoration: none;
  border-bottom-width: 2px;
}

.hero-noticia-empty {
  text-align: center;
  padding: 40px 20px;
  color: #666666;
}

.hero-noticia-empty p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  margin: 0;
  font-style: italic;
}

.hero-noticias-footer {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  text-align: center;
  flex-shrink: 0;
}

.btn-ver-mas-noticias {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  background-color: transparent;
  border: 2px solid #000000;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: -0.1px;
}

.btn-ver-mas-noticias:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

.btn-ver-mas-noticias i {
  font-size: 14px;
}

/* Scrollbar personalizado para lista de noticias */
.hero-noticias-list::-webkit-scrollbar {
  width: 6px;
}

.hero-noticias-list::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}

.hero-noticias-list::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}

.hero-noticias-list::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}

.hero-right-column {
  max-width: 560px;
}

.hero-noticias {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(244,250,255,0.93) 100%);
  border: 1px solid rgba(0, 53, 79, 0.12);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 53, 79, 0.22);
}

.hero-noticias-head {
  margin-bottom: 20px;
}

.hero-noticias-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--site-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-noticias-title {
  border-bottom: 0;
  margin: 14px 0 8px;
  padding-bottom: 0;
  font-size: 32px;
  color: var(--site-primary);
  letter-spacing: -0.04em;
}

.hero-noticias-intro {
  margin: 0;
  color: var(--site-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.hero-noticias-list {
  gap: 16px;
  padding-right: 4px;
}

.hero-noticia-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0, 53, 79, 0.08);
  border-radius: 22px;
  box-shadow: 0 10px 26px rgba(0, 53, 79, 0.08);
}

.hero-noticia-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.35);
  box-shadow: 0 18px 34px rgba(0, 53, 79, 0.14);
}

.hero-noticia-imagen {
  height: 118px;
  margin-bottom: 0;
  border-radius: 16px;
}

.hero-noticia-content {
  gap: 8px;
  justify-content: center;
}

.hero-noticia-titulo {
  font-size: 18px;
  line-height: 1.25;
}

.hero-noticia-titulo-link:hover {
  color: #005b85;
  text-decoration: none;
}

.hero-noticia-texto {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--site-text-muted);
}

.hero-noticia-footer-item {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 53, 79, 0.08);
}

.hero-noticia-fecha {
  color: #6b8796;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.hero-noticia-leer-mas {
  color: var(--site-primary);
  border-bottom: 1px solid rgba(0, 53, 79, 0.3);
  font-weight: 700;
}

.hero-noticia-leer-mas:hover {
  color: #005b85;
  border-bottom-color: #005b85;
}

.hero-noticias-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0, 53, 79, 0.1);
}

.btn-ver-mas-noticias {
  width: 100%;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(0, 53, 79, 0.2);
  background: linear-gradient(135deg, rgba(0,53,79,0.04) 0%, rgba(0,229,255,0.12) 100%);
  color: var(--site-primary);
  font-weight: 700;
  padding: 14px 22px;
}

.btn-ver-mas-noticias:hover {
  background: var(--site-primary);
  color: #ffffff;
}

.section-oficios,
.site-section.section-oficios {
  background:
    linear-gradient(180deg, #f7fcff 0%, #eef8fd 100%);
  padding: 34px 0 42px;
}

.section-oficios .container-fluid {
  max-width: 1420px;
  padding: 0 28px;
}

.oficios-header {
  max-width: 820px;
  margin: 0 auto 22px;
  text-align: center;
}

.oficios-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.12);
  color: var(--site-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-oficios h2,
.section-title-oficios {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.05em;
  color: var(--site-primary);
}

.oficios-intro {
  margin: 0 auto;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--site-text-muted);
}

.oficios-carousel {
  padding: 18px 8px 8px;
  gap: 18px;
  justify-content: center;
}

.oficio-item {
  min-height: 192px;
  max-width: 154px;
  padding: 8px 4px 12px;
}

.oficio-circle {
  width: 126px;
  height: 126px;
  border: 1px solid rgba(0, 53, 79, 0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(239,249,255,0.96) 100%);
  box-shadow: 0 14px 30px rgba(0, 53, 79, 0.10);
}

.oficio-circle i {
  color: var(--site-primary);
}

.oficio-item.active .oficio-circle {
  border: 2px solid rgba(0, 229, 255, 0.64);
  box-shadow: 0 18px 34px rgba(0, 53, 79, 0.18);
  background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
  transform: translateY(-4px);
}

.oficio-item.active .oficio-circle i {
  color: #ffffff;
}

.oficio-item.active .oficio-label {
  color: var(--site-primary);
  text-decoration: none;
}

.oficio-item:hover .oficio-circle {
  transform: translateY(-4px) scale(1.02);
}

.oficio-item:hover .oficio-imagen,
.oficio-item:hover .oficio-circle i {
  transform: scale(1.03);
}

.oficio-label {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--site-primary);
}

.profile-circle-wrapper {
  margin: 0 auto 40px;
  width: 200px;
  height: 200px;
  position: relative;
}

.profile-circle {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 5px solid #ffffff;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.profile-circle:hover {
  transform: scale(1.05);
}

.hero-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 15px 0;
  letter-spacing: -0.5px;
  text-transform: none;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.1;
}

.hero-name-link {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
  display: inline-block;
}

.hero-name-link:hover {
  opacity: 0.8;
  text-decoration: none;
  color: inherit;
}

.hero-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 30px 0;
  letter-spacing: -0.2px;
  text-transform: none;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.4;
}

.hero-quote {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 400;
  color: #ffffff;
  margin: 0 auto;
  font-style: normal;
  line-height: 1.6;
  max-width: 600px;
  padding: 0 20px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  letter-spacing: -0.2px;
}

.hero-minimal .hero-arrow a {
  color: #ffffff;
  opacity: 0.8;
}

.hero-minimal .hero-arrow a:hover {
  opacity: 1;
}

/* SECCIÓN INTRODUCCIÓN MINIMALISTA
================================================== */
.section-intro-minimal {
  padding: 100px 0;
  background-color: #ffffff;
}

.section-title-minimal {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  margin: 0 0 120px 0;
  letter-spacing: -0.5px;
  text-transform: none;
  line-height: 1.1;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.service-card {
  text-align: center;
  padding: 40px 30px;
  background-color: #ffffff;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, opacity 0.3s ease, visibility 0.3s ease;
  border: 1px solid #000000;
  display: block;
  opacity: 1;
  visibility: visible;
}

.service-card.filtered-out {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 25px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000000;
  border-radius: 50%;
  color: #ffffff;
  font-size: 32px;
  transition: transform 0.3s ease;
}

.service-card:hover .service-icon {
  transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 15px 0;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.service-card p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #000000;
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.service-price {
  margin-top: 20px !important;
  padding-top: 15px;
  border-top: 1px solid #000000;
  font-size: 14px !important;
  color: #000000 !important;
}

/* Responsive para tablets (991px) */
@media only screen and (max-width: 991px) {
  /* HERO MINIMALISTA */
  .hero-minimal {
    min-height: auto;
    padding: 70px 20px;
  }
  
  .hero-container-wrapper {
    flex-direction: column;
    gap: 40px;
  }
  
  .hero-left-column,
  .hero-right-column {
    width: 100%;
    max-width: 100%;
  }
  
  .hero-noticias {
    max-height: 60vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .hero-noticias-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }
  
  .hero-noticias-title {
    font-size: 22px;
  }
  
  .hero-noticia-titulo {
    font-size: 16px;
  }
  
  .hero-noticia-texto {
    font-size: 13px;
  }
  
  .hero-noticia-imagen {
    height: 180px;
  }
  
  .profile-circle-wrapper {
    width: 180px;
    height: 180px;
    margin-bottom: 35px;
  }
  
  .hero-name {
    font-size: 40px;
  }
  
  .hero-subtitle {
    font-size: 16px;
  }
  
  .hero-quote {
    font-size: 18px;
  }
  
  .section-intro-minimal {
    padding: 80px 0;
  }
  
  .section-title-minimal {
    font-size: 32px;
    margin-bottom: 100px;
  }
  
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px;
    padding: 0 30px;
  }
  
  .service-card {
    padding: 35px 25px;
  }
}

@media only screen and (max-width: 767px) {
  /* HEADER */
  /* HERO */
  .hero-content h1 {
    font-size: 32px;
  }
  .hero-content p {
    margin: 20px auto 0;
  }
  
  /* HERO MINIMALISTA */
  .hero-minimal {
    min-height: auto;
    padding-top: 76px;
    padding-bottom: 60px;
    padding-left: 20px;
    padding-right: 20px;
  }
  
  .hero-container-wrapper {
    flex-direction: column;
    gap: 30px;
  }
  
  .hero-left-column,
  .hero-right-column {
    width: 100%;
    max-width: 100%;
  }
  
  .hero-noticias {
    max-height: 50vh;
    padding: 25px 20px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .hero-noticias-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }
  
  .hero-noticias-title {
    font-size: 20px;
    margin-bottom: 20px;
  }
  
  .hero-noticias-list {
    gap: 15px;
  }
  
  .hero-noticia-item {
    padding: 15px;
  }
  
  .hero-noticia-titulo {
    font-size: 15px;
  }
  
  .hero-noticia-texto {
    font-size: 12px;
  }
  
  .hero-noticia-imagen {
    height: 150px;
    margin-bottom: 12px;
  }
  
  .hero-noticia-fecha {
    font-size: 11px;
  }
  
  .profile-circle-wrapper {
    width: 150px;
    height: 150px;
    margin-bottom: 30px;
  }
  
  .hero-name {
    font-size: 32px;
  }
  
  .hero-subtitle {
    font-size: 14px;
  }
  
  .hero-quote {
    font-size: 16px;
    padding: 0 15px;
  }
  
  .hero-arrow {
    bottom: 25px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    margin: 0;
    text-align: center;
  }
  
  .hero-arrow a {
    font-size: 22px;
    display: inline-block;
  }
  
  .section-intro-minimal {
    padding: 60px 0;
  }
  
  .section-title-minimal {
    font-size: 28px;
    margin-bottom: 80px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding: 0 20px;
  }
  
  .service-card {
    padding: 30px 20px;
  }
  
  .service-icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .service-card h3 {
    font-size: 18px;
  }
  
  .service-card p {
    font-size: 13px;
  }
}

@media only screen and (max-width: 480px) {
  /* HERO MINIMALISTA */
  .hero-minimal {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 50px;
    padding-left: 12px;
    padding-right: 12px;
  }
  
  .hero-container-wrapper {
    flex-direction: column;
    gap: 25px;
  }
  
  .hero-left-column,
  .hero-right-column {
    width: 100%;
    max-width: 100%;
  }
  
  .hero-noticias {
    max-height: 45vh;
    padding: 20px 15px;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }
  
  .hero-noticias-list {
    flex: 1;
    overflow-y: auto;
    min-height: 0;
  }
  
  .hero-noticias-title {
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 10px;
  }
  
  .hero-noticias-list {
    gap: 12px;
  }
  
  .hero-noticia-item {
    padding: 12px;
    border-radius: 10px;
  }
  
  .hero-noticia-titulo {
    font-size: 14px;
  }
  
  .hero-noticia-texto {
    font-size: 11px;
    line-height: 1.5;
  }
  
  .hero-noticia-footer-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  
  .hero-noticia-leer-mas {
    font-size: 11px;
  }
  
  .hero-noticia-imagen {
    height: 120px;
    margin-bottom: 10px;
    border-radius: 6px;
  }
  
  .hero-noticia-fecha {
    font-size: 10px;
    margin-top: 6px;
  }
  
  .hero-noticia-empty {
    padding: 30px 15px;
  }
  
  .hero-noticia-empty p {
    font-size: 12px;
  }
  
  .profile-circle-wrapper {
    width: 110px;
    height: 110px;
    margin-bottom: 20px;
  }
  
  .profile-circle {
    border-width: 3px;
  }
  
  .hero-name {
    font-size: 26px;
    letter-spacing: 0.5px;
    line-height: 1.2;
    margin-bottom: 12px;
  }
  
  .hero-subtitle {
    font-size: 12px;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
  }
  
  .hero-quote {
    font-size: 13px;
    padding: 0 8px;
    line-height: 1.5;
    max-width: 100%;
  }
  
  .hero-arrow {
    bottom: 20px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    width: auto;
    margin: 0;
    text-align: center;
  }
  
  .hero-arrow a {
    font-size: 24px;
    display: inline-block;
  }
  
  .section-intro-minimal {
    padding: 40px 0;
  }
  
  .section-title-minimal {
    font-size: 22px;
    margin-bottom: 50px;
    letter-spacing: 1px;
    padding: 0 15px;
    line-height: 1.3;
  }
  
  /* Títulos de sección generales */
  .books-container h2,
  section h2 {
    font-size: 22px !important;
    line-height: 1.3 !important;
    padding: 0 15px;
    word-wrap: break-word;
  }
  
  .section-subtitle {
    font-size: 13px !important;
    padding: 0 15px;
    line-height: 1.4;
  }
  
  .section-subtitle span {
    display: inline-block;
    word-wrap: break-word;
  }
  
  .services-grid {
    gap: 20px;
    padding: 0 12px;
    grid-template-columns: 1fr;
  }
  
  .service-card {
    padding: 22px 16px;
    border-radius: 10px;
  }
  
  .service-icon {
    width: 55px;
    height: 55px;
    font-size: 22px;
    margin-bottom: 16px;
  }
  
  .service-card h3 {
    font-size: 15px;
    margin-bottom: 10px;
    line-height: 1.3;
  }
  
  .service-card p {
    font-size: 12px;
    line-height: 1.6;
  }
  
  .service-price {
    margin-top: 12px !important;
    padding-top: 12px;
    font-size: 11px !important;
    line-height: 1.5;
  }
}

/* SECCIÓN OFICIOS - CARRUSEL ESTILO INSTAGRAM STORIES
================================================== */
.site-section.section-oficios {
  background-color: #ffffff;
  padding: 20px 0;
  margin: 0;
  overflow: visible;
  height: auto;
  max-height: none;
  position: relative;
}

.section-oficios {
  background-color: #ffffff;
  padding: 20px 0;
  margin: 0;
  overflow: visible;
  height: auto;
  max-height: none;
  position: relative;
}

.section-oficios .container-fluid {
  padding: 0;
  max-width: 100%;
}

.section-title-oficios,
.section-oficios .section-title-oficios,
.site-section.section-oficios .section-title-oficios,
.section-oficios h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  margin: 0 0 30px 0;
  letter-spacing: -0.5px;
  text-transform: none;
  line-height: 1.1;
}

.oficios-carousel {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  height: auto;
  min-height: auto;
  position: relative;
  cursor: grab;
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE y Edge */
}

.oficios-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

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

.oficios-carousel .oficio-item {
  scroll-snap-align: start;
  flex-shrink: 0;
  flex-basis: auto;
}

.oficio-item {
  text-align: center;
  padding: 15px 5px;
  margin: 0;
  cursor: grab;
  overflow: visible;
  position: relative;
  height: auto;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 160px;
  box-sizing: border-box;
  user-select: none;
  touch-action: pan-x;
}

.oficio-item:active {
  cursor: grabbing;
}

/* Estilos para el elemento activo/seleccionado */
.oficio-item.active .oficio-circle {
  border: 5px solid #000000;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  background-color: #f5f5f5;
  position: relative;
  z-index: 10;
}

.oficio-item.active .oficio-circle i {
  color: #000000;
  font-size: 58px;
}

.oficio-item.active .oficio-label {
  font-weight: 700;
  color: #000000;
  font-size: 15px;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* Efectos hover sutiles */
.oficio-item:hover .oficio-circle {
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.oficio-item:hover .oficio-label {
  transform: translateY(-4px);
  transition: transform 0.3s ease;
}

.oficio-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto 10px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #000000;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  transition: transform 0.3s ease;
}

.oficio-circle i {
  font-size: 56px;
  color: #000000;
  z-index: 1;
  transition: transform 0.3s ease;
}

.oficio-item:hover .oficio-circle i {
  transform: scale(0.92);
}

.oficio-imagen {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  z-index: 1;
  display: block;
  transition: transform 0.3s ease;
}

.oficio-item:hover .oficio-imagen {
  transform: scale(0.92);
}

.oficio-label {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  color: #000000;
  font-size: 14px;
  font-weight: 400;
  margin: 15px auto 0 auto;
  padding: 0;
  text-transform: none;
  letter-spacing: -0.1px;
  line-height: 1.3;
  text-align: center;
  width: 100%;
  max-width: 150px;
  display: block;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.oficio-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  touch-action: pan-x;
  -webkit-tap-highlight-color: transparent;
}

/* Asegurar que los efectos hover no interfieran con el click */
.oficio-link:hover {
  text-decoration: none;
  color: inherit;
}

/* Estilos para el carrusel de oficios - ya no usa Slick */

/* Responsive para Oficios */
@media only screen and (max-width: 1199px) {
  .oficios-carousel {
    padding: 10px 15px;
  }
  
  .oficio-circle {
    width: 135px;
    height: 135px;
  }
  
  .oficio-circle i {
    font-size: 54px;
  }
}

@media only screen and (max-width: 992px) {
  .section-oficios,
  .site-section.section-oficios {
    padding: 0;
    margin: 0;
  }
  
  .oficios-carousel {
    padding: 10px 20px;
  }
  
  .oficio-circle {
    width: 130px;
    height: 130px;
  }
  
  .oficio-circle i {
    font-size: 52px;
  }
  
  .oficio-label {
    font-size: 13px;
    max-width: 140px;
  }
  
  /* Ya no se usan estilos de Slick */
}

@media only screen and (max-width: 767px) {
  .section-oficios,
  .site-section.section-oficios {
    padding: 20px 0;
    margin: 0;
  }
  
  /* Ya no se usan estilos de Slick */
  
  .oficios-carousel {
    padding: 10px 15px;
    max-width: 100%;
    justify-content: flex-start;
    margin: 0;
  }
  
  .oficio-circle {
    width: 100px;
    height: 100px;
    margin: 0 auto 12px auto;
  }
  
  .oficio-circle i {
    font-size: 40px;
  }
  
  .oficio-label {
    font-size: 11px;
    margin: 10px auto 0 auto;
    max-width: 110px;
    line-height: 1.3;
    padding: 0 5px;
    text-align: center;
  }
  
  .oficio-item {
    min-height: auto;
    padding: 5px;
    max-width: 120px;
    align-items: center;
  }
}

@media only screen and (max-width: 480px) {
  .section-oficios,
  .site-section.section-oficios {
    padding: 15px 0;
    margin: 0;
  }
  
  .oficios-carousel {
    padding: 10px 10px;
    max-width: 100%;
    justify-content: flex-start;
    margin: 0;
  }
  
  .oficio-circle {
    width: 90px;
    height: 90px;
    margin: 0 auto 10px auto;
  }
  
  .oficio-circle i {
    font-size: 36px;
  }
  
  .oficio-label {
    font-size: 10px;
    margin: 8px auto 0 auto;
    max-width: 100px;
    line-height: 1.2;
    padding: 0 5px;
    text-align: center;
  }
  
  .oficio-item {
    min-height: auto;
    padding: 5px;
    max-width: 110px;
    align-items: center;
  }
  
  .section-oficios h2,
  .section-title-oficios {
    font-size: 24px;
    padding: 0 15px;
    margin-bottom: 15px;
    text-align: left;
  }
}

/* Home Hero + Areas Refresh */
.hero-right-column {
  max-width: 560px;
}

.hero-noticias {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(241,249,255,0.94) 100%);
  border: 1px solid rgba(0,53,79,0.12);
  border-radius: 30px;
  padding: 28px;
  box-shadow: 0 24px 60px rgba(0,53,79,0.22);
}

.hero-noticias-head {
  margin-bottom: 20px;
}

.hero-noticias-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0,229,255,0.12);
  color: var(--site-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-noticias-title {
  margin: 14px 0 8px;
  padding-bottom: 0;
  border-bottom: 0;
  font-size: 32px;
  line-height: 1.02;
  letter-spacing: -0.04em;
  color: var(--site-primary);
}

.hero-noticias-intro {
  margin: 0;
  color: var(--site-text-muted);
  font-size: 15px;
  line-height: 1.55;
}

.hero-noticias-list {
  gap: 16px;
}

.hero-noticia-item {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 16px;
  align-items: stretch;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(0,53,79,0.08);
  background: rgba(255,255,255,0.92);
  box-shadow: 0 10px 26px rgba(0,53,79,0.08);
}

.hero-noticia-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0,229,255,0.35);
  box-shadow: 0 18px 34px rgba(0,53,79,0.14);
}

.hero-noticia-imagen {
  height: 118px;
  margin-bottom: 0;
  border-radius: 16px;
}

.hero-noticia-content {
  gap: 8px;
  justify-content: center;
}

.hero-noticia-titulo {
  font-size: 18px;
  line-height: 1.25;
}

.hero-noticia-titulo-link:hover {
  color: #005b85;
  text-decoration: none;
}

.hero-noticia-texto {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--site-text-muted);
}

.hero-noticia-footer-item {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(0,53,79,0.08);
}

.hero-noticia-fecha {
  color: #6b8796;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
}

.hero-noticia-leer-mas {
  color: var(--site-primary);
  border-bottom: 1px solid rgba(0,53,79,0.3);
  font-weight: 700;
}

.hero-noticia-leer-mas:hover {
  color: #005b85;
  border-bottom-color: #005b85;
}

.hero-noticias-footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(0,53,79,0.1);
}

.btn-ver-mas-noticias {
  width: 100%;
  justify-content: center;
  border-radius: 16px;
  border: 1px solid rgba(0,53,79,0.2);
  background: linear-gradient(135deg, rgba(0,53,79,0.04) 0%, rgba(0,229,255,0.12) 100%);
  color: var(--site-primary);
  font-weight: 700;
  padding: 14px 22px;
}

.btn-ver-mas-noticias:hover {
  background: var(--site-primary);
  color: #ffffff;
}

.section-oficios,
.site-section.section-oficios {
  background: linear-gradient(180deg, #f7fcff 0%, #eef8fd 100%);
  padding: 34px 0 42px;
}

.section-oficios .container-fluid {
  max-width: 1420px;
  padding: 0 28px;
}

.oficios-header {
  max-width: 820px;
  margin: 0 auto 22px;
  text-align: center;
}

.oficios-kicker {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(0,229,255,0.12);
  color: var(--site-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-oficios h2,
.section-title-oficios {
  margin: 14px 0 10px;
  font-size: clamp(28px, 4vw, 46px);
  letter-spacing: -0.05em;
  color: var(--site-primary);
}

.oficios-intro {
  margin: 0 auto;
  max-width: 680px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--site-text-muted);
}

.oficios-carousel {
  padding: 18px 8px 8px;
  gap: 18px;
  justify-content: center;
}

.oficio-item {
  min-height: 192px;
  max-width: 154px;
  padding: 8px 4px 12px;
}

.oficio-circle {
  width: 126px;
  height: 126px;
  border: 1px solid rgba(0,53,79,0.14);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(239,249,255,0.96) 100%);
  box-shadow: 0 14px 30px rgba(0,53,79,0.10);
}

.oficio-circle i {
  color: var(--site-primary);
}

.oficio-item.active .oficio-circle {
  border: 2px solid rgba(0,229,255,0.64);
  box-shadow: 0 18px 34px rgba(0,53,79,0.18);
  background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
  transform: translateY(-4px);
}

.oficio-item.active .oficio-circle i {
  color: #ffffff;
}

.oficio-item.active .oficio-label {
  color: var(--site-primary);
  text-decoration: none;
}

.oficio-item:hover .oficio-circle {
  transform: translateY(-4px) scale(1.02);
}

.oficio-item:hover .oficio-imagen,
.oficio-item:hover .oficio-circle i {
  transform: scale(1.03);
}

.oficio-label {
  margin-top: 14px;
  font-size: 15px;
  font-weight: 600;
  color: var(--site-primary);
}

@media only screen and (max-width: 1199px) {
  .hero-noticia-item {
    grid-template-columns: 100px 1fr;
  }

  .hero-noticia-imagen {
    height: 100px;
  }
}

@media only screen and (max-width: 992px) {
  .hero-container-wrapper {
    gap: 34px;
  }

  .hero-right-column {
    max-width: 100%;
  }

  .hero-noticias {
    padding: 24px;
    border-radius: 24px;
  }

  .hero-noticias-title {
    font-size: 28px;
  }

  .section-oficios,
  .site-section.section-oficios {
    padding: 28px 0 34px;
  }
}

@media only screen and (max-width: 767px) {
  .hero-noticias {
    padding: 20px;
    border-radius: 22px;
  }

  .hero-noticia-item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-noticia-imagen {
    height: 180px;
  }

  .hero-noticias-intro {
    font-size: 14px;
  }

  .section-oficios,
  .site-section.section-oficios {
    padding: 26px 0 32px;
  }

  .section-oficios .container-fluid {
    padding: 0 14px;
  }

  .oficios-carousel {
    padding: 12px 4px 6px;
    justify-content: flex-start;
  }

  .oficio-label {
    font-size: 12px;
  }
}

@media only screen and (max-width: 480px) {
  .hero-noticias {
    padding: 18px;
  }

  .hero-noticias-title {
    font-size: 24px;
  }

  .hero-noticia-imagen {
    height: 156px;
  }

  .section-oficios,
  .site-section.section-oficios {
    padding: 22px 0 28px;
  }

  .oficios-carousel {
    padding: 10px 0 4px;
  }

  .section-oficios h2,
  .section-title-oficios {
    font-size: 28px;
    padding: 0 12px;
    margin-bottom: 8px;
  }
}

/* SITEMAIN
================================================== */
.site-main {
  background-color: #ffffff;
  z-index: 1;
}

/*
 * Sections
 */
.site-section {
  padding: 100px 0;
}

.site-section h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  margin: 0;
  font-size: 48px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  text-transform: none;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.section-subtitle {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  margin: 12px 0 0;
  font-size: 19px;
  line-height: 1.4;
  font-weight: 400;
  color: #000000;
  letter-spacing: -0.2px;
  text-align: center;
  text-transform: none;
}

.section-subtitle span {
  position: relative;
}

.section-subtitle span:before, .section-subtitle span:after {
  display: inline-block;
  content: '';
  height: 1px;
  background-color: #000000;
  width: 20px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -moz-transform: translateY(-50%);
  -o-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
}

.section-subtitle span:before {
  left: -30px;
}

.section-subtitle span:after {
  right: -30px;
}

.section-diff-title h2 {
  margin: 0;
  font-weight: 300;
  color: #000000;
}

.section-diff-title p {
  position: relative;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  margin: 60px 0 0;
}

.section-diff-title p:before {
  content: '';
  display: block;
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  margin: 0 auto;
  height: 1px;
  width: 50px;
  background-color: #000000;
}

@media only screen and (max-width: 991px) {
  /* Sections */
  .site-section {
    padding: 80px 0;
  }
  
  .site-section h2 {
    font-size: 28px;
    padding: 0 20px;
  }
  
  .section-subtitle {
    font-size: 15px;
    padding: 0 20px;
  }
}

@media only screen and (max-width: 767px) {
  /* Sections */
  .site-section {
    padding: 60px 0;
  }
  .site-section h2 {
    font-size: 24px;
    padding: 0 15px;
    line-height: 1.3;
  }
  
  .section-subtitle {
    font-size: 13px;
    padding: 0 15px;
    line-height: 1.4;
    margin-top: 12px;
  }
}

@media only screen and (max-width: 480px) {
  /* Sections generales */
  .site-section {
    padding: 50px 0;
  }
  
  .site-section h2 {
    font-size: 22px;
    padding: 0 12px;
    line-height: 1.3;
  }
  
  .section-subtitle {
    font-size: 12px;
    padding: 0 12px;
    line-height: 1.4;
    margin-top: 10px;
  }
  
  .section-subtitle span:before,
  .section-subtitle span:after {
    width: 15px;
  }
  
  .section-subtitle span:before {
    left: -25px;
  }
  
  .section-subtitle span:after {
    right: -25px;
  }
}

@media only screen and (max-width: 360px) {
  .site-section {
    padding: 40px 0;
  }
  
  .site-section h2 {
    font-size: 20px;
    padding: 0 10px;
  }
  
  .section-subtitle {
    font-size: 11px;
    padding: 0 10px;
  }
  
  .section-subtitle span:before,
  .section-subtitle span:after {
    width: 12px;
  }
  
  .section-subtitle span:before {
    left: -20px;
  }
  
  .section-subtitle span:after {
    right: -20px;
  }
}

/* Section: Hello */
.section-hello .row {
  margin-top: 70px;
}

.section-hello .col-sm-4 {
  min-height: 325px;
}

.main-service {
  position: relative;
  padding: 35px 0;
  min-height: 180px;
}

.main-service .rectangle {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  -webkit-transform: translateY(-50%) rotate(45deg);
  -moz-transform: translateY(-50%) rotate(45deg);
  -o-transform: translateY(-50%) rotate(45deg);
  -ms-transform: translateY(-50%) rotate(45deg);
}

.main-service.text-right {
  padding-right: 90px;
}

.main-service.text-left {
  padding-left: 90px;
}

.main-service.text-left .rectangle {
  right: auto;
  left: 5px;
}

.main-service h3 {
  margin: 0;
  font-size: 16px;
  text-transform: uppercase;
  font-weight: 700;
}

.main-service p {
  margin: 25px 0 0;
  font-size: 12px;
}

@media only screen and (max-width: 1199px) {
  /* Section: Hello */
  .main-service {
    padding: 25px 0;
  }
}

@media only screen and (max-width: 991px) {
  /* Section: Hello */
  .big-rectangle {
    height: 170px;
    width: 170px;
  }
  .main-service {
    padding: 20px 0;
  }
  .main-service h3 {
    font-size: 14px;
  }
  .main-service.text-right {
    padding-right: 75px;
  }
  .main-service.text-left {
    padding-left: 75px;
  }
}

@media only screen and (max-width: 767px) {
  /* Section: Hello */
  .section-hello .row {
    margin-top: 30px;
  }
  .section-hello .col-sm-4 {
    min-height: 240px;
  }
  .section-hello .main-service {
    min-height: 100%;
  }
  .section-hello .main-service p {
    margin-top: 15px;
  }
}

/* Section: About */
.section-about .row {
  margin-top: 70px;
}

.section-about .col-sm-3 {
  min-height: 250px;
}

.section-about .rectangle {
  margin: 15px auto 10px;
}

.section-about .rectangle i {
  font-size: 28px;
}

.feature-about h3 {
  margin: 50px 0 0;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
}

.feature-about p {
  margin: 30px 0 0;
}

@media only screen and (max-width: 767px) {
  .section-about .row {
    margin-top: 30px;
  }
  .section-about .col-xs-6:nth-child(n+3) .feature-about {
    margin-top: 20px;
  }
  .section-about .feature-about h3 {
    margin-top: 30px;
  }
  .section-about .feature-about p {
    margin-top: 15px;
  }
}

@media only screen and (max-width: 479px) {
  .section-about .col-xs-6 {
    width: 100%;
    min-height: 100%;
  }
  .section-about .col-xs-6:nth-child(n+2) .feature-about {
    margin-top: 20px;
  }
}

/* Section: Skills */
.section-skills {
  background-color: #ffffff;
}

.section-skills h2 {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: 40px;
  font-size: 18px;
  color: #000;
  text-transform: uppercase;
  text-align: left;
}

.section-skills h2:before {
  content: '';
  position: absolute;
  bottom: 0;
  display: block;
  width: 40px;
  height: 1px;
  background-color: #000;
}

.section-skills p {
  margin: 10px 0 0;
}

.progress-group p {
  margin: 0;
  text-transform: uppercase;
}

.progress-group + .progress-group {
  margin-top: 20px;
}

.progress {
  position: relative;
  margin: 10px 0 0;
  background-color: #000000;
  border-radius: 0;
  height: 10px;
  box-shadow: none;
  overflow: visible;
}

.progress-bar {
  position: relative;
  background-color: #000000;
  height: 10px;
}

.progress-bar:before {
  content: '';
  position: absolute;
  right: 0;
  top: -10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 15px 20px 15px;
  border-color: transparent transparent #000000 transparent;
  z-index: 2;
}

.progress-bar:after {
  content: '';
  position: absolute;
  right: -8px;
  top: -10px;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0 15px 20px 15px;
  border-color: transparent transparent #ffffff transparent;
  z-index: 1;
}

.progress-bar span {
  width: 40px !important;
  position: absolute;
  top: -30px;
  right: -7px;
  color: #000;
  z-index: 3;
}

.progressbar-back-text {
  display: none;
}

@media only screen and (max-width: 767px) {
  /* Section: Skills */
  .section-skills .col-sm-6 + .col-sm-6 {
    margin-top: 40px;
  }
  .section-skills h2 {
    margin-bottom: 20px;
    font-size: 18px;
  }
}

/* Section: Counters */
.site-section.section-counters {
  padding-bottom: 0;
}

.site-section.section-counters .rectangle {
  margin: 15px auto 10px;
}

.site-section.section-counters .rectangle i,
.site-section.section-counters .rectangle span {
  font-size: 18px;
}

.site-section.section-counters .rectangle i {
  padding-bottom: 20px;
}

.site-section.section-counters .rectangle i + span {
  padding-top: 20px;
}

.site-section.section-counters .row p {
  margin: 30px 0 0;
  text-transform: uppercase;
}

@media only screen and (max-width: 767px) {
  /* Section: Counters */
  .section-counters .col-sm-2:nth-child(n+3) {
    margin-top: 20px;
  }
  .section-counters .row p {
    margin-top: 15px;
  }
}

@media only screen and (max-width: 479px) {
  /* Section: Counters */
  .section-counters .col-sm-2 {
    width: 100%;
  }
  .section-counters .col-sm-2:nth-child(n+2) {
    margin-top: 20px;
  }
}

/* Section: Services */
.section-services.site-section {
  padding: 0;
  background-color: #ffffff;
}

.section-services .container-fluid {
  padding: 100px 15px 70px;
  background-color: #ffffff;
}

.section-services .container-fluid + .container {
  margin-top: 80px;
}

.section-services .col-sm-fifth {
  width: 20%;
  display: table;
}

.section-services .nav-tabs {
  position: relative;
  min-height: 160px;
  width: 100%;
  margin: 70px 0 0;
  bottom: 0;
  left: 0;
  border-bottom: 0;
}

.section-services .nav-tabs .col-sm-fifth {
  height: 160px;
  background: #ffffff;
  border-bottom: 3px solid #000000;
}

.section-services .carousel-inner {
  margin-top: 75px;
}

.section-services .carousel-inner img {
  border-radius: 10px 10px 0 0;
  -webkit-box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.2);
  -o-box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.2);
  -moz-box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.2);
  box-shadow: 0px 0px 18px 0px rgba(0, 0, 0, 0.2);
}

.section-services .item-controls {
  height: 45px;
}

.section-services .item-controls .carousel-control {
  margin: 7px 5px 0;
  position: relative;
  border: 1px solid #000000;
  background: #ffffff;
  width: 30px;
  height: 30px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  opacity: 1;
}

.section-services .item-controls .carousel-control i {
  position: absolute;
  top: 50%;
  left: 50%;
  color: #000;
  font-size: 18px;
  transform: translate(-50%, -50%) rotate(-45deg);
  -webkit-transform: translate(-50%, -50%) rotate(-45deg);
  -moz-transform: translate(-50%, -50%) rotate(-45deg);
  -o-transform: translate(-50%, -50%) rotate(-45deg);
  -ms-transform: translate(-50%, -50%) rotate(-45deg);
  text-shadow: none;
}

.section-services .item-controls .carousel-control:hover, .section-services .item-controls .carousel-control:focus {
  background-color: #000000;
  border-color: #000000;
}

.section-services .item-controls .carousel-control:hover i, .section-services .item-controls .carousel-control:focus i {
  color: #ffffff;
}

.section-services .item-controls.left i {
  padding-right: 3px;
}

.section-services .item-controls.right i {
  padding-left: 3px;
}

.service {
  position: relative;
  display: table-cell;
  vertical-align: middle;
  color: #000;
}

.service .rectangle {
  margin: 0 auto 20px;
  box-shadow: none;
}

.service p {
  position: absolute;
  left: 0;
  right: 0;
  margin-bottom: 0;
  text-transform: uppercase;
  font-size: 12px;
}

.section-services .col-sm-7 {
  position: absolute;
  right: 0;
  bottom: 0;
}

.section-services .col-sm-5 {
  min-height: 390px;
}

.service-info h3 {
  font-size: 28px;
  margin: 20px 0 0;
}

.service-info p {
  margin: 30px 0 0;
}

.nav-tabs .col-sm-fifth,
.item-controls .carousel-control i,
.service .rectangle,
.service p,
.carousel-indicators .service .rectangle i {
  -webkit-transition: all 0.15s ease-in-out;
  -o-transition: all 0.15s ease-in-out;
  -moz-transition: all 0.15s ease-in-out;
  transition: all 0.15s ease-in-out;
}

.carousel-indicators .active .col-sm-fifth,
.carousel-indicators a:hover .col-sm-fifth {
  background-color: #000000;
}

.carousel-indicators .active .service p,
.carousel-indicators a:hover .service p {
  opacity: 0;
  visibility: hidden;
}

.carousel-indicators .active .service .rectangle,
.carousel-indicators a:hover .service .rectangle {
  background-color: #ffffff;
  height: 80px;
  width: 80px;
  margin-bottom: 0;
}

.carousel-indicators .active .service .rectangle i,
.carousel-indicators a:hover .service .rectangle i {
  font-size: 32px;
}

.carousel-indicators .active .service .rectangle {
  color: #000000;
}

.carousel-indicators .active .service:after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -18px;
  margin: 0 auto;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 15px 15px 0 15px;
  border-color: #000000 transparent transparent transparent;
  z-index: 99;
}

@media only screen and (max-width: 991px) {
  /* Section: Services */
  .section-services .container-fluid {
    padding: 80px 15px 50px;
  }
  .section-services .container-fluid + .container {
    margin-top: 60px;
  }
  .section-services .nav-tabs {
    margin-top: 50px;
  }
  .section-services .carousel-inner {
    margin-top: 55px;
  }
  .section-services .service-info h3 {
    margin-top: 0;
  }
  .section-services img {
    margin: 30px auto 0;
  }
}

@media only screen and (max-width: 767px) {
  /* Section: Services */
  .section-services .container-fluid {
    padding: 60px 15px 30px;
  }
  .section-services .container-fluid + .container {
    margin-top: 40px;
  }
  .section-services .nav-tabs {
    margin-top: 30px;
    min-height: 70px;
  }
  .section-services .nav-tabs .col-sm-fifth {
    height: 70px;
  }
  .section-services .carousel-inner {
    margin-top: 35px;
  }
  .section-services .carousel-indicators .active .service .rectangle,
  .section-services .carousel-indicators a:hover .service .rectangle,
  .section-services .carousel-indicators .service .rectangle {
    margin-bottom: 0;
    height: 28px;
    width: 28px;
  }
  .section-services .carousel-indicators .active .service .rectangle i,
  .section-services .carousel-indicators a:hover .service .rectangle i,
  .section-services .carousel-indicators .service .rectangle i {
    font-size: 14px;
  }
  .section-services .col-sm-5 {
    min-height: 100%;
  }
  .section-services .col-sm-7 {
    position: relative;
  }
  .section-services .service-info h3 {
    font-size: 22px;
  }
  .section-services .service-info p {
    margin: 15px 0 0;
  }
}

/* Section: Reviews */
.site-section.section-reviews {
  padding-bottom: 0;
}

.site-section.section-reviews .blue-bg {
  margin-top: 50px;
  padding: 70px 0px;
}

.review-carousel {
  padding: 0 50px;
}

.review-carousel .slick.rectangle {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  box-shadow: none;
  z-index: 99;
  background-color: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
}

.review-carousel .slick.rectangle:hover {
  background-color: #ffffff;
  color: #000000;
}

.review-carousel .slick.rectangle.slick-next {
  right: 0;
}

.review-carousel .slick.rectangle.slick-prev {
  left: 0;
}

.review .rectangle {
  width: 80px;
  height: 80px;
  border: 0;
  margin: 20px auto 0;
  overflow: hidden;
  box-shadow: none;
}

.review .img-res {
  max-width: 150%;
  max-height: 150%;
}

.review p {
  margin: 45px auto 0;
  color: #ffffff;
  max-width: 1000px;
  overflow-x: hidden;
}

.review .review-author {
  position: relative;
  margin-top: 70px;
}

.review .review-author:before {
  content: '';
  position: absolute;
  top: -35px;
  left: 0;
  right: 0;
  display: block;
  height: 1px;
  width: 50px;
  background-color: #ffffff;
  margin: 0 auto;
}

.review .review-author h3 {
  margin: 0;
  font-size: 14px;
  color: #ffffff;
}

.review .review-author p {
  margin-top: 5px;
}

@media only screen and (max-width: 767px) {
  /* Section: Reviews */
  .section-reviews.site-section .blue-bg {
    margin-top: 30px;
    padding: 40px 0;
  }
  .section-reviews.site-section .review-carousel {
    padding: 0 15px;
  }
  .section-reviews.site-section .review-carousel .slick.rectangle {
    top: 45px;
  }
  .section-reviews.site-section .review-author {
    margin-top: 50px;
  }
  .section-reviews.site-section .review-author:before {
    top: -25px;
  }
}

/* Section: Team */
.team {
  margin-top: 50px;
}

.team-member {
  height: 335px;
  perspective: 1000;
  -webkit-perspective: 1000;
  -moz-perspective: 1000;
  -o-perspective: 1000;
  -ms-perspective: 1000;
  transform: perspective(1000px);
  -webkit-transform: perspective(1000px);
  -moz-transform: perspective(1000px);
  -o-transform: perspective(1000px);
  -ms-transform: perspective(1000px);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
}

.team-member:hover .flipper {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  -moz-transform: rotateY(180deg);
  -o-transform: rotateY(180deg);
  -ms-transform: rotateY(180deg);
}

.team-member .flipper {
  -webkit-transition: 0.6s;
  -o-transition: 0.6s;
  -moz-transition: 0.6s;
  transition: 0.6s;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  position: relative;
}

.team-member .team-member-front,
.team-member .team-member-back {
  height: 335px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -o-backface-visibility: hidden;
  -ms-backface-visibility: hidden;
  -webkit-transition: 0.6s;
  -o-transition: 0.6s;
  -moz-transition: 0.6s;
  transition: 0.6s;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
  -moz-transform-style: preserve-3d;
  -o-transform-style: preserve-3d;
  -ms-transform-style: preserve-3d;
  transform: rotateY(0deg);
  -webkit-transform: rotateY(0deg);
  -moz-transform: rotateY(0deg);
  -o-transform: rotateY(0deg);
  -ms-transform: rotateY(0deg);
  position: absolute;
  top: 0;
  left: 0;
}

.team-member .team-member-front {
  z-index: 2;
  border: 1px solid #ccc;
  width: 100%;
}

.team-member .team-member-front .team-member-thumb {
  height: 260px;
  border: 2px solid #000000;
}

.team-member .team-member-front .team-member-thumb img {
  margin: 0 auto;
}

.team-member .team-member-front .team-member-front-name {
  text-align: center;
  margin: 20px 0 0;
  font-weight: 600;
}

.team-member .team-member-back {
  padding: 0 20px;
  display: table;
  background: #000000;
  text-align: center;
  color: #ffffff;
  transform: rotateY(-180deg);
  -webkit-transform: rotateY(-180deg);
  -moz-transform: rotateY(-180deg);
  -o-transform: rotateY(-180deg);
  -ms-transform: rotateY(-180deg);
  z-index: 5;
}

.team-member .team-member-back .team-member-info {
  display: table-cell;
  vertical-align: middle;
  margin: 0 auto;
}

.team-member .team-member-back .team-member-back-name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.team-member .team-member-back .team-member-back-position {
  margin: 10px 0 0;
  font-size: 12px;
}

.team-member .team-member-back .team-member-back-info {
  position: relative;
  margin: 60px 0 0;
  font-size: 12px;
}

.team-member .team-member-back .team-member-back-info:before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  display: block;
  height: 1px;
  width: 30px;
  background-color: #ffffff;
  margin: 0 auto;
}

@media only screen and (max-width: 991px) {
  /* Section: Team */
  .section-team .col-xs-6:nth-child(n+3) {
    margin-top: 30px;
  }
}

@media only screen and (max-width: 767px) {
  /* Section: Team */
  .team {
    margin-top: 30px;
  }
}

@media only screen and (max-width: 479px) {
  /* Section: Team */
  .section-team .col-xs-6 {
    width: 100%;
  }
  .section-team .col-xs-6:nth-child(n+2) {
    margin-top: 30px;
  }
}

/* Section: History */
.section-history {
  padding: 70px 0;
  background-color: #ffffff;
}

.section-history .section-diff-title h2 {
  color: #000000;
}

.section-history .section-diff-title p {
  text-transform: uppercase;
}

.timeline {
  margin: 50px 0 0;
  padding-left: 0;
  list-style: none;
  position: relative;
}

.timeline:before {
  top: 0;
  bottom: 0;
  position: absolute;
  content: " ";
  width: 1px;
  background-color: #000000;
  left: 50%;
  margin-left: -0.5px;
}

.timeline > li {
  position: relative;
}

.timeline > li + li {
  margin-top: 50px;
}

.timeline > li:before, .timeline > li:after {
  content: " ";
  display: table;
}

.timeline > li:after {
  clear: both;
}

.timeline > li.timeline-start .rectangle, .timeline > li.timeline-end .rectangle {
  display: block;
  position: relative;
  left: 0.5px;
  margin: 0 auto;
  background-color: #ffffff;
  box-shadow: none;
}

.timeline > li.timeline-start .rectangle span, .timeline > li.timeline-end .rectangle span {
  font-size: 12px;
  text-transform: uppercase;
}

.timeline > li > .timeline-panel {
  width: 50%;
  float: left;
  border-bottom: 1px solid #000000;
  border-radius: 2px;
  position: relative;
  padding-right: 10px;
}

.timeline > li > .timeline-panel:before {
  content: " ";
  position: absolute;
  top: 15px;
  right: 0px;
  background-color: #ffffff;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  z-index: 2;
}

.timeline > li > .timeline-panel .timeline-heading {
  background-color: #000000;
  line-height: 50px;
  height: 50px;
}

.timeline > li > .timeline-panel .timeline-heading p {
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0;
  color: #ffffff;
}

.timeline > li > .timeline-panel .timeline-heading .timeline-date,
.timeline > li > .timeline-panel .timeline-heading .timeline-position {
  display: inline-block;
}

.timeline > li > .timeline-panel .timeline-heading .timeline-date {
  padding: 0 10px;
  background-color: #000000;
}

.timeline > li > .timeline-panel .timeline-heading .timeline-position {
  padding-left: 5px;
}

.timeline > li > .timeline-panel .timeline-body {
  position: relative;
  padding: 20px 0;
  min-height: 140px;
}

.timeline > li > .timeline-panel .timeline-body .timeline-body-thumb {
  width: 100px;
  height: 100px;
  position: absolute;
  top: 20px;
}

.timeline > li > .timeline-panel .timeline-body p {
  padding-left: 120px;
  margin-bottom: 0;
}

.timeline > li .timeline-rectangle {
  position: absolute;
  margin: 0 auto;
  top: 15px;
  left: 0.5px;
  right: 0;
  background-color: #000000;
  width: 20px;
  height: 20px;
  border: 0;
  box-shadow: none;
  z-index: 99;
}

.timeline > li.timeline-inverted .timeline-heading {
  text-align: right;
}

.timeline > li.timeline-inverted .timeline-panel {
  float: right;
  padding: 0 0 0 10px;
}

.timeline > li.timeline-inverted .timeline-panel .timeline-position {
  padding: 0 5px 0 0;
}

.timeline > li.timeline-inverted .timeline-panel:before {
  left: 0px;
  right: auto;
}

@media only screen and (max-width: 767px) {
  /* Section: History */
  .section-history {
    padding: 50px 0;
  }
  .section-history h2 {
    font-size: 22px;
  }
  .section-diff-title p {
    margin-top: 40px;
  }
  .section-diff-title p:before {
    top: -20px;
  }
  .timeline {
    margin: 30px 0 0;
  }
  .timeline:before {
    left: 88%;
  }
  .timeline > li + li {
    margin-top: 30px;
  }
  .timeline > li.timeline-start .rectangle, .timeline > li.timeline-end .rectangle {
    left: 38%;
  }
  .timeline > li > .timeline-panel {
    width: 88%;
  }
  .timeline > li > .timeline-panel .timeline-heading p {
    font-size: 12px;
  }
  .timeline > li > .timeline-panel .timeline-heading .timeline-date,
  .timeline > li > .timeline-panel .timeline-heading .timeline-position {
    padding: 0 8px;
  }
  .timeline > li > .timeline-panel .timeline-heading .timeline-date {
    float: left;
  }
  .timeline > li .timeline-rectangle {
    left: 76%;
  }
  .timeline > li.timeline-inverted .timeline-heading {
    text-align: left;
  }
  .timeline > li.timeline-inverted .timeline-date {
    float: left;
  }
  .timeline > li.timeline-inverted > .timeline-panel {
    float: left;
    padding: 0 10px 0 0;
  }
  .timeline > li.timeline-inverted > .timeline-panel:before {
    left: auto;
    right: 0;
  }
}

@media only screen and (max-width: 479px) {
  .timeline {
    margin: 30px 0 0;
  }
  .timeline:before {
    left: 50%;
  }
  .timeline > li.timeline-start .rectangle, .timeline > li.timeline-end .rectangle {
    left: auto;
  }
  .timeline > li > .timeline-panel {
    background-color: #ffffff;
    width: 100%;
    padding-right: 0;
  }
  .timeline > li .timeline-panel:before {
    content: none;
  }
  .timeline > li .timeline-rectangle {
    disply: none;
  }
}

/* Section: Portfolio */
.portfolio {
  margin-top: 50px;
}

/* Filtros minimalistas estilo Apple */
.portfolio-sorting {
  margin: 0 0 20px 0;
  padding: 0;
  list-style: none;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  border: none;
  height: auto;
}

.portfolio-sorting li {
  padding: 0;
  float: none;
}

.portfolio-sorting li a {
  position: relative;
  display: inline-block;
  padding: 10px 24px;
  line-height: 1.4;
  height: auto;
  border: 1px solid #000000;
  border-radius: 20px;
  text-transform: none;
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  background: #ffffff;
  transition: all 0.2s ease;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.portfolio-sorting li a:hover {
  background-color: #ffffff;
  border-color: #000000;
  color: #000000;
}

.portfolio-sorting li a.active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

.portfolio-sorting li a:hover:after, .portfolio-sorting li a.active:after {
  border-color: #000000;
}

/* Estilos antiguos de filtros eliminados - ahora usamos diseño minimalista */

/* Sección de proyectos estilo Apple minimalista */
.section-works {
  background-color: #ffffff;
  padding: 80px 0;
}

.section-works h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.section-works .section-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #000000;
  text-align: center;
  margin: 0 0 50px 0;
  letter-spacing: -0.2px;
}

.section-works .section-subtitle span {
  color: #000000;
}

/* Nuevo diseño de tarjetas estilo Apple - 3 columnas fijas */
.section-works .container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
}

#grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 30px !important;
  padding: 40px 0 !important;
  margin: 0 !important;
  width: 100% !important;
  position: relative !important;
  /* Forzar que el grid se mantenga */
  grid-auto-flow: row !important;
}

/* Asegurar que Shuffle.js no rompa el grid */
#grid.shuffle-container {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  grid-auto-flow: row !important;
}

.project-card-wrapper {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  position: relative !important;
  /* Asegurar que cada item ocupe solo su columna del grid */
  grid-column: auto !important;
  grid-row: auto !important;
  /* Remover cualquier transform o position absolute de Shuffle.js */
  left: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
}

/* Cuando Shuffle.js está activo, mantener el grid layout */
.shuffle-item {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  opacity: 1;
  transition: opacity 0.3s ease !important;
  /* No usar transform para posicionar, solo para animaciones */
  transform: none !important;
}

.shuffle-item.shuffle-item-hidden {
  opacity: 0 !important;
  visibility: hidden !important;
  /* Mantener el espacio en el grid pero oculto */
  display: none !important;
}

.shuffle-item.shuffle-item-visible {
  opacity: 1 !important;
  visibility: visible !important;
}

.project-card-link {
  width: 100%;
  height: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
}

.project-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.project-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.project-card-image {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #ffffff;
}

.project-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.project-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.project-card:hover .project-card-overlay {
  background: rgba(0, 0, 0, 0.3);
  opacity: 1;
}

.project-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000000;
  font-size: 18px;
  transition: all 0.3s ease;
  transform: scale(0.8);
}

.project-card:hover .project-card-icon {
  transform: scale(1);
}

.project-card-icon:hover {
  background: #000000;
  color: #ffffff;
  transform: scale(1.1);
}

.project-card-content {
  padding: 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.project-card-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 8px 0;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.project-card-description {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #000000;
  margin: 0;
  line-height: 1.5;
  letter-spacing: -0.1px;
}

/* Página de detalle del proyecto - Estilo Apple minimalista */
.project-detail-section {
  background-color: #ffffff;
  min-height: calc(100vh - 200px);
  padding: 100px 0 80px;
}

.project-detail-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.project-back-link {
  display: none; /* Oculto por defecto en desktop */
}

/* Botón flotante redondo para móvil */
@media only screen and (max-width: 991px) {
  .project-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 91px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 99997 !important;
    transition: all 0.3s ease;
    border: none;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
  }
  
  .project-back-link:hover,
  .project-back-link:focus {
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
  
  .project-back-link:hover i,
  .project-back-link:focus i {
    color: #ffffff !important;
  }
  
  .project-back-link:active {
    transform: scale(0.95);
  }
  
  .project-back-link i {
    font-size: 20px;
    margin: 0;
    color: #ffffff !important;
  }
  
  .project-back-link * {
    color: #ffffff !important;
  }
  
  .project-back-link span {
    display: none; /* Ocultar texto en móvil, solo mostrar icono */
  }
  
  /* Ajustes para móviles más pequeños */
  @media only screen and (max-width: 480px) {
    .project-back-link {
      width: 50px;
      height: 50px;
      bottom: 75px !important;
      right: 20px !important;
      left: auto !important;
    }
    
    .project-back-link i {
      font-size: 18px;
      color: #ffffff !important;
    }
  }
}

.project-detail-header {
  margin-bottom: 60px;
}

.project-detail-image {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

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

.project-detail-title-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.project-detail-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 56px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 12px 0;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.project-detail-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 21px;
  font-weight: 400;
  color: #000000;
  margin: 0 0 24px 0;
  letter-spacing: -0.3px;
}

.project-detail-categories {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.project-category-badge {
  display: inline-block;
  padding: 6px 16px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #000000;
  letter-spacing: -0.1px;
}

.project-detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.project-detail-description,
.project-detail-technologies {
  margin-bottom: 50px;
}

.project-detail-description h2,
.project-detail-technologies h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.project-detail-description p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #000000;
  line-height: 1.6;
  margin: 0 0 20px 0;
  letter-spacing: -0.2px;
}

.technologies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.technology-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid #000000;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #000000;
  transition: all 0.2s ease;
}

.technology-item:hover {
  border-color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.technology-item i {
  color: #000000;
  font-size: 18px;
}

.project-detail-action {
  text-align: center;
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid #000000;
}

.btn-project-visit {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: -0.2px;
}

.btn-project-visit:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  text-decoration: none;
  transform: scale(1.02);
}

.btn-project-visit i {
  font-size: 16px;
}

.project-not-found {
  text-align: center;
  padding: 100px 20px;
}

.project-not-found h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}

.project-not-found p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  color: #000000;
  margin: 0 0 40px 0;
}

/* Responsive para página de detalle */
@media only screen and (max-width: 991px) {
  .project-detail-section {
    padding: 100px 0 60px;
  }
  
  .project-detail-image {
    margin-bottom: 40px;
  }
  
  .project-detail-image img {
    border-radius: 12px;
  }
  
  .project-detail-title {
    font-size: 42px;
  }
  
  .project-detail-subtitle {
    font-size: 19px;
  }
  
  .project-detail-categories {
    gap: 8px;
  }
  
  .project-category-badge {
    padding: 5px 14px;
    font-size: 12px;
  }
  
  .project-detail-description,
  .project-detail-technologies {
    margin-bottom: 40px;
  }
  
  .project-detail-description h2,
  .project-detail-technologies h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .project-detail-description p {
    font-size: 17px;
    line-height: 1.6;
  }
  
  .technologies-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
  
  .technology-item {
    padding: 12px 16px;
    font-size: 15px;
  }
  
  .project-detail-action {
    margin-top: 40px;
  }
  
  .btn-project-visit {
    padding: 14px 32px;
    font-size: 16px;
  }
}

@media only screen and (max-width: 767px) {
  .project-detail-section {
    padding: 100px 0 40px;
  }
  
  .project-detail-header {
    margin-bottom: 40px;
  }
  
  /* .project-back-link ya tiene estilos en su media query principal */
  
  .project-detail-image {
    margin-bottom: 30px;
  }
  
  .project-detail-image img {
    border-radius: 10px;
  }
  
  .project-detail-title {
    font-size: 36px;
    letter-spacing: -0.6px;
  }
  
  .project-detail-subtitle {
    font-size: 17px;
    margin-bottom: 20px;
  }
  
  .project-detail-categories {
    gap: 6px;
    margin-top: 18px;
  }
  
  .project-category-badge {
    padding: 5px 12px;
    font-size: 11px;
  }
  
  .project-detail-content {
    padding: 0 10px;
  }
  
  .project-detail-description,
  .project-detail-technologies {
    margin-bottom: 35px;
  }
  
  .project-detail-description h2,
  .project-detail-technologies h2 {
    font-size: 24px;
    margin-bottom: 18px;
  }
  
  .project-detail-description p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
  
  .technologies-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .technology-item {
    padding: 11px 15px;
    font-size: 14px;
  }
  
  .project-detail-action {
    margin-top: 35px;
  }
  
  .btn-project-visit {
    padding: 12px 28px;
    font-size: 15px;
  }
}

@media only screen and (max-width: 480px) {
  .project-detail-section {
    padding: 100px 0 35px;
  }
  
  .project-detail-header {
    margin-bottom: 35px;
  }
  
  .project-back-link {
    margin-bottom: 25px;
    font-size: 14px;
  }
  
  .project-detail-image {
    margin-bottom: 25px;
  }
  
  .project-detail-title {
    font-size: 30px;
    letter-spacing: -0.4px;
  }
  
  .project-detail-subtitle {
    font-size: 16px;
    margin-bottom: 18px;
  }
  
  .project-detail-categories {
    gap: 5px;
    margin-top: 15px;
  }
  
  .project-category-badge {
    padding: 4px 10px;
    font-size: 10px;
  }
  
  .project-detail-content {
    padding: 0 5px;
  }
  
  .project-detail-description,
  .project-detail-technologies {
    margin-bottom: 30px;
  }
  
  .project-detail-description h2,
  .project-detail-technologies h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .project-detail-description p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
  }
  
  .technologies-grid {
    gap: 10px;
  }
  
  .technology-item {
    padding: 10px 14px;
    font-size: 13px;
  }
  
  .project-detail-action {
    margin-top: 30px;
  }
  
  .btn-project-visit {
    padding: 11px 24px;
    font-size: 14px;
    width: 100%;
    text-align: center;
  }
}

/* Estilos para página de detalle de trabajo */
.trabajo-detail-section {
  background-color: #ffffff;
  min-height: calc(100vh - 200px);
  padding: 100px 0 80px;
}

.trabajo-back-link {
  display: none; /* Oculto por defecto en desktop */
}

/* Botón flotante redondo para móvil */
@media only screen and (max-width: 991px) {
  .trabajo-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    bottom: 91px;
    right: 30px;
    width: 56px;
    height: 56px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 99997 !important;
    transition: all 0.3s ease;
    border: none;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
  }
  
  .trabajo-back-link:hover,
  .trabajo-back-link:focus {
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
  
  .trabajo-back-link:hover i,
  .trabajo-back-link:focus i {
    color: #ffffff !important;
  }
  
  .trabajo-back-link:active {
    transform: scale(0.95);
  }
  
  .trabajo-back-link i {
    font-size: 20px;
    margin: 0;
    color: #ffffff !important;
  }
  
  .trabajo-back-link * {
    color: #ffffff !important;
  }
  
  .trabajo-back-link span,
  .trabajo-back-link .trabajo-back-text {
    display: none !important; /* Ocultar texto en móvil, solo mostrar icono */
  }
  
  .trabajo-back-link {
    font-size: 0;
  }
  
  .trabajo-back-link i {
    font-size: 20px;
  }
  
  /* Ajustes para móviles más pequeños */
  @media only screen and (max-width: 480px) {
    .trabajo-back-link {
      width: 50px;
      height: 50px;
      bottom: 75px !important;
      right: 20px !important;
      left: auto !important;
    }
    
    .trabajo-back-link i {
      font-size: 18px;
      color: #ffffff !important;
    }
  }
}

.trabajo-detail-company {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
}

.trabajo-detail-logo {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.trabajo-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.trabajo-detail-company-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 28px;
  font-weight: 600;
  color: #000000;
  margin: 0;
}

.trabajo-detail-company-name a {
  color: #000000;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.trabajo-detail-company-name a:hover {
  opacity: 0.7;
  text-decoration: none;
}

.trabajo-detail-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 56px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
  line-height: 1.1;
}

.trabajo-detail-areas {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.trabajo-area-badge {
  display: inline-block;
  padding: 6px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  background-color: #f5f5f5;
  border: 1px solid #000000;
  border-radius: 20px;
  text-transform: none;
  letter-spacing: 0;
}

.trabajo-detail-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 40px;
  padding: 20px;
  background-color: #f9f9f9;
  border-radius: 12px;
}

.trabajo-date-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #000000;
}

.trabajo-date-item i {
  font-size: 18px;
  color: #000000;
}

.trabajo-badge-current {
  display: inline-block;
  padding: 6px 16px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  background-color: #000000;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.trabajo-detail-description h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 24px 0;
}

.trabajo-detail-description p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #000000;
  line-height: 1.6;
  margin-bottom: 20px;
}

.trabajo-not-found {
  text-align: center;
  padding: 80px 20px;
}

.trabajo-not-found h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 16px 0;
}

.trabajo-not-found p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  color: #666666;
  margin: 0 0 32px 0;
}

.trabajo-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background-color: #000000;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.trabajo-back-btn:hover {
  background-color: #333333;
  color: #ffffff;
  text-decoration: none;
}

/* Enlace de trabajo en timeline */
.timeline-job-link {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.timeline-job-link:hover {
  color: #666666;
  text-decoration: underline;
}

/* Responsive para página de trabajo */
@media only screen and (max-width: 991px) {
  .trabajo-detail-section {
    padding: 100px 0 60px;
  }
  
  .trabajo-detail-company {
    flex-direction: column;
    text-align: center;
  }
  
  .trabajo-detail-title {
    font-size: 42px;
  }
  
  .trabajo-detail-company-name {
    font-size: 24px;
  }
  
  .trabajo-detail-dates {
    flex-direction: column;
    gap: 15px;
  }
  
  .trabajo-detail-description h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .trabajo-detail-description p {
    font-size: 17px;
    line-height: 1.6;
  }
}

@media only screen and (max-width: 767px) {
  .trabajo-detail-section {
    padding: 100px 0 40px;
  }
  
  .trabajo-back-link {
    margin-bottom: 30px;
    font-size: 15px;
  }
  
  .trabajo-detail-company {
    margin-bottom: 25px;
    padding: 15px;
  }
  
  .trabajo-detail-logo {
    width: 60px;
    height: 60px;
  }
  
  .trabajo-detail-title {
    font-size: 36px;
    letter-spacing: -0.6px;
  }
  
  .trabajo-detail-company-name {
    font-size: 22px;
  }
  
  .trabajo-detail-areas {
    gap: 6px;
    margin-top: 18px;
  }
  
  .trabajo-area-badge {
    padding: 5px 12px;
    font-size: 13px;
  }
  
  .trabajo-detail-dates {
    padding: 15px;
    gap: 12px;
  }
  
  .trabajo-date-item {
    font-size: 15px;
  }
  
  .trabajo-detail-description h2 {
    font-size: 24px;
    margin-bottom: 18px;
  }
  
  .trabajo-detail-description p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
}

@media only screen and (max-width: 480px) {
  .trabajo-detail-section {
    padding: 100px 0 35px;
  }
  
  /* .trabajo-back-link ya tiene estilos flotantes en su media query principal */
  
  .trabajo-detail-company {
    margin-bottom: 20px;
    padding: 12px;
  }
  
  .trabajo-detail-logo {
    width: 50px;
    height: 50px;
  }
  
  .trabajo-detail-title {
    font-size: 30px;
    letter-spacing: -0.4px;
  }
  
  .trabajo-detail-company-name {
    font-size: 20px;
  }
  
  .trabajo-detail-areas {
    gap: 5px;
    margin-top: 15px;
  }
  
  .trabajo-area-badge {
    padding: 4px 10px;
    font-size: 12px;
  }
  
  .trabajo-detail-dates {
    padding: 12px;
    gap: 10px;
  }
  
  .trabajo-date-item {
    font-size: 14px;
  }
  
  .trabajo-detail-description h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .trabajo-detail-description p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
  }
  
  .trabajo-back-btn {
    padding: 12px 28px;
    font-size: 15px;
    width: 100%;
    text-align: center;
  }
}

/* Página de Noticias - Estilo Apple con formato de periódico */
.noticias-page-section {
  background-color: #ffffff;
  min-height: calc(100vh - 200px);
  padding: 100px 0 80px;
}

.noticias-page-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.noticias-page-header {
  margin-bottom: 60px;
  text-align: center;
}

.noticias-back-link {
  display: none; /* Oculto por defecto en desktop */
}

/* Botón flotante redondo para móvil */
@media only screen and (max-width: 991px) {
  .noticias-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    bottom: 91px !important;
    right: 30px !important;
    width: 56px;
    height: 56px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 99997 !important;
    transition: all 0.3s ease;
    border: none;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
  }
  
  .noticias-back-link:hover,
  .noticias-back-link:focus {
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
  
  .noticias-back-link:hover i,
  .noticias-back-link:focus i {
    color: #ffffff !important;
  }
  
  .noticias-back-link:active {
    transform: scale(0.95);
  }
  
  .noticias-back-link i {
    font-size: 20px;
    margin: 0;
    color: #ffffff !important;
  }
  
  .noticias-back-link * {
    color: #ffffff !important;
  }
  
  .noticias-back-text {
    display: none; /* Ocultar texto en móvil, solo mostrar icono */
  }
  
  /* Ajustes para móviles más pequeños */
  @media only screen and (max-width: 480px) {
    .noticias-back-link {
      width: 50px;
      height: 50px;
      bottom: 75px !important;
      right: 20px !important;
      left: auto !important;
    }
    
    .noticias-back-link i {
      font-size: 18px;
      color: #ffffff !important;
    }
  }
}

.noticias-page-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 56px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 12px 0;
  letter-spacing: -1px;
  line-height: 1.1;
}

.noticias-page-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 21px;
  font-weight: 400;
  color: #666666;
  margin: 0 0 40px 0;
  letter-spacing: -0.2px;
}

/* Buscador y Filtros */
.noticias-filtros {
  margin-top: 40px;
  margin-bottom: 40px;
}

.noticias-buscador {
  position: relative;
  max-width: 500px;
  margin: 0 auto 30px;
}

.noticias-buscador i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #666666;
  font-size: 16px;
}

.noticias-search-input {
  width: 100%;
  padding: 14px 20px 14px 45px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  color: #000000;
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 12px;
  outline: none;
  transition: all 0.2s ease;
}

.noticias-search-input:focus {
  border-color: #000000;
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.1);
}

.noticias-search-input::placeholder {
  color: #999999;
}

.noticias-filtros-categorias {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 20px;
}

.filtro-categoria-btn {
  padding: 10px 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #000000;
  background-color: transparent;
  border: 2px solid #000000;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  letter-spacing: -0.1px;
}

.filtro-categoria-btn:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

.filtro-categoria-btn.active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
}

/* Badges de categorías en noticias */
.noticia-categorias-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
}

.noticia-categoria-badge {
  display: inline-block;
  padding: 4px 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #000000;
  background-color: #f5f5f5;
  border: 1px solid #000000;
  border-radius: 12px;
  text-transform: none;
  letter-spacing: 0;
}

.noticia-categoria-badge-small {
  display: inline-block;
  padding: 3px 10px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: #000000;
  background-color: #f5f5f5;
  border: 1px solid #000000;
  border-radius: 10px;
  text-transform: none;
  letter-spacing: 0;
}

.noticias-no-resultados {
  text-align: center;
  padding: 60px 20px;
  margin-top: 40px;
}

.noticias-no-resultados p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  color: #666666;
  margin: 0;
}

.noticias-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-top: 60px;
}

/* Formato de dos columnas para las últimas 3 noticias */
.noticias-dos-columnas {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
  border-top: 3px solid #000000;
  padding-top: 40px;
}

.noticias-columna-izq {
  display: flex;
  flex-direction: column;
}

.noticias-columna-der {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

/* Noticia destacada en columna izquierda */
.noticia-destacada-columna {
  display: flex;
  flex-direction: column;
}

.noticia-destacada-columna .noticia-destacada-imagen {
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.noticia-destacada-columna .noticia-destacada-imagen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

.noticia-destacada-columna .noticia-destacada-titulo {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 20px 0;
  letter-spacing: -0.4px;
  line-height: 1.3;
  border-left: 4px solid #000000;
  padding-left: 18px;
}

.noticia-destacada-columna .noticia-destacada-contenido {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  color: #333333;
  line-height: 1.7;
  letter-spacing: -0.1px;
  margin: 0;
}

.noticia-destacada-columna .noticia-destacada-contenido p:first-child {
  font-size: 19px;
  font-weight: 500;
  line-height: 1.6;
  color: #1a1a1a;
}

/* Noticias en columna derecha */
.noticia-columna-der-item {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 30px;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.noticia-columna-der-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.noticia-columna-der-item:hover {
  background-color: #f9f9f9;
  padding: 15px;
  margin: -15px;
  border-radius: 12px;
}

.noticia-columna-der-imagen {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.noticia-columna-der-imagen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
}

.noticia-columna-der-item:hover .noticia-columna-der-imagen img {
  transform: scale(1.05);
}

.noticia-columna-der-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.noticia-columna-der-titulo {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  margin: 0;
  letter-spacing: -0.3px;
  line-height: 1.3;
}

.noticia-columna-der-resumen {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #333333;
  line-height: 1.6;
  letter-spacing: -0.1px;
  margin: 0;
}

/* Noticia Destacada (Primera noticia - formato de periódico) */
.noticia-destacada {
  grid-column: 1 / -1;
  border-top: 3px solid #000000;
  border-bottom: 1px solid #e0e0e0;
  padding: 40px 0;
  margin-bottom: 20px;
}

.noticia-destacada-imagen {
  width: 100%;
  max-width: 900px;
  aspect-ratio: 16 / 9;
  margin: 0 auto 30px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  position: relative;
}

.noticia-destacada-imagen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  position: absolute;
  top: 0;
  left: 0;
}

.noticia-destacada-content {
  max-width: 800px;
  margin: 0 auto;
}

.noticia-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.noticia-separador {
  color: #999999;
}

.noticia-fecha-completa {
  font-weight: 500;
}

.noticia-fecha-corta {
  font-weight: 400;
}

.noticia-destacada-titulo {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 42px;
  font-weight: 700;
  color: #000000;
  margin: 0 0 30px 0;
  letter-spacing: -0.8px;
  line-height: 1.2;
  border-left: 4px solid #000000;
  padding-left: 20px;
}

.noticia-destacada-contenido {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  line-height: 1.8;
  letter-spacing: -0.1px;
  text-align: left;
}

.noticia-destacada-contenido p {
  margin: 0 0 20px 0;
  text-align: left;
}

.noticia-destacada-contenido p:first-child {
  font-size: 20px;
  font-weight: 500;
  line-height: 1.7;
  color: #1a1a1a;
}

.noticia-destacada-contenido p:last-child {
  margin-bottom: 0;
}

/* Noticias secundarias (formato de periódico en columnas) */
.noticia-item {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  border-bottom: 1px solid #e0e0e0;
  padding: 30px 0;
  transition: background-color 0.2s ease;
}

.noticia-item:hover {
  background-color: #f9f9f9;
}

.noticia-item-imagen {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  position: relative;
}

.noticia-item-imagen img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  transition: transform 0.3s ease;
  position: absolute;
  top: 0;
  left: 0;
}

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

.noticia-item-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 0;
}

.noticia-item-titulo {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 24px;
  font-weight: 600;
  color: #000000;
  margin: 0;
  letter-spacing: -0.4px;
  line-height: 1.3;
}

.noticia-item-contenido {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #333333;
  line-height: 1.6;
  letter-spacing: -0.1px;
}

.noticia-item-contenido p {
  margin: 0 0 12px 0;
}

.noticia-item-contenido p:last-child {
  margin-bottom: 0;
}

.noticia-resumen {
  font-weight: 500;
  color: #1a1a1a;
  font-size: 17px;
  line-height: 1.7;
}

.noticias-empty {
  text-align: center;
  padding: 80px 20px;
}

.noticias-empty p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  color: #666666;
  margin: 0 0 24px 0;
}

/* Paginación de noticias */
.noticias-paginacion {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 60px;
  padding: 40px 20px;
  flex-wrap: wrap;
}

.noticias-pagina-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.noticias-pagina-btn:hover {
  background-color: #000000;
  color: #ffffff;
  text-decoration: none;
}

.noticias-pagina-btn i {
  font-size: 12px;
}

.noticias-pagina-numeros {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.noticias-pagina-numero {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000000;
  background-color: #ffffff;
  border: 2px solid #000000;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
}

.noticias-pagina-numero:hover {
  background-color: #f5f5f5;
  text-decoration: none;
  color: #000000;
}

.noticias-pagina-numero.active {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
  font-weight: 600;
}

.noticias-pagina-numero.active:hover {
  background-color: #000000;
  color: #ffffff;
}

.noticias-pagina-ellipsis {
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: #666666;
  user-select: none;
}

/* Botón Leer más - Solo negro y blanco */
.btn-leer-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #000000 !important;
  background-color: transparent !important;
  border: 2px solid #000000 !important;
  border-radius: 8px;
  text-decoration: none !important;
  transition: all 0.2s ease;
  letter-spacing: -0.1px;
  margin-top: 20px;
}

.btn-leer-mas:hover,
.btn-leer-mas:focus,
.btn-leer-mas:active {
  background-color: #000000 !important;
  color: #ffffff !important;
  border-color: #000000 !important;
  text-decoration: none !important;
}

.btn-leer-mas:hover *,
.btn-leer-mas:focus *,
.btn-leer-mas:active * {
  color: #ffffff !important;
}

.btn-leer-mas:visited {
  color: #000000 !important;
}

.btn-leer-mas:hover:visited,
.btn-leer-mas:hover:visited * {
  color: #ffffff !important;
}

.btn-leer-mas i {
  font-size: 14px;
  color: inherit;
}

/* Enlaces de imágenes y títulos de noticias */
.noticia-imagen-link {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: opacity 0.2s ease;
}

.noticia-destacada-columna .noticia-imagen-link {
  margin-bottom: 25px;
  display: block;
}

.noticia-columna-der-item .noticia-imagen-link {
  margin-bottom: 0;
  display: block;
}

.noticia-item .noticia-imagen-link {
  margin-bottom: 0;
  display: block;
}

.noticia-imagen-link:hover {
  opacity: 0.9;
  text-decoration: none;
}

.noticia-titulo-link {
  color: #000000 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.noticia-titulo-link:hover {
  color: #000000 !important;
  text-decoration: underline;
}

.noticia-destacada-columna,
.noticia-columna-der-item,
.noticia-item {
  cursor: pointer;
  position: relative;
}

.noticia-destacada-columna::before,
.noticia-columna-der-item::before,
.noticia-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  pointer-events: none;
}

.noticia-destacada-content,
.noticia-columna-der-content,
.noticia-item-content {
  position: relative;
  z-index: 2;
}

/* Unificar estilos de meta información */
.noticia-destacada-columna .noticia-meta,
.noticia-columna-der-item .noticia-meta,
.noticia-item .noticia-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: #666666;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-leer-mas-small {
  padding: 8px 16px;
  font-size: 13px;
  margin-top: 12px;
}

/* Asegurar que todos los enlaces en la página de noticias usen solo negro y blanco */
.noticias-page-section a,
.noticias-dos-columnas a,
.noticia-item a,
.noticia-destacada a,
.noticia-columna-der-item a {
  color: #000000 !important;
  text-decoration: none;
  transition: color 0.2s ease;
}

.noticias-page-section a:hover,
.noticias-dos-columnas a:hover,
.noticia-item a:hover,
.noticia-destacada a:hover,
.noticia-columna-der-item a:hover {
  color: #000000 !important;
  text-decoration: underline;
}

.noticias-page-section a:visited,
.noticias-dos-columnas a:visited,
.noticia-item a:visited,
.noticia-destacada a:visited,
.noticia-columna-der-item a:visited {
  color: #000000 !important;
}

/* Página individual de noticia */
.noticia-detail-section {
  background-color: #ffffff;
  min-height: calc(100vh - 200px);
  padding: 100px 0 80px;
}

.noticia-detail-section .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px;
}

.noticia-back-link {
  display: none; /* Oculto por defecto en desktop */
}

/* Botón flotante redondo para móvil */
@media only screen and (max-width: 991px) {
  .noticia-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    bottom: 86px !important;
    right: 30px !important;
    width: 56px;
    height: 56px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 99997 !important;
    transition: all 0.3s ease;
    border: none;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .noticia-back-link:hover,
  .noticia-back-link:focus {
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
  
  .noticia-back-link:hover i,
  .noticia-back-link:focus i {
    color: #ffffff !important;
  }
  
  .noticia-back-link:active {
    transform: scale(0.95);
  }
  
  .noticia-back-link i {
    font-size: 20px;
    margin: 0;
    color: #ffffff !important;
  }
  
  .noticia-back-link * {
    color: #ffffff !important;
  }
  
  .noticia-back-link span,
  .noticia-back-link .noticia-back-text {
    display: none !important; /* Ocultar texto en móvil, solo mostrar icono */
  }
  
  .noticia-back-link {
    font-size: 0;
    margin: 0 !important;
    padding: 0 !important;
  }
  
  .noticia-back-link i {
    font-size: 20px;
  }
  
  /* Ajustes para móviles más pequeños */
  @media only screen and (max-width: 480px) {
    .noticia-back-link {
      width: 50px;
      height: 50px;
      bottom: 75px !important;
      right: 20px !important;
      left: auto !important;
    }
    
    .noticia-back-link i {
      font-size: 18px;
      color: #ffffff !important;
    }
  }
}

.noticia-detail-imagen {
  width: 100%;
  margin: 0 auto 40px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.noticia-detail-imagen img {
  width: 100%;
  height: auto;
  max-height: 600px;
  display: block;
  object-fit: cover;
  object-position: center;
}

.noticia-detail-title-section {
  margin-bottom: 40px;
}

.noticia-detail-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 48px;
  font-weight: 700;
  color: #000000;
  margin: 20px 0 0 0;
  letter-spacing: -0.8px;
  line-height: 1.2;
}

.noticia-detail-contenido {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 400;
  color: #000000;
  line-height: 1.8;
  letter-spacing: -0.1px;
}

.noticia-detail-contenido p {
  margin: 0 0 24px 0;
}

.noticia-detail-contenido p:last-child {
  margin-bottom: 0;
}

/* Estilos para contenido HTML del editor Quill */
.noticia-detail-contenido h1,
.noticia-detail-contenido h2,
.noticia-detail-contenido h3,
.noticia-detail-contenido h4,
.noticia-detail-contenido h5,
.noticia-detail-contenido h6 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  color: #000000;
  margin: 32px 0 16px 0;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.noticia-detail-contenido h1 {
  font-size: 42px;
  margin-top: 40px;
}

.noticia-detail-contenido h2 {
  font-size: 36px;
  margin-top: 36px;
}

.noticia-detail-contenido h3 {
  font-size: 30px;
  margin-top: 32px;
}

.noticia-detail-contenido h4 {
  font-size: 24px;
  margin-top: 28px;
}

.noticia-detail-contenido h5 {
  font-size: 20px;
  margin-top: 24px;
}

.noticia-detail-contenido h6 {
  font-size: 18px;
  margin-top: 20px;
}

.noticia-detail-contenido h1:first-child,
.noticia-detail-contenido h2:first-child,
.noticia-detail-contenido h3:first-child,
.noticia-detail-contenido h4:first-child,
.noticia-detail-contenido h5:first-child,
.noticia-detail-contenido h6:first-child {
  margin-top: 0;
}

.noticia-detail-contenido img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  margin: 32px auto;
  display: block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  width: auto;
}

.noticia-detail-contenido figure {
  margin: 32px 0;
}

.noticia-detail-contenido figure img {
  margin: 0 auto;
}

.noticia-detail-contenido .ql-align-center img,
.noticia-detail-contenido p[style*="text-align: center"] img {
  margin-left: auto;
  margin-right: auto;
}

.noticia-detail-contenido a {
  color: #000000;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.noticia-detail-contenido a:hover {
  color: #666666;
}

.noticia-detail-contenido strong,
.noticia-detail-contenido b {
  font-weight: 600;
}

.noticia-detail-contenido em,
.noticia-detail-contenido i {
  font-style: italic;
}

.noticia-detail-contenido u {
  text-decoration: underline;
}

.noticia-detail-contenido ul,
.noticia-detail-contenido ol {
  margin: 20px 0;
  padding-left: 30px;
}

.noticia-detail-contenido ul li,
.noticia-detail-contenido ol li {
  margin: 8px 0;
  line-height: 1.7;
}

.noticia-detail-contenido blockquote {
  border-left: 4px solid #000000;
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: #333333;
}

.noticia-detail-contenido code {
  background: #f5f5f7;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 16px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

.noticia-detail-contenido hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 32px 0;
}

.noticia-detail-contenido .youtube-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  margin: 32px 0;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 53, 79, 0.16);
  background: #061a25;
}

.noticia-detail-contenido .youtube-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.noticia-detail-contenido i.fa {
  margin-right: 6px;
  color: #005b85;
}

.noticia-faq-section,
.noticia-related-section {
  --noticia-accent-dark: #00354F;
  --noticia-accent-bright: #00E5FF;
  --noticia-neutral-dark: #000000;
  --noticia-neutral-light: #ffffff;
  margin-top: 64px;
  padding: 36px;
  border: 1px solid rgba(0, 53, 79, 0.14);
  border-radius: 28px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.07);
  position: relative;
  overflow: hidden;
}

.noticia-faq-section {
  background: linear-gradient(180deg, #f2fbff 0%, #ffffff 100%);
}

.noticia-related-section {
  background: linear-gradient(180deg, #eefaff 0%, #ffffff 100%);
}

.noticia-faq-section::before,
.noticia-related-section::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
}

.noticia-faq-section::before {
  background: linear-gradient(90deg, var(--noticia-accent-dark) 0%, var(--noticia-accent-bright) 100%);
}

.noticia-related-section::before {
  background: linear-gradient(90deg, var(--noticia-accent-dark) 0%, var(--noticia-accent-bright) 100%);
}

.noticia-section-heading {
  margin-bottom: 26px;
  position: relative;
  z-index: 1;
}

.noticia-section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--noticia-accent-dark);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 53, 79, 0.12);
  backdrop-filter: blur(6px);
}

.noticia-section-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.noticia-section-heading h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  color: var(--noticia-neutral-dark);
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.noticia-faq-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  counter-reset: faq-items;
  position: relative;
  z-index: 1;
}

.noticia-faq-item {
  padding: 24px 26px 24px 88px;
  border: 1px solid rgba(0, 53, 79, 0.1);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.82);
  position: relative;
  box-shadow: 0 12px 30px rgba(0, 53, 79, 0.08);
  backdrop-filter: blur(10px);
}

.noticia-faq-item::before {
  counter-increment: faq-items;
  content: counter(faq-items, decimal-leading-zero);
  position: absolute;
  top: 22px;
  left: 24px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--noticia-neutral-dark) 0%, var(--noticia-accent-dark) 100%);
  color: var(--noticia-neutral-light);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.noticia-faq-item h3 {
  margin: 0 0 12px 0;
  font-size: 24px;
  line-height: 1.28;
  color: var(--noticia-neutral-dark);
  letter-spacing: -0.02em;
}

.noticia-faq-respuesta {
  font-size: 17px;
  line-height: 1.78;
  color: #061822;
}

.noticia-faq-respuesta p,
.noticia-faq-respuesta ul,
.noticia-faq-respuesta ol,
.noticia-faq-respuesta blockquote {
  margin: 0 0 16px 0;
}

.noticia-faq-respuesta ul,
.noticia-faq-respuesta ol {
  padding-left: 22px;
}

.noticia-faq-respuesta li + li {
  margin-top: 8px;
}

.noticia-faq-respuesta a {
  color: var(--noticia-accent-dark);
  font-weight: 600;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.noticia-faq-respuesta strong,
.noticia-faq-respuesta b {
  font-weight: 700;
}

.noticia-faq-respuesta img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto 0;
  border-radius: 16px;
}

.noticia-faq-respuesta > *:last-child {
  margin-bottom: 0;
}

.noticia-related-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  position: relative;
  z-index: 1;
}

.noticia-related-card {
  overflow: hidden;
  border: 1px solid rgba(0, 53, 79, 0.12);
  border-radius: 24px;
  background: var(--noticia-neutral-light);
  box-shadow: 0 18px 38px rgba(0, 53, 79, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.noticia-related-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px rgba(0, 53, 79, 0.14);
  border-color: rgba(0, 53, 79, 0.22);
}

.noticia-related-image-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.noticia-related-image {
  position: relative;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(0, 229, 255, 0.16) 0%, #f4fbff 100%);
}

.noticia-related-image::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.28) 100%);
  pointer-events: none;
}

.noticia-related-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.01);
}

.noticia-related-content {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
}

.noticia-related-date {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--noticia-accent-dark);
  background: rgba(0, 229, 255, 0.12);
}

.noticia-related-content h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.22;
  letter-spacing: -0.02em;
  flex: 1 1 auto;
}

.noticia-related-content h3 a,
.noticia-related-link {
  color: var(--noticia-neutral-dark);
}

.noticia-related-content h3 a {
  text-decoration: none;
  transition: color 0.2s ease;
}

.noticia-related-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  text-decoration: none;
  width: fit-content;
}

.noticia-related-link::after {
  content: "->";
  font-size: 13px;
  transition: transform 0.2s ease;
}

.noticia-related-card:hover .noticia-related-content h3 a {
  color: var(--noticia-accent-dark);
}

.noticia-related-card:hover .noticia-related-link::after {
  transform: translateX(4px);
}

@media only screen and (max-width: 767px) {
  .noticia-faq-section,
  .noticia-related-section {
    margin-top: 48px;
    padding: 26px 18px;
  }

  .noticia-section-heading h2 {
    font-size: 26px;
    max-width: none;
  }

  .noticia-faq-item {
    padding: 74px 18px 20px;
  }

  .noticia-faq-item::before {
    top: 18px;
    left: 18px;
  }

  .noticia-faq-item h3,
  .noticia-related-content h3 {
    font-size: 20px;
  }

  .noticia-faq-respuesta {
    font-size: 16px;
  }

  .noticia-related-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .noticia-related-image {
    height: 200px;
  }
}

.noticia-not-found {
  text-align: center;
  padding: 80px 20px;
}

.noticia-not-found h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 42px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 16px 0;
}

.noticia-not-found p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  color: #666666;
  margin: 0 0 32px 0;
}

.btn-noticia-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #ffffff;
  background-color: #000000;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.btn-noticia-back:hover {
  background-color: #333333;
  color: #ffffff;
  text-decoration: none;
}

/* Responsive para página individual de noticia */
@media only screen and (max-width: 767px) {
  .noticia-detail-section {
    padding: 100px 0 40px;
  }
  
  /* Asegurar que el botón flotante mantenga su posición y no tenga margin */
  .noticia-back-link[style*="position: fixed"],
  .noticia-back-link {
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
  
  .noticia-detail-imagen {
    margin-bottom: 30px;
  }
  
  .noticia-detail-imagen img {
    max-height: 400px;
  }
  
  .noticia-detail-title {
    font-size: 36px;
    letter-spacing: -0.6px;
  }
  
  .noticia-detail-contenido {
    font-size: 16px;
    line-height: 1.7;
  }
}

@media only screen and (max-width: 480px) {
  .noticia-detail-section {
    padding: 100px 0 35px;
  }
  
  /* .noticia-back-link ya tiene estilos flotantes en su media query principal */
  
  .noticia-detail-imagen {
    margin-bottom: 25px;
  }
  
  .noticia-detail-imagen img {
    max-height: 300px;
  }
  
  .noticia-detail-title {
    font-size: 30px;
    letter-spacing: -0.4px;
  }
  
  .noticia-detail-contenido {
    font-size: 15px;
    line-height: 1.6;
  }
  
  .noticia-detail-contenido p {
    margin-bottom: 20px;
  }
}

/* Responsive para página de noticias */
@media only screen and (max-width: 991px) {
  .noticias-page-section {
    padding: 100px 0 60px;
  }
  
  .noticias-page-title {
    font-size: 42px;
  }
  
  .noticias-page-subtitle {
    font-size: 19px;
  }
  
  .noticias-buscador {
    max-width: 100%;
    margin-bottom: 25px;
  }
  
  .noticias-filtros-categorias {
    gap: 10px;
  }
  
  .filtro-categoria-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
  
  .noticias-dos-columnas {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 40px;
  }
  
  .noticias-columna-der {
    gap: 25px;
  }
  
  .noticia-destacada-columna .noticia-destacada-titulo {
    font-size: 32px;
    padding-left: 15px;
  }
  
  .noticia-destacada-columna .noticia-destacada-contenido {
    font-size: 16px;
  }
  
  .noticia-destacada-columna .noticia-destacada-contenido p:first-child {
    font-size: 18px;
  }
  
  .noticia-columna-der-imagen {
    aspect-ratio: 16 / 9;
  }
  
  .noticia-columna-der-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .noticia-destacada-columna .noticia-destacada-imagen {
    aspect-ratio: 16 / 9;
  }
  
  .noticia-destacada-columna .noticia-destacada-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .noticia-destacada-imagen {
    aspect-ratio: 16 / 9;
  }
  
  .noticia-destacada-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .noticia-columna-der-titulo {
    font-size: 18px;
  }
  
  .noticia-columna-der-resumen {
    font-size: 13px;
  }
  
  .noticia-destacada {
    padding: 30px 0;
  }
  
  .noticia-destacada-titulo {
    font-size: 36px;
    padding-left: 15px;
  }
  
  .noticia-destacada-contenido {
    font-size: 17px;
  }
  
  .noticia-destacada-contenido p:first-child {
    font-size: 19px;
  }
  
  .noticia-item {
    grid-template-columns: 250px 1fr;
    gap: 20px;
  }
  
  .noticia-item-imagen {
    aspect-ratio: 4 / 3;
  }
  
  .noticia-item-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .noticia-item-titulo {
    font-size: 22px;
  }
  
  .noticia-item-contenido {
    font-size: 15px;
  }
  
  .noticia-resumen {
    font-size: 16px;
  }
}

@media only screen and (max-width: 767px) {
  .noticias-page-section {
    padding: 100px 0 40px;
  }
  
  .noticias-page-header {
    margin-bottom: 40px;
  }
  
  /* El botón flotante ya tiene sus propios estilos definidos arriba */
  
  .noticias-page-title {
    font-size: 36px;
    letter-spacing: -0.6px;
  }
  
  .noticias-page-subtitle {
    font-size: 17px;
  }
  
  .noticias-filtros {
    margin-top: 30px;
    margin-bottom: 30px;
  }
  
  .noticias-buscador {
    margin-bottom: 20px;
  }
  
  .noticias-search-input {
    padding: 12px 18px 12px 42px;
    font-size: 15px;
  }
  
  .noticias-filtros-categorias {
    gap: 8px;
  }
  
  .filtro-categoria-btn {
    padding: 8px 14px;
    font-size: 12px;
  }
  
  .noticia-categoria-badge {
    font-size: 11px;
    padding: 3px 10px;
  }
  
  .noticia-categoria-badge-small {
    font-size: 10px;
    padding: 2px 8px;
  }
  
  .noticias-dos-columnas {
    grid-template-columns: 1fr;
    gap: 25px;
    margin-bottom: 35px;
    padding-top: 30px;
  }
  
  .noticias-columna-der {
    gap: 20px;
  }
  
  .noticia-destacada-columna .noticia-destacada-imagen {
    aspect-ratio: 16 / 9;
    margin-bottom: 20px;
  }
  
  .noticia-destacada-columna .noticia-destacada-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .noticia-destacada-imagen {
    aspect-ratio: 16 / 9;
  }
  
  .noticia-destacada-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .noticia-destacada-columna .noticia-destacada-titulo {
    font-size: 28px;
    padding-left: 12px;
    border-left-width: 3px;
    margin-bottom: 18px;
  }
  
  .noticia-destacada-columna .noticia-destacada-contenido {
    font-size: 15px;
  }
  
  .noticia-destacada-columna .noticia-destacada-contenido p:first-child {
    font-size: 17px;
  }
  
  .noticia-columna-der-imagen {
    aspect-ratio: 16 / 9;
  }
  
  .noticia-columna-der-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .noticia-columna-der-titulo {
    font-size: 17px;
  }
  
  .noticia-columna-der-resumen {
    font-size: 13px;
  }
  
  .noticias-grid {
    gap: 30px;
  }
  
  .noticia-destacada {
    padding: 25px 0;
    margin-bottom: 15px;
  }
  
  .noticia-destacada-imagen {
    margin-bottom: 25px;
  }
  
  .noticia-destacada-titulo {
    font-size: 30px;
    padding-left: 12px;
    border-left-width: 3px;
    margin-bottom: 20px;
  }
  
  .noticia-destacada-contenido {
    font-size: 16px;
  }
  
  .noticia-destacada-contenido p:first-child {
    font-size: 18px;
  }
  
  .noticia-item {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 25px 0;
  }
  
  .noticia-item-imagen {
    aspect-ratio: 4 / 3;
  }
  
  .noticia-item-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .noticia-item-titulo {
    font-size: 20px;
  }
  
  .noticia-item-contenido {
    font-size: 15px;
  }
  
  .noticia-resumen {
    font-size: 16px;
  }
  
  .noticia-meta {
    font-size: 12px;
    flex-wrap: wrap;
  }
  
  .noticias-paginacion {
    gap: 8px;
    margin-top: 40px;
    padding: 30px 15px;
  }
  
  .noticias-pagina-btn {
    padding: 10px 18px;
    font-size: 14px;
  }
  
  .noticias-pagina-numero {
    min-width: 40px;
    height: 40px;
    padding: 0 10px;
    font-size: 14px;
  }
}

@media only screen and (max-width: 480px) {
  .noticias-page-section {
    padding: 100px 0 35px;
  }
  
  .noticias-page-title {
    font-size: 30px;
    letter-spacing: -0.4px;
  }
  
  .noticias-page-subtitle {
    font-size: 16px;
  }
  
  .noticias-filtros {
    margin-top: 25px;
    margin-bottom: 25px;
  }
  
  .noticias-buscador {
    margin-bottom: 18px;
  }
  
  .noticias-search-input {
    padding: 11px 16px 11px 40px;
    font-size: 14px;
  }
  
  .noticias-filtros-categorias {
    gap: 6px;
  }
  
  .filtro-categoria-btn {
    padding: 7px 12px;
    font-size: 11px;
  }
  
  .noticia-categoria-badge {
    font-size: 10px;
    padding: 2px 8px;
  }
  
  .noticia-categoria-badge-small {
    font-size: 9px;
    padding: 2px 6px;
  }
  
  .noticias-dos-columnas {
    gap: 20px;
    margin-bottom: 30px;
    padding-top: 25px;
  }
  
  .noticias-columna-der {
    gap: 18px;
  }
  
  .noticia-destacada-columna .noticia-destacada-imagen {
    aspect-ratio: 16 / 9;
    margin-bottom: 18px;
  }
  
  .noticia-destacada-columna .noticia-destacada-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .noticia-destacada-imagen {
    aspect-ratio: 16 / 9;
  }
  
  .noticia-destacada-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .noticia-destacada-columna .noticia-destacada-titulo {
    font-size: 24px;
    padding-left: 10px;
    border-left-width: 2px;
    margin-bottom: 15px;
  }
  
  .noticia-destacada-columna .noticia-destacada-contenido {
    font-size: 14px;
    line-height: 1.6;
  }
  
  .noticia-destacada-columna .noticia-destacada-contenido p:first-child {
    font-size: 16px;
  }
  
  .noticia-columna-der-imagen {
    aspect-ratio: 16 / 9;
  }
  
  .noticia-columna-der-imagen img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
  }
  
  .noticia-columna-der-titulo {
    font-size: 16px;
  }
  
  .noticia-columna-der-resumen {
    font-size: 12px;
  }
  
  .noticia-destacada {
    padding: 20px 0;
  }
  
  .noticia-destacada-imagen {
    margin-bottom: 20px;
  }
  
  .noticia-destacada-titulo {
    font-size: 26px;
    padding-left: 10px;
    border-left-width: 2px;
    margin-bottom: 18px;
  }
  
  .noticia-destacada-contenido {
    font-size: 15px;
    line-height: 1.7;
  }
  
  .noticia-destacada-contenido p:first-child {
    font-size: 17px;
  }
  
  .noticia-item {
    padding: 20px 0;
  }
  
  .noticia-item-imagen {
    height: 180px;
  }
  
  .noticia-item-titulo {
    font-size: 18px;
  }
  
  .noticia-item-contenido {
    font-size: 14px;
  }
  
  .noticia-resumen {
    font-size: 15px;
  }
  
  .noticias-paginacion {
    gap: 6px;
    margin-top: 30px;
    padding: 25px 10px;
  }
  
  .noticias-pagina-btn {
    padding: 8px 14px;
    font-size: 13px;
  }
  
  .noticias-pagina-btn i {
    font-size: 10px;
  }
  
  .noticias-pagina-numero {
    min-width: 36px;
    height: 36px;
    padding: 0 8px;
    font-size: 13px;
  }
  
  .noticias-pagina-ellipsis {
    padding: 0 4px;
    font-size: 13px;
  }
}

/* Mantener compatibilidad con estilos antiguos para otros elementos */
.portfolio-item {
  overflow: hidden;
}

/* Responsive para tarjetas de proyectos */
@media only screen and (max-width: 991px) {
  .section-works {
    padding: 60px 0;
  }
  
  .section-works h2 {
    font-size: 40px;
  }
  
  .section-works .section-subtitle {
    font-size: 17px;
  }
  
  .portfolio-sorting {
    gap: 6px;
  }
  
  .portfolio-sorting li a {
    padding: 9px 20px;
    font-size: 14px;
  }
  
  #grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 25px !important;
    padding: 30px 0 !important;
  }
  
  #grid.shuffle-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .project-card-image {
    height: 240px;
  }
  
  .project-card-content {
    padding: 24px 22px;
  }
  
  .project-card-title {
    font-size: 21px;
  }
  
  .project-card-description {
    font-size: 14px;
  }
}

@media only screen and (max-width: 767px) {
  .section-works {
    padding: 50px 0;
  }
  
  .section-works h2 {
    font-size: 32px;
  }
  
  .section-works .section-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .portfolio-sorting {
    gap: 5px;
    justify-content: center;
  }
  
  .portfolio-sorting li a {
    padding: 8px 18px;
    font-size: 13px;
  }
  
  #grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 20px !important;
    padding: 25px 15px !important;
  }
  
  #grid.shuffle-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .project-card-image {
    height: 220px;
  }
  
  .project-card-content {
    padding: 24px 20px;
  }
  
  .project-card-title {
    font-size: 20px;
  }
  
  .project-card-description {
    font-size: 14px;
  }
  
  /* Section: Portfolio */
  .portfolio {
    margin-top: 30px;
  }
}

@media only screen and (max-width: 480px) {
  .section-works {
    padding: 40px 0;
  }
  
  .section-works h2 {
    font-size: 26px;
    padding: 0 15px;
    line-height: 1.2;
  }
  
  .section-works .section-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
    padding: 0 15px;
    line-height: 1.4;
  }
  
  .section-works .container {
    padding: 0 10px;
  }
  
  .portfolio {
    margin-top: 25px;
  }
  
  .portfolio-sorting {
    gap: 5px;
    padding: 0 10px;
    flex-wrap: wrap;
  }
  
  .portfolio-sorting li {
    margin: 2px 0;
  }
  
  .portfolio-sorting li a {
    padding: 7px 14px;
    font-size: 12px;
    border-radius: 16px;
  }
  
  #grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
    padding: 20px 10px !important;
  }
  
  #grid.shuffle-container {
    grid-template-columns: 1fr !important;
  }
  
  .project-card {
    border-radius: 14px;
  }
  
  .project-card-image {
    height: 180px;
  }
  
  .project-card-overlay {
    opacity: 0.8;
  }
  
  .project-card-icon {
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
  
  .project-card-content {
    padding: 18px 16px;
  }
  
  .project-card-title {
    font-size: 17px;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .project-card-description {
    font-size: 12px;
    line-height: 1.5;
  }
}

/* Ajuste adicional para pantallas medianas - mantener 3 columnas hasta 992px */
@media only screen and (max-width: 1200px) and (min-width: 992px) {
  #grid {
    gap: 25px;
    padding: 40px 20px;
  }
}

@media only screen and (max-width: 479px) {
  /* Section: Portfolio */
  .section-works .col-xs-6 {
    width: 100%;
  }
}

/*
 * Sections: Background;
 */
.section-background {
  position: relative;
  background-size: cover;
  padding: 150px 0;
  width: 100%;
  text-align: center;
}

.section-background p {
  position: relative;
  margin: 10px 0 0;
  color: #ffffff;
}

.section-background .btn {
  position: relative;
  margin-top: 50px;
}

/* Sections background: Quote */
.section-quote {
  background: url(../img/quote.jpg) center no-repeat fixed;
}

/* Sections background: Quote Proyectos */
.section-quote-proyectos {
  background: url(../img/ciudad-artes-ciencias-noche-valencia-pexel256150.webp) center no-repeat fixed;
  background-size: cover;
}

.section-quote-proyectos.background-overlay:before {
  background-color: rgba(0, 0, 0, 0.7);
}

.section-quote-proyectos p {
  margin-top: 0;
  font-size: 36px;
}

.section-quote-proyectos p span {
  color: #E8E8E8;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  text-transform: uppercase;
}

/* Sections background: Quote Contacto */
.section-quote-contacto {
  background: url(../img/night-3078326_1280.webp) center no-repeat fixed;
  background-size: cover;
}

.section-quote-contacto p {
  margin-top: 0;
  font-size: 36px;
}

.section-quote-contacto p span {
  color: #E8E8E8;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  text-transform: uppercase;
}

.section-quote p {
  margin-top: 0;
  font-size: 36px;
}

.section-quote p span {
  color: #E8E8E8;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  font-weight: 700;
  text-transform: uppercase;
}

/* Sections background: Me */
.section-me {
  background: url(../img/portfolio-7.jpg) center no-repeat fixed;
}

.section-me h2 {
  margin: 0;
  color: #ffffff;
  position: relative;
}

/* Sections background: Me Contacto */
.section-me-contacto {
  background: url(../img/2291-3441-33142135.webp) center no-repeat fixed;
  background-size: cover;
}

.section-me-contacto h2 {
  margin: 0;
  color: #ffffff;
  position: relative;
}

/* Sections background: Twitter */
.section-twitter {
  background: url(../img/portfolio-8.jpg) center no-repeat fixed;
}

.section-twitter .container {
  max-width: 770px;
}

.section-twitter .rectangle {
  margin: 0 auto;
  box-shadow: none;
  display: inline-block;
}

.section-twitter .rectangle i {
  color: #ffffff;
}

.section-twitter .rectangle + p {
  margin-top: 60px;
}

.section-twitter .rectangle + p:before {
  content: '';
  position: absolute;
  top: -30px;
  left: 0;
  right: 0;
  margin: 0 auto;
  display: block;
  width: 50px;
  height: 1px;
  background-color: #ffffff;
}

@media only screen and (max-width: 767px) {
  /*
     * Sections: Background;
     */
  .section-background {
    padding: 100px 0;
  }
  .section-background .btn {
    margin-top: 30px;
  }
  .section-quote p {
    font-size: 28px;
  }
  .section-quote-proyectos p {
    font-size: 28px;
  }
  .section-quote-contacto p {
    font-size: 28px;
  }
  .section-twitter .rectangle + p {
    margin-top: 40px;
  }
  .section-twitter .rectangle + p:before {
    top: -20px;
  }
}

/* Section: Clients */
.section-clients {
  padding: 80px 0;
}

.client {
  height: 85px;
  line-height: 85px;
  text-align: center;
  margin: 0 15px;
  filter: grayscale(100%);
  -webkit-filter: grayscale(100%);
  display: inline-block;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0.3s ease, filter 0.3s ease;
}

.client.filtered-out {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.client:hover {
  filter: grayscale(0%);
  -webkit-filter: grayscale(0%);
}

.client img {
  display: inline-block;
  height: 80px;
  max-width: 100%;
  object-fit: contain;
}

/* ESTILOS PARA LÍNEA DE TIEMPO DE TRABAJOS */
.section-clients-timeline {
  background-color: #ffffff;
  padding: 100px 0;
}

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

.timeline-wrapper {
  position: relative;
  padding: 40px 0;
}

/* Línea vertical central */
.timeline-wrapper::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, #000000, #000000, #000000);
  transform: translateX(-50%);
  z-index: 1;
}

.timeline-year-marker {
  position: relative;
  text-align: center;
  margin: 60px 0 40px;
  z-index: 2;
}

.year-label {
  display: inline-block;
  background-color: #ffffff;
  padding: 8px 24px;
  border: 2px solid #000000;
  border-radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: #000000;
  letter-spacing: -0.3px;
}

.timeline-item {
  position: relative;
  margin-bottom: 60px;
  z-index: 2;
}

.timeline-item.filtered-out {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}

.timeline-marker {
  position: absolute;
  left: 50%;
  top: 30px;
  transform: translateX(-50%);
  width: 16px;
  height: 16px;
  background-color: #000000;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 3;
}

.timeline-content {
  width: calc(50% - 40px);
  padding: 0 20px;
}

/* Alternar posiciones: items pares a la derecha, impares a la izquierda */
.timeline-wrapper > .timeline-item:nth-child(2n) .timeline-content {
  margin-left: auto;
  text-align: right;
}

.timeline-wrapper > .timeline-item:nth-child(2n+1) .timeline-content {
  margin-right: auto;
  text-align: left;
}

.timeline-card {
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.timeline-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}

.timeline-card-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.timeline-company-logo {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 12px;
  overflow: hidden;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border: 1px solid #000000;
}

.timeline-company-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.timeline-company-info {
  flex: 1;
}

.timeline-company-name {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 6px 0;
  letter-spacing: -0.3px;
}

.timeline-company-name a {
  color: #000000;
  text-decoration: none;
  transition: color 0.2s ease;
}

.timeline-company-name a:hover {
  color: #000000;
  text-decoration: underline;
}

.timeline-job-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: #000000;
  margin: 0 0 8px 0;
  letter-spacing: -0.2px;
}

.timeline-area-badge {
  display: inline-block;
  padding: 4px 12px;
  background-color: #ffffff;
  border: 1px solid #000000;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: #000000;
  letter-spacing: -0.1px;
}

.timeline-card-body {
  margin-bottom: 16px;
}

.timeline-description {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: #000000;
  margin: 0;
  letter-spacing: -0.1px;
}

.timeline-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid #000000;
}

.timeline-dates {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.timeline-date-item,
.timeline-duration {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 6px;
}

.timeline-date-item i,
.timeline-duration i {
  font-size: 12px;
  color: #000000;
}

.timeline-badge-current {
  display: inline-block;
  padding: 4px 12px;
  background-color: #000000;
  color: #ffffff;
  border-radius: 12px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

/* Ajustes para items pares (derecha) - excluir marcadores de año */
.timeline-wrapper > .timeline-item:nth-child(2n) .timeline-card-header {
  flex-direction: row-reverse;
}

.timeline-wrapper > .timeline-item:nth-child(2n) .timeline-company-info {
  text-align: right;
}

.timeline-wrapper > .timeline-item:nth-child(2n) .timeline-card-footer {
  flex-direction: row-reverse;
}

@media only screen and (max-width: 991px) {
  /* Section: Clients */
  .section-clients {
    padding: 60px 0;
  }
  
  .section-clients-timeline {
    padding: 80px 0;
  }
  
  .timeline-wrapper::before {
    left: 30px;
  }
  
  .timeline-content {
    width: calc(100% - 80px);
    margin-left: 80px !important;
    margin-right: 0 !important;
    text-align: left !important;
    max-width: calc(100% - 80px);
    box-sizing: border-box;
    padding-right: 0;
  }
  
  .timeline-wrapper > .timeline-item:nth-child(2n) .timeline-content {
    margin-left: 80px !important;
    margin-right: 0 !important;
    text-align: left !important;
    max-width: calc(100% - 80px);
    box-sizing: border-box;
    padding-right: 0;
  }
  
  .timeline-wrapper > .timeline-item:nth-child(2n+1) .timeline-content {
    margin-left: 80px !important;
    margin-right: 0 !important;
    max-width: calc(100% - 80px);
    box-sizing: border-box;
    padding-right: 0;
  }
  
  .timeline-wrapper > .timeline-item:nth-child(2n) .timeline-card-header {
    flex-direction: row !important;
  }
  
  .timeline-wrapper > .timeline-item:nth-child(2n) .timeline-company-info {
    text-align: left !important;
  }
  
  .timeline-wrapper > .timeline-item:nth-child(2n) .timeline-card-footer {
    flex-direction: row !important;
  }
  
  .timeline-marker {
    left: 30px;
  }
  
  .clients-carousel {
    padding: 0 30px;
  }
  
  .client {
    height: 75px;
    line-height: 75px;
    margin: 0 12px;
  }
  
  .client img {
    height: 70px;
  }
}

@media only screen and (max-width: 767px) {
  /* Section: Clients */
  .section-clients {
    padding: 50px 0;
  }
  
  .section-clients-timeline {
    padding: 60px 0;
    overflow-x: hidden;
  }
  
  .books-container.section-clients-timeline {
    padding: 60px 0;
    overflow-x: hidden;
  }
  
  .timeline-container {
    padding: 0 15px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  .timeline-wrapper {
    padding: 30px 0;
    overflow-x: hidden;
  }
  
  .timeline-wrapper::before {
    left: 20px;
  }
  
  .timeline-content {
    width: calc(100% - 60px);
    margin-left: 60px !important;
    padding: 0 0 0 0;
    max-width: calc(100% - 60px);
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .timeline-marker {
    left: 20px;
    width: 12px;
    height: 12px;
  }
  
  .timeline-year-marker {
    margin: 40px 0 30px;
    padding: 0 15px;
  }
  
  .year-label {
    font-size: 16px;
    padding: 6px 20px;
  }
  
  .timeline-item {
    margin-bottom: 40px;
  }
  
  .timeline-card {
    padding: 20px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .timeline-card-header {
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .timeline-company-logo {
    width: 50px;
    height: 50px;
    flex-shrink: 0;
  }
  
  .timeline-company-info {
    min-width: 0;
    flex: 1 1 auto;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .timeline-company-name {
    font-size: 18px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
  }
  
  .timeline-job-title {
    font-size: 15px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
  }
  
  .timeline-description {
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
  }
  
  .timeline-card-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .timeline-dates {
    width: 100%;
    flex-wrap: wrap;
  }
  
  .clients-carousel {
    padding: 0 20px;
  }
  
  .client {
    height: 70px;
    line-height: 70px;
    margin: 0 10px;
  }
  
  .client img {
    height: 65px;
  }
}

@media only screen and (max-width: 480px) {
  /* Section: Clients */
  .section-clients {
    padding: 40px 0;
  }
  
  .section-clients-timeline {
    padding: 40px 0;
    overflow-x: hidden;
  }
  
  .books-container.section-clients-timeline {
    padding: 40px 0;
    overflow-x: hidden;
  }
  
  .timeline-container {
    padding: 0;
    margin: 0 auto;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
    position: relative;
  }
  
  .timeline-wrapper {
    padding: 20px 0;
    margin: 0;
    overflow-x: hidden;
    width: 100%;
    box-sizing: border-box;
    position: relative;
  }
  
  .timeline-wrapper::before {
    left: 12px;
    width: 1.5px;
  }
  
  .timeline-content {
    width: calc(100% - 45px);
    margin-left: 45px !important;
    margin-right: 0 !important;
    padding: 0;
    max-width: calc(100% - 45px);
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
  }
  
  /* Asegurar que todos los items (pares e impares) tengan la misma posición en móvil */
  .timeline-wrapper > .timeline-item {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
  }
  
  .timeline-wrapper > .timeline-item:nth-child(2n) .timeline-content {
    margin-left: 45px !important;
    margin-right: 0 !important;
    max-width: calc(100% - 45px);
    width: calc(100% - 45px);
    padding: 0;
  }
  
  .timeline-wrapper > .timeline-item:nth-child(2n+1) .timeline-content {
    margin-left: 45px !important;
    margin-right: 0 !important;
    max-width: calc(100% - 45px);
    width: calc(100% - 45px);
    padding: 0;
  }
  
  .timeline-marker {
    left: 12px;
    width: 10px;
    height: 10px;
    border-width: 3px;
    top: 25px;
  }
  
  .timeline-year-marker {
    margin: 30px 0 25px;
    padding: 0 10px;
  }
  
  .year-label {
    font-size: 13px;
    padding: 5px 14px;
    border-width: 1.5px;
  }
  
  .timeline-item {
    margin-bottom: 30px;
    width: 100%;
    box-sizing: border-box;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    position: relative;
  }
  
  .timeline-card {
    padding: 14px;
    border-radius: 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
    position: relative;
  }
  
  .timeline-card-header {
    gap: 10px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .timeline-company-logo {
    width: 40px;
    height: 40px;
    padding: 6px;
    border-radius: 10px;
    flex-shrink: 0;
  }
  
  .timeline-company-info {
    min-width: 0;
    flex: 1 1 calc(100% - 50px);
    max-width: calc(100% - 50px);
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .timeline-company-name {
    font-size: 15px;
    line-height: 1.3;
    margin-bottom: 4px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
  }
  
  .timeline-job-title {
    font-size: 13px;
    margin-bottom: 6px;
    line-height: 1.4;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
  }
  
  .timeline-area-badge {
    padding: 3px 10px;
    font-size: 11px;
    display: inline-block;
  }
  
  .timeline-card-body {
    margin-bottom: 12px;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .timeline-description {
    font-size: 12px;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
  }
  
  .timeline-card-footer {
    padding-top: 12px;
    gap: 8px;
    flex-wrap: wrap;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .timeline-dates {
    gap: 4px;
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
  }
  
  .timeline-date-item,
  .timeline-duration {
    font-size: 11px;
    gap: 4px;
    flex-wrap: wrap;
  }
  
  .timeline-date-item i,
  .timeline-duration i {
    font-size: 10px;
    flex-shrink: 0;
  }
  
  .timeline-badge-current {
    padding: 3px 10px;
    font-size: 10px;
    flex-shrink: 0;
  }
  
  .clients-carousel {
    padding: 0 10px;
  }
  
  .client {
    height: 55px;
    line-height: 55px;
    margin: 0 6px;
  }
  
  .client img {
    height: 50px;
    max-height: 50px;
  }
  
  /* Asegurar que los contenedores no se desborden */
  .container,
  .container-fluid {
    padding-left: 12px;
    padding-right: 12px;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
  }
  
  /* Asegurar que el contenedor de timeline no tenga padding extra */
  .section-clients-timeline .container,
  .section-clients-timeline .container-fluid {
    padding-left: 0;
    padding-right: 0;
    max-width: 100%;
    overflow-x: hidden;
  }
  
  /* Mejorar espaciado general en secciones */
  .site-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  /* Mejorar títulos de sección en móviles pequeños */
  .books-container h2,
  section h2 {
    font-size: 20px !important;
    line-height: 1.3 !important;
    padding: 0 12px;
    word-wrap: break-word;
    hyphens: auto;
  }
  
  .section-subtitle {
    font-size: 12px !important;
    padding: 0 12px;
    line-height: 1.4;
    margin-top: 10px;
  }
  
  .section-subtitle span {
    display: inline-block;
    word-wrap: break-word;
  }
  
  /* Asegurar que el footer también se vea bien */
  .site-footer {
    font-size: 13px;
  }
  
  .site-footer .container-fluid {
    padding: 30px 15px;
  }
  
  /* Mejorar espaciado de secciones */
  .books-container {
    padding: 40px 0;
  }
}

/* Breakpoint adicional para pantallas muy pequeñas (360px y menores) */
@media only screen and (max-width: 360px) {
  .hero-minimal {
    min-height: 65vh;
    padding-top: 72px;
    padding-bottom: 40px;
    padding-left: 10px;
    padding-right: 10px;
  }
  
  .profile-circle-wrapper {
    width: 100px;
    height: 100px;
    margin-bottom: 18px;
  }
  
  .hero-name {
    font-size: 24px;
  }
  
  .hero-subtitle {
    font-size: 11px;
  }
  
  .hero-quote {
    font-size: 12px;
    padding: 0 5px;
  }
  
  .section-title-minimal {
    font-size: 20px;
    margin-bottom: 40px;
    padding: 0 10px;
  }
  
  .services-grid {
    padding: 0 10px;
    gap: 18px;
  }
  
  .service-card {
    padding: 20px 14px;
  }
  
  .service-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }
  
  .service-card h3 {
    font-size: 14px;
  }
  
  .service-card p {
    font-size: 11px;
  }
  
  .oficio-circle {
    width: 90px;
    height: 90px;
  }
  
  .oficio-circle i {
    font-size: 36px;
  }
  
  .oficio-label {
    font-size: 9px;
    max-width: 100px;
  }
  
  .section-clients-timeline {
    padding: 35px 0;
    overflow-x: hidden;
  }
  
  .books-container.section-clients-timeline {
    padding: 35px 0;
    overflow-x: hidden;
  }
  
  .timeline-container {
    padding: 0 8px;
  }
  
  .timeline-wrapper {
    padding: 15px 0;
  }
  
  .timeline-content {
    width: calc(100% - 42px);
    margin-left: 42px !important;
    padding: 0 0 0 0;
    max-width: calc(100% - 42px);
    box-sizing: border-box;
    overflow: hidden;
  }
  
  .timeline-marker {
    left: 10px;
    width: 8px;
    height: 8px;
  }
  
  .timeline-card {
    padding: 12px;
    max-width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .timeline-company-logo {
    width: 35px;
    height: 35px;
    flex-shrink: 0;
  }
  
  .timeline-company-name {
    font-size: 14px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
  }
  
  .timeline-job-title {
    font-size: 12px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    overflow: hidden;
  }
  
  .timeline-description {
    font-size: 11px;
    word-wrap: break-word;
    overflow-wrap: break-word;
  }
  
  .timeline-dates {
    width: 100%;
  }
  
  .books-container h2,
  section h2 {
    font-size: 18px !important;
    padding: 0 10px;
  }
  
  .section-subtitle {
    font-size: 11px !important;
    padding: 0 10px;
  }
  
  .section-works h2 {
    font-size: 24px !important;
  }
  
  .project-card-image {
    height: 160px;
  }
  
  .project-card-title {
    font-size: 16px;
  }
  
  .project-card-description {
    font-size: 11px;
  }
  
  .portfolio-sorting li a {
    padding: 6px 12px;
    font-size: 11px;
  }
  
  .site-logo a {
    font-size: 13px;
  }
}

/* Section: Contact */
.section-contact .container {
  max-width: 770px;
}

.section-contact .container form {
  margin-top: 70px;
}

.section-contact .btn {
  margin-top: 50px;
  width: 100%;
  border-color: #000000;
  color: #000;
}

.section-contact .btn:hover {
  color: #ffffff;
  border-color: #000000;
}

.form-control {
  border: 0;
  border-bottom: 1px solid #000000;
  box-shadow: none;
  border-radius: 0;
  -webkit-appearance: none;
}

.form-control:focus {
  box-shadow: none;
  border-bottom-color: #000000;
}

textarea.form-control {
  margin-top: 50px;
  min-height: 150px;
  resize: none;
}

@media only screen and (max-width: 767px) {
  /* Section: Contact */
  .section-contact .container form {
    margin-top: 30px;
  }
  .section-contact .btn {
    margin-top: 30px;
  }
  .form-control,
  textarea.form-control {
    margin-top: 15px;
  }
}

/* Section: Social Networks */
.section-networks {
  padding: 30px 0;
  text-align: center;
}

.section-networks .container {
  max-width: 460px;
}

.section-networks a {
  margin: 10px 8px 5px;
  color: #ffffff;
  box-shadow: none;
}

.section-networks a:hover, .section-networks a:focus {
  background-color: #ffffff;
  color: #000000;
}

/* FOOTER
================================================== */
.site-footer .container-fluid {
  position: relative;
  padding: 70px 15px;
  text-align: center;
  border-bottom: 1px solid #000000;
}

.site-footer .container {
  padding: 70px 15px 100px;
}

.site-footer ul {
  margin-bottom: 0;
}

.site-footer ul li {
  padding: 0 10px;
}

.site-footer ul a {
  font-size: 12px;
  color: #000000;
  text-transform: uppercase;
}

.site-footer ul a:hover {
  color: #000000;
}

.site-footer a {
  font-size: 12px;
  color: #000000;
  text-transform: uppercase;
}

.site-footer a:hover {
  color: #000000;
}

.site-footer .rectangle {
  position: absolute;
  bottom: -20px;
  right: 0;
  left: 0;
  margin: 0 auto;
  width: 40px;
  height: 40px;
  background-color: #000;
  border: none;
  color: #ffffff;
  box-shadow: none;
}

.site-footer .rectangle:hover {
  background-color: #000000;
  color: #ffffff;
}

.site-footer .copyright {
  margin-bottom: 0;
}

.site-footer ul a,
.site-footer ul a:hover,
.site-footer a,
.site-footer a:hover,
.site-footer .copyright,
.site-footer .copyright a,
.site-footer .copyright a:hover {
  color: #ffffff !important;
}

@media only screen and (max-width: 767px) {
  /* FOOTER*/
  .site-footer .container-fluid {
    padding: 40px 15px;
  }
  .site-footer .container {
    padding: 40px 15px 80px;
  }
}

/* MODALS 
================================================== */
.modal.fade-scale {
  transform: scale(0);
  opacity: 0;
  -webkit-transition: all 0.25s linear;
  -o-transition: all 0.25s linear;
  -moz-transition: all 0.25s linear;
  transition: all 0.25s linear;
}

.modal.fade-scale.in {
  opacity: 1;
  transform: scale(1);
}

.modal.fade-scale .modal-dialog {
  margin-top: 50px;
  -webkit-transition: all 0.25s ease-in-out;
  -o-transition: all 0.25s ease-in-out;
  -moz-transition: all 0.25s ease-in-out;
  transition: all 0.25s ease-in-out;
  transform: translate(0, 0%);
  -webkit-transform: translate(0, 0%);
  -moz-transform: translate(0, 0%);
  -o-transform: translate(0, 0%);
  -ms-transform: translate(0, 0%);
}

/* Modal minimalista estilo Apple */
.modal-content {
  padding: 0;
  border-radius: 18px;
  border: 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  background: #ffffff;
}

.modal-header {
  height: 400px;
  position: relative;
  overflow: hidden;
  background: #ffffff;
}

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

.modal-header .rectangle {
  position: absolute;
  right: 20px;
  top: 20px;
  height: 44px;
  width: 44px;
  background-color: rgba(255, 255, 255, 0.95);
  color: #000000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 0;
  opacity: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 1000;
}

.modal-header .rectangle:hover {
  background-color: #000000;
  color: #ffffff;
  transform: scale(1.05);
}

.modal-header,
.modal-footer {
  padding: 0;
}

.modal-body {
  padding: 40px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.modal-body .modal-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.modal-body p {
  margin: 15px 0 0;
  font-size: 17px;
  line-height: 1.6;
  color: #000000;
  letter-spacing: -0.2px;
}

.modal-body ul {
  margin: 20px 0;
  padding-left: 20px;
}

.modal-body ul li {
  margin: 8px 0;
  font-size: 16px;
  color: #000000;
  line-height: 1.5;
}

.modal-footer {
  border-top: 1px solid #ffffff;
  padding: 24px 40px;
  background: #ffffff;
  text-align: center;
}

.modal-footer .btn {
  background-color: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  padding: 12px 32px;
  font-size: 15px;
  font-weight: 400;
  border-radius: 20px;
  transition: all 0.2s ease;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

.modal-footer .btn:hover {
  background-color: #000000;
  color: #ffffff;
  border-color: #000000;
  transform: scale(1.02);
}

.modal-content .btn {
  width: 100%;
  border-width: 1px 0 0 0;
}

@media only screen and (max-width: 767px) {
  /* MODALS */
  .modal-dialog {
    margin: 20px 15px;
    max-width: calc(100% - 30px);
  }
  
  .modal-header .rectangle {
    right: -15px;
    top: -15px;
    height: 32px;
    width: 32px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-footer {
    padding: 20px;
  }
}

@media only screen and (max-width: 480px) {
  /* MODALS */
  .modal-dialog {
    margin: 10px;
    max-width: calc(100% - 20px);
  }
  
  .modal-header {
    padding: 15px;
  }
  
  .modal-title {
    font-size: 18px;
  }
  
  .modal-header .rectangle {
    right: -12px;
    top: -12px;
    height: 28px;
    width: 28px;
  }
  
  .modal-body {
    padding: 15px;
    font-size: 14px;
  }
  
  .modal-footer {
    padding: 15px;
  }
  
  .modal-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
  }
}




/* LIBROS - Estilo Apple minimalista */
.section-books {
  background-color: #ffffff;
  padding: 80px 0;
}

.section-books h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #000000;
  text-align: center;
  margin: 0 0 12px 0;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.section-books .section-subtitle {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #000000;
  text-align: center;
  margin: 0 0 50px 0;
  letter-spacing: -0.2px;
}

.section-books .section-subtitle span {
  color: #000000;
}

.section-books .container {
  max-width: 1460px;
  margin: 0 auto;
  padding: 0 24px 40px;
}

.section-books {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}

.section-books::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.16), transparent 34%),
    radial-gradient(circle at 85% 18%, rgba(0, 53, 79, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(242,250,255,0.98) 100%);
  pointer-events: none;
}

.section-books .container > * {
  position: relative;
  z-index: 1;
}

.books-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin: 0 0 34px;
  padding: 32px 36px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(0, 53, 79, 0.98) 0%, rgba(0, 91, 133, 0.96) 58%, rgba(0, 229, 255, 0.9) 100%);
  box-shadow: 0 24px 60px rgba(0, 53, 79, 0.22);
}

.books-hero-copy {
  max-width: 760px;
}

.books-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #d8fbff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.books-hero h2 {
  margin: 16px 0 10px;
  color: #ffffff;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.section-books .section-subtitle {
  margin: 0;
  max-width: 640px;
}

.section-books .section-subtitle span {
  display: block;
  color: rgba(236, 252, 255, 0.9);
  font-size: 18px;
  line-height: 1.55;
  letter-spacing: -0.02em;
}

.book-counter {
  flex-shrink: 0;
  min-width: 200px;
  text-align: left;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: rgba(225, 250, 255, 0.88);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.book-counter #count {
  display: block;
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 40px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: -0.05em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 28px;
  padding: 18px 0 12px;
  margin: 0;
}

.book-card-wrapper {
  width: 100%;
  max-width: 100%;
  padding: 0;
  margin: 0;
  position: relative;
}

.book-card-link {
  width: 100%;
  height: 100%;
  display: block;
  text-decoration: none;
  color: inherit;
}

.book-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(246,251,255,0.98) 100%);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(0, 53, 79, 0.08);
  box-shadow: 0 16px 40px rgba(0, 53, 79, 0.12);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.book-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 229, 255, 0.34);
  box-shadow: 0 26px 54px rgba(0, 53, 79, 0.18);
}

.book-card-image {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background: linear-gradient(180deg, #f8fdff 0%, #e9f8ff 100%);
}

.book-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.book-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(0,53,79,0.08) 0%, rgba(0,229,255,0.16) 100%);
  color: var(--site-primary);
  font-size: 48px;
}

.book-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0,53,79,0.02) 0%, rgba(0,53,79,0.02) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.book-card:hover .book-card-overlay {
  background: linear-gradient(180deg, rgba(0,53,79,0.04) 0%, rgba(0,53,79,0.42) 100%);
  opacity: 1;
}

.book-card-icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--site-primary);
  font-size: 20px;
  transition: all 0.3s ease;
  transform: scale(0.8);
  box-shadow: 0 10px 28px rgba(0, 53, 79, 0.18);
}

.book-card:hover .book-card-icon {
  transform: scale(1);
}

.book-card-icon:hover {
  background: var(--site-primary);
  color: #ffffff;
  transform: scale(1.1);
}

.book-card-content {
  padding: 22px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.book-card-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 700;
  color: var(--site-primary);
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.books-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 72px 20px;
  border-radius: 28px;
  background: rgba(255,255,255,0.82);
  border: 1px dashed rgba(0,53,79,0.18);
}

.books-empty p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  color: #000000;
  margin: 0;
}

.books-pagination {
  margin-top: 34px;
  display: flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding: 8px 0 0;
  background: transparent;
  box-shadow: none;
}

.pagination-list {
  list-style: none;
  padding: 10px;
  margin: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,255,255,0.46);
  border: 1px solid rgba(255,255,255,0.38);
  box-shadow: 0 18px 34px rgba(0,53,79,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.pagination-item {
  display: inline-block;
}

.pagination-button {
  display: inline-block;
  min-width: 48px;
  padding: 12px 20px;
  border: 1px solid rgba(0,53,79,0.2);
  border-radius: 999px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: var(--site-primary);
  background: rgba(255,255,255,0.86);
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: -0.02em;
  cursor: pointer;
}

.pagination-button:hover {
  background: var(--site-primary);
  color: #ffffff;
  border-color: var(--site-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

.pagination-button.active {
  background: linear-gradient(135deg, #00354F 0%, #00E5FF 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 12px 24px rgba(0,53,79,0.18);
}

/* Página de detalle del libro - Estilo Apple minimalista */
.book-detail-section {
  background-color: #ffffff;
  min-height: calc(100vh - 200px);
  padding: 100px 0 80px;
}

.book-detail-section .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.book-back-link {
  display: none; /* Oculto por defecto en desktop */
}

/* Botón flotante redondo para móvil */
@media only screen and (max-width: 991px) {
  .book-back-link {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed !important;
    bottom: 91px !important;
    right: 30px !important;
    width: 56px;
    height: 56px;
    background-color: #000000;
    color: #ffffff;
    border-radius: 50%;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    z-index: 99997 !important;
    transition: all 0.3s ease;
    border: none;
    gap: 0;
    margin: 0 !important;
    padding: 0 !important;
    left: auto !important;
  }
  
  .book-back-link:hover,
  .book-back-link:focus {
    background-color: #333333;
    color: #ffffff;
    text-decoration: none;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
  
  .book-back-link:hover i,
  .book-back-link:focus i {
    color: #ffffff !important;
  }
  
  .book-back-link:active {
    transform: scale(0.95);
  }
  
  .book-back-link i {
    font-size: 20px;
    margin: 0;
    color: #ffffff !important;
  }
  
  .book-back-link * {
    color: #ffffff !important;
  }
  
  .book-back-link span,
  .book-back-link .book-back-text {
    display: none !important; /* Ocultar texto en móvil, solo mostrar icono */
  }
  
  .book-back-link {
    font-size: 0;
  }
  
  .book-back-link i {
    font-size: 20px;
  }
  
  /* Ajustes para móviles más pequeños */
  @media only screen and (max-width: 480px) {
    .book-back-link {
      width: 50px;
      height: 50px;
      bottom: 75px !important;
      right: 20px !important;
      left: auto !important;
    }
    
    .book-back-link i {
      font-size: 18px;
      color: #ffffff !important;
    }
  }
}

.book-detail-header {
  margin-bottom: 60px;
}

.book-detail-image {
  width: 100%;
  max-width: 400px;
  margin: 0 auto 40px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.book-detail-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.book-detail-title-section {
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.book-detail-title {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 56px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 12px 0;
  letter-spacing: -0.8px;
  line-height: 1.1;
}

.book-detail-content {
  max-width: 800px;
  margin: 0 auto;
}

.book-detail-description {
  margin-bottom: 50px;
}

.book-detail-description h2 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 32px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 24px 0;
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.book-detail-description p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  color: #000000;
  line-height: 1.6;
  margin: 0 0 20px 0;
  letter-spacing: -0.2px;
}

.book-not-found {
  text-align: center;
  padding: 100px 20px;
}

.book-not-found h1 {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
  font-size: 48px;
  font-weight: 600;
  color: #000000;
  margin: 0 0 20px 0;
  letter-spacing: -0.5px;
}

.book-not-found p {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 19px;
  color: #000000;
  margin: 0 0 40px 0;
}

.btn-book-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  background: #000000;
  color: #ffffff;
  border: 1px solid #000000;
  border-radius: 24px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.2s ease;
  letter-spacing: -0.2px;
}

.btn-book-back:hover {
  background: #000000;
  border-color: #000000;
  color: #ffffff;
  text-decoration: none;
  transform: scale(1.02);
}

.btn-book-back i {
  font-size: 16px;
}

/* Responsive para libros */
@media only screen and (max-width: 991px) {
  .section-books {
    padding: 64px 0 78px;
  }

  .books-hero {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 26px;
    border-radius: 26px;
  }
  
  .section-books h2 {
    font-size: 40px;
  }
  
  .section-books .section-subtitle {
    font-size: 17px;
  }
  
  .books-grid {
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 25px;
    padding: 24px 0 8px;
  }
  
  .book-card-image {
    height: 300px;
  }
  
  .book-card-title {
    font-size: 17px;
  }
  
  .book-detail-section {
    padding: 80px 0 60px;
  }
  
  .book-detail-image {
    max-width: 350px;
    margin-bottom: 40px;
  }
  
  .book-detail-title {
    font-size: 42px;
  }
  
  .book-detail-description h2 {
    font-size: 28px;
    margin-bottom: 20px;
  }
  
  .book-detail-description p {
    font-size: 17px;
    line-height: 1.6;
  }
}

@media only screen and (max-width: 767px) {
  .section-books {
    padding: 56px 0 72px;
  }

  .books-hero {
    padding: 24px 22px;
    gap: 22px;
  }

  .books-kicker {
    font-size: 12px;
  }
  
  .section-books h2 {
    font-size: 32px;
  }
  
  .section-books .section-subtitle {
    font-size: 16px;
    margin-bottom: 40px;
  }
  
  .books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    padding: 20px 0 8px;
  }
  
  .book-card-image {
    height: 240px;
  }
  
  .book-card-title {
    font-size: 16px;
  }
  
  .pagination-list {
    border-radius: 24px;
    padding: 12px;
  }

  .book-detail-section {
    padding: 60px 0 40px;
  }
  
  .book-detail-header {
    margin-bottom: 40px;
  }
  
  .book-back-link {
    margin-bottom: 30px;
    font-size: 15px;
  }
  
  .book-detail-image {
    max-width: 300px;
    margin-bottom: 30px;
  }
  
  .book-detail-title {
    font-size: 36px;
    letter-spacing: -0.6px;
  }
  
  .book-detail-description {
    margin-bottom: 35px;
  }
  
  .book-detail-description h2 {
    font-size: 24px;
    margin-bottom: 18px;
  }
  
  .book-detail-description p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 18px;
  }
}

@media only screen and (max-width: 480px) {
  .section-books {
    padding: 48px 0 64px;
  }
  
  .section-books h2 {
    font-size: 26px;
    padding: 0 15px;
    line-height: 1.2;
  }
  
  .section-books .section-subtitle {
    font-size: 14px;
    margin-bottom: 30px;
    padding: 0 15px;
    line-height: 1.4;
  }
  
  .section-books .container {
    padding: 0 14px 20px;
  }
  
  .book-counter {
    width: 100%;
    font-size: 12px;
  }
  
  .book-counter #count {
    width: 100%;
    padding: 14px 16px;
    font-size: 32px;
    border-radius: 18px;
  }
  
  .books-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px 0 6px;
  }
  
  .book-card {
    border-radius: 20px;
  }
  
  .book-card-image {
    height: 260px;
  }
  
  .book-card-content {
    padding: 18px 18px 20px;
  }
  
  .book-card-title {
    font-size: 15px;
    line-height: 1.3;
  }
  
  .books-pagination {
    margin-top: 28px;
  }
  
  .pagination-button {
    padding: 10px 16px;
    font-size: 14px;
  }
  
  .book-detail-section {
    padding: 50px 0 35px;
  }
  
  .book-detail-header {
    margin-bottom: 35px;
  }
  
  .book-back-link {
    margin-bottom: 25px;
    font-size: 14px;
  }
  
  .book-detail-image {
    max-width: 250px;
    margin-bottom: 25px;
  }
  
  .book-detail-title {
    font-size: 30px;
    letter-spacing: -0.4px;
  }
  
  .book-detail-description {
    margin-bottom: 30px;
    padding: 0 10px;
  }
  
  .book-detail-description h2 {
    font-size: 22px;
    margin-bottom: 15px;
  }
  
  .book-detail-description p {
    font-size: 15px;
    line-height: 1.5;
    margin-bottom: 15px;
  }
  
  .btn-book-back {
    padding: 12px 28px;
    font-size: 15px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

/* Noticias Blue Refresh */
.noticias-page-section,
.noticia-detail-section {
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #eef9ff 0%, #ffffff 34%, #f3f8fb 100%);
}

.noticias-page-header {
  margin-bottom: 56px;
  padding: 40px 36px;
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(0, 53, 79, 0.97) 0%, rgba(0, 91, 133, 0.94) 58%, rgba(0, 229, 255, 0.84) 100%);
  box-shadow: 0 26px 60px rgba(0, 53, 79, 0.2);
}

.noticias-page-title,
.noticia-detail-title,
.noticia-destacada-titulo,
.noticia-destacada-columna .noticia-destacada-titulo,
.noticia-item-titulo,
.noticia-columna-der-titulo,
.noticia-section-heading h2,
.noticia-faq-item h3,
.noticia-not-found h1 {
  color: #00354F;
}

.noticias-page-header .noticias-page-title,
.noticias-page-header .noticias-page-subtitle {
  color: #ffffff;
}

.noticias-page-subtitle,
.noticia-meta,
.noticias-no-resultados p,
.noticias-empty p,
.noticia-not-found p {
  color: #4f6b7b;
}

.noticias-page-header .noticias-page-subtitle {
  color: rgba(232, 250, 255, 0.88);
}

.noticias-buscador {
  max-width: 620px;
}

.noticias-buscador i {
  color: #005b85;
}

.noticias-search-input {
  color: #00354F;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(0, 53, 79, 0.08);
}

.noticias-search-input:focus {
  border-color: #00E5FF;
  box-shadow: 0 0 0 4px rgba(0, 229, 255, 0.14);
}

.filtro-categoria-btn,
.noticia-categoria-badge,
.noticia-categoria-badge-small {
  color: #00354F;
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 83, 122, 0.18);
}

.filtro-categoria-btn:hover,
.filtro-categoria-btn.active {
  background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
  color: #ffffff;
  border-color: transparent;
}

.noticia-categoria-badge,
.noticia-categoria-badge-small,
.noticia-related-date {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.2);
}

.noticias-dos-columnas,
.noticia-destacada {
  border-top-color: rgba(0, 83, 122, 0.24);
}

.noticia-destacada,
.noticia-item,
.noticia-columna-der-item {
  border-bottom-color: rgba(0, 83, 122, 0.12);
}

.noticia-destacada-columna,
.noticia-columna-der-item,
.noticia-item {
  border: 1px solid rgba(0, 83, 122, 0.1);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,251,255,0.98) 100%);
  box-shadow: 0 18px 42px rgba(0, 53, 79, 0.08);
}

.noticia-destacada-columna {
  padding: 18px;
}

.noticia-columna-der-item,
.noticia-item {
  padding: 20px;
}

.noticia-columna-der-item:hover,
.noticia-item:hover {
  background: linear-gradient(180deg, rgba(255,255,255,1) 0%, rgba(236,250,255,0.98) 100%);
  border-color: rgba(0, 229, 255, 0.24);
  box-shadow: 0 24px 48px rgba(0, 53, 79, 0.12);
}

.noticia-destacada {
  border: 1px solid rgba(0, 83, 122, 0.12);
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,251,255,0.98) 100%);
  box-shadow: 0 22px 52px rgba(0, 53, 79, 0.1);
  padding: 28px;
}

.noticia-destacada-columna .noticia-destacada-titulo,
.noticia-destacada-titulo {
  border-left-color: #00E5FF;
}

.noticia-destacada-columna .noticia-destacada-contenido,
.noticia-destacada-contenido,
.noticia-item-contenido,
.noticia-columna-der-resumen,
.noticia-detail-contenido,
.noticia-faq-respuesta {
  color: #15384b;
}

.noticia-destacada-columna .noticia-destacada-contenido p:first-child,
.noticia-destacada-contenido p:first-child,
.noticia-resumen {
  color: #00354F;
}

.noticia-destacada-imagen,
.noticia-destacada-columna .noticia-destacada-imagen,
.noticia-columna-der-imagen,
.noticia-item-imagen,
.noticia-detail-imagen {
  border-radius: 20px;
  box-shadow: 0 18px 38px rgba(0, 53, 79, 0.12);
}

.noticias-page-section a,
.noticias-dos-columnas a,
.noticia-item a,
.noticia-destacada a,
.noticia-columna-der-item a {
  color: #00354F !important;
}

.noticias-page-section a:hover,
.noticias-dos-columnas a:hover,
.noticia-item a:hover,
.noticia-destacada a:hover,
.noticia-columna-der-item a:hover {
  color: #005b85 !important;
}

.noticias-paginacion {
  padding: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 83, 122, 0.12);
  box-shadow: 0 16px 36px rgba(0, 53, 79, 0.08);
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.noticias-pagina-btn,
.noticias-pagina-numero,
.btn-noticia-back {
  color: #00354F;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(0, 83, 122, 0.22);
  border-radius: 999px;
}

.noticias-pagina-btn:hover,
.noticias-pagina-numero:hover,
.noticias-pagina-numero.active,
.btn-noticia-back,
.btn-noticia-back:hover {
  background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
  color: #ffffff;
  border-color: transparent;
  text-decoration: none;
}

.noticia-detail-section .container {
  max-width: 980px;
}

.noticia-detail-title-section {
  margin-bottom: 34px;
  padding: 30px 32px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(0, 83, 122, 0.12);
  box-shadow: 0 18px 42px rgba(0, 53, 79, 0.08);
}

.noticia-detail-title {
  font-size: clamp(34px, 5vw, 54px);
}

.noticia-detail-contenido {
  padding: 34px 36px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,250,253,0.98) 100%);
  border: 1px solid rgba(0, 83, 122, 0.1);
  box-shadow: 0 18px 44px rgba(0, 53, 79, 0.08);
}

.noticia-detail-contenido h1,
.noticia-detail-contenido h2,
.noticia-detail-contenido h3,
.noticia-detail-contenido h4,
.noticia-detail-contenido h5,
.noticia-detail-contenido h6 {
  color: #00354F;
}

.noticia-detail-contenido a,
.noticia-faq-respuesta a,
.noticia-related-link {
  color: #005b85;
}

.noticia-detail-contenido a:hover,
.noticia-faq-respuesta a:hover,
.noticia-related-card:hover .noticia-related-content h3 a,
.noticia-related-card:hover .noticia-related-link {
  color: #00354F;
}

.noticia-detail-contenido blockquote {
  border-left-color: #00E5FF;
  color: #285064;
  background: rgba(0, 229, 255, 0.06);
  border-radius: 0 18px 18px 0;
  padding: 18px 20px 18px 22px;
}

.noticia-detail-contenido code {
  background: rgba(0, 229, 255, 0.08);
  color: #00354F;
}

.noticia-detail-contenido hr {
  border-top-color: rgba(0, 83, 122, 0.12);
}

.noticia-faq-section,
.noticia-related-section {
  box-shadow: 0 20px 50px rgba(0, 53, 79, 0.1);
}

.noticia-faq-item::before {
  background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
}

.noticia-related-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,251,255,0.98) 100%);
}

.noticia-not-found,
.noticias-empty,
.noticias-no-resultados {
  padding: 56px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px dashed rgba(0, 83, 122, 0.18);
}

@media only screen and (max-width: 767px) {
  .noticias-page-header,
  .noticia-detail-title-section,
  .noticia-detail-contenido,
  .noticia-destacada,
  .noticia-destacada-columna,
  .noticia-columna-der-item,
  .noticia-item {
    padding: 20px;
  }

  .noticias-page-header {
    border-radius: 26px;
  }

  .noticias-paginacion {
    width: 100%;
    border-radius: 28px;
  }

  .noticia-item,
  .noticias-dos-columnas {
    gap: 20px;
  }
}

/* Projects Blue Refresh */
.section-works,
.project-detail-section {
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #eef9ff 0%, #ffffff 34%, #f3f8fb 100%);
}

.section-works {
  padding: 96px 0;
}

.section-works .container {
  max-width: 1440px;
}

.section-works h2,
.project-detail-title,
.project-detail-description h2,
.project-detail-technologies h2,
.project-not-found h1 {
  color: #00354F;
}

.section-works h2 {
  font-size: clamp(40px, 5vw, 58px);
  letter-spacing: -0.06em;
}

.section-works .section-subtitle {
  max-width: 720px;
  margin: 0 auto 42px;
  color: #4f6b7b;
}

.section-works .section-subtitle span {
  color: #005b85;
}

.portfolio {
  padding: 34px 36px 28px;
  border-radius: 36px;
  background: linear-gradient(180deg, rgba(255,255,255,0.94) 0%, rgba(243,251,255,0.98) 100%);
  border: 1px solid rgba(0, 83, 122, 0.12);
  box-shadow: 0 28px 60px rgba(0, 53, 79, 0.1);
}

.portfolio-sorting {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}

.portfolio-sorting li a {
  color: #00354F;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(0, 83, 122, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 24px rgba(0, 53, 79, 0.05);
}

.portfolio-sorting li a:hover,
.portfolio-sorting li a.active {
  background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
  color: #ffffff;
  border-color: transparent;
}

.portfolio-sorting li a:hover:after,
.portfolio-sorting li a.active:after {
  background-color: transparent;
}

#grid {
  padding: 28px 0 8px !important;
  gap: 32px !important;
}

.project-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,251,255,0.98) 100%);
  border: 1px solid rgba(0, 83, 122, 0.1);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(0, 53, 79, 0.1);
}

.project-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 229, 255, 0.24);
  box-shadow: 0 28px 54px rgba(0, 53, 79, 0.16);
}

.project-card-image {
  height: 300px;
  background: linear-gradient(180deg, #f8fdff 0%, #e7f8ff 100%);
}

.project-card-overlay {
  background: linear-gradient(180deg, rgba(0, 53, 79, 0.02) 0%, rgba(0, 53, 79, 0.02) 100%);
}

.project-card:hover .project-card-overlay {
  background: linear-gradient(180deg, rgba(0, 53, 79, 0.04) 0%, rgba(0, 53, 79, 0.44) 100%);
}

.project-card-icon {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.96);
  color: #00354F;
  box-shadow: 0 12px 28px rgba(0, 53, 79, 0.16);
}

.project-card-icon:hover {
  background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
  color: #ffffff;
}

.project-card-content {
  padding: 26px 24px 28px;
}

.project-card-title {
  color: #00354F;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.project-card-description {
  color: #4b6878;
  font-size: 15px;
  line-height: 1.65;
}

.project-detail-section .container {
  max-width: 1240px;
}

.project-detail-header {
  margin-bottom: 44px;
}

.project-detail-image {
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(0, 53, 79, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #eff9fd 100%);
}

.project-detail-title-section {
  max-width: 900px;
  padding: 34px 38px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(0, 83, 122, 0.12);
  box-shadow: 0 18px 44px rgba(0, 53, 79, 0.08);
}

.project-detail-title {
  font-size: clamp(36px, 5vw, 64px);
  letter-spacing: -0.06em;
}

.project-detail-subtitle,
.project-not-found p {
  color: #4f6b7b;
}

.project-detail-categories {
  gap: 12px;
}

.project-category-badge {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.2);
  color: #00354F;
  font-weight: 600;
}

.project-detail-content {
  max-width: 980px;
  padding: 38px 42px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,250,253,0.98) 100%);
  border: 1px solid rgba(0, 83, 122, 0.1);
  box-shadow: 0 20px 48px rgba(0, 53, 79, 0.08);
}

.project-detail-description,
.project-detail-technologies {
  margin-bottom: 42px;
}

.project-detail-description p {
  color: #15384b;
  font-size: 18px;
  line-height: 1.75;
}

.technologies-grid {
  gap: 18px;
}

.technology-item {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 83, 122, 0.14);
  border-radius: 18px;
  color: #00354F;
  box-shadow: 0 12px 24px rgba(0, 53, 79, 0.05);
}

.technology-item:hover {
  border-color: rgba(0, 229, 255, 0.22);
  box-shadow: 0 16px 30px rgba(0, 53, 79, 0.08);
}

.technology-item i {
  color: #00AFC2;
}

.project-detail-action {
  margin-top: 42px;
  padding-top: 32px;
  border-top-color: rgba(0, 83, 122, 0.12);
}

.btn-project-visit {
  background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
  color: #ffffff;
  border-color: transparent;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(0, 53, 79, 0.16);
}

.btn-project-visit:hover {
  background: linear-gradient(135deg, #00293e 0%, #004f74 58%, #00d0e8 100%);
  border-color: transparent;
  color: #ffffff;
}

.project-not-found {
  padding: 72px 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px dashed rgba(0, 83, 122, 0.18);
}

@media only screen and (max-width: 991px) {
  .portfolio {
    padding: 24px 20px;
    border-radius: 28px;
  }

  .project-detail-title-section,
  .project-detail-content {
    padding: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .section-works {
    padding: 76px 0;
  }

  .portfolio {
    padding: 18px 16px;
  }

  .project-card-image {
    height: 260px;
  }

  .project-detail-title-section,
  .project-detail-content,
  .project-not-found {
    padding: 20px;
    border-radius: 24px;
  }
}

/* Books Blue Refresh */
.section-books,
.book-detail-section {
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.12), transparent 26%),
    linear-gradient(180deg, #eef9ff 0%, #ffffff 34%, #f3f8fb 100%);
}

.section-books {
  padding: 96px 0;
}

.section-books .container {
  max-width: 1440px;
}

.books-hero {
  box-shadow: 0 28px 62px rgba(0, 53, 79, 0.2);
}

.books-kicker {
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.section-books .section-subtitle span {
  color: rgba(236, 252, 255, 0.9);
}

.book-counter {
  color: rgba(225, 250, 255, 0.88);
}

.book-counter #count {
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.14), 0 16px 34px rgba(0, 53, 79, 0.14);
}

.books-grid {
  gap: 32px;
}

.book-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,251,255,0.98) 100%);
  border: 1px solid rgba(0, 83, 122, 0.1);
  border-radius: 28px;
  box-shadow: 0 18px 42px rgba(0, 53, 79, 0.1);
}

.book-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 229, 255, 0.24);
  box-shadow: 0 28px 54px rgba(0, 53, 79, 0.16);
}

.book-card-image {
  height: 360px;
  background: linear-gradient(180deg, #f8fdff 0%, #e7f8ff 100%);
}

.book-card-overlay {
  background: linear-gradient(180deg, rgba(0, 53, 79, 0.02) 0%, rgba(0, 53, 79, 0.02) 100%);
}

.book-card:hover .book-card-overlay {
  background: linear-gradient(180deg, rgba(0, 53, 79, 0.04) 0%, rgba(0, 53, 79, 0.44) 100%);
}

.book-card-placeholder {
  background: linear-gradient(135deg, rgba(0,53,79,0.08) 0%, rgba(0,229,255,0.18) 100%);
  color: #00354F;
}

.book-card-icon {
  width: 58px;
  height: 58px;
  background: rgba(255, 255, 255, 0.96);
  color: #00354F;
  box-shadow: 0 12px 28px rgba(0, 53, 79, 0.16);
}

.book-card-icon:hover {
  background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
  color: #ffffff;
}

.book-card-content {
  padding: 24px 22px 26px;
}

.book-card-title {
  color: #00354F;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.books-empty {
  background: rgba(255,255,255,0.84);
  border: 1px dashed rgba(0,53,79,0.18);
}

.books-empty p {
  color: #4f6b7b;
}

.pagination-list {
  background: rgba(255,255,255,0.46);
  border-color: rgba(255,255,255,0.38);
  box-shadow: 0 18px 34px rgba(0,53,79,0.08);
}

.pagination-button {
  color: #00354F;
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,53,79,0.18);
}

.pagination-button:hover,
.pagination-button.active {
  background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
  color: #ffffff;
  border-color: transparent;
}

.book-detail-section .container {
  max-width: 1120px;
}

.book-detail-header {
  margin-bottom: 40px;
}

.book-detail-image {
  border-radius: 28px;
  box-shadow: 0 24px 52px rgba(0, 53, 79, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #eff9fd 100%);
}

.book-detail-title-section {
  max-width: 880px;
  padding: 32px 36px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(0, 83, 122, 0.12);
  box-shadow: 0 18px 44px rgba(0, 53, 79, 0.08);
}

.book-detail-title,
.book-not-found h1,
.book-detail-description h2 {
  color: #00354F;
}

.book-detail-title {
  font-size: clamp(34px, 5vw, 60px);
  letter-spacing: -0.06em;
}

.book-detail-content {
  max-width: 920px;
  padding: 36px 40px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(244,250,253,0.98) 100%);
  border: 1px solid rgba(0, 83, 122, 0.1);
  box-shadow: 0 20px 48px rgba(0, 53, 79, 0.08);
}

.book-detail-description p,
.book-not-found p {
  color: #15384b;
}

.book-detail-description p {
  font-size: 18px;
  line-height: 1.75;
}

.book-not-found {
  padding: 72px 28px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.84);
  border: 1px dashed rgba(0, 83, 122, 0.18);
}

.btn-book-back {
  background: linear-gradient(135deg, #00354F 0%, #005b85 58%, #00E5FF 100%);
  color: #ffffff;
  border-color: transparent;
  border-radius: 999px;
  box-shadow: 0 18px 34px rgba(0, 53, 79, 0.16);
}

.btn-book-back:hover {
  background: linear-gradient(135deg, #00293e 0%, #004f74 58%, #00d0e8 100%);
  border-color: transparent;
  color: #ffffff;
}

@media only screen and (max-width: 991px) {
  .section-books {
    padding: 80px 0;
  }

  .book-detail-title-section,
  .book-detail-content {
    padding: 24px;
  }
}

@media only screen and (max-width: 767px) {
  .books-hero,
  .book-detail-title-section,
  .book-detail-content,
  .book-not-found {
    padding: 20px;
    border-radius: 24px;
  }

  .book-card-image {
    height: 300px;
  }

  .pagination-list {
    border-radius: 28px;
  }
}

/* Premium home refresh
================================================== */
html {
  scroll-behavior: smooth;
}

body {
  background: #f7fafc;
  color: var(--site-text);
}

#top,
#oficios,
#proyectos,
#trabajos,
#books,
#contact {
  scroll-margin-top: 120px;
}

.site-section,
.section-separator {
  position: relative;
}

.site-section {
  padding: 112px 0;
}

.site-section h2,
.section-separator h2 {
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.02;
  letter-spacing: -0.06em;
  text-transform: none;
  margin: 0 0 16px;
}

.section-subtitle {
  margin-bottom: 22px;
}

.section-subtitle span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 53, 79, 0.12);
  background: rgba(255, 255, 255, 0.9);
  color: #245067;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  padding-top: 18px;
  background: transparent !important;
}

#primary-navigation.site-navigation {
  background: transparent !important;
  box-shadow: none !important;
}

#primary-navigation .site-nav-shell {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.64);
  box-shadow: 0 18px 42px rgba(0, 27, 41, 0.1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

#primary-navigation.is-scrolled .site-nav-shell,
#primary-navigation.affix .site-nav-shell {
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 20px 50px rgba(0, 27, 41, 0.16);
}

#primary-navigation .site-logo a,
#primary-navigation .navbar-nav > li > a {
  color: #12354a !important;
}

#primary-navigation .site-logo a:hover {
  color: var(--site-primary) !important;
}

#primary-navigation .navbar-nav {
  gap: 10px;
}

#primary-navigation .navbar-nav > li > a {
  position: relative;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

#primary-navigation .navbar-nav > li > a::after {
  content: '';
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 8px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #00354F 0%, #00E5FF 100%);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s ease;
}

#primary-navigation .navbar-nav > li > a:hover,
#primary-navigation .navbar-nav > li.active > a,
#primary-navigation .navbar-nav > li.is-active > a {
  background: rgba(0, 83, 122, 0.08);
  color: var(--site-primary) !important;
}

#primary-navigation .navbar-nav > li.active > a::after,
#primary-navigation .navbar-nav > li.is-active > a::after,
#primary-navigation .navbar-nav > li > a:hover::after {
  transform: scaleX(1);
}

#primary-navigation .navbar-nav > li.nav-contact-item > a {
  background: linear-gradient(135deg, #00354F 0%, #0a4f71 55%, #0b6d95 100%);
  color: #ffffff !important;
  border: 1px solid rgba(0, 53, 79, 0.22);
  box-shadow: 0 16px 32px rgba(0, 53, 79, 0.16);
}

#primary-navigation .navbar-nav > li.nav-contact-item > a::after {
  display: none;
}

#primary-navigation .navbar-nav > li.nav-contact-item > a:hover,
#primary-navigation .navbar-nav > li.nav-contact-item.active > a,
#primary-navigation .navbar-nav > li.nav-contact-item.is-active > a {
  background: linear-gradient(135deg, #00283c 0%, #005b85 68%, #00E5FF 100%);
  color: #ffffff !important;
}

.hero-premium {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  padding: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(0, 229, 255, 0.18), transparent 32%),
    radial-gradient(circle at 86% 18%, rgba(0, 229, 255, 0.12), transparent 26%),
    linear-gradient(135deg, #04111d 0%, #072337 42%, #0a3750 100%);
}

.hero-premium-background,
.hero-premium-background span {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-premium-background {
  opacity: 1;
}

.hero-orb {
  border-radius: 999px;
  filter: blur(0);
}

.hero-orb-one {
  inset: 8% auto auto 8%;
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.26) 0%, rgba(0, 229, 255, 0) 72%);
}

.hero-orb-two {
  inset: auto 8% 10% auto;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.18) 0%, rgba(0, 229, 255, 0) 74%);
}

.hero-orb-three {
  inset: 26% auto auto 56%;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(0, 117, 168, 0.18) 0%, rgba(0, 117, 168, 0) 74%);
}

.hero-grid-lines {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), rgba(0, 0, 0, 0.2));
}

.hero-noise-dots {
  background-image: radial-gradient(rgba(255, 255, 255, 0.22) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  opacity: 0.14;
}

.hero-premium-shell {
  position: relative;
  z-index: 1;
  padding-top: 138px;
  padding-bottom: 88px;
}

.hero-premium-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.88fr);
  align-items: stretch;
  gap: 36px;
}

.hero-premium-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 100%;
}

.hero-identity-strip {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 24px;
}

.profile-circle-wrapper {
  position: relative;
  width: 84px;
  height: 84px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255,255,255,0.22) 0%, rgba(0,229,255,0.46) 100%);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 20px 44px rgba(0, 0, 0, 0.18);
}

.profile-circle {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 999px;
  border: 3px solid rgba(255, 255, 255, 0.32);
}

.hero-subtitle {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(218, 242, 255, 0.86) !important;
}

.hero-name {
  margin: 0;
  font-size: clamp(68px, 10vw, 122px);
  line-height: 0.9;
  letter-spacing: -0.08em;
}

.hero-name-link {
  color: #ffffff !important;
  text-decoration: none;
  text-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
}

.hero-name-link:hover,
.hero-name-link:focus {
  color: #dffbff !important;
}

.hero-quote {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(20px, 2.4vw, 31px);
  line-height: 1.35;
  letter-spacing: -0.04em;
  color: rgba(239, 249, 255, 0.9) !important;
  text-align: left;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 34px;
}

.hero-primary-cta {
  min-width: 190px;
  justify-content: center;
}

.hero-secondary-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #e5fbff;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.hero-secondary-cta::after {
  content: '\2192';
  font-size: 18px;
}

.hero-secondary-cta:hover,
.hero-secondary-cta:focus {
  color: var(--site-accent);
}

.hero-noticias {
  height: 100%;
  padding: 28px;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(7, 22, 34, 0.74) 0%, rgba(9, 28, 43, 0.88) 100%) !important;
  border: 1px solid rgba(110, 207, 255, 0.18) !important;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.hero-noticias-head {
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-noticias-kicker {
  color: rgba(171, 236, 255, 0.8);
}

.hero-noticias-title,
.hero-noticias-intro,
.hero-noticia-titulo-link,
.hero-noticia-fecha,
.hero-noticia-texto,
.btn-ver-mas-noticias {
  color: #ffffff !important;
}

.hero-noticias-title {
  margin-top: 10px;
  font-size: clamp(30px, 4vw, 42px);
  letter-spacing: -0.06em;
}

.hero-noticias-intro {
  color: rgba(222, 242, 255, 0.72) !important;
}

.hero-noticias-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 430px;
  padding-right: 8px;
}

.hero-noticia-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-noticia-imagen {
  width: 92px;
  height: 92px;
  border-radius: 16px;
  overflow: hidden;
}

.hero-noticia-imagen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-noticia-empty {
  grid-template-columns: 1fr;
  text-align: center;
  color: rgba(232, 246, 255, 0.72);
}

.hero-noticia-footer-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hero-noticia-leer-mas {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--site-accent) !important;
}

.hero-noticia-leer-mas::after {
  content: '\2192';
}

.btn-ver-mas-noticias {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 18px;
  border: 1px solid rgba(0, 229, 255, 0.24) !important;
  background: rgba(255, 255, 255, 0.06);
}

.btn-ver-mas-noticias:hover {
  background: rgba(0, 229, 255, 0.12);
}

.hero-arrow {
  bottom: 34px;
}

.hero-arrow a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.2);
}

.hero-arrow a:hover {
  background: rgba(0, 229, 255, 0.16);
}

.section-oficios,
.site-section.section-oficios {
  padding-top: 94px;
  padding-bottom: 94px;
  background: linear-gradient(180deg, #f8fbfd 0%, #f2f7fb 100%);
}

.section-oficios .container-fluid {
  max-width: 1240px;
  padding: 0 24px;
}

.oficios-header {
  margin-bottom: 28px;
  text-align: center;
}

.oficios-carousel {
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: center;
  gap: 18px !important;
  overflow: visible !important;
  padding: 0 !important;
  cursor: default !important;
}

.oficio-item {
  flex: 0 0 auto !important;
  width: auto;
}

.oficio-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 185px;
  padding: 16px 20px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(0, 53, 79, 0.1);
  box-shadow: 0 12px 28px rgba(0, 53, 79, 0.08);
}

.oficio-link:hover,
.oficio-link:focus {
  transform: translateY(-2px);
  background: #edf8ff;
}

.oficio-circle {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(0,53,79,0.08) 0%, rgba(0,229,255,0.2) 100%);
  color: var(--site-primary);
  flex-shrink: 0;
}

.oficio-imagen {
  border-radius: 14px;
}

.oficio-label {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  color: var(--site-primary);
}

.oficio-item.active .oficio-link {
  background: linear-gradient(135deg, #00354F 0%, #0b5d84 70%, #2acde4 100%);
  border-color: rgba(0, 53, 79, 0.12);
  box-shadow: 0 18px 34px rgba(0, 53, 79, 0.18);
}

.oficio-item.active .oficio-circle {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.oficio-item.active .oficio-label {
  color: #ffffff;
}

.section-works {
  background: #ffffff;
}

.section-works .container,
.section-books .container,
.section-clients-timeline .container {
  max-width: 1240px;
}

.portfolio-sorting {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 32px 0 42px;
}

.portfolio-sorting li {
  margin: 0;
}

.portfolio-sorting li a {
  display: inline-flex;
  align-items: center;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(0, 53, 79, 0.12);
  background: #f7fafc;
  color: var(--site-primary);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.portfolio-sorting li a:hover,
.portfolio-sorting li a.active {
  background: #eaf7ff;
  border-color: rgba(0, 83, 122, 0.2);
  box-shadow: 0 10px 20px rgba(0, 53, 79, 0.08);
}

#grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 28px !important;
}

.project-card-wrapper,
.project-card-link {
  height: 100%;
}

.project-card-link {
  display: block;
}

.project-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid rgba(0, 53, 79, 0.1) !important;
  box-shadow: 0 18px 38px rgba(0, 53, 79, 0.08) !important;
}

.project-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 52px rgba(0, 53, 79, 0.14) !important;
}

.project-card-image {
  height: 248px;
}

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

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

.project-card-overlay {
  background: linear-gradient(180deg, rgba(1, 20, 31, 0.02) 0%, rgba(1, 20, 31, 0.42) 100%);
}

.project-card-content {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
}

.project-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.project-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(0, 229, 255, 0.1);
  color: var(--site-primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.project-card-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.08;
}

.project-card-description {
  margin: 0;
  color: #4d6776;
  line-height: 1.7;
}

.project-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-weight: 700;
  color: var(--site-primary);
}

.section-quote-cinematic {
  padding: 72px 0;
  background:
    radial-gradient(circle at top left, rgba(0, 229, 255, 0.16), transparent 30%),
    linear-gradient(135deg, #061520 0%, #0a293e 48%, #0a354d 100%);
}

.quote-cinematic-card {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 52px 72px;
  border-radius: 34px;
  border: 1px solid rgba(112, 207, 255, 0.16);
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.07) 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}

.quote-cinematic-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0,229,255,0.18), rgba(0,229,255,0) 18%, rgba(0,229,255,0) 82%, rgba(0,229,255,0.18)),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0));
  pointer-events: none;
}

.quote-cinematic-mark {
  position: absolute;
  font-size: 120px;
  line-height: 1;
  color: rgba(0, 229, 255, 0.18);
}

.quote-cinematic-mark-open {
  top: 20px;
  left: 26px;
}

.quote-cinematic-mark-close {
  right: 26px;
  bottom: 0;
}

.quote-cinematic-body {
  margin: 0;
}

.quote-cinematic-body p,
.quote-cinematic-card h2,
.quote-cinematic-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: #ffffff;
}

.quote-cinematic-body p {
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.25;
  letter-spacing: -0.05em;
}

.quote-cinematic-body p span,
.quote-cinematic-card p span {
  color: var(--site-accent);
}

.quote-cinematic-card-cta {
  text-align: center;
}

.quote-cinematic-card-cta h2 {
  color: #ffffff;
}

.quote-cinematic-card-cta p {
  max-width: 720px;
  margin: 18px auto 0;
  color: rgba(231, 246, 255, 0.8);
}

.quote-cinematic-card-cta .btn {
  margin-top: 28px;
}

.section-clients-timeline {
  background: linear-gradient(180deg, #f7fafc 0%, #f2f6f9 100%);
}

.timeline-container {
  margin-top: 42px;
}

.timeline-wrapper {
  position: relative;
  padding-left: 220px;
}

.timeline-wrapper::before {
  left: 191px;
  width: 2px;
  background: linear-gradient(180deg, rgba(0,53,79,0.12) 0%, rgba(0,229,255,0.36) 50%, rgba(0,53,79,0.12) 100%);
}

.timeline-year-marker {
  position: relative;
  margin: 22px 0 12px;
  min-height: 0;
}

.timeline-year-marker .year-label {
  position: absolute;
  left: -220px;
  top: -6px;
  display: inline-block;
  width: 170px;
  text-align: left;
  font-size: 52px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.08em;
  color: #00354F;
  opacity: 0.96;
}

.timeline-item {
  margin: 0 0 30px;
}

.timeline-marker {
  left: 183px;
  width: 18px;
  height: 18px;
  background: #00E5FF;
  border: 4px solid #ffffff;
  box-shadow: 0 0 0 4px rgba(0, 53, 79, 0.08);
}

.timeline-content {
  width: 100%;
  padding-left: 36px;
}

.timeline-wrapper > .timeline-item:nth-child(2n) .timeline-content,
.timeline-wrapper > .timeline-item:nth-child(2n+1) .timeline-content {
  width: 100%;
  padding-left: 36px;
  padding-right: 0;
}

.timeline-card {
  border-radius: 28px;
  background: #ffffff !important;
  border: 1px solid rgba(0, 83, 122, 0.1) !important;
  box-shadow: 0 18px 40px rgba(0, 53, 79, 0.08) !important;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 52px rgba(0, 53, 79, 0.12) !important;
}

.timeline-card-header {
  align-items: center;
  gap: 20px;
  padding-bottom: 6px;
}

.timeline-company-logo {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  background: linear-gradient(180deg, #fbfeff 0%, #eef6fa 100%);
  border: 1px solid rgba(0, 53, 79, 0.08);
}

.timeline-company-name {
  margin-bottom: 8px;
  font-size: 28px;
}

.timeline-job-title {
  margin-bottom: 16px;
  font-size: 18px;
  color: #355567;
}

.timeline-area-badge {
  border-radius: 999px;
  padding: 8px 12px;
  border: 1px solid rgba(0, 83, 122, 0.1);
  background: rgba(0, 229, 255, 0.08);
  color: var(--site-primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.timeline-card-body {
  padding-top: 8px;
}

.timeline-description {
  font-size: 16px;
  line-height: 1.8;
}

.timeline-card-footer {
  gap: 16px;
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(0, 53, 79, 0.08);
}

.timeline-date-item,
.timeline-duration {
  padding: 10px 14px;
  border-radius: 16px;
  background: #f7fafc;
  border: 1px solid rgba(0, 53, 79, 0.06);
}

.timeline-badge-current {
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(0,53,79,0.08) 0%, rgba(0,229,255,0.22) 100%);
  color: var(--site-primary);
  font-weight: 700;
}

.section-books {
  background: linear-gradient(180deg, #eef7fb 0%, #f7fbfd 100%);
}

.books-hero {
  align-items: center;
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff 0%, #f2f9fd 100%);
  border: 1px solid rgba(0, 53, 79, 0.08);
  box-shadow: 0 18px 44px rgba(0, 53, 79, 0.08);
}

.book-counter {
  padding: 18px 24px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00354F 0%, #0b688f 65%, #00E5FF 100%);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 18px 36px rgba(0, 53, 79, 0.14);
}

.books-grid {
  gap: 28px;
}

.book-card {
  border-radius: 28px;
  overflow: hidden;
  background: #ffffff !important;
  border: 1px solid rgba(0, 53, 79, 0.08) !important;
  box-shadow: 0 18px 42px rgba(0, 53, 79, 0.08) !important;
}

.book-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 52px rgba(0, 53, 79, 0.12) !important;
}

.book-card-image {
  height: 330px;
}

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

.book-card-content {
  padding: 22px 22px 24px;
}

.book-card-title {
  font-size: 22px;
  line-height: 1.2;
}

.section-contact {
  background:
    radial-gradient(circle at top center, rgba(0, 229, 255, 0.14) 0%, transparent 28%),
    linear-gradient(180deg, #071724 0%, #082538 58%, #0a2f46 100%);
}

.contact-premium-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 48px;
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.08) 100%);
  border: 1px solid rgba(112, 207, 255, 0.16);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.24);
}

.contact-premium-copy h2,
.section-contact .section-subtitle span {
  color: #ffffff;
}

.section-contact .section-subtitle span {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.12);
}

.contact-premium-form {
  margin-top: 30px;
}

.section-contact .form-control {
  min-height: 56px;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.12) !important;
  background: rgba(255,255,255,0.92);
  box-shadow: none !important;
}

.section-contact textarea.form-control {
  min-height: 190px;
  padding-top: 18px;
}

.section-contact .btn {
  min-width: 220px;
  height: 56px;
  margin-top: 10px;
  border-radius: 18px;
}

.section-contact .btn-inverted {
  color: #ffffff;
  background: linear-gradient(135deg, #00354F 0%, #0b688f 60%, #00E5FF 100%);
  border-color: transparent;
}

.section-contact .btn-inverted:hover {
  background: linear-gradient(135deg, #00283c 0%, #005b85 60%, #00cfe4 100%);
}

.mobile-menu-button {
  background: rgba(255, 255, 255, 0.88) !important;
  color: var(--site-primary) !important;
  border: 1px solid rgba(255, 255, 255, 0.7) !important;
  box-shadow: 0 18px 38px rgba(0, 27, 41, 0.16) !important;
}

.mobile-menu-button i {
  color: var(--site-primary) !important;
}

.mobile-menu-button.active,
.mobile-menu-button:hover,
.mobile-menu-button:focus {
  background: #ffffff !important;
}

.mobile-menu-dropdown {
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(255, 255, 255, 0.72) !important;
  box-shadow: 0 22px 44px rgba(0, 27, 41, 0.16) !important;
}

.mobile-menu-dropdown ul li a {
  color: var(--site-primary) !important;
}

.mobile-menu-dropdown ul li a:hover,
.mobile-menu-dropdown ul li a:focus {
  background-color: rgba(0, 83, 122, 0.08) !important;
  color: var(--site-primary) !important;
}

.mobile-menu-link-contact {
  background: linear-gradient(135deg, #00354F 0%, #0b688f 60%, #00E5FF 100%);
  color: #ffffff !important;
}

@media only screen and (max-width: 1199px) {
  .hero-premium-grid {
    grid-template-columns: 1fr;
  }

  .hero-noticias {
    max-width: 860px;
  }

  #grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media only screen and (max-width: 991px) {
  .site-section {
    padding: 92px 0;
  }

  .hero-premium-shell {
    padding-top: 124px;
  }

  .quote-cinematic-card,
  .contact-premium-shell {
    padding: 38px 28px;
  }

  .timeline-wrapper {
    padding-left: 120px;
  }

  .timeline-wrapper::before {
    left: 94px;
  }

  .timeline-year-marker .year-label {
    left: -120px;
    width: 96px;
    font-size: 34px;
  }

  .timeline-marker {
    left: 86px;
  }

  .timeline-content,
  .timeline-wrapper > .timeline-item:nth-child(2n) .timeline-content,
  .timeline-wrapper > .timeline-item:nth-child(2n+1) .timeline-content {
    padding-left: 28px;
  }
}

@media only screen and (max-width: 767px) {
  .site-section {
    padding: 80px 0;
  }

  .section-subtitle span {
    padding: 9px 14px;
  }

  .hero-premium-shell {
    padding-top: 104px;
    padding-bottom: 88px;
  }

  .hero-name {
    font-size: clamp(54px, 16vw, 82px);
  }

  .hero-quote {
    font-size: 20px;
  }

  .hero-noticias {
    padding: 20px;
    border-radius: 24px;
  }

  .hero-noticia-item {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .hero-noticia-imagen {
    width: 72px;
    height: 72px;
  }

  .oficios-carousel {
    justify-content: flex-start;
  }

  .oficio-link {
    min-width: 0;
    width: 100%;
  }

  #grid {
    grid-template-columns: 1fr !important;
    gap: 22px !important;
  }

  .project-card-image {
    height: 220px;
  }

  .quote-cinematic-card {
    padding: 34px 22px;
    border-radius: 28px;
  }

  .quote-cinematic-mark {
    font-size: 74px;
  }

  .quote-cinematic-body p {
    font-size: 24px;
  }

  .timeline-wrapper {
    padding-left: 0;
  }

  .timeline-wrapper::before {
    left: 15px;
  }

  .timeline-year-marker {
    margin-top: 14px;
    margin-bottom: 12px;
    padding-left: 40px;
  }

  .timeline-year-marker .year-label {
    position: static;
    width: auto;
    font-size: 28px;
  }

  .timeline-marker {
    left: 7px;
    top: 28px;
  }

  .timeline-content,
  .timeline-wrapper > .timeline-item:nth-child(2n) .timeline-content,
  .timeline-wrapper > .timeline-item:nth-child(2n+1) .timeline-content {
    padding-left: 40px;
  }

  .timeline-card-header,
  .timeline-card-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .book-counter {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .contact-premium-shell {
    padding: 28px 20px;
  }
}

/* ============================================================
   Experiencia profesional — rediseño 2026 (.xp-*)
   ============================================================ */
.xp-section{
  position:relative;
  padding:96px 20px 104px;
  background:linear-gradient(180deg,#ffffff 0%, var(--site-surface) 100%);
}
.xp-inner{max-width:760px;margin:0 auto;}
.xp-header{text-align:center;margin-bottom:58px;}
.xp-kicker{
  display:inline-flex;align-items:center;gap:9px;
  font-size:.72rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;
  color:#00778c;background:var(--site-accent-soft);
  padding:8px 16px;border-radius:999px;
}
.xp-kicker::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--site-accent);box-shadow:0 0 0 4px rgba(0,229,255,.18);}
.xp-title{
  margin:20px 0 14px;
  font-size:clamp(2rem,4.6vw,3rem);font-weight:800;letter-spacing:-.025em;
  color:var(--site-primary);line-height:1.04;
}
.xp-sub{max-width:640px;margin:0 auto;color:var(--site-text-muted);font-size:1.06rem;line-height:1.6;}
.xp-archive-link{
  display:inline-block;margin-top:18px;font-weight:600;color:var(--site-primary);
  text-decoration:none;border-bottom:2px solid var(--site-accent-soft);padding-bottom:1px;
  transition:border-color .2s ease,color .2s ease;
}
.xp-archive-link:hover{border-color:var(--site-accent);color:#00778c;}

/* Línea de tiempo */
.xp-timeline{position:relative;padding-left:40px;}
.xp-timeline::before{
  content:"";position:absolute;left:11px;top:8px;bottom:8px;width:2px;
  background:linear-gradient(180deg,var(--site-primary) 0%,var(--site-accent) 100%);
  border-radius:2px;opacity:.5;
}
.xp-year{position:relative;margin:2px 0 24px;}
.xp-year span{
  display:inline-block;font-weight:800;font-size:.92rem;color:var(--site-primary);
  background:#fff;border:1px solid var(--site-border);border-radius:999px;padding:5px 16px;
  box-shadow:0 4px 14px rgba(0,53,79,.08);
}
.xp-year::before{
  content:"";position:absolute;left:-35px;top:50%;transform:translateY(-50%);
  width:14px;height:14px;border-radius:50%;background:#fff;border:3px solid var(--site-primary);
}

.xp-item{position:relative;margin:0 0 26px;}
.xp-node{
  position:absolute;left:-35px;top:32px;width:14px;height:14px;border-radius:50%;
  background:#fff;border:3px solid var(--site-accent);box-shadow:0 0 0 4px rgba(0,229,255,.14);
}
.xp-item--current .xp-node{background:var(--site-accent);animation:xpPulse 2.2s infinite;}
@keyframes xpPulse{
  0%{box-shadow:0 0 0 0 rgba(0,229,255,.5);}
  70%{box-shadow:0 0 0 11px rgba(0,229,255,0);}
  100%{box-shadow:0 0 0 0 rgba(0,229,255,0);}
}

.xp-card{
  background:#fff;border:1px solid var(--site-border);border-radius:20px;
  padding:22px 24px;box-shadow:var(--site-shadow);
  transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease;
}
.xp-card:hover{transform:translateY(-4px);box-shadow:0 24px 48px rgba(0,53,79,.16);border-color:rgba(0,229,255,.4);}
.xp-item--current .xp-card{border-color:rgba(0,229,255,.5);box-shadow:0 18px 42px rgba(0,229,255,.16);}

.xp-card-head{display:flex;align-items:flex-start;gap:16px;}
.xp-logo{
  flex:0 0 auto;width:66px;height:66px;border-radius:16px;background:#fff;
  border:1px solid var(--site-border);display:flex;align-items:center;justify-content:center;
  overflow:hidden;padding:9px;
}
.xp-logo img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;}
.xp-headings{flex:1 1 auto;min-width:0;}
.xp-company{margin:0;font-size:1.32rem;font-weight:800;color:var(--site-primary);line-height:1.2;letter-spacing:-.01em;}
.xp-company a{color:inherit;text-decoration:none;}
.xp-company a:hover{color:#00778c;}
.xp-role{margin:4px 0 0;font-size:.97rem;font-weight:600;color:var(--site-text-muted);}
.xp-role a{color:inherit;text-decoration:none;}
.xp-role a:hover{color:var(--site-primary);}
.xp-current-badge{
  flex:0 0 auto;align-self:flex-start;
  font-size:.66rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;
  color:#00596b;background:var(--site-accent-soft);border:1px solid rgba(0,229,255,.4);
  padding:5px 11px;border-radius:999px;white-space:nowrap;
}
.xp-tags{display:flex;flex-wrap:wrap;gap:7px;margin-top:11px;}
.xp-tag{
  font-size:.71rem;font-weight:700;letter-spacing:.03em;color:var(--site-primary);
  background:rgba(0,53,79,.06);padding:4px 11px;border-radius:999px;
}
.xp-desc{margin:16px 0 0;color:var(--site-text-muted);line-height:1.66;font-size:.97rem;}
.xp-meta{display:flex;flex-wrap:wrap;gap:18px;margin-top:18px;padding-top:15px;border-top:1px dashed var(--site-border);}
.xp-meta-item{display:inline-flex;align-items:center;gap:8px;font-size:.85rem;font-weight:600;color:var(--site-text-muted);}
.xp-meta-item i{color:var(--site-accent);opacity:.95;font-size:.9rem;}

@media(max-width:600px){
  .xp-section{padding:66px 14px 74px;}
  .xp-header{margin-bottom:42px;}
  .xp-timeline{padding-left:28px;}
  .xp-timeline::before{left:7px;}
  .xp-node,.xp-year::before{left:-27px;}
  .xp-node{top:26px;}
  .xp-card{padding:18px;border-radius:16px;}
  .xp-card-head{gap:12px;}
  .xp-logo{width:48px;height:48px;border-radius:12px;padding:6px;}
  .xp-company{font-size:1.05rem;}
  .xp-current-badge{position:absolute;top:14px;right:14px;}
  .xp-item--current .xp-card{padding-top:20px;}
}

/* Blindaje: evitar que estilos globales de header/footer se cuelen en las tarjetas */
.xp-section header,
.xp-section footer,
.xp-section .xp-meta,
.xp-section .xp-card-head{
  background:transparent !important;box-shadow:none;color:inherit;
  padding-left:0;padding-right:0;margin:0;width:auto;
}
.xp-section .xp-meta{padding-top:15px;margin-top:18px;border-top:1px dashed var(--site-border);}

/* ============================================================
   Proyectos — arreglo de contraste "blanco sobre blanco" (2026)
   ============================================================ */
.section-works{
  background:linear-gradient(180deg,#e7f3fb 0%, #f4fbff 60%, #ffffff 100%) !important;
  padding:92px 0 100px !important;
}
.section-works h2{color:var(--site-primary) !important;}
.section-works .section-subtitle,
.section-works .section-subtitle span{color:var(--site-text-muted) !important;}

/* Fuera el gran recuadro casi-blanco: que las tarjetas respiren sobre la superficie */
.portfolio{
  background:transparent !important;
  border:none !important;
  box-shadow:none !important;
  padding:0 !important;
  border-radius:0 !important;
  margin-top:20px !important;
}

/* Tarjetas: blanco sólido con borde y sombra claramente visibles */
.project-card{
  background:#ffffff !important;
  border:1px solid rgba(0,53,79,0.16) !important;
  box-shadow:0 14px 34px rgba(0,53,79,0.12) !important;
  border-radius:22px !important;
}
.project-card:hover{
  transform:translateY(-8px);
  border-color:rgba(0,229,255,0.5) !important;
  box-shadow:0 26px 52px rgba(0,53,79,0.18) !important;
}
.project-card-content{padding:24px 24px 26px !important;}
.project-card-title{color:var(--site-primary) !important;font-weight:800 !important;letter-spacing:-.01em;}
.project-card-description{color:var(--site-text-muted) !important;}
.project-card-tag{
  background:rgba(0,83,122,0.10) !important;
  border:1px solid rgba(0,83,122,0.26) !important;
  color:var(--site-primary) !important;
  padding:6px 12px !important;font-size:11px !important;font-weight:700 !important;letter-spacing:.05em !important;
}
/* Coherencia: mismas etiquetas visibles en la timeline de experiencia */
.xp-tag{
  background:rgba(0,83,122,0.10);
  border:1px solid rgba(0,83,122,0.26);
  color:var(--site-primary);
}

/* Enlace "Ver archivo completo" centrado y con la marca */
.section-works .container > p{ text-align:center; }

/* ============================================================
   Fix Libros: el hero se rediseñó en claro pero el texto seguía
   en blanco (invisible sobre blanco). Texto en teal/oscuro.
   ============================================================ */
.books-kicker{
  background:var(--site-accent-soft) !important;
  color:#00778c !important;
}
.books-hero h2{ color:var(--site-primary) !important; }
.books-hero .section-subtitle span,
.section-books .books-hero .section-subtitle span{ color:var(--site-text-muted) !important; }
.books-hero .books-hero-copy > p a{ color:var(--site-primary) !important; font-weight:600; }
