/* ===== Generac - Estilos globales ===== */
/* Brand colors (Color Roles): Generac Orange #fa6600, Magic Hour Blue #00263e, White #fff, Off White #e2e1df, Metal #d1ccbd */
* { font-family: 'Roboto', sans-serif; box-sizing: border-box; }
body { margin: 0; padding: 0; color: #333; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; margin: 0; padding: 0; }

/* Top bar - Magic Hour Blue: bold purpose, emphasized sections */
.top-bar {
  background: #00263e;
  color: #fff;
  padding: 10px 0;
  font-size: 13px;
}
.top-bar .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
.top-bar-phones {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.top-bar-phone {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fa6600;
  font-weight: 700;
  transition: color 0.2s, opacity 0.2s;
}
.top-bar-phone:hover {
  color: #ff8533;
  opacity: 1;
}
.top-bar-phone-icon {
  display: inline-flex;
  flex-shrink: 0;
  color: currentColor;
}
.top-bar-phone-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}
.top-bar-sep {
  color: rgba(255, 255, 255, 0.35);
  font-weight: 400;
  user-select: none;
}
@media (max-width: 480px) {
  .top-bar-phones { gap: 12px; }
  .top-bar { font-size: 12px; padding: 8px 0; }
  .top-bar-phone-icon svg { width: 14px; height: 14px; }
}

/* Header */
.main-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1100;
}
.header-inner { max-width: 1200px; margin: 0 auto; padding: 15px 20px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; }
.logo img { height: 45px; width: auto; display: block; }
.main-nav { display: flex; align-items: center; gap: 5px; }
.main-nav > li { position: relative; }
.main-nav > li > a {
  display: block;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
  color: #00263e;
}
.main-nav > li > a:hover { color: #fa6600; }
.main-nav .dropdown { position: absolute; top: 100%; left: 0; background: #fff; box-shadow: 0 4px 15px rgba(0,0,0,0.15); min-width: 220px; padding: 10px 0; opacity: 0; visibility: hidden; transition: 0.2s; }
.main-nav li:hover .dropdown { opacity: 1; visibility: visible; }
.main-nav .dropdown a { display: block; padding: 10px 20px; font-size: 13px; }
.main-nav .dropdown a:hover { background: #e2e1df; color: #fa6600; }

/* Botón menú (solo móvil / tablet estrecha) */
.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 2px solid rgba(0, 38, 62, 0.14);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.nav-toggle:hover {
  border-color: rgba(250, 102, 0, 0.55);
  box-shadow: 0 4px 18px rgba(250, 102, 0, 0.18);
}
.nav-toggle:focus-visible {
  outline: 2px solid #fa6600;
  outline-offset: 3px;
}
.nav-toggle-bars {
  position: relative;
  display: block;
  width: 22px;
  height: 14px;
}
.nav-toggle-bar {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #00263e;
  border-radius: 2px;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.25s ease, top 0.38s cubic-bezier(0.22, 1, 0.36, 1), background 0.25s ease;
}
.nav-toggle-bar:nth-child(1) { top: 0; }
.nav-toggle-bar:nth-child(2) { top: 6px; }
.nav-toggle-bar:nth-child(3) { top: 12px; }
.main-header.is-nav-open .nav-toggle {
  border-color: #00263e;
  background: #00263e;
}
.main-header.is-nav-open .nav-toggle-bar:nth-child(1) {
  top: 6px;
  transform: rotate(45deg);
  background: #fff;
}
.main-header.is-nav-open .nav-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
  background: #fff;
}
.main-header.is-nav-open .nav-toggle-bar:nth-child(3) {
  top: 6px;
  transform: rotate(-45deg);
  background: #fff;
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1001;
  background: rgba(0, 38, 62, 0.42);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.main-header.is-nav-open .nav-backdrop {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@keyframes navDrawerItemIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1023px) {
  .nav-toggle { display: inline-flex; }
  .header-inner {
    position: relative;
    z-index: 1002;
    gap: 12px;
  }
  .site-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: min(100vw - 56px, 400px);
    max-width: 100%;
    height: 100vh;
    height: 100dvh;
    margin: 0;
    padding: calc(72px + env(safe-area-inset-top, 0px)) 0 calc(24px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(165deg, #ffffff 0%, #f4f6f8 55%, #eef1f4 100%);
    box-shadow: -12px 0 48px rgba(0, 38, 62, 0.22);
    border-left: 4px solid #fa6600;
    transform: translate3d(105%, 0, 0);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    z-index: 1003;
    overscroll-behavior: contain;
  }
  .main-header.is-nav-open .site-nav {
    transform: translate3d(0, 0, 0);
  }
  .main-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 8px 0 12px;
  }
  .main-nav > li {
    border-bottom: 1px solid rgba(0, 38, 62, 0.08);
  }
  .main-nav > li > a {
    padding: 16px 14px 16px 10px;
    font-size: 14px;
    letter-spacing: 0.02em;
    border-radius: 8px;
    transition: background 0.2s ease, color 0.2s ease;
  }
  .main-nav > li > a:active {
    background: rgba(250, 102, 0, 0.08);
  }
  .main-nav > li.has-dropdown > a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
  }
  .main-nav > li.has-dropdown > a::after {
    content: "";
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-right: 2px solid #fa6600;
    border-bottom: 2px solid #fa6600;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    opacity: 0.85;
  }
  .main-nav > li.has-dropdown.is-submenu-open > a::after {
    transform: rotate(-135deg);
    margin-top: 2px;
  }
  .main-nav .dropdown {
    position: static;
    top: auto;
    left: auto;
    min-width: 0;
    padding: 0;
    margin: 0 0 8px 8px;
    background: rgba(0, 38, 62, 0.06);
    border-radius: 10px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .main-nav > li.is-submenu-open .dropdown {
    max-height: 420px;
  }
  .main-nav li:hover .dropdown {
    opacity: 1;
    visibility: visible;
  }
  .main-nav .dropdown a {
    padding: 12px 16px;
    font-size: 13px;
    border-radius: 6px;
    margin: 2px 6px;
  }
  .main-nav .dropdown a:hover {
    background: rgba(255, 255, 255, 0.7);
  }
  .main-header.is-nav-open .main-nav > li {
    animation: navDrawerItemIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  }
  .main-header.is-nav-open .main-nav > li:nth-child(1) { animation-delay: 0.04s; }
  .main-header.is-nav-open .main-nav > li:nth-child(2) { animation-delay: 0.08s; }
  .main-header.is-nav-open .main-nav > li:nth-child(3) { animation-delay: 0.12s; }
  .main-header.is-nav-open .main-nav > li:nth-child(4) { animation-delay: 0.16s; }
  .main-header.is-nav-open .main-nav > li:nth-child(5) { animation-delay: 0.2s; }
  .main-header.is-nav-open .main-nav > li:nth-child(6) { animation-delay: 0.24s; }
  .main-header.is-nav-open .main-nav > li:nth-child(7) { animation-delay: 0.28s; }
}

@media (max-width: 1023px) and (prefers-reduced-motion: reduce) {
  .site-nav { transition-duration: 0.01ms; }
  .main-header.is-nav-open .main-nav > li { animation: none; }
  .main-nav .dropdown { transition-duration: 0.01ms; }
  .nav-toggle-bar { transition-duration: 0.01ms; }
  .nav-backdrop { transition-duration: 0.01ms; }
}

body.is-nav-open {
  overflow: hidden;
}

@media (min-width: 1024px) {
  body.is-nav-open {
    overflow: visible;
  }
  .site-nav {
    position: static;
    width: auto;
    height: auto;
    max-width: none;
    padding: 0;
    margin: 0;
    transform: none !important;
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }
  .main-header.is-nav-open .nav-backdrop {
    display: none !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }
}

/* Páginas internas: contenido principal */
.page-main {
  min-height: 60vh;
  background: #fff;
  padding: 50px 20px 60px;
}
.page-main .page-content {
  max-width: 900px;
  margin: 0 auto;
}
.page-main .page-title {
  font-size: 32px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 24px;
  text-align: center;
}
.page-main .page-intro {
  font-size: 18px;
  line-height: 1.6;
  color: #555;
  margin-bottom: 48px;
  text-align: center;
}
.page-main .content-section {
  margin-bottom: 40px;
}
.page-main .content-section h2 {
  font-size: 22px;
  font-weight: 700;
  color: #fa6600;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.page-main .content-section p {
  font-size: 16px;
  line-height: 1.7;
  color: #444;
  margin: 0 0 12px;
}
.page-main .content-section p:last-child {
  margin-bottom: 0;
}

/* Nosotros: valores (icono + título + texto) */
.page-main .values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 32px;
  margin-top: 48px;
  margin-bottom: 48px;
}
@media (max-width: 640px) { .page-main .values-grid { grid-template-columns: 1fr; } }
.page-main .value-card {
  background: #e2e1df;
  border: 1px solid #e2e1df;
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.page-main .value-card:hover {
  border-color: rgba(250, 102, 0, 0.25);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.page-main .value-card .value-icon {
  font-size: 32px;
  line-height: 1;
  margin-bottom: 12px;
  display: block;
}
.page-main .value-card .value-icon--svg {
  display: block;
  color: #fa6600;
}
.page-main .value-card .value-icon--svg svg {
  width: 40px;
  height: 40px;
  display: block;
}
.page-main .value-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.page-main .value-card p {
  font-size: 15px;
  line-height: 1.65;
  color: #555;
  margin: 0;
}

/* Nosotros: estadísticas */
.page-main .stats-section {
  margin-top: 56px;
  padding-top: 48px;
  border-top: 1px solid #d1ccbd;
}
.page-main .stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 768px) { .page-main .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .page-main .stats-grid { grid-template-columns: 1fr; } }
.page-main .stat-item {
  padding: 20px 16px;
  background: linear-gradient(180deg, #e2e1df 0%, #fff 100%);
  border-radius: 12px;
  border: 1px solid #e2e1df;
}
.page-main .stat-item .stat-icon {
  font-size: 28px;
  line-height: 1;
  margin-bottom: 8px;
  display: block;
}
.page-main .stat-item .stat-icon--svg {
  display: block;
  color: #fa6600;
}
.page-main .stat-item .stat-icon--svg svg {
  width: 36px;
  height: 36px;
  margin: 0 auto;
  display: block;
}
.page-main .stat-item .stat-number {
  font-size: 36px;
  font-weight: 900;
  color: #fa6600;
  line-height: 1.1;
  margin-bottom: 4px;
}
.page-main .stat-item .stat-label {
  font-size: 14px;
  color: #555;
  font-weight: 600;
  line-height: 1.3;
}

/* Nosotros: acentos en azul corporativo (Misión/Visión, valores, estadísticas) */
.page-main--nosotros .content-section h2 {
  color: #00263e;
}
.page-main--nosotros .value-card:hover {
  border-color: rgba(0, 38, 62, 0.25);
}
.page-main--nosotros .value-card .value-icon--svg {
  color: #00263e;
}
.page-main--nosotros .stat-item .stat-icon--svg {
  color: #00263e;
}
.page-main--nosotros .stat-item .stat-number {
  color: #00263e;
}

/* Catálogo de productos (industrial, comercial, móvil, residencial) */
.page-main--industrial .catalog-content,
.page-main--comercial .catalog-content,
.page-main--movil .catalog-content,
.page-main--residencial .catalog-content {
  max-width: 1200px;
  margin: 0 auto;
}
.catalog-content--full {
  max-width: 1200px;
  margin: 0 auto;
}
.catalog-intro {
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid #d1ccbd;
}
.catalog-page-title {
  font-size: 32px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 16px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.catalog-intro-lead {
  font-size: 18px;
  font-weight: 600;
  color: #333;
  margin: 0 0 8px;
  line-height: 1.4;
}
.catalog-intro-desc {
  font-size: 16px;
  color: #555;
  margin: 0;
  line-height: 1.6;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.catalog-intro .catalog-intro-desc + .catalog-intro-desc {
  margin-top: 14px;
}

/* Filtro catálogo industrial (Diésel / Gas) */
.catalog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  justify-content: center;
}
.catalog-filter-btn {
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #666;
  background: #fff;
  border: 2px solid #d1ccbd;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.catalog-filter-btn:hover {
  border-color: #fa6600;
  color: #fa6600;
}
.catalog-filter-btn.is-active {
  background: #fa6600;
  color: #fff;
  border-color: #fa6600;
}
.product-card.is-hidden-by-filter {
  display: none;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
@media (max-width: 600px) {
  .product-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}
@media (max-width: 380px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-cta-wrap {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #d1ccbd;
  text-align: center;
}
.catalog-download-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  background: #00263e;
  border: 2px solid #00263e;
  border-radius: 8px;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.catalog-download-cta:hover {
  background: #fa6600;
  border-color: #fa6600;
  color: #fff;
}
.catalog-cta-wrap--dual {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.catalog-download-cta--disabled {
  cursor: default;
  pointer-events: none;
  color: #00263e;
  background: #eceff2;
  border-color: #c5c9cf;
}
.catalog-download-cta--disabled:hover {
  background: #eceff2;
  border-color: #c5c9cf;
  color: #00263e;
  transform: none;
}
.product-card {
  background: #fff;
  border: 1px solid #d1ccbd;
  border-radius: 12px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.product-card:hover {
  border-color: rgba(250, 102, 0, 0.35);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.product-card-link {
  display: block;
  color: inherit;
  height: 100%;
}
.product-card-image {
  aspect-ratio: 1;
  background: linear-gradient(180deg, #e2e1df 0%, #d1ccbd 100%);
  display: block;
  overflow: hidden;
}
.product-card-link img.product-card-image {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  display: block;
}
.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-card-body {
  padding: 16px;
}
.product-card-title {
  font-size: 15px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 6px;
  line-height: 1.3;
}
.product-card-spec {
  font-size: 13px;
  font-weight: 600;
  color: #fa6600;
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
/* Potencia en unidad SI correcta (k minúscula) */
.page-main--residencial .product-card-spec {
  text-transform: none;
  color: #00263e;
}

/* Industrial: filtros y modelo (spec) en azul corporativo */
.page-main--industrial .catalog-filter-btn:hover {
  border-color: #00263e;
  color: #00263e;
}
.page-main--industrial .catalog-filter-btn.is-active {
  background: #00263e;
  color: #fff;
  border-color: #00263e;
}
.page-main--industrial .product-card:hover {
  border-color: rgba(0, 38, 62, 0.35);
}
.page-main--industrial .product-card-spec {
  color: #00263e;
}
.page-main--industrial .product-card[data-type="portatiles"] .product-card-spec {
  text-transform: none;
}

/* Residencial: filtros en azul corporativo (como industrial) */
.page-main--residencial .catalog-filter-btn:hover {
  border-color: #00263e;
  color: #00263e;
}
.page-main--residencial .catalog-filter-btn.is-active {
  background: #00263e;
  color: #fff;
  border-color: #00263e;
}

/* Móvil: filtros y spec en azul corporativo */
.page-main--movil .catalog-filter-btn:hover {
  border-color: #00263e;
  color: #00263e;
}
.page-main--movil .catalog-filter-btn.is-active {
  background: #00263e;
  color: #fff;
  border-color: #00263e;
}
.page-main--movil .product-card:hover {
  border-color: rgba(0, 38, 62, 0.35);
}
.page-main--movil .product-card-spec {
  color: #00263e;
  text-transform: none;
}

/* Historia: timeline slider */
.page-main--historia .page-content {
  max-width: 100%;
  padding: 0 20px;
}
.timeline-slider-wrap {
  margin-top: 32px;
  position: relative;
}
.timeline-slider {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.timeline-arrow {
  flex-shrink: 0;
  width: 48px;
  min-height: 200px;
  background: #e2e1df;
  border: 1px solid #d1ccbd;
  border-radius: 8px;
  font-size: 28px;
  color: #00263e;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.timeline-arrow:hover {
  background: #00263e;
  color: #fff;
  border-color: #00263e;
}
.timeline-arrow--prev { margin-right: 12px; }
.timeline-arrow--next { margin-left: 12px; }
.timeline-viewport {
  flex: 1;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #d1ccbd;
  background: #e2e1df;
}
.timeline-track {
  display: flex;
  transition: transform 0.35s ease-out;
  min-height: 280px;
}
.timeline-slide {
  flex: 0 0 100%;
  width: 100%;
  padding: 32px 40px;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.timeline-year {
  font-size: 14px;
  font-weight: 700;
  color: #fa6600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
  display: block;
}
.timeline-title {
  font-size: 24px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 16px;
  line-height: 1.25;
}
.timeline-slide p {
  font-size: 16px;
  line-height: 1.65;
  color: #555;
  margin: 0;
  max-width: 560px;
}
.timeline-slide p + p {
  margin-top: 12px;
}
.timeline-dots {
  display: grid;
  grid-template-columns: repeat(9, auto);
  justify-content: center;
  gap: 10px 8px;
  margin-top: 24px;
  margin-left: auto;
  margin-right: auto;
  max-width: 100%;
}
@media (max-width: 767px) {
  .timeline-dots {
    grid-template-columns: repeat(6, auto);
  }
}
@media (max-width: 520px) {
  .timeline-dots {
    grid-template-columns: repeat(4, auto);
  }
}
@media (max-width: 360px) {
  .timeline-dots {
    grid-template-columns: repeat(3, auto);
  }
}
.timeline-dot {
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 700;
  color: #666;
  background: #fff;
  border: 1px solid #d1ccbd;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.timeline-dot:hover {
  border-color: #00263e;
  color: #00263e;
}
.timeline-dot.is-active {
  background: #00263e;
  color: #fff;
  border-color: #00263e;
}
@media (max-width: 640px) {
  .timeline-slider {
    flex-direction: column;
    align-items: center;
  }
  .timeline-arrow {
    width: 100%;
    max-width: 120px;
    min-height: 44px;
    order: 1;
  }
  .timeline-arrow--prev { margin-right: 0; margin-bottom: 8px; }
  .timeline-arrow--next { margin-left: 0; margin-top: 8px; order: 3; }
  .timeline-viewport { order: 2; width: 100%; }
  .timeline-slide { padding: 24px 20px; min-height: 240px; }
  .timeline-title { font-size: 20px; }
}

/* Bolsa de trabajo: dos columnas (formulario + vacantes) */
.page-main--bolsa {
  background: #e2e1df;
  padding: 50px 20px 60px;
}
.page-content--bolsa {
  max-width: 1100px;
  margin: 0 auto;
}
.bolsa-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
@media (max-width: 900px) {
  .bolsa-grid { grid-template-columns: 1fr; }
}
.bolsa-section-title {
  font-size: 22px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 24px;
  padding-bottom: 12px;
  border-bottom: 1px solid #d1ccbd;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.bolsa-form-wrap,
.bolsa-vacancies-wrap {
  background: #fff;
  padding: 32px;
  border-radius: 8px;
  border: 1px solid #d1ccbd;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}
.bolsa-form .form-group {
  margin-bottom: 20px;
}
.bolsa-form label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #00263e;
  margin-bottom: 8px;
}
.bolsa-form .required {
  color: #c00;
}
.bolsa-form input[type="text"],
.bolsa-form input[type="email"],
.bolsa-form select {
  width: 100%;
  padding: 12px 14px;
  font-size: 15px;
  font-family: inherit;
  border: 1px solid #d1ccbd;
  border-radius: 6px;
  background: #fff;
  color: #333;
  box-sizing: border-box;
  transition: border-color 0.2s;
}
.bolsa-form input:focus,
.bolsa-form select:focus {
  outline: none;
  border-color: #fa6600;
}
.bolsa-form .form-help {
  font-size: 13px;
  color: #888;
  margin: 8px 0 0;
}
.form-group--cv .cv-upload-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.bolsa-form .cv-input {
  position: absolute;
  width: 0.1px;
  height: 0.1px;
  opacity: 0;
  overflow: hidden;
  z-index: -1;
}
.bolsa-form .btn-cv {
  display: inline-block;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #00263e;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.bolsa-form .btn-cv:hover {
  background: #001a2b;
}
.cv-status {
  font-size: 14px;
  color: #888;
}
.bolsa-form .btn-enviar {
  width: 100%;
  margin-top: 8px;
  padding: 14px 24px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #00263e;
  color: #fff;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
}
.bolsa-form .btn-enviar:hover {
  background: #001a2b;
}
.bolsa-vacancies {
  list-style: none;
  margin: 0;
  padding: 0;
}
.vacancy-card {
  padding: 20px;
  border: 1px solid #d1ccbd;
  border-radius: 8px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.vacancy-card:last-child {
  margin-bottom: 0;
}
.vacancy-card:hover {
  border-color: #00263e;
  background: rgba(0, 38, 62, 0.06);
}
.vacancy-card .vacancy-title {
  font-size: 16px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 6px;
  line-height: 1.3;
}
.vacancy-card .vacancy-location {
  font-size: 14px;
  color: #666;
  margin: 0;
}

/* Noticias: grid de artículos */
.page-main--noticias {
  padding: 50px 20px 60px;
}
.page-content--noticias {
  max-width: 1200px;
  margin: 0 auto;
}
.news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  margin-top: 32px;
}
@media (max-width: 560px) {
  .news-grid { grid-template-columns: 1fr; }
}
.news-card {
  background: #fff;
  border: 1px solid #d1ccbd;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}
.news-card:hover {
  box-shadow: 0 6px 20px rgba(0,0,0,0.08);
  border-color: rgba(250, 102, 0, 0.25);
}
.news-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.news-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background: linear-gradient(135deg, #d1ccbd 0%, #e2e1df 100%);
  display: block;
  overflow: hidden;
}
.news-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.news-card-body {
  padding: 20px 22px 24px;
}
.news-card-title {
  font-size: 18px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 13px;
  color: #888;
}
.news-card-date {
  font-weight: 600;
  color: #666;
}
.news-card-author {
  text-align: right;
}

/* Casos de Éxito */
.page-main--casos {
  padding: 50px 20px 60px;
}
.page-content--casos {
  max-width: 1200px;
  margin: 0 auto;
}
.casos-subtitle {
  text-align: center;
  font-size: 17px;
  color: #555;
  margin: -8px 0 32px;
  line-height: 1.5;
}
.caso-card-thumb {
  margin: -28px -26px 18px -26px;
  width: calc(100% + 52px);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #e2e1df;
  flex-shrink: 0;
}
.caso-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.casos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .casos-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
}
@media (max-width: 560px) {
  .casos-grid { grid-template-columns: 1fr; gap: 20px; }
}
/* Página casos-de-exito: siempre 2 columnas (mayor especificidad que .casos-grid solo) */
.casos-grid.casos-grid--2cols {
  grid-template-columns: repeat(2, 1fr);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 560px) {
  .casos-grid.casos-grid--2cols {
    grid-template-columns: 1fr;
  }
}
.caso-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #fff;
  border: 1px solid #d1ccbd;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}
.caso-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #fa6600 0%, #e55c00 100%);
  opacity: 0;
  transition: opacity 0.25s ease;
  z-index: 1;
}
.caso-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  border-color: rgba(247, 148, 29, 0.25);
}
.caso-card:hover::before {
  opacity: 1;
}
.caso-card-link {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  padding: 28px 26px 24px;
  color: inherit;
  text-decoration: none;
}
.caso-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 14px;
  line-height: 1.35;
  transition: color 0.2s;
  flex-shrink: 0;
}
.caso-card:hover .caso-card-title {
  color: #fa6600;
}
.caso-card-desc {
  font-size: 15px;
  line-height: 1.65;
  color: #555;
  margin: 0 0 20px;
  flex: 1;
  min-height: 0;
}
.caso-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  padding-top: 18px;
  border-top: 1px solid #e2e1df;
  margin-top: auto;
  flex-shrink: 0;
}
.caso-card-tag {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #c45a11;
  background: rgba(247, 148, 29, 0.12);
  border: none;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.caso-card-date {
  font-size: 12px;
  color: #666;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.caso-card-date::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 14px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
  background-size: contain;
  opacity: 0.85;
  flex-shrink: 0;
}
.caso-card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: #fa6600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  flex-shrink: 0;
}
.caso-card:hover .caso-card-cta {
  opacity: 1;
  transform: translateY(0);
}

/* Servicios */
.page-main--servicios {
  padding: 50px 20px 60px;
}
.page-content--servicios {
  max-width: 900px;
  margin: 0 auto;
}
.servicios-principales {
  margin-top: 40px;
  margin-bottom: 56px;
}
.servicios-principales-intro {
  text-align: center;
  font-size: 18px;
  color: #555;
  margin: 0 0 40px;
  line-height: 1.5;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.servicios-principales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
@media (max-width: 900px) {
  .servicios-principales-grid { grid-template-columns: 1fr; gap: 24px; }
}
.servicio-block {
  background: #fff;
  border: 1px solid #d1ccbd;
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}
.servicio-block::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #00263e 0%, #001a2b 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
}
.servicio-block:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: rgba(0, 38, 62, 0.28);
}
.servicio-block:hover::before {
  opacity: 1;
}
.servicio-block-header {
  background: linear-gradient(145deg, #00263e 0%, #0a4a6e 100%);
  padding: 28px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  min-height: 100px;
}
.servicio-block-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='20' height='20' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='1' cy='1' r='0.5' fill='rgba(255,255,255,0.15)'/%3E%3C/svg%3E");
  opacity: 0.5;
  pointer-events: none;
}
.servicio-block-num {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.15);
  border-radius: 50%;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1;
}
.servicio-block-icon {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.15));
  position: relative;
  z-index: 1;
}
.servicio-block-body {
  padding: 28px 26px 30px;
  flex: 1;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, #fefefe 0%, #e2e1df 100%);
}
.servicio-block-title {
  font-size: 21px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 16px;
  padding: 0;
  line-height: 1.3;
  letter-spacing: -0.02em;
  position: relative;
  padding-bottom: 14px;
}
.servicio-block-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, #00263e 0%, transparent 100%);
  border-radius: 2px;
}
.servicio-block p {
  font-size: 15px;
  line-height: 1.75;
  color: #555;
  margin: 0;
  flex: 1;
}
.servicios-lista {
  margin-bottom: 56px;
}
.servicios-lista-title {
  font-size: 24px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 32px;
  text-align: center;
}
.servicios-lista-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 640px) {
  .servicios-lista-grid { grid-template-columns: 1fr; }
}
.servicio-item {
  background: #e2e1df;
  border: 1px solid #e2e1df;
  border-radius: 12px;
  padding: 24px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.servicio-item:hover {
  border-color: rgba(0, 38, 62, 0.35);
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.servicio-item-icon {
  font-size: 28px;
  line-height: 1;
  display: block;
  margin-bottom: 12px;
}
.servicio-item-title {
  font-size: 17px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 10px;
  line-height: 1.3;
}
.servicio-item-desc {
  font-size: 14px;
  line-height: 1.6;
  color: #555;
  margin: 0;
}
.servicios-form-section {
  background: #e2e1df;
  border-radius: 12px;
  padding: 40px;
  border: 1px solid #e2e1df;
  text-align: center;
}
.servicios-form-title {
  font-size: 22px;
  font-weight: 700;
  color: #00263e;
  margin: 0 0 12px;
  text-align: center;
}
.servicios-form-intro {
  text-align: center;
  font-size: 16px;
  color: #555;
  margin: 0 auto 28px;
  line-height: 1.5;
  max-width: 560px;
}
@media (max-width: 560px) {
  .servicios-form-section { padding: 28px 20px; }
}
a.btn-servicios-cta {
  display: inline-block;
  padding: 14px 32px;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: #00263e;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: inherit;
  text-decoration: none;
}
a.btn-servicios-cta:hover {
  background: #001a2b;
  color: #fff;
}

/* Hero / Slider */
.hero {
  background: #1a252f;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  animation: heroSlide 9s ease-in-out infinite;
}
.hero-slide:nth-child(1) { animation-delay: 0s; }
.hero-slide:nth-child(2) { animation-delay: -3s; }
.hero-slide:nth-child(3) { animation-delay: -6s; }
@keyframes heroSlide {
  0%, 33.33% { opacity: 1; }
  33.34%, 100% { opacity: 0; }
}

/* Categories */
.categories { max-width: 1200px; margin: 60px auto; padding: 0 20px; }
.categories h2 { text-align: center; font-size: 28px; margin-bottom: 40px; color: #00263e; font-weight: 700; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
@media (max-width: 900px) { .category-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 500px) { .category-grid { grid-template-columns: 1fr; } }
.category-card {
  background: #fff;
  border: 1px solid #d1ccbd;
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  display: flex;
  flex-direction: column;
}
.category-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.1);
  border-color: rgba(250, 102, 0, 0.35);
}
.category-card-header {
  background: linear-gradient(135deg, #fa6600 0%, #e55c00 100%);
  color: #fff;
  padding: 20px 24px;
  text-align: center;
}
.category-card-header h3 {
  font-size: 18px;
  margin: 0;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.category-card-body { padding: 24px; flex: 1; }
.category-card ul { margin: 0; padding: 0; }
.category-card ul li {
  padding: 10px 0 10px 24px;
  font-size: 14px;
  color: #444;
  position: relative;
  border-bottom: 1px solid #f0f0f0;
  transition: color 0.2s, padding-left 0.2s;
}
.category-card ul li:last-child { border-bottom: none; }
.category-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: #fa6600;
  border-radius: 50%;
  opacity: 0.6;
}
.category-card ul li a:hover {
  color: #fa6600;
}
.category-card ul li:hover::before { opacity: 1; }
.category-card-footer {
  padding: 0 24px 24px;
  margin-top: auto;
}
.category-card-footer .btn-category {
  display: block;
  text-align: center;
  padding: 12px 20px;
  background: #00263e;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 8px;
  transition: background 0.2s, color 0.2s;
}
.category-card-footer .btn-category:hover { background: #fa6600; color: #fff; }

/* Sectors */
.sectors { background: linear-gradient(180deg, #e2e1df 0%, #fff 100%); padding: 60px 20px; }
.sectors .container { max-width: 1200px; margin: 0 auto; }
.sectors h2 { text-align: center; font-size: 28px; margin: 0 0 12px; color: #00263e; font-weight: 700; }
.sectors .section-intro { text-align: center; font-size: 16px; color: #666; max-width: 560px; margin: 0 auto 40px; line-height: 1.5; }
.sectors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 900px) { .sectors-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .sectors-grid { grid-template-columns: repeat(2, 1fr); } }
.sectors-grid a,
.sectors-grid .sector-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 28px 20px;
  background: #fff;
  border: 1px solid #d1ccbd;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
}
.sectors-grid .sector-card { border: 1px solid #d1ccbd; }
.sectors-grid a:hover,
.sectors-grid .sector-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.1);
  background: #fa6600;
  color: #fff;
  border-color: #fa6600;
}
.sectors-grid a:hover .sector-icon-wrap,
.sectors-grid .sector-card:hover .sector-icon-wrap { background: rgba(255,255,255,0.25); color: #fff; }
.sector-icon-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 38, 62, 0.14);
  color: #00263e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.25s ease, color 0.25s ease;
}
.sector-icon { width: 28px; height: 28px; flex-shrink: 0; display: block; overflow: visible; }
.sector-icon svg { width: 100%; height: 100%; display: block; overflow: visible; }

/* Modal sectores */
.sector-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}
.sector-modal.is-open {
  opacity: 1;
  visibility: visible;
}
.sector-modal[aria-hidden="true"] { pointer-events: none; }
.sector-modal[aria-hidden="false"] { pointer-events: auto; }
.sector-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}
.sector-modal-content {
  position: relative;
  background: #fff;
  border-radius: 12px;
  max-width: 520px;
  width: 100%;
  max-height: 85vh;
  overflow: auto;
  padding: 32px 40px 32px 32px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.95);
  transition: transform 0.25s ease;
}
.sector-modal.is-open .sector-modal-content {
  transform: scale(1);
}
.sector-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  background: #f0f0f0;
  color: #333;
  font-size: 24px;
  line-height: 1;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s, color 0.2s;
}
.sector-modal-close:hover {
  background: #fa6600;
  color: #fff;
}
.sector-modal-title {
  font-size: 22px;
  font-weight: 700;
  color: #fa6600;
  margin: 0 32px 16px 0;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.sector-modal-desc {
  font-size: 16px;
  line-height: 1.65;
  color: #444;
  margin: 0;
}

/* CTAs en imagen (3 columnas) */
.ctas-section { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.ctas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .ctas-grid { grid-template-columns: 1fr; } }
.cta-card {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16/10;
  min-height: 220px;
}
.cta-card a { display: block; width: 100%; height: 100%; }
.cta-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.cta-card:hover img { transform: scale(1.05); }

/* Videos (3 columnas) */
.videos-section { background: #e2e1df; padding: 50px 20px; }
.videos-section .container { max-width: 1200px; margin: 0 auto; }
.videos-section h2 { text-align: center; font-size: 28px; margin-bottom: 35px; color: #00263e; }
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .videos-grid { grid-template-columns: 1fr; } }
.video-card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: box-shadow 0.2s;
}
.video-card:hover { box-shadow: 0 8px 25px rgba(0,0,0,0.12); }
.video-card .video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #00263e;
}
.video-card .video-wrap iframe,
.video-card .video-wrap .video-placeholder {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}
.video-card .video-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 48px;
  background: linear-gradient(135deg, #2c3e50 0%, #1a252f 100%);
}
.video-card .video-body { padding: 16px; }
.video-card .video-body h3 { font-size: 16px; margin: 0 0 8px; color: #00263e; line-height: 1.3; }

/* 3 columnas: Noticias | Casos de éxito | Mejor producto */
.highlights-section { max-width: 1200px; margin: 50px auto; padding: 0 20px; }
.highlights-section .section-title { text-align: center; font-size: 28px; margin-bottom: 35px; color: #00263e; }
.highlights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 768px) { .highlights-grid { grid-template-columns: 1fr; } }
.highlight-col { background: #fff; border: 1px solid #d1ccbd; border-radius: 8px; overflow: hidden; }
.highlight-col h3 {
  font-size: 16px;
  margin: 0;
  padding: 16px 20px;
  background: #00263e;
  color: #fff;
  text-transform: uppercase;
  font-weight: 700;
  text-align: center;
}
.highlight-col .col-body { padding: 20px; }
.highlight-card {
  padding: 16px 0;
  border-bottom: 1px solid #e2e1df;
  transition: background 0.2s;
}
.highlight-card:last-child { border-bottom: none; }
.highlight-card:hover { background: #f9f9f9; }
.highlight-card a { display: block; }
.highlight-card h4 { font-size: 15px; margin: 0 0 6px; color: #00263e; line-height: 1.35; }
.highlight-card .date { font-size: 12px; color: #888; }
.highlight-card .thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, #d1ccbd 0%, #e2e1df 100%);
  border-radius: 4px;
  margin-bottom: 10px;
  overflow: hidden;
}
.highlight-card .thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Footer */
.footer {
  background: #fff;
  border-top: 1px solid #e5e5e5;
  padding: 56px 20px 32px;
  color: #333;
}
.footer .container { max-width: 1200px; margin: 0 auto; }
.footer-logo-wrap {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 0;
  padding-bottom: 12px;
}
.footer-logo { height: 40px; width: auto; display: inline-block; opacity: 0.9; }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(20px, 3vw, 32px);
  margin-bottom: 0;
  align-items: start;
}
/* Acordeón del footer (móvil); en ≥768px se comporta como columnas fijas */
.footer-accordion-item {
  min-width: 0;
}
.footer-accordion {
  margin: 0;
  padding: 0;
  border: none;
}
.footer-accordion-summary {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #fa6600;
  margin: 0 0 16px;
  padding: 0;
  font-weight: 700;
  -webkit-tap-highlight-color: rgba(250, 102, 0, 0.12);
}
.footer-accordion-summary::-webkit-details-marker,
.footer-accordion-summary::marker {
  display: none;
  content: none;
}
.footer-accordion > ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-accordion > ul li { margin-bottom: 10px; }
.footer-accordion > ul li:last-child { margin-bottom: 0; }
.footer-accordion > ul a {
  display: block;
  color: #555;
  font-size: 14px;
  line-height: 1.45;
  padding: 2px 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-wrap: break-word;
  hyphens: auto;
  transition: color 0.2s;
  -webkit-tap-highlight-color: rgba(250, 102, 0, 0.12);
}
.footer-accordion > ul a:hover { color: #fa6600; }
.footer-accordion > ul a:focus-visible {
  outline: 2px solid #fa6600;
  outline-offset: 2px;
  border-radius: 2px;
}
@media (min-width: 768px) {
  .footer-accordion-summary {
    cursor: default;
    pointer-events: none;
  }
}
.footer-companies-wrap {
  padding-top: 12px;
  margin-top: 0;
  margin-bottom: 36px;
}
.footer-companies-wrap .footer-companies-title {
  font-size: 13px;
  font-weight: 600;
  color: #888;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin: 0 0 20px;
  text-align: center;
}
.footer-companies-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 20px 28px;
}
.footer-companies-logos a {
  display: block;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.footer-companies-logos a:hover { opacity: 0.9; }
.footer-companies-logos img {
  height: 28px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  display: block;
  filter: grayscale(100%);
  transition: filter 0.2s;
}
.footer-companies-logos a:hover img { filter: grayscale(0%); }
.footer-bottom {
  padding-top: 24px;
  text-align: center;
  font-size: 13px;
  color: #888;
  border-top: 1px solid #e5e5e5;
}
.footer-bottom p { margin: 0 0 6px; }
.footer-bottom a { color: #666; }
.footer-bottom a:hover { color: #fa6600; }

/* Footer responsivo: menos columnas antes para que los ítems no queden apretados */
@media (max-width: 1040px) {
  .footer {
    padding: 44px 16px 28px;
  }
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 24px;
  }
  .footer-companies-logos {
    gap: 16px 20px;
  }
  .footer-companies-logos img {
    height: 26px;
    max-width: 92px;
  }
}
@media (max-width: 767px) {
  .footer {
    padding: 36px 12px 24px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-accordion-item {
    border-bottom: 1px solid #ececec;
  }
  .footer-accordion-item:last-child {
    border-bottom: none;
  }
  .footer-accordion-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 14px 4px 14px 2px;
    font-size: 12px;
    letter-spacing: 0.55px;
    text-align: left;
  }
  .footer-accordion-summary::after {
    content: "";
    display: block;
    width: 9px;
    height: 9px;
    margin-top: -2px;
    border-right: 2px solid #fa6600;
    border-bottom: 2px solid #fa6600;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    flex-shrink: 0;
    opacity: 0.85;
  }
  .footer-accordion[open] > .footer-accordion-summary::after {
    transform: rotate(-135deg);
    margin-top: 2px;
  }
  .footer-accordion > ul {
    padding: 0 4px 16px 2px;
  }
  .footer-accordion > ul li {
    margin-bottom: 8px;
  }
  .footer-accordion > ul li:last-child {
    margin-bottom: 0;
  }
  .footer-accordion > ul a {
    font-size: 13px;
    padding: 6px 0;
    line-height: 1.4;
  }
  .footer-logo-wrap {
    margin-top: 28px;
  }
  .footer-companies-wrap {
    margin-bottom: 28px;
  }
  .footer-companies-wrap .footer-companies-title {
    font-size: 12px;
    margin-bottom: 14px;
  }
  .footer-companies-logos {
    gap: 12px 14px;
    justify-content: center;
  }
  .footer-companies-logos img {
    height: 22px;
    max-width: 88px;
  }
  .footer-bottom {
    padding-top: 20px;
    font-size: 12px;
    line-height: 1.5;
  }
}
