:root {
  --bg: #050505;
  --card: #0f0f0f;
  --accent-1: #d4af37;
  --accent-2: #ffd966;
  --muted: #bfc3c7;
  --glass: rgba(255, 255, 255, 0.03);
  --max-w: 1200px;
  --radius: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}


body {
  font-family: "Poppins", system-ui, Arial;
  margin: 0;
  background: linear-gradient(180deg, var(--bg), #070707);
  color: #eee;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 24px;
}

/* NAV */
nav {
  position: fixed;
  left: 0;
  right: 0;
  top: 18px;
  z-index: 60;
  display: flex;
  justify-content: center;
}

.nav-links-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ribbon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  margin-left: 10px;
}

/* Mobile styles */
@media (max-width: 900px) {
  .nav-links-wrapper {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 70;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0 auto;
  }

  .ribbon {
    width: 20px;
    height: 20px;
    margin: 0;
  }
}

/* Mobile styles */
@media (max-width: 900px) {
  .nav-inner {
    justify-content: space-between;
    padding: 10px 15px;
    align-items: center;
    position: relative;
    height: 70px;
    box-sizing: border-box;
  }

  .nav-links:not(.mobile) {
    display: none; /* Hide the desktop navigation on mobile */
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    width: 40px;
    height: 40px;
    font-size: 20px;
    color: var(--accent-1);
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 4px;
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 80;
  }
}

.logo {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

@media (max-width: 768px) {
  .brand {
    display: flex;
    align-items: center;
    gap: 8px;
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  
  .logo {
    width: 50px;
    height: 45px;
    flex-shrink: 0;
  }
  
  .brand h2.name {
    font-size: 1.2rem;
    margin: 0;
  }
}

.nav-inner {
  width: calc(100% - 48px);
  max-width: var(--max-w);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  border-radius: 12px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  backdrop-filter: blur(6px);
  border: 1px solid rgba(212, 175, 55, 0.08);
}

.brand {
  display: flex;
  gap: 5px;
  align-items: center;
}

.logo {
  padding: 5px;
}

.name {
  font-family: "Montserrat";
  font-weight: 800;
  color: var(--accent-1);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav-links a {
  padding: 8px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s ease;
}

.nav-links a:hover {
  color: var(--accent-1);
}

div.cta i:hover, div.cta span:hover {
  color: #000;
}

.nav-links a.cta {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #000;
}

div.cta i, div.cta span {
  color: #000;
}

div.cta {
  display: flex;
  align-items: center;
  gap: 6px;
}

.cta-link {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
}

.nav-links a.active {
  color: var(--accent-1);
}

/* Mobile menu */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--accent-1);
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  margin: 0;
}

/* Mobile ribbon styles are now handled by .ribbon class */

.nav-links.mobile {
  display: none;
  position: fixed;
  top: 70px;
  left: 24px;
  right: 24px;
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  flex-direction: column;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(10px);
}

.nav-links.mobile.show {
  display: flex;
}

.nav-links.mobile a {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
  transition: all 0.3s ease;
}

.nav-links.mobile a:hover {
  background: rgba(255, 255, 255, 0.05);
}

/* HERO */
header.hero {
  height: 96vh;
  min-height: 560px;
  position: relative;
  display: grid;
  align-items: center;
}

header .bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/fondo.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-backface-visibility: hidden;
  -moz-backface-visibility: hidden;
  -webkit-transform: translate3d(0, 0, 0);
  -moz-transform: translate3d(0, 0, 0);
  -webkit-filter: contrast(0.85) saturate(0.8);
  filter: contrast(0.85) saturate(0.8);
  will-change: transform;
}

@media (min-width: 768px) {
  header .bg {
    background-attachment: fixed;
  }
}

header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.78));
}

.hero-inner {
  position: relative;
  z-index: 4;
  padding: 36px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 28px;
  align-items: center;
  align-self: center;
}

.hero-title {
  font-family: "Montserrat";
  font-size: 36px;
  color: transparent;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  margin: 0 0 12px;
  line-height: 1.2;
}

.hero-sub {
  color: var(--muted);
  margin-bottom: 18px;
  font-size: 1.05rem;
  line-height: 1.6;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  color: #000;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(212, 175, 55, 0.12);
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(212, 175, 55, 0.2);
}

.btn.ghost {
  background: transparent;
  color: var(--accent-1);
  border: 1px solid rgba(212, 175, 55, 0.12);
}

/* info panel */
.panel {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  padding: 22px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.kpi {
  display: flex;
  gap: 14px;
  align-items: center;
}

.kpi .num {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent-1);
}

/* sections */
section {
  padding: 50px 0;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.gold-caption {
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  font-weight: 800;
  font-size: 32px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

h2.sec-title {
  margin: 0;
  font-family: "Montserrat";
  font-size: 22px;
  color: var(--accent-1);
  line-height: 1.3;
}

p.lead {
  color: var(--muted);
  max-width: auto;
  line-height: 1.6;
  font-size: 16px;
  text-align: justify;
}

.grid {
  display: grid;
  gap: 20px;
}

.grid.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.card {
  background: var(--card);
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.03);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
  transition: transform 0.3s ease;
}

.dark-img {
  border-radius: 12px;
  margin-top: 18px;
  width: 100%;
  border: 2px solid rgba(255, 255, 255, 0.03);
}

.card:hover {
  transform: translateY(-4px);
}

.card h3 {
  margin: 0 0 8px;
  color: var(--accent-1);
  font-size: 18px;
}

.card .small,
.small {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.pill {
  display: inline-block;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 175, 55, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--accent-2);
  font-weight: 700;
  font-size: 13px;
  transition: all 0.3s ease;
  cursor: default;
}

.pill:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* organs */
.organs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.organs .pill {
  background: transparent;
  color: var(--accent-2);
}

/* team list */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.team-grid-vertical {
  display: flex;
  flex-direction: column;
  /* grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); */
  gap: 18px;
}

.doc {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.02),
    rgba(255, 255, 255, 0.01)
  );
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.02);
  transition: transform 0.3s ease;
}

.doc:hover {
  transform: translateY(-2px);
}

.state {
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 8px;
  font-size: 14px;
}

/* contact */
.contact {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 24px;
}

form input,
form textarea {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: transparent;
  color: #fff;
  font-size: 14px;
  transition: border-color 0.3s ease;
  resize: none;
}

form input:focus,
form textarea:focus {
  outline: none;
  border-color: var(--accent-1);
}

form button {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 0;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  font-weight: 700;
  color: #000;
  cursor: pointer;
  transition: all 0.3s ease;
}

form button:hover {
  transform: translateY(-2px);
}

form label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

footer {
  padding: 28px 0;
  color: var(--muted);
  border-top: 1px solid rgba(212, 175, 55, 0.07);
  margin-top: 40px;
  text-align: center;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 12px 24px;
}

/* Images responsive */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

.coberturas-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 50px;
}

.cobertura-img {
  width: 15%;
  height: auto;
  object-fit: contain;
}

.pie-pagina {
  width: 100%;
  background-color: #000;
}

.pie-pagina .grupo-1 {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 50px;
  padding: 45px 0px;
}
.pie-pagina .grupo-1 .box figure {
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pie-pagina .grupo-1 .box figure img {
  display: block;
  margin: 0 auto;  /* centra horizontalmente */
  width: 150px;    /* ajusta el tamaño */
  height: auto;
}
.pie-pagina .grupo-1 .box h2 {
  color: #ffd700;
  margin-bottom: 25px;
  font-size: 20px;
}
.pie-pagina .grupo-1 .box p {
  color: #f5f5f5;
  margin-bottom: 10px;
}

.pie-pagina .grupo-1 .box iframe {
  width: 100%;
  height: 200px;
  border: 1px solid rgba(255, 215, 0, 0.3);
  border-radius: 8px;
  margin-top: 15px;
}
.pie-pagina .grupo-1 .red-social a {
  display: inline-block;
  text-decoration: none;
  width: 45px;
  height: 45px;
  line-height: 45px;
  margin-bottom: 45px;
  color: #ffd700;
  margin-right: 10px;
  background-color: #111;
  border: 1px solid #ffd700;
  border-radius: 50%;
  text-align: center;
  transition: all 300ms ease;
}
.pie-pagina .grupo-1 .red-social a:hover {
  color: #000;
  background-color: #ffd700;
}
.pie-pagina .grupo-2 {
  background-color: #000000;
  padding: 15px 10px;
  text-align: center;
  color: #ffd700;
}
.pie-pagina .grupo-2 small {
  font-size: 15px;
}

.ribbon {
  width: auto;
  height: 35px;
}


/* Tablets (hasta 900px) */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .wrap {
    padding: 20px;
  }

  .hero-inner {
    padding: 24px;
  }

  .hero-title {
    font-size: 32px;
  }

  header.hero {
    height: auto;
    min-height: 0;
    padding: 140px 0 60px;
  }
}


/* Móviles Grandes y Tablets Pequeñas (hasta 768px) */
@media (max-width: 900px) {
  nav {
    top: 10px;
  }
  
  .nav-inner {
    padding: 8px 12px;
    width: calc(100% - 24px);
  }

  .brand .logo {
    max-width: 50px; 
    padding: 5px;
  }

  .brand .name {
    font-size: 1.2rem; 
  }

  .nav-links {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .hero {
    min-height: auto; 
    padding: 100px 0 40px;
  }

  .hero-title {
    font-size: 28px;
    line-height: 1.3;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-ctas {
    justify-content: center;
    width: 100%;
  }
  
  .hero-grid aside.panel {
      margin-top: 24px;
  }

  .btn {
    padding: 14px 24px;
    font-size: 14px;
    flex: 1;
    min-width: 140px;
    text-align: center;
  }

  .wrap {
    padding: 16px;
  }

  section {
    padding: 40px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    text-align: left;
  }

  h2.sec-title {
    font-size: 15px;
  }

  .gold-caption {
    font-size: 22px;
  }
  
  p.lead {
    font-size: 15px;
  }

  .grid.cols-3 {
    grid-template-columns: 1fr;
  }

  .grid[style*="1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }

  .grid {
    gap: 16px;
  }

  .card {
    padding: 16px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .organs {
    justify-content: flex-start;
  }
  
  .pie-pagina .grupo-1 {
    width: 90%;
    grid-template-columns: 1fr;
    grid-gap: 30px;
    padding: 35px 0px;
  }
  
  .pie-pagina .grupo-1 .box {
    text-align: center; 
  }

  .pie-pagina .grupo-1 .red-social {
    justify-content: center;
  }

  
  
  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .footer-content > div:last-child {
    order: -1;
    font-size: 12px;
  }
}


/* Móviles Medianos (hasta 480px) */
@media (max-width: 480px) {
  .hero {
    padding: 80px 0 30px;
  }

  .hero-inner {
    padding: 16px;
  }

  .hero-title {
    font-size: 26px; 
  }

  .hero-sub {
    font-size: 15px;
  }
  
  /* Opcional: Oculta el texto "CIIO" para dar más espacio en pantallas muy pequeñas */
  .brand .name {
    display: none;
  }

  .panel {
    padding: 16px;
    margin-top: 20px;
  }

  .wrap {
    padding: 12px;
  }

  section {
    padding: 30px 0;
  }

  .card {
    padding: 14px;
  }

  h2.sec-title {
    font-size: 20px;
  }

  .btn {
    padding: 12px 20px;
    font-size: 13px;
    min-width: 120px;
  }

  .pill {
    padding: 6px 10px;
    font-size: 12px;
  }

  form input,
  form textarea {
    padding: 10px;
    font-size: 13px;
  }

  form button {
    padding: 12px;
    font-size: 14px;
  }

  .nav-links.mobile {
    left: 12px;
    right: 12px;
    padding: 16px;
  }
  
  .logo {
    max-width: 40px;
  }
}


/* Móviles Pequeños (hasta 360px) */
@media (max-width: 360px) {
  .hero-title {
    font-size: 22px;
  }

  .hero-sub {
    font-size: 14px;
  }

  .nav-inner {
    padding: 6px 10px;
  }
  

  .wrap {
    padding: 10px;
  }

  .card {
    padding: 12px;
  }

  .btn {
    padding: 10px 16px;
    font-size: 12px;
    min-width: 100px;
  }

  .footer-content {
    padding: 8px 12px;
  }

  .footer-content > div:first-child > div:first-child {
    font-size: 14px;
  }

  .footer-content > div:last-child {
    font-size: 11px;
  }
}


/* Pantallas muy pequeñas (debajo de 320px) */
@media (max-width: 320px) {
  .hero-title {
    font-size: 20px;
  }

  .nav-inner {
    padding: 4px 8px;
  }

  .wrap {
    padding: 8px;
  }

  section {
    padding: 25px 0;
  }
}


/* ============================================== */
/* ==      OTRAS REGLAS Y ACCESIBILIDAD        == */
/* ============================================== */

/* Arreglos para orientación horizontal en dispositivos pequeños */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 400px;
    padding: 60px 0 20px;
  }

  .hero-inner {
    padding: 20px 16px;
  }

  .hero-title {
    font-size: 24px;
  }

  section {
    padding: 30px 0;
  }
}

/* Pantallas de alta densidad de píxeles (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Efectos hover solo en dispositivos que lo soporten (no táctiles) */
@media (hover: hover) {
  .card:hover {
    transform: translateY(-4px);
  }

  .btn:hover {
    transform: translateY(-2px);
  }

  .doc:hover {
    transform: translateY(-2px);
  }

  .pill:hover {
    background: rgba(212, 175, 55, 0.1);
  }
}

/* Mejoras de Accesibilidad */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Indicadores de foco para navegación con teclado */
.nav-links a:focus,
.btn:focus,
form input:focus,
form textarea:focus,
form button:focus {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

/* Testimonios Section - TikTok Style */
.testimonios-lujo {
  padding: 80px 0;
  display: flex;
  align-items: stretch;
  position: relative;
  background: var(--bg);
}

.testimonios-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 40px;
  position: relative;
  min-height: 600px;
}

/* Text Section - Left Side */
.testimonio-texto {
  flex: 1;
  padding: 0;
  text-align: left;
  color: #fff;
  z-index: 1;
  position: relative;
}

.testimonio-texto .gold-caption {
  color: var(--accent-1);
  font-weight: 700;
  margin-bottom: 15px;
  font-size: 1.2rem;
  display: inline-block;
  background: linear-gradient(90deg, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.testimonio-texto .sec-title {
  font-size: 2.2rem;
  margin-bottom: 20px;
  line-height: 1.3;
  color: #fff;
}

.testimonio-texto .lead {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 700px;
  margin: 0 auto;
}

/* Video Container - Middle */
.video-carousel {
  position: relative;
  width: 400px;
  max-width: 90vw;
  height: auto;
  aspect-ratio: 16/9;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
  background: #000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 0;
}

.video-carousel:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.video-track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background: #000;
}

.video-card-lujo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #000;
  cursor: pointer;
  border-radius: 12px;
  overflow: hidden;
}

.video-card-lujo.active {
  opacity: 1;
  z-index: 1;
}

.video-display {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
  display: block;
  transition: transform 0.3s ease;
  will-change: transform;
  position: relative;
}

/* Description Section - Right Side */
.testimonio-descripcion {
  flex: 1;
  padding: 0;
  text-align: left;
  color: #fff;
  z-index: 1;
  position: relative;
}

.descripcion-card {
  display: none;
}

.descripcion-card.active {
  display: block;
}

.descripcion-card h3 {
  color: var(--accent-1);
  margin-bottom: 15px;
  font-size: 1.5rem;
}

.descripcion-card p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* Navigation Buttons */
.prev-btn,
.next-btn {
  position: absolute;
  top: 50%;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.3s ease;
  z-index: 10;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
}

.video-carousel:hover .prev-btn,
.video-carousel:hover .next-btn {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) scale(1);
}

.prev-btn:hover,
.next-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-50%) scale(1.1);
}

.prev-btn {
  left: 15px;
}

.next-btn {
  right: 15px;
}

/* Touch devices */
@media (hover: none) {
  .prev-btn,
  .next-btn {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) scale(1);
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
}


.prev-btn { left: 5px; }
.next-btn { right: 5px; }

/* INVITACIÓN */
.invitation {
  margin-top: 30px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
}

.invitation a {
  color: #ffd700;
  font-weight: 700;
  text-decoration: none;
}

.invitation a:hover {
  text-decoration: underline;
}

/* RESPONSIVE */
@media (min-width: 1025px) {
  .testimonios-container {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    min-height: 600px;
  }
  .maps{
    width: 200px;
    max-width: 200px;
    align-items: center;
    border-radius: 5px;
    justify-content: center;
    position: relative;
  }

  .testimonio-texto {
    flex: 1;
    text-align: left;
    padding: 40px 20px 40px 0;
  }

  .video-carousel {
    flex: 1;
    max-width: 400px;
  }

  .testimonio-descripcion {
    flex: 1;
    padding: 40px 0 40px 20px;
    text-align: left;
    color: #fff;
  }

  .descripcion-card {
    display: none;
  }

  .descripcion-card.active {
    display: block;
  }

  .descripcion-card h3 {
    color: var(--accent-1);
    margin-bottom: 15px;
    font-size: 1.5rem;
  }

  .descripcion-card p {
    color: var(--muted);
    line-height: 1.7;
    font-size: 1rem;
  }
}

@media (max-width: 1024px) {
  .testimonios-container {
    flex-direction: column;
    gap: 40px;
  }

  .testimonio-texto {
    order: 1;
  }

  .video-carousel {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    transform: none !important;
    order: 2;
    width: 100% !important;
    max-width: none !important;
    aspect-ratio: 16/10;
    min-height: 300px;
    height: auto;
    padding: 0;
    margin: 0 auto;
  }

  .testimonio-descripcion {
    order: 3;
  }
}

---------------------------------------------------------------------------------------------------------------------------
-------Productos y servicios ---------------------

.tecnologias-ablacion {
  padding: 60px 20px;
  background-color: #000; /* fondo negro */
  text-align: center;
  color: #f0d06b; /* texto dorado principal */
}
.tecnologias-ablacion h2 {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  color: #f0d06b; /* dorado */
  margin-bottom: 20px;
}
.ablacion-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}
.ablacion {
  background: #1c1c1c; /* gris muy oscuro para tarjetas */
  padding: 25px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(240, 208, 107, 0.3); /* sombra dorada suave */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.ablacion:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(240, 208, 107, 0.6); /* resalta al pasar mouse */
}
.ablacion i {
  font-size: 40px;
  color: #f0d06b; /* iconos dorados */
  margin-bottom: 15px;
}
.ablacion h3 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  margin-bottom: 10px;
  color: #f0d06b; /* títulos dorados */
}
.ablacion p {
  font-family: 'Poppins', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #ddd; /* texto secundario claro sobre fondo negro */
}
.cta-medicos a {
  color: var(--accent-1);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}
  
.cta-medicos a:hover {
  color: #d4af37;
  text-decoration: underline;
}

  /* Services Page Styles */
  .services-section {
    padding: 5rem 0;
    background: var(--bg);
  }
  
  .services-section .section-head {
    max-width: 1000px;
    margin: 0 auto 3rem;
    text-align: center;
  }
  
  .services-section .section-title {
    font-size: 2.5rem;
    color: var(--accent-1);
    margin-bottom: 1rem;
  }
  
  .services-section .section-divider {
    width: 80px;
    height: 3px;
    background: var(--accent-1);
    margin: 0 auto 1.5rem;
  }
  
  .services-section .section-desc {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--muted);
    max-width: 800px;
    margin: 0 auto 2rem;
  }
  
  /* Services Grid */
  .services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
  }
  
  .service-card {
    background: var(--card);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  }
  
  .card-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
  }
  
  .card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.8) 100%);
  }
  
  .card-icon {
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 60px;
    background: var(--accent-1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: #000;
    z-index: 2;
    border: 3px solid var(--bg);
  }
  
  .card-content {
    padding: 2.5rem 1.5rem 1.5rem;
    text-align: center;
  }
  
  .card-title {
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem;
    color: #fff;
  }
  
  .card-desc {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
  }
  
  /* Feature List */
  .feature-list {
    color: var(--muted);
    line-height: 1.7;
    margin: 1.5rem 0;
    padding-left: 1.2rem;
    text-align: left;
    list-style-type: none;
  }
  
  .feature-list li {
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.95rem;
  }
  
  .feature-list li:before {
    content: "•";
    color: var(--accent-1);
    position: absolute;
    left: 0;
    font-weight: bold;
  }
  
  /* CTA Box */
  .cta-box {
    background: rgba(212, 175, 55, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.1);
    border-radius: var(--radius);
    padding: 2.5rem;
    text-align: center;
    margin: 4rem auto 0;
    max-width: 900px;
  }
  
  .cta-title {
    font-size: 1.5rem;
    color: #fff;
    margin-bottom: 1rem;
  }
  
  .cta-desc {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.5rem;
  }
  
  /* Responsive Adjustments */
  @media (max-width: 768px) {
    .services-section {
      padding: 3rem 0;
    }
    
    .services-section .section-title {
      font-size: 2rem;
    }
    
    .services-grid {
      grid-template-columns: 1fr;
      gap: 2rem;
    }
    
    .card-content {
      padding: 2rem 1.25rem;
    }
    
    .cta-buttons {
      flex-direction: column;
      align-items: center;
    }
    
    .cta-buttons .btn {
      width: 100%;
      max-width: 280px;
    }
  }
  
  .section-padding {
    padding: 4rem 0;
  }
  
  .gold-caption {
    color: var(--accent-1);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
  }
  
  .sec-title {
    font-size: 2.2rem;
    margin: 0 0 1rem;
    color: #fff;
    font-weight: 700;
  }
  
  .section-desc {
    color: #ccc;
    max-width: 700px;
    margin: 0 auto 2rem;
    line-height: 1.6;
  }
  
  .card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: var(--radius);
    padding: 1.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  
  .card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
  }
  
  .card h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.4rem;
  }
  
  .card p {
    color: #ccc;
    margin: 0.5rem 0 0;
    line-height: 1.6;
  }
  
  .gold-text {
    color: var(--accent-1);
    margin-top: 0;
  }
  
  .accent-text {
    color: #fff;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
  }
  
  .feature-list {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
  }
  
  .feature-list li {
    margin-bottom: 0.5rem;
    color: #ddd;
    list-style-type: disc;
  }
  
  .feature-list li::marker {
    color: var(--accent-1);
  }
  
  .chip {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    color: #fff;
    font-size: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
  
  .grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 200px)), 1fr));
    gap: var(--gap, 1.5rem);
  }
  
  @media (max-width: 768px) {
    .section-padding {
      padding: 2.5rem 0;
    }
    
    .sec-title {
      font-size: 1.8rem;
    }
    
    .card {
      padding: 1.25rem;
    }
  }

  /* ========================
     SERVICES STYLES 
     ======================== */
  
.services-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.services-cta:hover {
  transform: translateY(-2px);
}

.services-ribbon {
  width: 24px;
  height: 24px;
  fill: var(--accent-1);
}


.services-nav-links.services-mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--card);
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.services-nav-links.services-mobile.services-active {
  display: flex;
}

.services-nav-links.services-mobile a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass);
}

.services-nav-links.services-mobile a:last-child {
  border-bottom: none;
}

/* Hero Section */
.services-hero {
  position: relative;
  padding: 10rem 0 4rem;
  background: linear-gradient(135deg, rgba(67, 61, 3, 0.644), rgba(5, 5, 5, 0.9)), 
              url('./assets/products_fondo.png') center/cover;
  overflow: hidden;
}

.services-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 217, 102, 0.05));
}

.services-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.services-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  background: linear-gradient(to right, var(--accent-1), var(--accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.services-hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-hero-stats {
  display: flex;
  justify-content: center;
  gap: 3rem;
}

.services-stat-item {
  text-align: center;
}

.services-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 0.5rem;
}

.services-stat-label {
  color: var(--muted);
  font-size: 0.9rem;
}

/* Service Sections */
.services-service-section {
  padding: 5rem 0;
}

.services-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 4rem;
}

.services-section-tag {
  display: inline-block;
  background-color: var(--glass);
  color: var(--accent-1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.services-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.services-section-description {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Ablación Section - Rediseñado para ser más compacto */
.services-ablacion-section {
  background-color: var(--bg);
}

.services-showcase {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.services-showcase-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.services-showcase-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.services-showcase-card.services-featured {
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.services-showcase-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.services-showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.services-showcase-card:hover .services-showcase-image img {
  transform: scale(1.05);
}

.services-showcase-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(15, 15, 15, 0.8);
  color: var(--accent-1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 600;
}

.services-showcase-badge.services-crio {
  color: #4fc3f7;
}

.services-showcase-badge.services-electro {
  color: #ffeb3b;
}

.services-showcase-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.services-showcase-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--bg);
  margin-bottom: 0.5rem;
}

.services-showcase-icon.services-crio-icon {
  background: linear-gradient(135deg, #4fc3f7, #29b6f6);
}

.services-showcase-icon.services-electro-icon {
  background: linear-gradient(135deg, #ffeb3b, #fdd835);
}

.services-showcase-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.services-showcase-desc {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.services-showcase-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.services-feature-tag {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background-color: var(--glass);
  padding: 0.5rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  color: var(--muted);
}

.services-feature-tag.services-crio-tag {
  background-color: rgba(79, 195, 247, 0.1);
  color: #4fc3f7;
}

.services-feature-tag.services-electro-tag {
  background-color: rgba(255, 235, 59, 0.1);
  color: #ffeb3b;
}

.services-showcase-applications,
.services-tech-specs {
  margin-top: 1rem;
}

.services-showcase-applications h4,
.services-tech-specs h4 {
  color: var(--accent-1);
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.services-showcase-applications ul,
.services-tech-specs ul {
  list-style: none;
  padding-left: 0;
}

.services-showcase-applications li,
.services-tech-specs li {
  color: var(--muted);
  margin-bottom: 0.25rem;
  padding-left: 1rem;
  position: relative;
}

.services-showcase-applications li i,
.services-tech-specs li i {
  color: var(--accent-1);
  position: absolute;
  left: 0;
  top: 0.25rem;
}

/* Cateterismo Section - En formato de cards */
.services-cateterismo-section {
  background-color: var(--card);
}

.services-cateterismo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.services-cateterismo-card {
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services-cateterismo-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.services-cateterismo-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.services-cateterismo-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--bg);
}

.services-cateterismo-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-1);
}

.services-cateterismo-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.services-cateterismo-benefits {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.services-benefit-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.services-benefit-item i {
  color: var(--accent-1);
  font-size: 0.8rem;
}

/* Biopsias Section - En formato de cards */
.services-biopsias-section {
  background-color: var(--bg);
}

.services-biopsias-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.services-biopsia-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.services-biopsia-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.services-biopsia-visual {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.services-biopsia-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.services-biopsia-card:hover .services-biopsia-visual img {
  transform: scale(1.05);
}

.services-biopsia-type-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--bg);
}

.services-biopsia-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.services-biopsia-content h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-1);
}

.services-biopsia-subtitle {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.services-biopsia-features {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.services-biopsia-features li {
  color: var(--muted);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.services-biopsia-features li i {
  color: var(--accent-1);
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

/* Final CTA */
.services-final-cta {
  background: linear-gradient(135deg, var(--card), var(--bg));
  padding: 4rem 0;
  text-align: center;
}

.services-cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.services-cta-text h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.services-cta-text p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.services-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.services-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.services-cta-btn.services-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--bg);
}

.services-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Responsive Design */
@media (max-width: 868px) {
  .services-nav-links {
    display: none;
  }
  
  .services-menu-toggle {
    display: block;
  }
  
  .services-hero-title {
    font-size: 2.25rem;
  }
  
  .services-hero-stats {
    flex-direction: column;
    gap: 1.5rem;
  }
  
  .services-section-title {
    font-size: 2rem;
  }
  
  .services-showcase {
    grid-template-columns: 1fr;
  }
  
  .services-cateterismo-grid,
  .services-biopsias-grid {
    grid-template-columns: 1fr;
  }
  
  .services-cta-actions {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .services-hero-title {
    font-size: 1.75rem;
  }
  
  .services-section-title {
    font-size: 1.5rem;
  }
  
  .services-showcase-card,
  .services-cateterismo-card,
  .services-biopsia-card {
    padding: 1.5rem;
  }
}

/* Planning Section - Protocolo de Biopsia */
.services-planning-section {
  background: linear-gradient(135deg, var(--card), var(--bg));
}

.services-planning-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.services-planning-card {
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.services-planning-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.services-planning-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-1), var(--accent-2));
}

.services-planning-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--bg);
}

.services-planning-icon {
  width: 60px;
  height: 60px;
  background-color: var(--glass);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-1);
  margin-bottom: 1.5rem;
}

.services-planning-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.3;
}

.services-planning-card p {
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.services-planning-checklist {
  list-style: none;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.services-planning-checklist li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.services-planning-checklist li i {
  color: var(--accent-1);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.services-safety-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  background-color: var(--card);
  padding: 2rem;
  border-radius: var(--radius);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.services-safety-stat {
  text-align: center;
  padding: 1rem;
}

.services-safety-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--bg);
  margin: 0 auto 1rem;
}

.services-safety-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 0.5rem;
}

.services-safety-label {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

/* Responsive Design para Planning Section */
@media (max-width: 868px) {
  .services-planning-flow {
    grid-template-columns: 1fr;
  }
  
  .services-safety-stats {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .services-planning-card {
    padding: 1.5rem;
  }
  
  .services-planning-number {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .services-planning-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }
  
  .services-planning-card h3 {
    font-size: 1.25rem;
  }
  
  .services-safety-number {
    font-size: 1.75rem;
  }
}


-------------------------------------------------------------------------------
------Products ------------------------------------------------
--------------------------------------------------------------------------------------------------------------

--Define el padding de los lados


* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.products-wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.5rem;
}


.products-nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
}

.products-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.products-logo img {
  height: 40px;
  width: auto;
}

.products-name {
  color: var(--accent-1);
  font-size: 1.5rem;
  font-weight: 700;
}

.products-nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.products-nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  position: relative;
}

.products-nav-links a:hover {
  color: white;
}

.products-nav-links a.products-active {
  color: var(--accent-1);
}

.products-nav-links a.products-active::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-1);
}

.products-cta-link {
  text-decoration: none;
}

.products-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--bg);
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: transform 0.3s ease;
}

.products-cta:hover {
  transform: translateY(-2px);
}

.products-ribbon {
  width: 24px;
  height: 24px;
  fill: var(--accent-1);
}

.products-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

.products-nav-links.products-mobile {
  display: none;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background-color: var(--card);
  padding: 1rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
  z-index: 99;
}

.products-nav-links.products-mobile.products-active {
  display: flex;
}

.products-nav-links.products-mobile a {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass);
}

.products-nav-links.products-mobile a:last-child {
  border-bottom: none;
}

/* Hero Section */
.products-hero {
  position: relative;
  padding: 12rem 0 4rem;
  background: 
    linear-gradient(135deg, rgba(149, 137, 6, 0.352), rgba(5, 5, 5, 0.95)),
    url('./assets/products_fondo.png') center/cover no-repeat;
  background-attachment: fixed;
  min-height: 70vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  width: 100%;
}

/* Mobile styles */
@media (max-width: 768px) {
  .products-hero {

    background-image: url('./assets/fondo_movil.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: scroll;
    min-height: 80vh;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100px;
    justify-content: center;
    position: relative;
    width: 100%;
  }
  
  /* Debugging styles */
  .products-hero::after {
    position: absolute;
    top: 10px;
    left: 10px;
    color: rgba(255, 255, 255, 0.57);
    background: rgba(192, 186, 14, 0.07);
    padding: 5px;
    z-index: 10;
  }
  
 
  
  .products-hero-title {
    font-size: 2rem !important;
    line-height: 1.2;
    margin: 0;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
  }
  
  .products-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(149, 137, 6, 0.352), rgba(5, 5, 5, 0.9));
    z-index: 1;
  }
  
  .products-hero-subtitle {
    font-size: 1rem !important;
    padding: 0 1.5rem;
    margin-bottom: 1.5rem;
  }
  
  .products-hero-content {
    padding: 0 1rem;
  }
}

/* For small mobile devices */
@media (max-width: 480px) {
  .products-hero {
    min-height: 90vh;
    padding: 3rem 0 2rem;
    background-size: cover;
    background-position: center center;
  }
  
  /* Adjust for landscape on small devices */
  @media (orientation: landscape) {
    .products-hero {
      min-height: 120vh;
      background-position: center center;
    }
  }
  
  .products-hero-title {
    font-size: 1.5rem !important;
    margin-bottom: 1rem;
  }
  
  .products-hero-subtitle {
    font-size: 0.9rem !important;
    padding: 0 1rem;
  }
}

.products-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(255, 217, 102, 0.05));
}

.products-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.products-hero-title {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  text-align: center;
  padding: 0 1rem;
}

.products-hero-subtitle {
  font-size: 1.25rem;
  color: #fff;
  margin-bottom: 2rem;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
  text-align: center;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 1rem;
}

/* Section Headers */
.products-section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 3rem;
}

.products-section-tag {
  display: inline-block;
  background-color: var(--glass);
  color: var(--accent-1);
  padding: 0.5rem 1rem;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.products-section-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.products-section-description {
  font-size: 1.1rem;
  color: var(--muted);
  line-height: 1.6;
}

/* Featured Product Section */
.products-featured-section {
  padding: 5rem 0;
  background-color: var(--bg);
}

.products-featured-product {
  background: linear-gradient(135deg, var(--card), rgba(15, 15, 15, 0.8));
  border-radius: var(--radius);
  padding: 3rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.products-featured-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.products-featured-text h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent-1);
}

.products-featured-text p {
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  font-size: 1.1rem;
}

.products-feature-highlights {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.products-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.products-feature-icon {
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--bg);
  flex-shrink: 0;
}

.products-feature-text h4 {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: white;
}

.products-feature-text p {
  color: var(--muted);
  margin: 0;
  font-size: 1rem;
}

.products-featured-visual {
  display: flex;
  justify-content: center;
}

.products-device-showcase {
  position: relative;
  max-width:450px;
}

.products-device-image {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4);
}

.products-device-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* Applications Section */
.products-applications-section {
  padding: 5rem 0;
  background-color: var(--card);
}

.products-applications-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
}

.products-application-category h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--accent-1);
  text-align: center;
}

.products-application-list {
  list-style: none;
  padding: 0;
}

.products-application-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--glass);
  color: var(--muted);
}

.products-application-list li:last-child {
  border-bottom: none;
}

.products-application-list li i {
  color: var(--accent-1);
  font-size: 0.9rem;
}

/* Instruments Section - COMPACTA */
.products-instruments-section {
  padding: 4rem 0;
  background-color: var(--bg);
}

.products-instruments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1rem;
}

.products-instrument-card {
  background-color: var(--card);
  border-radius: var(--radius);
  padding: 1rem 0.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--glass);
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.products-instrument-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.2);
  border-color: rgba(212, 175, 55, 0.3);
}

.products-instrument-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--bg);
  margin: 0 auto 0.5rem;
}

.products-instrument-card h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  text-align: center;
  line-height: 1.2;
}

/* Benefits Section - COMPACTA */
.products-benefits-section {
  padding: 4rem 0;
  background-color: var(--card);
}

.products-benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}

.products-benefit-card {
  background-color: var(--bg);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid var(--glass);
  min-height: 180px;
  display: flex;
  flex-direction: column;
}

.products-benefit-card:hover {
  transform: translateY(-3px);
  border-color: rgba(212, 175, 55, 0.3);
}

.products-benefit-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--accent-1);
  margin-bottom: 0.75rem;
  line-height: 1;
}

.products-benefit-card h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: white;
  line-height: 1.3;
}

.products-benefit-card p {
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

/* Other Products Section - CON TODOS LOS PRODUCTOS */
.products-other-section {
  padding: 5rem 0;
  background-color: var(--bg);
}

.products-other-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.products-other-card {
  background-color: var(--card);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.products-other-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.products-other-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.products-other-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.products-other-card:hover .products-other-image img {
  transform: scale(1.05);
}

.products-other-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(5, 5, 5, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.products-other-card:hover .products-other-overlay {
  opacity: 1;
}

.products-other-btn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--bg);
  text-decoration: none;
  border-radius: 50px;
  font-weight: 600;
  transition: transform 0.3s ease;
}

.products-other-btn:hover {
  transform: scale(1.05);
}

.products-other-content {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.products-other-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: white;
}

.products-other-content p {
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.6;
  font-size: 0.95rem;
  flex-grow: 1;
}

.products-other-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.products-other-features span {
  background-color: var(--glass);
  color: var(--accent-1);
  padding: 0.25rem 0.75rem;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 500;
}

/* CTA Section */
.products-cta-section {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--card), var(--bg));
  text-align: center;
}

.products-cta-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.products-cta-content p {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 2rem;
  line-height: 1.6;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.products-cta-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.products-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: var(--radius);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.products-cta-btn.products-primary {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--bg);
}

.products-cta-btn.products-secondary {
  background-color: var(--glass);
  color: white;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

.products-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(212, 175, 55, 0.3);
}

/* Footer */
.products-pie-pagina {
  width: 100%;
  background-color: var(--card);
}

.products-grupo-1 {
  width: 100%;
  max-width: var(--max-w);
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 50px;
  padding: 45px 0px;
}

.products-box figure {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.products-box figure img {
  width: 150px;
}

.products-box h2 {
  color: white;
  margin-bottom: 25px;
  font-size: 20px;
}

.products-box p {
  color: var(--muted);
  margin-bottom: 10px;
}

.products-red-social a {
  display: inline-block;
  text-decoration: none;
  width: 45px;
  height: 45px;
  line-height: 45px;
  color: white;
  margin-right: 10px;
  background-color: var(--glass);
  text-align: center;
  border-radius: 50%;
  transition: all 300ms ease;
}

.products-red-social a:hover {
  background: linear-gradient(135deg, var(--accent-1), var(--accent-2));
  color: var(--bg);
  transform: scale(1.1);
}

.products-grupo-2 {
  background-color: var(--bg);
  padding: 15px 10px;
  text-align: center;
  color: white;
}

.products-grupo-2 small {
  font-size: 15px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .products-nav-links {
    display: none;
  }
  
  .products-menu-toggle {
    display: block;
  }
  
  .products-hero-title {
    font-size: 2.25rem;
  }
  
  .products-section-title {
    font-size: 2rem;
  }
  
  .products-featured-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .products-grupo-1 {
    width: 90%;
    grid-template-columns: repeat(1, 1fr);
    grid-gap: 30px;
    padding: 35px 0px;
  }
  
  .products-cta-actions {
    flex-direction: column;
    align-items: center;
  }
  
  .products-cta-btn {
    width: 100%;
    justify-content: center;
  }
  
  .products-instruments-grid {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
  }
  
  .products-benefits-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .products-hero-title {
    font-size: 1.75rem;
  }
  
  .products-section-title {
    font-size: 1.5rem;
  }
  
  .products-featured-product {
    padding: 2rem 1.5rem;
  }
  
  .products-benefits-grid,
  .products-other-grid {
    grid-template-columns: 1fr;
  }
  
  .products-instrument-card {
    padding: 0.75rem 0.25rem;
    min-height: 100px;
  }
  
  .products-instrument-icon {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }
  
  .products-instrument-card h4 {
    font-size: 0.8rem;
  }
}

