/* Tipografía fluida y contenedores responsivos */
:root {
  /* escala fluida base */
  --fs-0: clamp(0.9rem, 0.3vw + 0.8rem, 1rem);
  --fs-1: clamp(1rem, 0.5vw + 0.9rem, 1.125rem);
  --fs-2: clamp(1.125rem, 0.8vw + 1rem, 1.35rem);
  --fs-3: clamp(1.35rem, 1.2vw + 1.1rem, 1.8rem);
  --fs-4: clamp(1.8rem, 1.8vw + 1.2rem, 2.4rem);
  --burdeos: #800020;
  --burdeos-claro: #a8324a;
  --fondo: #fcf8fa;
  --gris: #f3e7ed;
  --negro: #1b0e14;
  --fuente-titulos: 'Playfair Display', serif;
  --fuente-cuerpo: 'Lato', sans-serif;
}

html { font-size: 100%; }
body {
  background: var(--fondo);
  font-family: var(--fuente-cuerpo);
  color: var(--negro);
  margin: 0;
  padding: 0;
  font-size: var(--fs-1);
  line-height: 1.6;
}

h1 {
  font-family: var(--fuente-titulos);
  color: var(--burdeos);
  font-size: var(--fs-4);
}
h2 {
  font-family: var(--fuente-titulos);
  color: var(--burdeos);
  font-size: var(--fs-3);
}
h3 {
  font-family: var(--fuente-titulos);
  color: var(--burdeos);
  font-size: var(--fs-2);
}
.titulo {
  font-family: var(--fuente-titulos);
  color: var(--burdeos);
}

/* Espaciado de secciones adaptable */
.section { padding: clamp(1.25rem, 2.2vw, 2rem) 0; }

/* Navbar refinado (limpio, con píldoras y sin punteados) */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 1px solid #f0d9e2;
  box-shadow: 0 4px 16px rgba(27,14,20,0.06);
}
/* eliminar borde punteado heredado */
.navbar::after { content: none !important; border: 0 !important; }

.navbar .container-xxl{ min-height: 64px; padding: .5rem 1rem; }
.navbar__menu{
  display:flex; align-items:center; gap: clamp(.7rem, 2vw, 1.4rem);
}
/* Enlaces en formato píldora */
.navbar__menu a{
  position: relative; text-decoration:none; color: #4a2b36; font-weight: 700; letter-spacing: 0;
  padding: .45rem .8rem; border-radius: 999px; transition: color .2s ease, background-color .2s ease, transform .15s ease;
}
/* quitar subrayado punteado previo */
.navbar__menu a::after{ content: none !important; }
.navbar__menu a:hover{ background: var(--gris); color: var(--burdeos); }
.navbar__menu a:focus-visible{ outline: none; box-shadow: 0 0 0 3px rgba(128,0,32,.18); }
/* estado activo opcional */
.navbar__menu a.is-active, .navbar__menu a[aria-current="page"]{ background: var(--burdeos); color:#fff; }

/* Social en navbar con hover sutil */
.navbar__social a{ width:36px; height:36px; border-radius:50%; display:inline-flex; align-items:center; justify-content:center; background: transparent; transition: background .2s ease, transform .2s ease; }
.navbar__social a:hover{ background: var(--gris); transform: translateY(-1px); }

/* Menú móvil como tarjeta */
@media (max-width: 900px){
  .navbar__menu { position:absolute; left:.5rem; right:.5rem; top: calc(100% + 6px); background:#fff; border:1px solid #f0d9e2; border-radius: .8rem; box-shadow: 0 12px 32px rgba(27,14,20,.08); display:none; flex-direction:column; gap:.25rem; padding:.75rem; }
  .navbar__menu.is-open { display:flex; }
  .navbar__menu a{ padding:.6rem .9rem; }
}

/* Toggle */
.navbar__toggle { display:none; background:transparent; border:none; width:40px; height:40px; position:relative; padding:0; }
.navbar__toggle span { position:absolute; left:8px; right:8px; height:3px; background:var(--burdeos); border-radius:3px; transition: transform .2s ease, opacity .2s ease, top .2s ease; }
.navbar__toggle span:nth-child(1){ top:12px; }
.navbar__toggle span:nth-child(2){ top:18px; }
.navbar__toggle span:nth-child(3){ top:24px; }
.navbar__toggle[aria-expanded="true"] span:nth-child(1){ top:18px; transform: rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3){ top:18px; transform: rotate(-45deg); }

@media (max-width: 900px){
  .navbar__toggle { display:block; }
  .navbar__menu { position:absolute; left:0; right:0; top:68px; background:#fff; border-bottom:1px solid #f0d9e2; display:none; flex-direction:column; gap:1rem; padding:1rem; }
  .navbar__menu.is-open { display:flex; }
}

/* Animaciones y botones */
.animar {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(.4,0,.2,1), transform 0.8s cubic-bezier(.4,0,.2,1);
}

.animar.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Botones estandarizados (mismo look que flechas del carrusel) */
.boton-llamativo {
  background: var(--burdeos);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: .8rem 1.4rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  box-shadow: 0 4px 16px rgba(128,0,32,0.15);
  transition: background .2s ease, transform .15s ease, box-shadow .2s ease;
}
.boton-llamativo:hover {
  background: var(--burdeos-claro);
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 8px 22px rgba(128,0,32,0.18);
}
.boton-llamativo:active { transform: translateY(0) scale(.99); }
.boton-llamativo:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(128,0,32,0.15), 0 4px 16px rgba(128,0,32,0.15); }

/* Botón contorno a juego */
.btn-ghost {
  border: 2px solid var(--burdeos);
  color: var(--burdeos) !important;
  background: #fff;
  border-radius: 999px;
  padding: .8rem 1.4rem;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  transition: background .2s ease, color .2s ease, transform .15s ease, box-shadow .2s ease;
}
.btn-ghost:hover { background: var(--burdeos); color: #fff !important; transform: translateY(-1px) scale(1.03); box-shadow: 0 8px 22px rgba(128,0,32,0.18); }
.btn-ghost:focus-visible { outline: none; box-shadow: 0 0 0 4px rgba(128,0,32,0.15); }

/* Bordes, enlaces y detalles en burdeos */
a, .text-\[\#1b0e14\], .text-\[\#974e73\] {
  color: var(--burdeos) !important;
}

header, footer, .rounded-lg, .border-b {
  border-color: var(--burdeos-claro) !important;
}

/* Layout base */
/* Se elimina la regla .container para no sobrescribir Bootstrap */
.navbar__icon { height:24px; width:24px; filter:invert(13%) sepia(80%) saturate(7472%) hue-rotate(320deg) brightness(80%) contrast(110%); }

/* Hero */
.hero {
  background: linear-gradient(rgba(128,0,32,.55), rgba(128,0,32,.25)), url('https://images.unsplash.com/photo-1517841905240-472988babdf9?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat;
  min-height: 62vh;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  border-radius: 1.5rem;
  margin: 2rem 0;
  padding: 3rem 1.2rem;
  color: #fff;
}
.hero .titulo { color:#fff; font-size: clamp(2rem, 6vw, 3rem); margin: 0 0 .75rem; }
.hero-desc { color:#fff; font-size:1.1rem; max-width:760px; margin: 0 auto; }
.btn-pill { border-radius: 999px; padding: .8rem 1.4rem; display:inline-block; text-decoration:none; font-weight:700; }

/* --- Secciones estilo Interi --- */
/* Hero split */
.hero-split { padding: 3rem 0 1rem; }
.eyebrow { display:inline-block; color: var(--burdeos); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; font-size: .8rem; margin-bottom: .6rem; }
.lead { font-size: 1.1rem; margin: .5rem 0 1rem; color: #4a2b36; }
  .hero-photo {
  width: clamp(220px, 42vw, 520px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(140,24,53,.06), rgba(140,24,53,0) 60%),
    url("Images/Fondo.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  margin: 0 auto; /* centrar dentro de la columna */
  box-shadow: 0 12px 32px rgba(128,0,32,0.16);
}
/* Anula alturas mínimas heredadas para mantener el círculo perfecto */
.hero-photo { 
  min-height: 0 !important;
  border: 25px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}
@media (max-width: 480px){ 
  .hero-photo { 
    background-position: 50% 40%;
    border-width: 15px; /* Borde más delgado en móviles */
  } 
}
/* KPIs */
.kpis { padding: 1.5rem 0 0.5rem; }
.kpi { background:#fff; border:1px solid #f0d9e2; border-radius:1rem; padding: 1rem; box-shadow: 0 4px 18px rgba(128,0,32,0.06); }
.kpi-num { display:block; font-family: var(--fuente-titulos); color: var(--burdeos); font-size: 1.8rem; line-height:1; margin-bottom:.25rem; }
.kpi-label { display:block; font-size: .9rem; color:#5c3a45; }

/* Proyectos / Trabajos */
.proyectos-grid { margin-top: .5rem; }
.proyecto-card { position: relative; display:block; border-radius: 1rem; overflow: hidden; box-shadow: 0 6px 20px rgba(128,0,32,0.10); transition: transform .25s ease, box-shadow .25s ease; }
.proyecto-card:hover { transform: translateY(-4px); box-shadow: 0 10px 28px rgba(128,0,32,0.16); }
.proyecto-img { width: 100%; display:block; transition: transform .6s cubic-bezier(.4,0,.2,1); }
.proyecto-card:hover .proyecto-img { transform: scale(1.06); }
.proyecto-overlay { position:absolute; inset:0; display:flex; align-items:flex-end; justify-content:flex-start; background: linear-gradient(to top, rgba(27,14,20,.65), rgba(27,14,20,0)); padding: 1rem; color:#fff; }
.proyecto-overlay span { font-weight:700; letter-spacing:.02em; }

/* Proceso */
.proceso-steps { display:grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; margin-top: .75rem; }
.proceso-step { background:#fff; border:1px solid #f0d9e2; border-radius:1rem; padding: 1.5rem; position:relative; box-shadow: 0 4px 18px rgba(128,0,32,0.06); transition: transform .2s ease, box-shadow .2s ease; }
.proceso-step:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(128,0,32,0.14); }
.proceso-num { position:absolute; top:12px; right:16px; font-family: var(--fuente-titulos); font-weight:900; color: var(--burdeos-claro); opacity:.2; font-size: 2rem; }

/* --- Carrusel de Servicios: estilo multi-item con scroll-snap --- */
.owl-carrusel-section { width: 100%; max-width: 1400px; margin: 2rem auto; position: relative; }
.owl-carrusel {
  display: flex;
  gap: 0;
  overflow: hidden;
  padding: .5rem;
  position: relative;
  width: 100%;
  scroll-snap-type: none;
  scroll-behavior: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
/* ocultar scrollbar en navegadores WebKit */
.owl-carrusel::-webkit-scrollbar { display: none; }
/* Track interno que se desliza (como en Testimonios) */
.owl-track { display:flex; gap: 1rem; will-change: transform; transition: transform 600ms cubic-bezier(.4,0,.2,1); }
/* Cursores y estados durante arrastre */
.owl-carrusel { cursor: grab; }
.owl-carrusel.is-dragging { cursor: grabbing; scroll-behavior: auto; }
/* Solo durante arrastre, evitar efectos hover que corten la sensación del drag */
.owl-carrusel.is-dragging .owl-img { transition: none !important; }
/* Durante animación programática, desactivar hover para no cortar la transición */
.owl-carrusel.is-animating .owl-item:hover { transform: none !important; box-shadow: 0 4px 24px rgba(128,0,32,0.10) !important; }
.owl-carrusel.is-animating .owl-item:hover .owl-img { transform: none !important; box-shadow: 0 4px 24px rgba(128,0,32,0.10) !important; }
/* Durante arrastre, deshabilitar selección de texto en todo el carrusel */
.owl-carrusel.is-dragging, .owl-carrusel.is-dragging * { user-select: none !important; }
/* Relajar el snap durante el arrastre para suavidad */
.owl-carrusel.snap-proximity { scroll-snap-type: x proximity; }
.owl-item {
  flex: 0 0 100%; /* móvil: 1 por vista */
  max-width: 100%;
  scroll-snap-align: center;
  box-sizing: border-box;
  background: #fff;
  border-radius: 1.2rem;
  box-shadow: 0 4px 24px rgba(128,0,32,0.10);
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform .35s ease, box-shadow .35s ease;
}
.owl-item:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(128,0,32,0.16); }
.owl-img { width: 260px; max-width: 90%; border-radius: 1rem; box-shadow: 0 4px 24px rgba(128,0,32,0.10); margin-bottom: 1rem; transition: transform 0.5s cubic-bezier(.4,0,.2,1); }
.owl-item:hover .owl-img { transform: scale(1.06); box-shadow: 0 10px 30px rgba(128,0,32,0.20); filter: saturate(1.05) contrast(1.03) brightness(1.02); }
.owl-controls { display: flex; justify-content: center; gap: 1rem; margin-top: 1rem; }
.owl-controls button { background: var(--burdeos); color: #fff; border: none; border-radius: 50%; width: 44px; height: 44px; font-size: 1.3rem; cursor: pointer; box-shadow: 0 2px 8px rgba(128,0,32,0.10); transition: background 0.2s, transform 0.2s; }
.owl-controls button:hover { background: var(--burdeos-claro); transform: scale(1.08); }

/* Dots de paginación */
.owl-dots { display: flex; justify-content: center; align-items: center; gap: .5rem; margin-top: .5rem; }
.owl-dot { width: 10px; height: 10px; border-radius: 999px; background: #e6cfd7; border: none; padding: 0; cursor: pointer; transition: background .2s ease, transform .2s ease, width .2s ease; }
.owl-dot:hover { transform: scale(1.15); }
.owl-dot.active { width: 24px; background: var(--burdeos); }

@media (min-width: 768px) { .owl-item { flex-basis: calc(50% - 1rem); } }
@media (min-width: 992px) { .owl-item { flex-basis: calc(33.333% - 1rem); } }

  /* Responsivo menor */
  @media (max-width: 600px) {
    .owl-carrusel-section {
      padding: 0.5rem 0;
      margin: 1rem 0;
    }
    .owl-wrap {
      padding: 0 0.5rem !important;
    }
    .owl-carrusel {
      gap: 0.5rem;
      scroll-snap-type: x mandatory;
      overflow-x: auto;
      padding-bottom: 0.5rem;
    }
    .owl-track {
      display: flex;
      transition: transform 0.5s ease;
      width: 100%;
    }
    .owl-item {
      min-width: 80vw;
      max-width: 80vw;
      flex: 0 0 80vw;
      margin: 0;
      border-radius: 1rem;
      box-shadow: 0 2px 12px rgba(128,0,32,0.10);
      padding: 0.7rem 0.4rem 1rem;
    }
    .owl-img {
      width: 100%;
      max-width: 100%;
      aspect-ratio: 4/3;
      object-fit: cover;
      border-radius: 0.8rem;
      margin-bottom: 0.7rem;
    }
    .section-title {
      font-size: 1.3rem;
      margin-bottom: 0.7rem;
    }
    .owl-arrow {
      width: 38px;
      height: 38px;
      font-size: 1.1rem;
      margin: 0 0.2rem;
      position: static;
      box-shadow: 0 2px 8px rgba(128,0,32,0.10);
    }
    .owl-dots {
      margin-top: 0.3rem;
      gap: 0.3rem;
      justify-content: center;
    }
    .owl-dot {
      width: 8px;
      height: 8px;
    }
}
@media (max-width: 992px) { .hero-photo { min-height: 280px; } }
@media (max-width: 600px) { .hero-split { padding: 2rem 0 .5rem; } }

/* ---- Refuerzos responsive globales ---- */
/* Títulos de sección y espaciado armónico */
.section-title { text-align: center; margin-bottom: clamp(.6rem, 1.8vw, 1.1rem); }

/* Ajustes de hero y gutters en móviles */
@media (max-width: 576px){
  .hero-split .row { --bs-gutter-x: 1rem; }
}

/* Navbar: enlaces más cómodos en móvil */
@media (max-width: 900px){
  .navbar__menu a { padding: .4rem 0; font-size: var(--fs-1); }
}

/* Evitar desbordes de texto en bloques largos */
.carrusel-text, .historia-text, .ubicacion-direccion { overflow-wrap: anywhere; }

/* Imágenes de Servicios con relación 4:3 para uniformidad */
.owl-img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; user-select: none; -webkit-user-drag: none; }

/* Foto historia, bordes suaves y size adaptable */
.historia-foto { border-radius: .75rem; max-width: min(320px, 90%); height: auto; }

/* Dots del carrusel: separaciones en pantallas pequeñas */
@media (max-width: 480px){ .owl-dots, #testi-dots { gap: .35rem; margin-top: .35rem; } }

/* Alturas del mapa afinadas por rango */
@media (max-width: 768px){ .mapa-embed { height: 300px; } }
@media (min-width: 1440px){ .mapa-embed { height: 460px; } }

/* Soporte extra-pequeño (≤360px) */
@media (max-width: 360px){
  .navbar__logo img { height: 32px; }
  .boton-llamativo, .btn-ghost { padding: .6rem .9rem; font-size: var(--fs-0); }
  .owl-wrap, .testi-wrap { grid-template-columns: 28px 1fr 28px; }
}

/* Accesibilidad: reduce motion si el usuario lo prefiere */
@media (prefers-reduced-motion: reduce){
  * { scroll-behavior: auto !important; }
  .animar { transition: none !important; transform: none !important; }
}

/* --- Testimonios: card elegante con fade --- */
.carrusel-section { display: flex; justify-content: center; }
.carrusel { position: relative; max-width: 820px; margin: 0 auto; min-height: 220px; }
.carrusel-slide { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: #fff; border: 1px solid #f0d9e2; border-radius: 1rem; padding: 2rem 1.5rem; box-shadow: 0 6px 22px rgba(128,0,32,0.08); opacity: 0; transform: translateY(8px) scale(.98); transition: opacity .5s ease, transform .5s ease; }
.carrusel-slide.active { opacity: 1; transform: translateY(0) scale(1); }
.carrusel-text { font-size: 1.1rem; color: #4a2b36; margin-bottom: .5rem; }
.carrusel-author { color: var(--burdeos); font-weight: 700; }
.carrusel-slide::before { content: '“'; position: absolute; top: 10px; left: 16px; font-family: var(--fuente-titulos); font-size: 4rem; line-height: 1; color: var(--burdeos); opacity: .12; pointer-events: none; }

/* Carrusel de testimonios (grande y deslizante) */
#carrusel-testimonios { overflow: hidden; width: 100%; }
#carrusel-testimonios .carrusel-track {
  display: flex;
  gap: 1rem;
  will-change: transform;
}
#carrusel-testimonios .carrusel-slide {
  min-width: 100%;
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #f0d9e2;
  border-radius: 1rem;
  padding: 2.2rem 1.6rem;
  box-shadow: 0 8px 26px rgba(128,0,32,0.10);
  text-align: center;
  position: relative;
}
#carrusel-testimonios .carrusel-text { font-size: clamp(1.1rem, 2.2vw, 1.6rem); color:#4a2b36; margin-bottom: .6rem; }
#carrusel-testimonios .carrusel-author { color: var(--burdeos); font-weight: 700; }
#carrusel-testimonios .carrusel-slide::before { content: '“'; position:absolute; top:12px; left:16px; font-family: var(--fuente-titulos); font-size: 4.5rem; color: var(--burdeos); opacity: .12; }

@media (min-width: 768px) {
  #carrusel-testimonios .carrusel-slide { padding: 3rem 2.2rem; }
}

/* Fix carrusel testimonios: resetear estilos de fade y ajustar track */
#carrusel-testimonios .carrusel-track { gap: 0; }
#carrusel-testimonios .carrusel-slide {
  position: relative !important;
  opacity: 1 !important;
  transform: none !important;
  inset: auto !important;
  transition: none !important;
}

/* --- Ubicación: mapa con tarjeta y call-to-action --- */
.ubicacion-contenedor { border-radius: 1rem; overflow: hidden; border: 1px solid #f0d9e2; box-shadow: 0 6px 22px rgba(128,0,32,0.08); }
.mapa { width: 100%; height: 320px; background-size: cover; background-position: center; }
.ubicacion-direccion { text-align: center; color: #5c3a45; margin: .75rem 0 0; }
.acciones-contacto { margin-top: .75rem; display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }

/* --- Contacto: formulario moderno --- */
.form-contacto { max-width: 720px; margin: 0 auto; display: grid; gap: .75rem; }
.form-contacto input, .form-contacto textarea { width: 100%; background: #fff; border: 1px solid #f0d9e2; border-radius: .8rem; padding: .85rem 1rem; font-family: var(--fuente-cuerpo); color: var(--negro); box-shadow: 0 2px 10px rgba(128,0,32,0.05) inset; transition: border-color .2s ease, box-shadow .2s ease; }
.form-contacto textarea { min-height: 140px; resize: vertical; }
.form-contacto input:focus, .form-contacto textarea:focus { outline: none; border-color: var(--burdeos); box-shadow: 0 0 0 4px rgba(128,0,32,0.12), 0 2px 10px rgba(128,0,32,0.05) inset; }
.form-contacto .boton-llamativo { align-self: start; border-radius: 999px; padding: .85rem 1.4rem; }
.contacto-ayuda { text-align: center; color: #5c3a45; margin-top: .75rem; }

@media (max-width: 600px) {
  .carrusel { min-height: 200px; padding: 0 .25rem; }
  .carrusel-slide { padding: 1.5rem 1rem; }
  .mapa { height: 240px; }
}

/* --- Footer elegante --- */
.site-footer { position: relative; background: linear-gradient(180deg, #fff 0%, var(--fondo) 100%); border-top: 0; margin-top: clamp(2rem, 5vw, 4rem); }
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 0;
  border-top: 3px dashed rgba(128,0,32,.35);
}
.site-footer .container-xxl { padding-top: clamp(1.25rem, 3vw, 2.5rem); padding-bottom: clamp(1rem, 2.5vw, 2rem); }
.footer-columns { display:grid; grid-template-columns: 1.2fr .8fr .9fr; gap: clamp(1rem, 2.5vw, 2rem); }
.footer-top { padding-bottom: 1rem; }
.footer-brand { margin-bottom: .5rem; }
.footer-logo { height: clamp(46px, 2.5vw + 36px, 62px); width: auto; border-radius: .4rem; box-shadow: 0 2px 10px rgba(128,0,32,0.08); background: #fff; padding: .25rem; }
.brand-name { font-family: var(--fuente-titulos); font-weight: 900; color: var(--burdeos); font-size: clamp(1.15rem, 0.8vw + 1rem, 1.5rem); letter-spacing: .01em; }
.footer-tagline { color: #5c3a45; margin: .25rem 0 0; font-size: .98rem; }

.footer-heading { font-family: var(--fuente-titulos); color: var(--burdeos); font-weight: 900; font-size: clamp(1rem, 0.5vw + 0.95rem, 1.2rem); margin-bottom: .5rem; }
.footer-links-list, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links-list li, .footer-contact li { margin: .3rem 0; }
.footer-links-list a, .footer-contact a { color: #4a2b36; font-size: var(--fs-1); }
.footer-links-list a:hover, .footer-contact a:hover { color: var(--burdeos); }
.footer-contact li { line-height: 1.6; }

.footer-social { margin-top: .5rem; display: flex; gap: .5rem; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; background: var(--gris); display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 2px 10px rgba(128,0,32,0.06); transition: background .2s ease, transform .2s ease; }
.footer-social a:hover { background: var(--burdeos); transform: translateY(-2px); }
.footer-icon { height: 20px; width: 20px; filter: invert(13%) sepia(80%) saturate(7472%) hue-rotate(320deg) brightness(80%) contrast(110%); transition: filter .2s ease; }
.footer-social a:hover .footer-icon { filter: invert(100%) brightness(100%); }

.footer-bottom { position: relative; border-top: 1px solid #f0d9e2; margin-top: clamp(0.75rem, 1.5vw, 1.25rem); padding-top: clamp(0.6rem, 1.5vw, 1rem); color: #7a5663; display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.footer-bottom::before { content: ""; position:absolute; left:0; right:0; top:-8px; border-top:2px dashed rgba(128,0,32,.2); }

@media (max-width: 600px) {
  .site-footer .container { padding: 1.5rem 1rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* Footer: grilla acorde al estilo del sitio y 100% responsivo */
.footer-columns { display:grid; grid-template-columns: 1.2fr .8fr .9fr; gap: 1rem; }
@media (max-width: 992px){ .footer-columns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px){ .footer-columns { grid-template-columns: 1fr; } }
.footer-links-list a, .footer-contact a { color: #4a2b36; }
.footer-links-list a:hover, .footer-contact a:hover { color: var(--burdeos); }
.footer-contact li { line-height: 1.6; }

/* Contenedores para controles superpuestos */
.owl-wrap, .testi-wrap { position: relative; overflow: visible; }
/* Extender overlay para que las flechas queden fuera del carrusel */
.owl-controls--overlay { position: absolute; top: 0; bottom: 0; left: -56px; right: -56px; pointer-events: none; z-index: 2; overflow: visible; }
.owl-controls--overlay button { position: absolute; top: 50%; transform: translateY(-50%); pointer-events: auto; }
/* Flechas pegadas al borde extendido (fuera del carrusel) */
.owl-controls--overlay #owl-prev, .owl-controls--overlay #testi-prev { left: 0; }
.owl-controls--overlay #owl-next, .owl-controls--overlay #testi-next { right: 0; }

@media (max-width: 900px) {
  .owl-controls--overlay { left: -20px; right: -20px; }
}
@media (max-width: 600px) {
  .owl-controls--overlay { left: 0; right: 0; }
  .owl-controls--overlay button { width:42px; height:42px; }
}

/* --- Ubicaciones con pestañas e iframe --- */
.ubicaciones-tabs { display:flex; gap:.5rem; flex-wrap:wrap; margin-bottom:.6rem; }
.ubicacion-tab { border:1px solid #f0d9e2; background:#fff; color:#5c3a45; border-radius: 999px; padding:.5rem .9rem; font-weight:700; cursor:pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease; }
.ubicacion-tab:hover { background: var(--gris); transform: translateY(-1px); }
.ubicacion-tab.active { background: var(--burdeos); color:#fff; box-shadow: 0 6px 16px rgba(128,0,32,0.20); border-color: transparent; }

.mapa-embed { width: 100%; height: 360px; border: 0; display:block; }
@media (max-width: 600px){ .mapa-embed { height: 260px; } }

/* Mejora rendimiento: render diferido de secciones */
.section { content-visibility: auto; contain-intrinsic-size: 1px 700px; }

@supports not (content-visibility: auto) {
  .section { content-visibility: visible; }
}

/* Reservar espacio lateral para flechas fuera del carrusel */
.owl-wrap, .testi-wrap { padding: 0 56px; }
@media (max-width: 900px){ .owl-wrap, .testi-wrap { padding: 0 20px; } }
@media (max-width: 600px){ .owl-wrap, .testi-wrap { padding: 0; } }

/* Flechas en columnas laterales (enfoque robusto con CSS Grid) */
.owl-wrap, .testi-wrap {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  position: relative;
  overflow: visible;
  padding: 0 !important; /* anula padding lateral previo */
}
.owl-wrap > .owl-carrusel, .testi-wrap > .carrusel-section { grid-column: 2; }
/* El contenedor de controles ya no es overlay absoluto */
.owl-controls--overlay {
  position: static !important;
  inset: auto !important;
  left: auto !important; right: auto !important; top: auto !important; bottom: auto !important;
  display: contents; /* sus hijos participan del grid */
  pointer-events: initial;
  z-index: auto;
}
.owl-controls--overlay button {
  position: static !important;
  transform: none !important;
  pointer-events: auto;
}
/* Ubicar cada flecha en su columna lateral */
#owl-prev, #testi-prev { grid-column: 1; justify-self: center; }
#owl-next, #testi-next { grid-column: 3; justify-self: center; }

@media (max-width: 900px){
  .owl-wrap, .testi-wrap { grid-template-columns: 48px 1fr 48px; }
}
@media (max-width: 600px){
  .owl-wrap, .testi-wrap { grid-template-columns: 36px 1fr 36px; }
  .owl-controls--overlay button { width:40px; height:40px; }
}

/* Evitar desplazamiento vertical en hover de flechas con el nuevo layout */
.owl-controls--overlay button:hover { transform: scale(1.06) !important; }

/* Estilo de flechas como elementos del grid */
.owl-arrow { background: var(--burdeos); color:#fff; border:none; border-radius:50%; width:48px; height:48px; box-shadow: 0 6px 16px rgba(128,0,32,0.20); display:inline-flex; align-items:center; justify-content:center; font-size: 1.3rem; cursor:pointer; transition: background .2s ease, transform .2s ease; }
.owl-arrow:hover { background: var(--burdeos-claro); transform: scale(1.06); }

@media (max-width: 600px){ .owl-arrow { width:40px; height:40px; } }

/* Carrusel de testimonios responsivo */
@media (max-width: 768px) {
  .testi-wrap {
    grid-template-columns: 40px 1fr 40px !important;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  .carrusel-section {
    padding: 0 0.5rem;
  }
  .carrusel-text {
    font-size: 1.05rem;
    line-height: 1.5;
    padding: 0.5rem 0.2rem;
  }
  .carrusel-author {
    font-size: 0.95rem;
  }
  .owl-arrow {
    width: 32px;
    height: 32px;
    font-size: 1.2rem;
  }
  .owl-item {
    flex: 0 0 100%;
  }
}

@media (max-width: 480px) {
  .testi-wrap {
    grid-template-columns: 28px 1fr 28px !important;
    padding-left: 0.2rem;
    padding-right: 0.2rem;
  }
  .carrusel-section {
    padding: 0 0.1rem;
  }
  .carrusel-text {
    font-size: 0.98rem;
    padding: 0.3rem 0.1rem;
  }
  .carrusel-author {
    font-size: 0.85rem;
  }
  .owl-arrow {
    width: 24px;
    height: 24px;
    font-size: 1rem;
  }
}

/* Servicios: afinar tarjetas y gaps en pantallas medianas y chicas */
@media (max-width: 1200px){ .owl-carrusel { gap: .75rem; } }
@media (max-width: 768px){
  .owl-item { padding: 1rem .75rem; }
  .owl-img { max-width: 200px; }
}
@media (max-width: 480px){
  .owl-item { padding: .9rem .5rem; }
  .owl-img { max-width: 180px; }
}

/* Testimonios: controlar ancho y padding del slide según viewport */
@media (max-width: 768px){
  #carrusel-testimonios .carrusel-slide { padding: 2rem 1.25rem; }
}
@media (max-width: 480px){
  #carrusel-testimonios .carrusel-slide { padding: 1.6rem 1rem; }
}

/* Ubicación: alturas del iframe por rango */
@media (min-width: 992px){ .mapa-embed { height: 420px; } }
@media (max-width: 480px){ .mapa-embed { height: 220px; } }

/* Footer: mejorar layout en tablets */
@media (max-width: 992px){
  .footer-bottom { gap: .75rem; }
}

/* Hero */
@media (max-width: 1200px){ .hero-photo { min-height: 320px; } }
@media (max-width: 768px){
  .hero-split .lead { font-size: var(--fs-1); }
  .hero-photo { min-height: 260px; }
}

/* Botones: ajuste de padding y tamaño en pantallas pequeñas */
@media (max-width: 480px){
  .boton-llamativo, .btn-ghost { padding: .7rem 1.1rem; font-size: var(--fs-0); }
}

/* Skip link accesible */
.skip-link { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.skip-link:focus { position: fixed; left: 1rem; top: 1rem; width: auto; height: auto; background: #fff; color: var(--burdeos); padding: .5rem .75rem; border-radius: .5rem; box-shadow: 0 4px 16px rgba(128,0,32,.15); z-index: 1000; }

/* FAQ */
.faq-list { max-width: 900px; margin: 0 auto; }
.faq-list details { background:#fff; border:1px solid #f0d9e2; border-radius: .8rem; padding: .9rem 1rem; margin: .5rem 0; box-shadow: 0 3px 12px rgba(128,0,32,.08); }

/* Estilos mejorados para sección Historia */
#historia .container-fluid {
  padding: 0 1rem;
}

.historia-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #4a2b36;
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
}

.text-center {
  text-align: center;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

.mb-4 {
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .historia-text {
    font-size: 1rem;
    max-width: 100%;
  }
}
.faq-list summary { cursor:pointer; font-weight: 700; color: var(--burdeos); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list details[open] { box-shadow: 0 6px 20px rgba(128,0,32,.10); }
.faq-list p { margin: .6rem 0 0; color:#4a2b36; }
/* FAQ animado */
.faq-content { overflow: hidden; height: 0; transition: height 320ms cubic-bezier(.4,0,.2,1); }
.faq-list details { transition: box-shadow 200ms ease, border-color 200ms ease, background 200ms ease; }
.faq-list details[open] { border-color: #e8c9d4; }
.faq-list summary { display:flex; align-items:center; justify-content:space-between; gap:.6rem; cursor: pointer; }
.faq-list summary::after { content:'+'; font-weight:900; color: var(--burdeos); transition: transform .25s ease; }
.faq-list details[open] > summary::after { content:'−'; transform: rotate(180deg); }

@media (prefers-reduced-motion: reduce){
  .faq-content { transition: none !important; height: auto !important; }
}

/* Barra CTA móvil: ocultar temporalmente en todos los tamaños */
.cta-mobile { display: none !important; }
@media (max-width: 768px){
  .cta-mobile { display: none !important; }
  body { padding-bottom: 0 !important; }
}

/* Opcional: si se desea mostrar solo en orientación vertical y alturas cómodas, 
   reemplazar lo anterior por:
@media (max-width: 768px) and (orientation: portrait) and (min-height: 600px){
  .cta-mobile { display:flex; }
  body { padding-bottom: 68px; }
}
*/
/* Separador (estático, sin animaciones) */
.cut-separator {
  position: relative;
  height: clamp(20px, 3vw, 32px);
  margin: clamp(.5rem, 2vw, 1.25rem) 0 clamp(1rem, 3vw, 2rem);
}
.cut-separator__line {
  position: absolute;
  left: 0; right: 0; top: 50%; transform: translateY(-50%);
  border-top: clamp(2px, .5vw, 3px) dashed var(--burdeos);
  opacity: .75;
}
/* Si el ícono existe en el HTML, se oculta */
.cut-separator__scissor { display: none !important; }
/* Footer: decoraciones y animaciones suaves */
.footer-deco { position: relative; height: 28px; margin-bottom: .75rem; }
.footer-deco__svg { position:absolute; inset:0; width:100%; height:100%; }
.footer-deco__svg path {
  stroke: var(--burdeos);
  stroke-opacity: .35;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  fill: none;
  animation: dash-move 8s linear infinite;
}
@keyframes dash-move { to { stroke-dashoffset: -140; } }

/* Punteado superior del footer como borde elegante */
.site-footer { position: relative; background: linear-gradient(180deg, #fff 0%, var(--fondo) 100%); border-top: 0; }
.site-footer::before {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 0;
  border-top: 3px dashed rgba(128,0,32,.35);
}

/* Tarjetas columnas con hover sutil */
.footer-columns { gap: clamp(1rem, 2.5vw, 2rem); }
.footer-col { background: #fff; border:1px solid #f0d9e2; border-radius: .9rem; padding: clamp(.8rem, 2vw, 1.2rem); box-shadow: 0 6px 22px rgba(128,0,32,0.06); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.footer-col:hover { transform: translateY(-3px); box-shadow: 0 10px 26px rgba(128,0,32,0.10); border-color: #e9cdd7; }
.footer-brand-col { background: linear-gradient(180deg, #fff, #fff7fa); }

/* Enlaces con subrayado animado punteado */
.footer-links-list a, .footer-contact a {
  position: relative; text-decoration: none; color: #4a2b36; font-weight: 700;
}
.footer-links-list a::after, .footer-contact a::after{
  content: ""; position:absolute; left:0; right:0; bottom:-2px; height:0; border-top:2px dotted rgba(128,0,32,.45); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.footer-links-list a:hover::after, .footer-contact a:hover::after{ transform: scaleX(1); }

/* Iconos sociales: pulso muy sutil en hover */
.footer-social a { transition: background .25s ease, transform .25s ease; }
.footer-social a:hover { transform: translateY(-2px) scale(1.04); }

/* Línea punteada separadora antes del bottom */
.footer-bottom { position: relative; }
.footer-bottom::before { content: ""; position:absolute; left:0; right:0; top:-8px; border-top:2px dashed rgba(128,0,32,.2); }

/* Respeto a preferencias de movimiento */
@media (prefers-reduced-motion: reduce){
  .footer-deco__svg path { animation: none !important; }
  .footer-col, .footer-links-list a::after, .footer-social a { transition: none !important; }
}
.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 9999;
  background: #800020;
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(128,0,32,0.10);
  padding: 10px;
  transition: box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  cursor: pointer;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.whatsapp-float:hover {
  box-shadow: 0 8px 24px rgba(128,0,32,0.18);
  background: #a0002a;
}
.whatsapp-float img {
  width: 36px;
  height: 36px;
  filter: brightness(0) invert(1);
}
@media (max-width: 600px) {
  .whatsapp-float {
    right: 12px;
    bottom: 12px;
    width: 44px;
    height: 44px;
    padding: 6px;
  }
  .whatsapp-float img {
    width: 28px;
    height: 28px;
  }
}

.whatsapp-svg-white {
  filter: brightness(0) invert(1);
}