/* ============================================================
   HIDRÁULICA TLÁLOC — Global CSS v5
   Optimizado para velocidad, experiencia móvil impecable,
   textos sin cortes de sílabas y cursor personalizado de gota de agua
============================================================ */

/* ── CURSOR PERSONALIZADO: GOTA DE AGUA INCLINADA (-28° como cursor normal) ── */
@media (hover: hover) and (pointer: fine) {
  html,
  body {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 28 28'%3E%3Cg transform='translate(5,3) rotate(-28)'%3E%3Cpath d='M0 0 C0 0 -7.2 9.5 -7.2 14.8 C-7.2 18.9 -4 22.2 0 22.2 C4 22.2 7.2 18.9 7.2 14.8 C7.2 9.5 0 0 0 0 Z' fill='%230056B3' stroke='%23ffffff' stroke-width='1.8' stroke-linejoin='round'/%3E%3Cpath d='M-3.2 12.2 C-4.2 14.2 -3.8 16.8 -2 18.2' stroke='%2393C5FD' stroke-width='1.8' stroke-linecap='round' fill='none'/%3E%3Ccircle cx='0' cy='2.2' r='1.1' fill='%2338BDF8'/%3E%3C/g%3E%3C/svg%3E") 5 3, auto;
  }

  a,
  button,
  [role="button"],
  input[type="submit"],
  input[type="button"],
  select,
  summary,
  label[for],
  .cursor-pointer {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30' viewBox='0 0 30 30'%3E%3Ccircle cx='5' cy='3' r='4' fill='none' stroke='%2338BDF8' stroke-width='1.4' opacity='0.85'/%3E%3Cg transform='translate(5,3) rotate(-28)'%3E%3Cpath d='M0 0 C0 0 -7.5 9.8 -7.5 15.2 C-7.5 19.5 -4.1 22.8 0 22.8 C4.1 22.8 7.5 19.5 7.5 15.2 C7.5 9.8 0 0 0 0 Z' fill='%230284C7' stroke='%23ffffff' stroke-width='1.9' stroke-linejoin='round'/%3E%3Cpath d='M-3.3 12.5 C-4.3 14.5 -3.9 17.2 -2 18.6' stroke='%23E0F2FE' stroke-width='2' stroke-linecap='round' fill='none'/%3E%3C/g%3E%3C/svg%3E") 5 3, pointer !important;
  }
}

/* ── BODY PADDING ADAPTABLE (64px en móvil, 80px en escritorio) ── */
body {
  padding-top: 64px !important;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}

@media (min-width: 1024px) {
  body {
    padding-top: 80px !important;
  }
}

/* ── NAVBAR EN MÓVIL: evitar que el lema empuje al botón de menú ── */
header#navbar nav > a:first-child {
  min-width: 0;
  flex: 1 1 auto;
  margin-right: 0.5rem;
}

@media (max-width: 639px) {
  header#navbar nav > a:first-child span:last-child {
    font-size: 10px !important;
    line-height: 1.2 !important;
    display: block;
    white-space: normal;
  }
  header#navbar #menu-toggle {
    flex-shrink: 0;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* ── TIPOGRAFÍA GENERAL: evitar que palabras como "sucursales" se partan ── */
main p,
section p,
article p,
.content p {
  line-height: 1.65;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

h1, h2, h3, h4, h5, h6,
.stat-number {
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
}

/* Números de la franja de compromisos: siempre en una sola línea limpia */
.stat-number {
  font-size: clamp(1.5rem, 4.5vw, 2.75rem);
  line-height: 1.1;
  white-space: nowrap;
  font-weight: 800;
  color: #003F87;
}

/* Alineación a la izquierda en tarjetas, tablas y listas (evita huecos) */
.service-card p,
.brand-card p,
.card-left p,
[class*="rounded-2xl"] p,
[class*="rounded-xl"] p,
table td,
table th,
ul li,
ol li,
li p {
  text-align: left !important;
  hyphens: none !important;
  word-break: normal !important;
}

/* NO justificar: hero banners, centrados, nav, badges, labels */
.hero-text p,
.text-center p,
.text-center,
nav p,
footer p,
label,
button,
.badge,
.stat-label,
[class*="tracking-widest"],
[class*="uppercase"] {
  text-align: inherit !important;
  hyphens: none !important;
}

/* ── GRID Y FLEXBOX: prevenir desbordamientos sin romper palabras ── */
.grid,
.flex {
  min-width: 0;
}

.grid > *,
.flex > * {
  min-width: 0;
}

/* ── TABLAS: limpias y responsivas en móvil ── */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.brand-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 580px;
}

/* ── ANCHO COMPLETO FLUIDO EN MONITORES GRANDES (Aprovecha todo el ancho de la pantalla) ── */
@media (min-width: 1024px) {
  .max-w-7xl,
  .max-w-6xl,
  .max-w-5xl,
  .max-w-4xl {
    max-width: min(96vw, 1860px) !important;
    width: 100% !important;
  }
}

/* ── CAROUSEL HERO SIN DISTORSIÓN Y DE BORDE A BORDE (1920 x 650 px) ── */
.carousel-slide {
  display: none !important;
}
.carousel-slide.is-active {
  display: flex !important;
  animation: heroFadeIn 0.35s ease-out;
}
@keyframes heroFadeIn {
  from { opacity: 0.4; }
  to { opacity: 1; }
}
.hero-banner-img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center center !important;
  display: block !important;
}

/* ── SMOOTH SCROLL ── */
html {
  scroll-behavior: smooth;
}

/* ── DROPDOWN NAVBAR: siempre encima de todo ── */
nav .group:hover .absolute {
  z-index: 9999 !important;
}

/* ── ELEMENTOS VISUALES DE AGUA (Ligeros, visibles y sin consumo de CPU) ── */
.water-section-bg {
  background-color: #f8fafc;
  background-image:
    radial-gradient(circle at 12% 18%, rgba(26, 115, 209, 0.07) 0%, transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(0, 63, 135, 0.06) 0%, transparent 32%),
    url("data:image/svg+xml,%3Csvg width='120' height='60' viewBox='0 0 120 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q 30 15, 60 30 T 120 30' fill='none' stroke='%231A73D1' stroke-width='1' stroke-opacity='0.08'/%3E%3Cpath d='M0 45 Q 30 30, 60 45 T 120 45' fill='none' stroke='%23003F87' stroke-width='1' stroke-opacity='0.05'/%3E%3C/svg%3E");
}

/* ── EFECTO DE AGUA EN LA PORTADA (HERO BANNERS) ── */
#hero-water-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 15;
}

.hero-wave-strip {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 36px;
  overflow: hidden;
  pointer-events: none;
  z-index: 16;
}

@media (min-width: 640px) {
  .hero-wave-strip {
    height: 48px;
  }
}

.hero-wave-svg-1 {
  width: 200%;
  height: 100%;
  animation: heroWaveDrift 11s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
}

.hero-wave-svg-2 {
  position: absolute;
  top: 4px;
  left: 0;
  width: 200%;
  height: 100%;
  animation: heroWaveDriftReverse 15s linear infinite;
}

@keyframes heroWaveDrift {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes heroWaveDriftReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

