* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

html,
body {
  overflow-x: hidden;
  background: linear-gradient(
    to bottom,
    #ffffff 0,
    #ffffff 200px,
    #c40017 200px,
    #c40017 100%
  );
  background-attachment: fixed;
}

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

.wrapper-1 {
  position: relative;
  margin: 100px 0 0;
  background: #000000;
}

nav,
.navbar,
header {
  position: relative;
  z-index: 1000;
}

.navbar-brand,
.navbar-brand img {
  position: relative;
  z-index: 1100;
}

.tec-hero-section {
  position: relative;
  z-index: 1;
}

/* =========================
  TRIÁNGULO DECORATIVO - DELANTE DE LA IMAGEN
========================= */

body {
  position: relative;
}

.hero-decoration-positioner {
  position: absolute;
  top: 50px;
  left: -3px;
  z-index: 10;
  pointer-events: auto;
  overflow: visible;
  width: auto;
  height: auto;
}

.hero-decoration {
  display: block;
  width: auto;
  height: auto;
  max-width: 600px;
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
}

.hero-decoration:hover {
  transform: scale(1.08) rotate(-3deg);
}

@media (max-width: 768px) {
  .hero-decoration-positioner {
    top: 50px;
  }
  .hero-decoration {
    max-width: 360px;
  }
}

@media (max-width: 480px) {
  .hero-decoration-positioner {
    top: 60px;
  }
  .hero-decoration {
    max-width: 300px;
  }
}

/* =========================
  HERO SECTION - FONDO BLANCO (SIN PADDING, LO MANEJA EL HTML)
========================= */

.tec-hero-section {
  position: relative;
  width: 100%;
  padding: 0 clamp(16px, 4vw, 140px) 0;
  background: linear-gradient(
    to bottom,
    #ffffff 0%,
    #ffffff 70%,
    #c40017 70%,
    #c40017 100%
  );
  overflow: visible;
}

/* =========================
  HERO CONTAINER - CON ROJO ABAJO
========================= */

.hero-container {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 320px;
  margin: auto;
  overflow: hidden;
  isolation: isolate;
  border-radius: clamp(28px, 7vw, 170px);
  background: #c40017;
}

/* =========================
  HERO IMAGE
========================= */

.hero {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  z-index: 1;
}

/* =========================
  BLOG TITLE
========================= */

.blog-hero-title {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  color: #E50013;
  font-size: clamp(56px, 9vw, 140px);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  text-align: center;
  z-index: 4;
  pointer-events: none;
  animation: blogTitleIntro 1.6s ease-out forwards;
}

@keyframes blogTitleIntro {
  0% {
    top: 50%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.9);
  }
  100% {
    top: 15%;
    opacity: 1;
    transform: translate(-50%, 0%) scale(1);
  }
}

/* =========================
  WAVE - SIEMPRE EN BOTTOM: 0
========================= */

.hero-wave {
  display: block;
  width: 100%;
  height: auto;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 10;
  pointer-events: none;
  transform: translateY(26%);
  clip-path: inset(0 100% 0 0);
  animation: waveReveal 3s cubic-bezier(0.25, 1, 0.5, 1) 0.5s forwards;
}

@keyframes waveReveal {
  0% {
    clip-path: inset(0 100% 0 0);
  }
  100% {
    clip-path: inset(0 0% 0 0);
  }
}

/* =========================
  CATEGORIAS
========================= */

.categories-section {
  padding: 100px 100px 100px;
  background: #c40017;
}

.categories {
  background: #ffffff;
  width: max-content;
  margin: auto;
  border-radius: 50px;
  padding: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.category {
  padding: 14px 28px;
  border-radius: 30px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #cccccc !important;
  user-select: none;
}

.category.active {
  background: #cc0000 !important;
  color: #ffffff !important;
  border: 2px solid #cc0000 !important;
}

.category:hover:not(.active) {
  background: #f0f0f0 !important;
  border: 2px solid #cccccc !important;
  transform: scale(1.02);
}

.category.active:hover {
  background: #cc0000 !important;
  color: #ffffff !important;
  border: 2px solid #cc0000 !important;
  transform: scale(1.02);
}

/* ============================================
   CATEGORIAS - VERSIÓN MÓVIL (VERTICAL)
   ============================================ */

@media (max-width: 768px) {
  .categories-section {
    padding: 60px 20px 60px;
    background: #c40017;
  }

  .categories {
    width: 100%;
    max-width: 400px;
    border-radius: 20px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: transparent;
  }

  .category {
    width: 100%;
    text-align: center;
    padding: 16px 20px;
    border-radius: 12px;
    font-size: 1rem;
    background: #ffffff !important;
    color: #000000 !important;
    border: 2px solid #ffffff !important;
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
  }

  .category.active {
    background: #cc0000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
  }

  .category:hover:not(.active) {
    background: #f0f0f0 !important;
    border: 2px solid #ffffff !important;
  }

  .category.active:hover {
    background: #cc0000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    transform: scale(1.02);
  }
}

@media (max-width: 480px) {
  .categories-section {
    padding: 40px 15px 40px;
    background: #c40017;
  }

  .categories {
    padding: 10px;
    gap: 8px;
  }

  .category {
    padding: 14px 16px;
    font-size: 0.9rem;
    border-radius: 10px;
  }
}

/* ============================================
   FORZAR CATEGORIAS - ULTIMA INSTANCIA
   ============================================ */

/* Forzar que las categorías inactivas sean BLANCAS con borde GRIS */
body.nota-page .categories-section .categories .category,
body.nota-page .categories-section .categories .category:not(.active) {
  background: #ffffff !important;
  background-color: #ffffff !important;
  color: #000000 !important;
  border: 2px solid #cccccc !important;
  box-shadow: none !important;
}

/* Forzar que las categorías ACTIVAS sean ROJAS con texto BLANCO */
body.nota-page .categories-section .categories .category.active,
body.nota-page .categories-section .categories .category.active:hover,
body.nota-page .categories-section .categories .category.active:focus,
body.nota-page .categories-section .categories .category.active:active {
  background: #cc0000 !important;
  background-color: #cc0000 !important;
  color: #ffffff !important;
  border: 2px solid #cc0000 !important;
  box-shadow: none !important;
}

/* Hover de inactivas: gris claro */
body.nota-page .categories-section .categories .category:hover:not(.active) {
  background: #f0f0f0 !important;
  background-color: #f0f0f0 !important;
  border: 2px solid #cccccc !important;
}

/* Hover de activas: se mantiene ROJO */
body.nota-page .categories-section .categories .category.active:hover {
  background: #cc0000 !important;
  background-color: #cc0000 !important;
  color: #ffffff !important;
  border: 2px solid #cc0000 !important;
}

/* ============================================
   CATEGORIAS - VERSIÓN MÓVIL CON BORDE BLANCO (FORZADO)
   ============================================ */

@media (max-width: 768px) {
  body.nota-page .categories-section .categories .category,
  body.nota-page .categories-section .categories .category:not(.active) {
    border: 2px solid #ffffff !important;
  }

  body.nota-page .categories-section .categories .category.active,
  body.nota-page .categories-section .categories .category.active:hover,
  body.nota-page .categories-section .categories .category.active:focus,
  body.nota-page .categories-section .categories .category.active:active {
    border: 2px solid #ffffff !important;
  }
}

/* =========================
  BLOG CONTAINER
========================= */

.blog-container {
  width: 100%;
  padding: 120px clamp(70px, 8vw, 140px) 160px;
  background: #c40017;
}

.blog-grid {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 24px;
}

.blog-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.card {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
}

.card-link {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  text-decoration: none;
  color: #fff;
}

.blog-column:not(.center) .card {
  width: 100%;
  height: 540px;
}

.blog-column.center .card {
  width: 100%;
  height: 700px;
}

.blog-grid .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .6s ease;
}

.card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(197, 0, 23, .82);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 40px;
  opacity: 0;
  transition: .4s ease;
}

.card-overlay h3 {
  font-size: clamp(24px, 2vw, 34px);
  line-height: 1.1;
  font-weight: 700;
  margin-bottom: 35px;
}

.card-overlay span {
  font-size: 18px;
  text-decoration: underline;
}

.card:hover .card-overlay {
  opacity: 1;
}

.card:hover img {
  transform: scale(1.08);
}

/* ============================================
   FLOATING SIDEBAR
   ============================================ */

.floating-sidebar {
  position: fixed;
  right: 0px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.social-box-container {
  background: #E50019;
  padding: 8px;
  padding-right: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-top-left-radius: 15px;
  border-bottom-right-radius: 15px;
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
}

.social-item {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #E50019;
  border-radius: 0;
  text-decoration: none;
  transition: transform 0.3s ease;
}

.social-item:hover {
  transform: scale(1.1);
}

.social-item img {
  width: 20px;
  height: 20px;
  display: block;
  object-fit: contain;
}

.fone-box {
  display: block;
  margin-right: 0;
  position: relative;
  transition: transform 0.3s ease;
}

.fone-box:hover {
  transform: scale(1.1);
}

.fone-box img {
  width: 40px;
  height: auto;
  display: block;
}

.fone-box-whatsapp {
  margin-top: 20px;
}

.fone-box .tooltip-text {
  position: absolute;
  right: calc(50% + 5px);
  transform: translateX(50%);
  bottom: calc(100% + 8px);
  background: #E50019;
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 500;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  pointer-events: none;
  letter-spacing: 0.3px;
}

.fone-box .tooltip-text::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-top: 6px solid #E50019;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
}

.fone-box:hover .tooltip-text {
  opacity: 1;
  visibility: visible;
}

/* ============================================
   RESPONSIVE - FLOATING SIDEBAR
   ============================================ */

@media (min-width: 1401px) {
  .floating-sidebar {
    gap: 24px;
  }

  .social-box-container {
    padding: 10px;
    padding-right: 22px;
    gap: 6px;
    border-top-left-radius: 18px;
    border-bottom-right-radius: 18px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .social-item {
    width: 34px;
    height: 34px;
  }

  .social-item img {
    width: 24px;
    height: 24px;
  }

  .fone-box img {
    width: 48px;
  }

  .fone-box-whatsapp {
    margin-top: 25px;
  }

  .fone-box .tooltip-text {
    font-size: 13px;
    padding: 5px 12px;
    right: calc(50% + 6px);
  }
}

@media (min-width: 1200px) and (max-width: 1400px) {
  .floating-sidebar {
    gap: 22px;
  }

  .social-box-container {
    padding: 8px;
    padding-right: 20px;
    gap: 5px;
    border-top-left-radius: 16px;
    border-bottom-right-radius: 16px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .social-item {
    width: 30px;
    height: 30px;
  }

  .social-item img {
    width: 22px;
    height: 22px;
  }

  .fone-box img {
    width: 44px;
  }

  .fone-box-whatsapp {
    margin-top: 22px;
  }
}

@media (max-width: 1199px) and (min-width: 769px) {
  .floating-sidebar {
    gap: 18px;
    top: 55%;
  }

  .social-box-container {
    padding: 6px;
    padding-right: 16px;
    gap: 4px;
    border-top-left-radius: 14px;
    border-bottom-right-radius: 14px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .social-item {
    width: 26px;
    height: 26px;
  }

  .social-item img {
    width: 18px;
    height: 18px;
  }

  .fone-box img {
    width: 36px;
  }

  .fone-box-whatsapp {
    margin-top: 18px;
  }

  .fone-box .tooltip-text {
    font-size: 10px;
    padding: 3px 8px;
    right: calc(50% + 4px);
  }
}

@media (max-width: 768px) and (min-width: 481px) {
  .floating-sidebar {
    gap: 14px;
    top: 50%;
    right: 0px;
  }

  .social-box-container {
    padding: 5px;
    padding-right: 12px;
    gap: 3px;
    border-top-left-radius: 10px;
    border-bottom-right-radius: 10px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .social-item {
    width: 22px;
    height: 22px;
  }

  .social-item img {
    width: 15px;
    height: 15px;
  }

  .fone-box img {
    width: 30px;
  }

  .fone-box-whatsapp {
    margin-top: 14px;
  }

  .fone-box .tooltip-text {
    font-size: 9px;
    padding: 2px 6px;
    bottom: calc(100% + 6px);
    right: calc(50% + 3px);
  }
}

@media (max-width: 480px) {
  .floating-sidebar {
    gap: 10px;
    top: 45%;
    right: 2px;
  }

  .social-box-container {
    padding: 4px;
    padding-right: 10px;
    gap: 3px;
    border-top-left-radius: 8px;
    border-bottom-right-radius: 8px;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0;
  }

  .social-item {
    width: 20px;
    height: 20px;
  }

  .social-item img {
    width: 13px;
    height: 13px;
  }

  .fone-box img {
    width: 26px;
  }

  .fone-box-whatsapp {
    margin-top: 10px;
  }

  .fone-box .tooltip-text {
    font-size: 8px;
    padding: 2px 5px;
    bottom: calc(100% + 5px);
    border-radius: 3px;
    right: calc(50% + 2px);
  }

  .fone-box .tooltip-text::after {
    bottom: -5px;
    border-top: 5px solid #E50019;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
  }
}

/* =========================
  RESPONSIVE - BLOG CONTAINER
========================= */

@media (max-width: 1100px) {
  .blog-container {
    padding: 100px 50px 140px;
  }
  .blog-grid {
    gap: 18px;
  }
  .blog-column {
    gap: 18px;
  }
  .blog-column:not(.center) .card {
    height: 420px;
  }
  .blog-column.center .card {
    height: 560px;
  }
}

@media (max-width: 768px) {
  .hero-container {
    height: 50vh;
  }
  .blog-hero-title {
    font-size: clamp(32px, 12vw, 70px);
  }
  .blog-container {
    padding: 40px 20px 120px;
  }
  .blog-grid {
    flex-direction: column;
    gap: 24px;
  }
  .blog-column {
    width: 100%;
    gap: 24px;
  }
  .blog-column .card,
  .blog-column.center .card {
    width: 100%;
    height: 360px;
  }
  .card-overlay {
    padding: 24px;
  }
  .card-overlay h3 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .hero-container {
    height: 45vh;
  }
}

/* =========================
  LOAD MORE
========================= */

.load-more-section {
  width: 100%;
  padding: 0px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #c40017;
}

.load-more-text {
  color: #fff;
  font-size: clamp(26px, 2vw, 34px);
  font-weight: 500;
  margin-bottom: 12px;
}

.load-more-arrow {
  color: #fff;
  font-size: 38px;
  margin-bottom: 30px;
  animation: arrowMove 1.5s ease-in-out infinite;
}

.load-more-line {
  width: min(50%, 1400px);
  height: 1px;
  background: rgba(255, 255, 255, .6);
}

@keyframes arrowMove {
  0% {
    transform: translateY(0);
  }
  30% {
    transform: translateY(8px);
  }
  100% {
    transform: translateY(0);
  }
}