/* ══════════════════════════════════════════════════
   DFP S.A. — Corredor de Seguros
   style.css — Paleta: Bordó #8B1A2A · Carbón #2C2C2C · Blanco/Gris claro
   Tipografía: Montserrat (UI) + Lora (títulos)
══════════════════════════════════════════════════ */

:root {
  /* Colores */
  --wine:       #8B1A2A;
  --wine-dark:  #6b1220;
  --wine-light: #a82235;
  --wine-pale:  #fdf2f3;
  --carbon:     #2C2C2C;
  --carbon2:    #3d3d3d;
  --gray:       #6b7280;
  --gray-l:     #9ca3af;
  --border:     #e5e7eb;
  --bg:         #f7f8fa;
  --white:      #ffffff;
  --gold:       #b89055;
  --gold-l:     #d4aa77;

  /* Tipografía */
  --sans:  'Montserrat', system-ui, sans-serif;
  --serif: 'Lora', Georgia, serif;

  /* Espacios y radios */
  --radius:   8px;
  --radius-lg: 14px;
  --max:      1160px;

  /* Sombras */
  --sh-sm: 0 1px 4px rgba(0,0,0,.07), 0 2px 10px rgba(0,0,0,.06);
  --sh:    0 2px 8px rgba(0,0,0,.07), 0 6px 24px rgba(0,0,0,.08);
  --sh-lg: 0 4px 12px rgba(0,0,0,.08), 0 12px 40px rgba(0,0,0,.12);

  /* Transiciones */
  --t: .28s cubic-bezier(.4,0,.2,1);
}

/* ── Reset ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--sans); color: var(--carbon); background: var(--white); overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { text-decoration: none; color: inherit; }

/* ── Contenedor ─────────────────────────── */
.container { max-width: var(--max); margin: 0 auto; padding: 0 1.5rem; }

/* ── Botones ─────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--wine); color: var(--white);
  padding: .75rem 1.9rem; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 600; font-size: .88rem;
  letter-spacing: .03em; border: none; cursor: pointer;
  transition: background var(--t), transform var(--t), box-shadow var(--t);
  box-shadow: 0 3px 12px rgba(139,26,42,.3);
}
.btn-primary:hover { background: var(--wine-light); transform: translateY(-2px); box-shadow: 0 5px 18px rgba(139,26,42,.38); }
.btn-primary.btn-block { width: 100%; justify-content: center; }

.btn-ghost {
  display: inline-flex; align-items: center; gap: .45rem;
  border: 2px solid rgba(255,255,255,.75); color: var(--white);
  padding: .73rem 1.8rem; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 600; font-size: .88rem;
  transition: all var(--t); background: transparent;
}
.btn-ghost:hover { background: rgba(255,255,255,.15); border-color: white; }

.btn-gold {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--gold); color: var(--white);
  padding: .75rem 1.9rem; border-radius: var(--radius);
  font-family: var(--sans); font-weight: 700; font-size: .88rem;
  transition: all var(--t);
}
.btn-gold:hover { background: var(--gold-l); transform: translateY(-2px); }

/* ── Labels / etiquetas ────────────────── */
.label {
  display: inline-block; font-size: .7rem; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--wine);
  margin-bottom: .7rem;
}
.label-gold { color: var(--gold-l) !important; }

/* ── Cabeceras de sección ──────────────── */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header h2 {
  font-family: var(--serif); font-size: clamp(1.8rem,3.5vw,2.6rem);
  font-weight: 600; line-height: 1.2; color: var(--carbon); margin-bottom: .75rem;
}
.section-header p { color: var(--gray); font-size: .95rem; line-height: 1.7; max-width: 600px; margin: 0 auto; }

.group-title {
  font-family: var(--serif); font-size: 1.35rem; font-weight: 600;
  color: var(--carbon); margin-bottom: 1.6rem;
  padding-bottom: .6rem; border-bottom: 2px solid var(--wine);
  display: inline-block;
}

/* ── Animaciones scroll ────────────────── */
.fade-up {
  opacity: 0; transform: translateY(32px);
  transition: opacity .65s ease, transform .65s ease;
  transition-delay: calc(var(--i, 0) * 80ms);
}
.fade-up.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background var(--t), box-shadow var(--t);
}
#navbar.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border), 0 2px 16px rgba(0,0,0,.06);
}
.nav-container {
  max-width: var(--max); margin: 0 auto;
  padding: 0 1.5rem; height: 120px;
  display: flex; align-items: center; gap: 2.5rem;
}

/* Logo */
.nav-logo img {
  height: 80px; width: auto;
  filter: brightness(0) invert(1);
  transition: height var(--t), filter var(--t);
}
#navbar.scrolled .nav-logo img {
  height: 62px;
  filter: none;
}

/* Links */
.nav-links { display: flex; gap: 1.8rem; margin-left: auto; }
.nav-links a {
  font-size: .85rem; font-weight: 600; letter-spacing: .02em;
  color: rgba(255,255,255,.92); position: relative; padding-bottom: 3px;
  transition: color var(--t);
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 2px; background: var(--white); border-radius: 99px;
  transition: width var(--t);
}
.nav-links a:hover::after { width: 100%; }
#navbar.scrolled .nav-links a { color: var(--carbon2); }
#navbar.scrolled .nav-links a::after { background: var(--wine); }
#navbar.scrolled .nav-links a:hover { color: var(--wine); }

/* CTA navbar */
.nav-cta {
  background: var(--wine); color: var(--white);
  padding: .55rem 1.35rem; border-radius: var(--radius);
  font-weight: 700; font-size: .82rem; white-space: nowrap;
  transition: background var(--t), transform var(--t);
  box-shadow: 0 2px 10px rgba(139,26,42,.3); flex-shrink: 0;
}
.nav-cta:hover { background: var(--wine-light); transform: translateY(-1px); }

/* Hamburger */
.nav-burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: .4rem; margin-left: auto;
}
.nav-burger span {
  display: block; width: 24px; height: 2px; background: white; border-radius: 99px;
  transition: all var(--t);
}
#navbar.scrolled .nav-burger span { background: var(--carbon); }
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none; position: fixed; top: 76px; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--border);
  box-shadow: var(--sh-lg); z-index: 999;
  flex-direction: column; padding: 1rem 1.5rem 1.5rem; gap: .1rem;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  padding: .8rem 0; font-weight: 600; font-size: .9rem;
  color: var(--carbon2); border-bottom: 1px solid var(--bg);
  transition: color var(--t);
}
.nav-mobile a:hover { color: var(--wine); }
.nav-mobile .mobile-cta {
  margin-top: .8rem; text-align: center; display: block;
  background: var(--wine); color: white; border-radius: var(--radius);
  padding: .75rem; border: none; box-shadow: 0 3px 12px rgba(139,26,42,.3);
}

/* ══════════════════════════════════════════
   SLIDER HERO
══════════════════════════════════════════ */
.slider { position: relative; height: 100vh; min-height: 580px; overflow: hidden; }

.slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .8s ease;
  display: flex; align-items: center;
}
.slide.active { opacity: 1; z-index: 1; }

.slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(20,10,15,.78) 0%, rgba(20,10,15,.55) 55%, rgba(20,10,15,.28) 100%);
}
.slide-content {
  position: relative; z-index: 2;
  max-width: var(--max); margin: 0 auto; padding: 0 1.5rem;
  padding-top: 120px;
}
.slide-tag {
  display: inline-block; background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25); color: rgba(255,255,255,.9);
  font-size: .72rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; padding: .35rem 1rem; border-radius: 999px;
  margin-bottom: 1.5rem; backdrop-filter: blur(6px);
}
.slide-content h1 {
  font-family: var(--serif); font-size: clamp(2.6rem,6vw,5rem);
  font-weight: 600; line-height: 1.1; color: var(--white); margin-bottom: 1.2rem;
  max-width: 680px;
}
.slide-content h1 em { color: #f5b8c4; font-style: italic; display: block; }
.slide-content p {
  font-size: clamp(.95rem,1.5vw,1.1rem); color: rgba(255,255,255,.82);
  line-height: 1.75; margin-bottom: 2.2rem; max-width: 520px; font-weight: 400;
}
.slide-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Flechas */
.slider-prev, .slider-next {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 10; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25);
  color: white; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: background var(--t), transform var(--t);
  backdrop-filter: blur(6px);
}
.slider-prev { left: 1.5rem; }
.slider-next { right: 1.5rem; }
.slider-prev:hover, .slider-next:hover {
  background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.08);
}

/* Puntos */
.slider-dots {
  position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; gap: .6rem;
}
.dot {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.6);
  background: transparent; cursor: pointer; transition: all var(--t);
}
.dot.active { background: white; border-color: white; transform: scale(1.2); }

/* ══════════════════════════════════════════
   BARRA DE ESTADÍSTICAS
══════════════════════════════════════════ */
.stats-bar { background: var(--wine); padding: 2rem 1.5rem; }
.stats-grid {
  display: flex; justify-content: center; align-items: center;
  gap: 0; flex-wrap: wrap;
}
.stat-item { text-align: center; padding: .5rem 3rem; }
.stat-item strong {
  display: block; font-family: var(--serif); font-size: 2.2rem;
  font-weight: 600; color: white; line-height: 1;
}
.stat-item span { font-size: .72rem; color: rgba(255,255,255,.75); text-transform: uppercase; letter-spacing: .1em; margin-top: .3rem; display: block; }
.stat-sep { width: 1px; height: 48px; background: rgba(255,255,255,.25); }

/* ══════════════════════════════════════════
   SERVICIOS
══════════════════════════════════════════ */
.servicios { padding: 6rem 1.5rem; background: var(--white); }

/* Grid personas */
.srv-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1.4rem;
}
.srv-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--sh-sm); transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column;
}
.srv-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }

.srv-img-wrap { height: 175px; overflow: hidden; }
.srv-img-wrap img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.srv-card:hover .srv-img-wrap img { transform: scale(1.05); }

.srv-no-img {
  height: 100px; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.srv-body { padding: 1.4rem 1.3rem; flex: 1; display: flex; flex-direction: column; }
.srv-icon {
  width: 44px; height: 44px; background: var(--wine-pale); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--wine);
  margin-bottom: .9rem; flex-shrink: 0;
  transition: background var(--t), color var(--t);
}
.srv-card:hover .srv-icon { background: var(--wine); color: white; }
.srv-body h4 { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; margin-bottom: .5rem; color: var(--carbon); }
.srv-body p  { font-size: .85rem; color: var(--gray); line-height: 1.65; flex: 1; }
.srv-link {
  margin-top: 1rem; font-size: .82rem; font-weight: 700; color: var(--wine);
  display: inline-flex; align-items: center; gap: .3rem; transition: gap var(--t);
}
.srv-link:hover { gap: .6rem; }

/* Grid empresas */
.emp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.emp-card {
  padding: 1.8rem 1.5rem; background: var(--bg); border-radius: var(--radius-lg);
  border: 1px solid var(--border); transition: all var(--t);
  display: flex; flex-direction: column;
}
.emp-card:hover { background: var(--white); border-color: var(--wine); box-shadow: var(--sh-lg); transform: translateY(-4px); }
.emp-icon {
  width: 46px; height: 46px; background: var(--wine-pale); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--wine);
  margin-bottom: 1rem; transition: background var(--t), color var(--t);
}
.emp-icon svg { width: 22px; height: 22px; }
.emp-card:hover .emp-icon { background: var(--wine); color: white; }
.emp-card h4 { font-family: var(--serif); font-size: 1rem; font-weight: 600; margin-bottom: .5rem; color: var(--carbon); }
.emp-card p  { font-size: .85rem; color: var(--gray); line-height: 1.65; flex: 1; }

/* ══════════════════════════════════════════
   POR QUÉ ELEGIRNOS
══════════════════════════════════════════ */
.why { padding: 6rem 1.5rem; background: var(--bg); }
.why-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem;
}
.why-card {
  background: var(--white); padding: 2rem 1.6rem; border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--sh-sm);
  transition: transform var(--t), box-shadow var(--t);
}
.why-card:hover { transform: translateY(-5px); box-shadow: var(--sh-lg); }
.why-icon {
  width: 50px; height: 50px; background: var(--wine-pale); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: var(--wine);
  margin-bottom: 1.1rem; transition: background var(--t), color var(--t);
}
.why-card:hover .why-icon { background: var(--wine); color: white; }
.why-card h4 { font-size: .95rem; font-weight: 700; margin-bottom: .5rem; color: var(--carbon); }
.why-card p  { font-size: .85rem; color: var(--gray); line-height: 1.65; }

/* ══════════════════════════════════════════
   NOSOTROS
══════════════════════════════════════════ */
.nosotros { padding: 6rem 1.5rem; background: var(--white); }
.nosotros-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }

.nos-img { position: relative; }
.nos-img img { border-radius: var(--radius-lg); box-shadow: var(--sh-lg); width: 100%; }
.nos-img::before {
  content: ''; position: absolute;
  top: -16px; left: -16px; right: 16px; bottom: 16px;
  border: 2px solid rgba(139,26,42,.2); border-radius: var(--radius-lg); z-index: -1;
}
.nos-badge {
  position: absolute; bottom: -16px; right: -16px;
  background: var(--wine); color: white;
  padding: .75rem 1.3rem; border-radius: var(--radius);
  font-size: .78rem; font-weight: 700; display: flex; align-items: center; gap: .5rem;
  box-shadow: 0 6px 20px rgba(139,26,42,.4); letter-spacing: .02em;
}

.nos-text h2 {
  font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.6rem);
  font-weight: 600; line-height: 1.2; color: var(--carbon); margin-bottom: 1.1rem;
}
.nos-text p { font-size: .92rem; color: var(--gray); line-height: 1.8; margin-bottom: 1rem; }
.nos-text p strong { color: var(--carbon); }
.nos-tags { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.4rem 0; }
.nos-tags span {
  background: var(--wine-pale); color: var(--wine);
  padding: .32rem .9rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; border: 1px solid rgba(139,26,42,.15);
}

/* ══════════════════════════════════════════
   SEPELIO
══════════════════════════════════════════ */
.sepelio { position: relative; padding: 7rem 1.5rem; overflow: hidden; color: white; }
.sepelio-bg { position: absolute; inset: 0; z-index: 0; }
.sepelio-bg img { width: 100%; height: 100%; object-fit: cover; }
.sepelio-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(120deg, rgba(15,8,10,.92) 0%, rgba(15,8,10,.78) 55%, rgba(15,8,10,.55) 100%);
}
.sepelio-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; }

.sep-text h2 {
  font-family: var(--serif); font-size: clamp(1.9rem,3.5vw,2.8rem);
  font-weight: 600; line-height: 1.2; margin-bottom: 1.1rem;
}
.sep-text h2 em { color: var(--gold-l); font-style: italic; }
.sep-text p { color: rgba(255,255,255,.78); line-height: 1.8; margin-bottom: 2rem; font-size: .93rem; }

.sep-list {
  background: rgba(255,255,255,.07); backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius-lg); padding: 2.2rem;
}
.sep-list h4 { font-family: var(--serif); font-size: 1.1rem; color: var(--gold-l); margin-bottom: 1.2rem; }
.sep-list ul { list-style: none; display: flex; flex-direction: column; gap: .65rem; margin-bottom: 1.8rem; }
.sep-list li { display: flex; align-items: flex-start; gap: .7rem; font-size: .88rem; color: rgba(255,255,255,.85); line-height: 1.5; }
.sep-list li svg { flex-shrink: 0; margin-top: .18rem; color: var(--gold-l); }
.sep-badge {
  display: inline-block; background: var(--gold); color: white;
  padding: .55rem 1.5rem; border-radius: 999px; font-weight: 700; font-size: .85rem;
}

/* ══════════════════════════════════════════
   CLIENTES
══════════════════════════════════════════ */
.clientes { padding: 5rem 1.5rem; background: var(--bg); overflow: hidden; }
.clients-marquee {
  overflow: hidden; position: relative; margin-top: 2.5rem;
}
.clients-marquee::before,
.clients-marquee::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 100px; z-index: 1;
}
.clients-marquee::before { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.clients-marquee::after  { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.clients-track { display: flex; gap: 1rem; width: max-content; animation: marquee 30s linear infinite; }
.clients-track:hover { animation-play-state: paused; }
.client-chip {
  background: var(--white); border: 1px solid var(--border);
  padding: .8rem 1.8rem; border-radius: 999px;
  font-weight: 600; font-size: .88rem; white-space: nowrap; color: var(--carbon2);
  transition: all var(--t); cursor: default;
}
.client-chip:hover { background: var(--wine); color: white; border-color: var(--wine); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ══════════════════════════════════════════
   CONTACTO
══════════════════════════════════════════ */
.contacto { padding: 6rem 1.5rem; background: var(--white); }
.contacto-inner { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; }

.ctc-info h2 { font-family: var(--serif); font-size: clamp(1.8rem,3vw,2.5rem); font-weight: 600; margin-bottom: .9rem; }
.ctc-info > p { color: var(--gray); line-height: 1.75; margin-bottom: 2rem; font-size: .93rem; }
.ctc-list { display: flex; flex-direction: column; gap: 1.3rem; }
.ctc-item { display: flex; gap: 1rem; align-items: flex-start; }
.ctc-ic {
  width: 42px; height: 42px; background: var(--wine-pale); border-radius: 10px;
  display: flex; align-items: center; justify-content: center; color: var(--wine); flex-shrink: 0;
}
.ctc-ic svg { width: 20px; height: 20px; }
.ctc-item strong { display: block; font-size: .85rem; font-weight: 700; margin-bottom: .15rem; color: var(--carbon); }
.ctc-item p { font-size: .88rem; color: var(--gray); margin: 0; }

.ctc-form {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 2.8rem; box-shadow: var(--sh-lg); border: 1px solid var(--border);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fg { display: flex; flex-direction: column; gap: .4rem; margin-bottom: 1.1rem; }
.fg label { font-size: .78rem; font-weight: 700; color: var(--carbon); letter-spacing: .04em; text-transform: uppercase; }
.fg input, .fg select, .fg textarea {
  padding: .75rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--sans); font-size: .9rem; color: var(--carbon); background: var(--white);
  outline: none; transition: border-color var(--t), box-shadow var(--t);
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--wine); box-shadow: 0 0 0 3px rgba(139,26,42,.1);
}
.fg textarea { resize: vertical; }
.form-note { text-align: center; font-size: .75rem; color: var(--gray-l); margin-top: .7rem; }

/* ══════════════════════════════════════════
   FOOTER
══════════════════════════════════════════ */
.footer { background: var(--carbon); color: rgba(255,255,255,.65); padding: 4.5rem 1.5rem 0; }
.footer-inner {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.ft-logo { height: 58px; width: auto; margin-bottom: 1.2rem; filter: brightness(0) invert(1); opacity: .85; }
.ft-brand p { font-size: .83rem; line-height: 1.75; color: rgba(255,255,255,.45); }
.ft-legal { font-style: italic !important; font-size: .75rem !important; color: rgba(255,255,255,.25) !important; margin-top: .4rem; }
.ft-social { display: flex; gap: .7rem; margin-top: 1.4rem; }
.ft-social a {
  width: 36px; height: 36px; background: rgba(255,255,255,.08);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5); transition: all var(--t);
}
.ft-social a:hover { background: var(--wine); color: white; }
.ft-col h5 { color: white; font-size: .85rem; font-weight: 700; margin-bottom: 1.2rem; letter-spacing: .04em; text-transform: uppercase; }
.ft-col a, .ft-col p { display: block; font-size: .84rem; color: rgba(255,255,255,.5); margin-bottom: .5rem; transition: color var(--t); }
.ft-col a:hover { color: rgba(255,255,255,.9); }
.footer-bottom { padding: 1.4rem 0; text-align: center; font-size: .78rem; color: rgba(255,255,255,.25); }

/* ══════════════════════════════════════════
   CHAT VALENTINA
══════════════════════════════════════════ */
#chatWidget { position: fixed; bottom: 2rem; right: 2rem; z-index: 9000; font-family: var(--sans); }

#chatToggle {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--wine); color: white; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(139,26,42,.5); position: relative; z-index: 2;
  transition: transform var(--t), box-shadow var(--t);
}
#chatToggle:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(139,26,42,.6); }

.chat-ping {
  position: absolute; top: 8px; right: 8px;
  width: 11px; height: 11px; background: #22c55e; border-radius: 50%;
  border: 2px solid white;
}
.chat-ping::after {
  content: ''; position: absolute; inset: -3px;
  background: rgba(34,197,94,.4); border-radius: 50%;
  animation: ping 2s ease infinite;
}
@keyframes ping { 0%,100%{transform:scale(1);opacity:1} 60%{transform:scale(2);opacity:0} }

#chatBox {
  position: absolute; bottom: 74px; right: 0;
  width: 360px; background: white; border-radius: 16px;
  box-shadow: 0 8px 50px rgba(0,0,0,.18), 0 1px 0 rgba(0,0,0,.04);
  border: 1px solid var(--border); overflow: hidden;
  flex-direction: column; max-height: 520px;
  animation: chatPop .32s cubic-bezier(.34,1.56,.64,1);
}
#chatBox.open { display: flex !important; }
@keyframes chatPop { from{opacity:0;transform:scale(.85) translateY(16px)} to{opacity:1;transform:none} }

.chat-head {
  background: linear-gradient(135deg, var(--wine-dark), var(--wine));
  padding: 1rem 1.2rem; display: flex; align-items: center; gap: .85rem; color: white;
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.2); border: 2px solid rgba(255,255,255,.3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem; flex-shrink: 0;
}
.chat-meta { flex: 1; }
.chat-meta strong { display: block; font-size: .93rem; font-weight: 700; }
.chat-meta span { font-size: .72rem; opacity: .82; display: flex; align-items: center; gap: .3rem; }
.chat-dot { display: inline-block; width: 7px; height: 7px; background: #4ade80; border-radius: 50%; animation: ping 2s infinite; }
.chat-x {
  background: none; border: none; color: rgba(255,255,255,.7);
  cursor: pointer; padding: .3rem; border-radius: 6px; transition: all var(--t);
}
.chat-x:hover { background: rgba(255,255,255,.15); color: white; }

.chat-msgs {
  flex: 1; padding: 1rem; overflow-y: auto;
  display: flex; flex-direction: column; gap: .75rem;
  min-height: 200px; max-height: 340px; background: #f8f9fb;
}
.chat-msgs::-webkit-scrollbar { width: 4px; }
.chat-msgs::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }

.cmsg {
  max-width: 86%; padding: .7rem .95rem; border-radius: 14px;
  font-size: .875rem; line-height: 1.55; word-break: break-word;
  animation: msgPop .22s ease;
}
@keyframes msgPop { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
.cmsg.bot { background: white; color: var(--carbon); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--sh-sm); }
.cmsg.user { background: var(--wine); color: white; align-self: flex-end; border-bottom-right-radius: 4px; }
.typing-dots { display: flex; gap: 4px; padding: .15rem 0; }
.typing-dots span { width: 7px; height: 7px; background: var(--gray-l); border-radius: 50%; animation: bounce 1.4s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }
@keyframes bounce { 0%,60%,100%{transform:translateY(0)} 30%{transform:translateY(-7px)} }

.chat-footer {
  display: flex; gap: .6rem; padding: .85rem 1rem;
  border-top: 1px solid var(--border); background: white;
}
#chatInput {
  flex: 1; padding: .6rem .95rem; border: 1.5px solid var(--border);
  border-radius: 999px; font-family: var(--sans); font-size: .88rem;
  color: var(--carbon); outline: none; transition: border-color var(--t);
}
#chatInput:focus { border-color: var(--wine); }
#chatSend {
  width: 38px; height: 38px; background: var(--wine); color: white;
  border: none; border-radius: 50%; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--t), transform var(--t);
}
#chatSend:hover { background: var(--wine-light); transform: scale(1.08); }
.chat-brand { text-align: center; font-size: .7rem; color: var(--gray-l); padding: .35rem 0 .7rem; background: white; }

/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .nosotros-inner { grid-template-columns: 1fr; gap: 3rem; }
  .nos-img::before { display: none; }
  .sepelio-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .ft-brand { grid-column: span 2; }
  .contacto-inner { grid-template-columns: 1fr; gap: 3rem; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .slider { height: 90vh; }
  .slide-content h1 { font-size: clamp(2rem,7vw,3rem); }
  .stats-grid { gap: 0; }
  .stat-item { padding: .5rem 1.5rem; }
  .stat-sep { height: 36px; }
  .why-grid { grid-template-columns: 1fr; }
  .srv-grid { grid-template-columns: 1fr 1fr; }
  .emp-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .ft-brand { grid-column: span 1; }
  .form-row { grid-template-columns: 1fr; }
  #chatBox { width: calc(100vw - 3.5rem); }
}
@media (max-width: 480px) {
  .srv-grid { grid-template-columns: 1fr; }
  .slide-btns { flex-direction: column; align-items: flex-start; }
  .slider-prev, .slider-next { width: 40px; height: 40px; }
}
