@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,700;1,9..40,400&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
  --craft-navy-dark: #22323D;
  --craft-red: #E30613;
  --craft-white: #FFFFFF;
  --craft-gray-light: #F4F6F7;
  --craft-border: #D0D8DC;
  --craft-text-body: #3A3A3A;
  --craft-text-muted: #6B7B85;
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4,0,0.2,1);

  /* ── Sistema tipográfico ───────────────────────────────────
     t1  : Título de presentación de sección   — Medium 40px
     t2r : Título 2 con raya roja              — Medium 25px
     t2n : Título 2 normal                     — Medium 24px
     pb  : Párrafo detalle                     — Regular 16px
     pbo : Párrafo resaltado                   — Bold 16px
     ps  : Párrafo pequeño                     — Regular 14px
     pi  : Párrafo itálico                     — Italic Regular 16px
  ──────────────────────────────────────────────────────────── */
  --font-family: 'DM Sans', sans-serif;

  --t1-size:   40px;
  --t1-weight: 500;
  --t1-line:   1.1;

  --t2r-size:   25px;
  --t2r-weight: 500;
  --t2r-line:   1.2;

  --t2n-size:   24px;
  --t2n-weight: 500;
  --t2n-line:   1.2;

  --pb-size:   16px;
  --pb-weight: 400;
  --pb-line:   1.75;

  --pbo-size:   16px;
  --pbo-weight: 700;
  --pbo-line:   1.75;

  --ps-size:   14px;
  --ps-weight: 400;
  --ps-line:   1.7;

  --pi-size:   16px;
  --pi-weight: 400;
  --pi-line:   1.75;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-family);
  font-size: var(--pb-size);
  font-weight: var(--pb-weight);
  line-height: var(--pb-line);
  color: var(--craft-text-body);
  background: #FAFBFC;
  padding-top: 0;
}

/* ── Clases tipográficas utilitarias ───────────────────────── */

/* Título de presentación — Medium 40px */
.type-t1 {
  font-family: var(--font-family);
  font-size: var(--t1-size);
  font-weight: var(--t1-weight);
  line-height: var(--t1-line);
  letter-spacing: -0.5px;
}

/* Título 2 con raya roja — Medium 25px */
.type-t2r {
  font-family: var(--font-family);
  font-size: var(--t2r-size);
  font-weight: var(--t2r-weight);
  line-height: var(--t2r-line);
  padding-bottom: 10px;
  border-bottom: 3px solid var(--craft-red);
  display: inline-block;
}

/* Título 2 normal — Medium 24px */
.type-t2n {
  font-family: var(--font-family);
  font-size: var(--t2n-size);
  font-weight: var(--t2n-weight);
  line-height: var(--t2n-line);
}

/* Párrafo detalle — Regular 16px */
.type-pb {
  font-family: var(--font-family);
  font-size: var(--pb-size);
  font-weight: var(--pb-weight);
  line-height: var(--pb-line);
}

/* Párrafo resaltado — Bold 16px */
.type-pbo {
  font-family: var(--font-family);
  font-size: var(--pbo-size);
  font-weight: var(--pbo-weight);
  line-height: var(--pbo-line);
}

/* Párrafo pequeño — Regular 14px */
.type-ps {
  font-family: var(--font-family);
  font-size: var(--ps-size);
  font-weight: var(--ps-weight);
  line-height: var(--ps-line);
}

/* Párrafo itálico — Italic Regular 16px */
.type-pi {
  font-family: var(--font-family);
  font-size: var(--pi-size);
  font-weight: var(--pi-weight);
  font-style: italic;
  line-height: var(--pi-line);
}
 
/* ─── NAVIGATION ─────────────────────────────────────────── */
#craft-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 5%;
  justify-content: space-between;
  box-shadow: none;
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

/* Fondo claro debajo del nav → mostrar fondo navy */
#craft-nav.nav-solid {
  background: var(--craft-navy-dark);
  box-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

/* Fondo oscuro debajo del nav → nav transparente */
#craft-nav.nav-transparent {
  background: transparent;
  box-shadow: none;
}
 
.nav-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
 
.nav-logo svg, .nav-logo img {
  height: 32px;
  width: auto;
  filter: brightness(0) invert(1);
}
 
.nav-logo-text {
  color: white;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
}
 
.nav-logo-text span { color: var(--craft-red); }
 
/* Desktop Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0;
  list-style: none;
}
 
.nav-menu > li {
  position: relative;
}
 
.nav-menu > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 0 16px;
  height: var(--nav-height);
  transition: color var(--transition);
  white-space: nowrap;
}
 
.nav-menu > li > a:hover,
.nav-menu > li.active > a {
  color: var(--craft-white);
}
 
.nav-menu > li > a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--craft-red);
  transform: scaleX(0);
  transition: transform var(--transition);
}
 
.nav-menu > li > a:hover::after,
.nav-menu > li.active > a::after {
  transform: scaleX(1);
}
 
.has-submenu > a .chevron {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--transition);
}
 
.has-submenu:hover > a .chevron,
.has-submenu.open > a .chevron {
  transform: rotate(-135deg) translateY(-2px);
}
 
/* Dropdown */
.submenu {
  display: none;
  position: absolute;
  top: calc(var(--nav-height) - 1px);
  left: 0;
  min-width: 200px;
  background: var(--craft-navy-dark);
  border-top: 3px solid var(--craft-red);
  list-style: none;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  animation: dropIn 0.2s ease;
}
 
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
 
.has-submenu:hover .submenu { display: block; }
 
.submenu li a {
  display: block;
  padding: 13px 20px;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background var(--transition), color var(--transition), padding-left var(--transition);
}
 
.submenu li a:hover {
  background: rgba(227,6,19,0.15);
  color: white;
  padding-left: 28px;
}
 
/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}
 
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all var(--transition);
}
 
.nav-hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-hamburger.active span:nth-child(2) { opacity: 0; }
.nav-hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }
 
/* Mobile */
@media (max-width: 900px) {
  .nav-hamburger { display: flex; }
  
  .nav-menu {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0;
    background: var(--craft-navy-dark);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding-bottom: 20px;
    max-height: calc(100vh - var(--nav-height));
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
  }
  
  .nav-menu.open { display: flex; }
  
  .nav-menu > li > a {
    height: auto;
    padding: 14px 5%;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    font-size: 13px;
  }
  
  .nav-menu > li > a::after { display: none; }
  
  .submenu {
    position: static;
    box-shadow: none;
    border-top: none;
    border-left: 3px solid var(--craft-red);
    margin-left: 5%;
    animation: none;
    background: rgba(255,255,255,0.04);
  }
  
  .has-submenu .submenu { display: none; }
  .has-submenu.open .submenu { display: block; }
}
 
/* ─── HERO SECTION ────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--craft-navy-dark);
}
 
.hero-media {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.35;
}
 
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(34,50,61,0.9) 0%, rgba(34,50,61,0.5) 60%, transparent 100%);
}
 
.hero-content {
  position: relative;
  z-index: 2;
  padding: 80px 8%;
  max-width: 750px;
}
 
.hero-tag {
  display: inline-block;
  background: var(--craft-red);
  color: white;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 5px 14px;
  margin-bottom: 20px;
}
 
.hero h1 {
  font-size: clamp(var(--t1-size), 6vw, 72px);
  font-weight: var(--t1-weight);
  color: white;
  line-height: var(--t1-line);
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero h1 em {
  color: var(--craft-red);
  font-style: normal;
}

.hero p {
  font-size: var(--pb-size);
  font-weight: var(--pb-weight);
  color: rgba(255,255,255,0.8);
  max-width: 560px;
  line-height: var(--pb-line);
}
 
/* ─── SECTION STYLES ──────────────────────────────────────── */
.section {
  padding: 80px 8%;
  max-width: 1300px;
  margin: 0 auto;
}
 
.section-full {
  padding: 80px 8%;
  background: var(--craft-gray-light);
}
 
.section-dark {
  background: var(--craft-navy-dark);
  color: white;
  padding: 80px 8%;
}
 
/* Título de presentación de sección — Medium 40px (t1) */
.section-title {
  font-family: var(--font-family);
  font-size: clamp(28px, 4vw, var(--t1-size));
  font-weight: var(--t1-weight);
  color: var(--craft-navy-dark);
  letter-spacing: -0.3px;
  line-height: var(--t1-line);
  margin-bottom: 8px;
}

.section-title .accent { color: var(--craft-red); }

/* Raya roja decorativa debajo de section-line */
.section-line {
  width: 60px;
  height: 4px;
  background: var(--craft-red);
  margin-bottom: 30px;
  border-radius: 2px;
}

/* Título 2 normal — Medium 24px (t2n) */
.section-subtitle {
  font-family: var(--font-family);
  font-size: var(--t2n-size);
  font-weight: var(--t2n-weight);
  line-height: var(--t2n-line);
  color: var(--craft-navy-dark);
  margin-bottom: 10px;
  margin-top: 30px;
}

/* Párrafo detalle — Regular 16px (pb) */
.section-text {
  font-family: var(--font-family);
  font-size: var(--pb-size);
  font-weight: var(--pb-weight);
  line-height: var(--pb-line);
  color: var(--craft-text-body);
  margin-bottom: 16px;
}

/* Párrafo resaltado — Bold 16px (pbo) */
.section-text-bold {
  font-family: var(--font-family);
  font-size: var(--pbo-size);
  font-weight: var(--pbo-weight);
  line-height: var(--pbo-line);
  color: var(--craft-text-body);
  margin-bottom: 16px;
}

/* Párrafo pequeño — Regular 14px (ps) */
.section-text-sm {
  font-family: var(--font-family);
  font-size: var(--ps-size);
  font-weight: var(--ps-weight);
  line-height: var(--ps-line);
  color: var(--craft-text-muted);
  margin-bottom: 12px;
}

/* Párrafo itálico — Italic Regular 16px (pi) */
.section-text-italic {
  font-family: var(--font-family);
  font-size: var(--pi-size);
  font-weight: var(--pi-weight);
  font-style: italic;
  line-height: var(--pi-line);
  color: var(--craft-text-body);
  margin-bottom: 16px;
}
 
/* ─── SLIDE-IN ANIMATION ──────────────────────────────────── */
.slide-in-left {
  opacity: 0;
  transform: translateX(-80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
 
.slide-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}
 
.slide-in-right {
  opacity: 0;
  transform: translateX(80px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
 
.slide-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}
 
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
 
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
 
/* ─── IMAGE + TEXT LAYOUT ─────────────────────────────────── */
.img-text-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 60px 0;
}
 
.img-text-block.reverse { direction: rtl; }
.img-text-block.reverse > * { direction: ltr; }
 
.img-text-block img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}
 
@media (max-width: 768px) {
  .img-text-block { grid-template-columns: 1fr; gap: 30px; }
  .img-text-block.reverse { direction: ltr; }
}
 
/* ─── CARDS ───────────────────────────────────────────────── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}
 
.card {
  background: white;
  border: 1px solid var(--craft-border);
  border-top: 4px solid var(--craft-red);
  padding: 32px 28px;
  border-radius: 4px;
  transition: transform var(--transition), box-shadow var(--transition);
}
 
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(34,50,61,0.12);
}
 
.card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--craft-navy-dark);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
 
.card-text {
  font-size: 14px;
  color: var(--craft-text-muted);
  line-height: 1.7;
  font-weight: var(--pb-weight);
}
 
/* ─── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  background: var(--craft-red);
  padding: 40px 8%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 30px;
  text-align: center;
}
 
.stat-item .stat-number {
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 800;
  color: white;
  line-height: 1;
}
 
.stat-item .stat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.8);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-top: 6px;
  font-weight: 500;
}
 
/* ─── NAVY BREAK — separa dos secciones navy consecutivas ─── */
.navy-break {
  background: #E8F2F6;           /* celeste muy claro, casi blanco azulado */
  position: relative;
  overflow: hidden;
}

/* Watermark tipográfico — "CRAFT" gigante como en la referencia */
.navy-break::before {
  content: 'CRAFT';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26vw;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #B8CFD8;
  white-space: nowrap;
  line-height: 1;
  text-align: center;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

/* Contenido encima del watermark */
.navy-break > * { position: relative; z-index: 1; }

/* Textos sobre fondo celeste claro */
.navy-break h2 { color: var(--craft-navy-dark); }
.navy-break h2 em { color: var(--craft-red); font-style: normal; }
.navy-break p { color: rgba(34,50,61,0.75); }
.navy-break .about-feature {
  background: rgba(34,50,61,0.05);
  border: 1px solid rgba(34,50,61,0.10);
}
.navy-break .about-feature h4 { color: var(--craft-navy-dark); }
.navy-break .about-feature p { color: rgba(34,50,61,0.6); opacity: 1; }
.navy-break a.btn-primary { background: var(--craft-navy-dark); }
.navy-break a.btn-primary:hover { background: #1a2830; }
.navy-break a.btn-secondary {
  border-color: rgba(34,50,61,0.35);
  color: var(--craft-navy-dark);
}
.navy-break .vol-fact {
  background: rgba(34,50,61,0.05);
  border: 1px solid rgba(34,50,61,0.10);
  border-left: 3px solid var(--craft-red);
}
.navy-break .vol-fact strong { color: var(--craft-navy-dark); }
.navy-break .vol-fact p { color: rgba(34,50,61,0.6); opacity: 1; }
.navy-break .st-card {
  background: rgba(34,50,61,0.05);
  border: 1px solid rgba(34,50,61,0.10);
}
.navy-break .st-title { color: var(--craft-navy-dark); }
.navy-break .st-text { color: rgba(34,50,61,0.6); }
.navy-break .sav-item {
  background: rgba(34,50,61,0.05);
  border: 1px solid rgba(34,50,61,0.10);
}
.navy-break .sav-text strong { color: var(--craft-navy-dark); }
.navy-break .sav-text span { color: rgba(34,50,61,0.6); }

/* ─── FOOTER ──────────────────────────────────────────────── */
#craft-footer {
  background: var(--craft-navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 60px 8% 30px;
  border-top: 4px solid var(--craft-red);
  margin-top: 0;
}
 
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 50px;
  margin-bottom: 50px;
}
 
.footer-logo {
  height: 30px;
  width: auto;
  filter: brightness(0) invert(1);
  margin-bottom: 20px;
}
 
.footer-desc {
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
  font-weight: var(--pb-weight);
}
 
.footer-heading {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--craft-red);
  margin-bottom: 16px;
}
 
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
 
.footer-links a {
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 13px;
  transition: color var(--transition);
  font-weight: var(--pb-weight);
}
 
.footer-links a:hover { color: white; }
 
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255,255,255,0.35);
}
 
@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}
 
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .section, .section-full, .section-dark { padding: 60px 5%; }
  .hero-content { padding: 60px 5%; }
}
 
/* ─── VIDEO SECTION ───────────────────────────────────────── */
.video-hero {
  position: relative;
  height: 500px;
  overflow: hidden;
}
 
.video-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
 
.video-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(34,50,61,0.85) 40%, transparent);
  display: flex;
  align-items: center;
  padding: 0 8%;
}
 
.video-hero-text { max-width: 500px; }
 
.video-hero-text h2 {
  font-size: clamp(28px, 4vw, 52px);
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
  margin-bottom: 16px;
}
 
.video-hero-text p {
  color: rgba(255,255,255,0.75);
  font-size: 15px;
  font-weight: var(--pb-weight);
  line-height: 1.7;
}
 
/* ─── ACTIVE PAGE MARKER ──────────────────────────────────── */
.page-breadcrumb {
  background: var(--craft-gray-light);
  padding: 12px 8%;
  font-size: 12px;
  color: var(--craft-text-muted);
  border-bottom: 1px solid var(--craft-border);
}
 
.page-breadcrumb a {
  color: var(--craft-navy-dark);
  text-decoration: none;
  font-weight: 600;
}
 
.page-breadcrumb span { color: var(--craft-red); margin: 0 8px; }
 
/* Trucking placeholder */
.lorem-section {
  background: var(--craft-gray-light);
  border-left: 4px solid var(--craft-red);
  padding: 30px;
  margin: 30px 0;
  border-radius: 0 4px 4px 0;
}


/* ─── Video de presentacion ─────────────────────────────────────────── */
/* VIDEO HERO reutilizable */
    .service-video-hero {
      position: relative;
      height: 600px;
      overflow: hidden;
    }
    .service-video-hero video {
      width: 100%; height: 100%;
      object-fit: cover;
    }
    .service-video-overlay {
      position: absolute;
      inset: 0;
      background: linear-gradient(to right, rgba(34,50,61,0.92) 45%, rgba(34,50,61,0.3) 100%);
      display: flex;
      align-items: center;
      padding: 0 8%;
    }
.svo-content { max-width: 600px; position: relative; z-index: 2; }
/* ══════════════════════════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   Inyectado via nav.js — disponible en todas las páginas
   ══════════════════════════════════════════════════════════ */

/* Botón flotante */
#wa-float-btn {
  position: fixed;
  bottom: 28px;
  right: 100px;
  z-index: 9999;
  cursor: pointer;
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  box-shadow: 0 4px 20px rgba(0,0,0,0.20);
  border: none;
  padding: 0;
  transition: box-shadow 0.3s, transform 0.2s;
}

#wa-float-btn img {
  width: 5rem;
  height: 5rem;
  border-radius: 50%;
  animation: wa-spin 6s linear infinite;
  display: block;
}

/* Gira constantemente — se pausa con hover */
@keyframes wa-spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

#wa-float-btn:hover {
  box-shadow: 0 8px 32px rgba(37,211,102,0.35);
  transform: scale(1.08);
}

#wa-float-btn:hover img {
  animation-play-state: paused;
}

/* Pulso de atención */
#wa-float-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37,211,102,0.2);
  animation: wa-pulse 2.5s ease-out infinite;
  z-index: -1;
}

@keyframes wa-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  70%  { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Panel del chat */
#wa-chat-panel {
  position: fixed;
  bottom: 100px;
  right: 100px;
  z-index: 9998;
  width: 320px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  overflow: hidden;
  transform: scale(0.85) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1), opacity 0.28s ease;
}

#wa-chat-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: all;
}

/* Header del chat */
.wa-chat-header {
  background: #25D366;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.wa-chat-header-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  overflow: hidden;
}

.wa-chat-header-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.wa-chat-header-info { flex: 1; }

.wa-chat-header-name {
  font-size: 15px;
  font-weight: 700;
  color: white;
  line-height: 1.2;
}

.wa-chat-header-status {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
  margin-top: 2px;
}

.wa-chat-header-status::before {
  content: '●';
  font-size: 8px;
  margin-right: 4px;
  vertical-align: middle;
}

.wa-chat-close {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}

.wa-chat-close:hover { background: rgba(255,255,255,0.35); }

/* Burbuja de mensaje */
.wa-chat-body {
  padding: 18px 16px 14px;
  background: #ECE5DD;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1' fill='rgba(0,0,0,0.04)'/%3E%3C/svg%3E");
}

.wa-chat-bubble {
  background: white;
  border-radius: 0 12px 12px 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: #303030;
  line-height: 1.5;
  max-width: 85%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.12);
  position: relative;
  display: inline-block;
}

.wa-chat-bubble::before {
  content: '';
  position: absolute;
  top: 0; left: -8px;
  border-width: 0 8px 8px 0;
  border-style: solid;
  border-color: transparent white transparent transparent;
}

.wa-chat-time {
  font-size: 10px;
  color: #8696A0;
  text-align: right;
  margin-top: 4px;
}

/* Input área */
.wa-chat-footer {
  padding: 12px 14px;
  background: #F0F2F5;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #E8E8E8;
}

.wa-chat-input {
  flex: 1;
  border: none;
  background: white;
  border-radius: 20px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font-family);
  outline: none;
  color: #303030;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.wa-chat-input::placeholder { color: #A0A0A0; }

.wa-chat-send {
  width: 40px;
  height: 40px;
  background: #25D366;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}

.wa-chat-send:hover { background: #1ebe5d; transform: scale(1.08); }

.wa-chat-send svg {
  width: 18px;
  height: 18px;
  fill: white;
}

/* Aviso de privacidad */
.wa-chat-disclaimer {
  font-size: 10px;
  color: #8696A0;
  text-align: center;
  padding: 6px 16px 10px;
  background: #F0F2F5;
}

@media (max-width: 480px) {
  #wa-chat-panel { width: calc(100vw - 24px); right: 12px; }
  #wa-float-btn  { right: 16px; bottom: 20px; }
}
