:root {
  --primary-dark:     #101217;               /* Azul oscuro principal */
  --accent-blue:      #3BC1C8;               /* Acento teal */
  --background-dark:  #1E1F28;               /* Azul intermedio para contenedores */
  --light-gray:       #B0B0B5;               /* Gris claro para texto secundario */
  --text-light:       #F2F5F5;               /* Blanco hueso para texto principal */
  --card-glass:       rgba(242, 245, 245, 0.08); /* Efecto cristal con tint blanco hueso */
}



/***************************************************
 * Hero Section
 ***************************************************/
.hero {
  position: relative;               /* enable absolutely positioned children */
  height: 620px;
  background-image: url('../images/trrrrutrutur.webp');
  background-size: cover;
  background-position: center 0%;
}

/***************************************************
 * Hero Captions Overlay
 ***************************************************/
.hero-caption {
  position: absolute;
  background: rgba(16, 18, 23, 0.6); /* Azul oscuro principal translúcido */
  color: #F2F5F5;                     /* Blanco hueso para texto */
  font-family: 'Roboto', sans-serif;
  font-weight: 300;       /* Light */
  font-size: 1.5rem;
}

.hero-caption.left {
  left: 0%;
  top: 10%;
  padding: 10px 28px;
  border-radius: 0 60px 60px 0;

}
.hero-caption.right {
  right: 0%;
  top: 65%;
  padding: 10px 28px;
  border-radius: 60px 0 0 60px;
}


/***************************************************
 * “Sobre Nosotros” Section
 ***************************************************/
.about-section {
  position: relative;
  background: linear-gradient(to bottom, #101217, #1E1F28); /* Degradado con la paleta */
  padding: 15px 2px;
  color: #F2F5F5; /* Texto en blanco hueso */
}

/* About overlay layer */
.about-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(16, 18, 23, 0.164); /* Overlay con color azul oscuro translúcido */
  z-index: 1;
}


/* Knock-out text showing hero image */
.about-content .left-info h2 {
  font-family: Impact, sans-serif;
  font-size: 4rem;
  background-image: url('../images/trrrrutrutur.webp');
  background-size: cover;
  background-position: center 40%;
  -webkit-background-clip: text;
          background-clip: text;
  /* this makes the letters truly transparent so you see the BG through them */
  -webkit-text-fill-color: transparent;
  /* remove any plain color: or text-fill overrides */
  padding-left: 10px;
  margin-bottom: 20px;
}

/* About content container */
.about-content {
  position: relative;
  z-index: 2;  /* Para que el contenido quede encima de la capa oscura */
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-left: 20px;   
}

/* About cards */
.about-card {
  flex: 1;
  min-width: 280px;
  background-color: rgba(242, 245, 245, 0.1); /* Translúcido con blanco hueso */
  border-radius: 8px;
  padding: 20px;
}


.about-card h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.about-card p {
  line-height: 1.5;
}

/* About section responsive tweaks */
@media (max-width: 768px) {
  .about-content {
    flex-direction: column;
  }
}



/***************************************************

/***************************************************
 * Base Reset
 ***************************************************/
html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  box-sizing: border-box;
}

/* Anti-scroll lateral ÚNICO (no tocar body) */
html { overflow-x: hidden; max-width: 100%; }

/* Cosas seguras globales */
*, *::before, *::after { box-sizing: border-box; }
img, video { max-width: 100%; height: auto; display: block; }

/***************************************************
 * Back-to-Top Button
 ***************************************************/
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #3BC1C8; /* Acento teal */
  color: #F2F5F5;      /* Blanco hueso */
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.4); /* Sombra más marcada */
  transition: background 0.3s;
  z-index: 1000; /* Sigue arriba */
}
.back-to-top:hover {
  background: #FFBA08; /* Acento amarillo cálido */
}


/***************************************************
 * Modals (Servicios)
 ***************************************************/
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(16, 18, 23, 0.6); /* Fondo de overlay en azul oscuro translúcido */
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.modal-content {
  background: rgba(30, 31, 40, 0.9); /* Fondo secundaria oscuro con opacidad */
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
}

.modal-content .close {
  position: absolute;
  top: 12px; right: 16px;
  font-size: 24px;
  font-weight: bold;
  color: #B0B0B5; /* Texto secundario gris claro */
  cursor: pointer;
}

.modal-content .modal-list {
  list-style: none;
  padding: 0;
  margin: 12px 0;
}
.modal-content .modal-list li {
  margin: 6px 0;
  position: relative;
  padding-left: 16px;
}
.modal-content .modal-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  line-height: 1;
  color: #3BC1C8; /* Acento teal */
}


/***************************************************
 * Language Toggle Button
 ***************************************************/
.lang-toggle {
  background: #3BC1C8; /* Acento teal */
  color: #F2F5F5;      /* Blanco hueso */
  border: none;
  padding: 6px 12px;
  border-radius: 4px;
  cursor: pointer;
  margin: 0 1rem;
}
.lang-toggle:hover {
  background: #FFBA08; /* Acento amarillo cálido */
}


/***************************************************
 * Responsive
 ***************************************************/
@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .footer-col {
    margin-bottom: 20px;
  }
}
.cards-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 40px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 40px auto 0;
  padding: 0 20px;
  box-sizing: border-box;
}

.about-card {
  flex: 1 1 45%; /* Hasta dos por fila, adaptables */
  max-width: 500px;
  min-width: 300px;
  padding: 24px;
  background-color: rgba(242, 245, 245, 0.12); /* Blanco hueso translúcido */
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);    /* Sombra más marcada */
  backdrop-filter: blur(6px);
  color: #F2F5F5;                               /* Texto principal */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  text-align: left;
}


.about-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); /* Sombra reforzada con la paleta */
}

.about-card h3 {
  font-size: 24px;
  margin-bottom: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #3BC1C8; /* Acento teal */
}

.about-card p {
  font-size: 16px;
  line-height: 1.6;
}
/* Animaciones de reveal (unificadas, compatibles con tu JS) */
.fade-target {
  opacity: 0;
  transform: translateY(60px);
  transition: opacity .8s ease, transform .8s ease;
}
.fade-in-up {
  opacity: 1;
  transform: translateY(0);
}

.services-carousel-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 0;
  overflow: hidden; /* 🔥 Muy importante */
}


.services-carousel {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 10px;
  scrollbar-width: none;
}
.services-carousel::-webkit-scrollbar {
  display: none;
}

.service-box {
  flex: 0 0 320px;
  max-width: 320px;
  background-color: #ff520e; /* Azul intermedio */
  border-radius: 8px;
  padding: 20px;
  color: #F2F5F5;           /* Blanco hueso */
  text-align: center;
}


.service-btn {
  background-color: #3BC1C8; /* Acento teal */
  padding: 10px 20px;
  color: #F2F5F5;           /* Blanco hueso */
  text-decoration: none;
  border-radius: 4px;
  font-weight: bold;
  display: inline-block;
  margin-top: 10px;
}


.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #3BC1C8; /* Acento teal */
  color: #F2F5F5;      /* Blanco hueso */
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  z-index: 20;

  /* Mantiene sombra pero más intensa */
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}


.carousel-btn.prev {
  left: 10px; /* ya no es negativo */
}
.carousel-btn.next {
  right: 10px; /* ya no es negativo */
}






/* Contenedor general (igual al resto de tu layout) */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px; /* padding lateral igual al resto de secciones */
}

/* ---------- Sección Seguridad (oscura) ---------- */
.security-section {
  background-color: #101217;            /* fondo muy oscuro */
  padding: 60px 0;                      /* vertical: 60px, horizontal: lo controla .container */
  border-top: 3px solid #3BC1C8;        /* acento teal */
  border-bottom: 3px solid #3BC1C8;
  color: #E6F0F3;                       /* texto claro por defecto */
  text-align: center;                   /* centra el título */
}

/* Título */
.section-title {
  font-size: 32px;
  color: #3BC1C8;                       /* acento teal */
  margin-bottom: 40px;
  font-weight: 700;
}

/* Grid centrado dentro del contenedor */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  max-width: 1000px;                    /* ancho máximo de la grilla */
  margin: 0 auto;                       /* centra la grilla dentro de .container */
  padding-bottom: 20px;                 /* un poquito de espacio abajo */
}

/* Tarjetas estilo oscuro */
.security-item {
  background-color: #1B1E24;            /* tarjeta carbón */
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.4);
  font-size: 18px;
  font-weight: 500;
  color: #E6F0F3;                       /* texto claro */
  display: flex;
  align-items: flex-start;
  gap: 12px;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.security-item:hover {
  transform: translateY(-5px);
  background-color: #23272f;            /* hover levemente más claro */
}

.security-item i {
  font-size: 20px;
  color: #3BC1C8;                       /* icono teal */
  margin-top: 3px;
}





/* === Mobile mínimos seguros (no tocar hero/slider) === */
@media (max-width: 768px){
  /* Header/Nav: si no cabe, que envuelva */
  .main-nav ul { display:flex; flex-wrap:wrap; gap: min(4vw,16px); }
  .flag-icon { max-height: 28px; height: auto; }

  /* Textos largos no rompen layout */
  .title, .btn, .pill { white-space: normal; word-break: break-word; }
}
/* ===================================================== */




/* === Hero & contención móvil (quirúrgico) === */
@media (max-width: 768px){
  /* Hero más cercano */
  .hero{
    height: min(620px, 70vh);
    background-position: center top;
    will-change: background-position;
  }
  /* Capciones un pelín más arriba para que “entren” */
  .hero-caption.left{ top: 8%; }
  .hero-caption.right{ top: 58%; }
  
  /* Secciones largas: aseguran contención sin cortar animaciones */
  .about-section,
  .services-section,
  .world-clocks,
  .site-footer{
    max-width: 100%;
  }
}

















/* === Mobile fixes de layout (quirúrgicos) === */
@media (max-width: 768px){
  /* Forzar ancho seguro en secciones grandes */
  .hero,
  .about-section,
  .services-section,
  .security-section,
  .world-clocks,
  .site-footer,
  .container {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }

  /* Sobre Nosotros: 1 tarjeta por fila, sin mínimos que desborden */
  .cards-container { gap: 16px; padding: 0 16px; }
  .cards-container .about-card{
    flex: 1 1 100%;
    max-width: 100%;
    min-width: 0;      /* <- clave: elimina el mínimo de 300px en móvil */
  }

  /* Tipos un pelín más fluidos en el hero para que “se vea de cerca” */
  .hero-caption{ font-size: clamp(1rem, 3.5vw, 1.25rem); }
  .hero-caption.left{ top: 8%; }
  .hero-caption.right{ top: 58%; }
}




/* === Eliminar gap entre slider y hero === */
.slider, .hero { margin-top: 0; margin-bottom: 0; }

/* En algunos navegadores los dots/flechas dejan “hueco”.
   Esto asegura que no empujen el alto del slider */
.slider .dots,
.slider .nav{ position: absolute; }
