/* ==========================================================================
   VEGA & NAVARRO | DESPACHO JURÍDICO - PLANTILLA 5
   Paleta: Nogal (#2D1E18), Cuero (#634832), Arena (#C69C6D),
           Arena Hover (#B88B5B), Texto (#111111), Blanco (#FFFFFF), Crema (#F7F0E8)
   Tipografía: Cormorant Garamond (títulos) + DM Sans (cuerpo, menús, botones)
   ========================================================================== */

/* -------------------- VARIABLES CSS -------------------- */
:root {
  --nogal: #2D1E18;
  --cuero: #634832;
  --arena: #C69C6D;
  --arena-hover: #B88B5B;
  --texto: #111111;
  --blanco: #FFFFFF;
  --crema: #F7F0E8;

  --font-title: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-subtle: 0 10px 30px rgba(45, 30, 24, 0.08);
  --shadow-hover: 0 16px 40px rgba(45, 30, 24, 0.14);
  --shadow-dark: 0 12px 36px rgba(0, 0, 0, 0.28);

  --radius-card: 20px;
  --radius-pill: 9999px;
  --radius-field: 12px;

  --max-width: 1200px;
  --header-height: 68px;
}

/* -------------------- RESET & GENERAL -------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--texto);
  background-color: var(--blanco);
  overflow-x: hidden;
  position: relative;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

button, input, textarea, select {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  border: none;
  background: none;
  outline: none;
}

button {
  cursor: pointer;
}

ul, ol {
  list-style: none;
}

/* -------------------- LAYOUT CONTAINERS -------------------- */
.site-container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* -------------------- FONDOS INTERCALADOS -------------------- */
.bg-blanco {
  background-color: var(--blanco);
}

.bg-crema {
  background-color: var(--crema);
}

/* -------------------- ENCABEZADOS DE SECCIÓN -------------------- */
.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px;
}

.section-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 4vw, 2.85rem);
  font-weight: 600;
  color: var(--texto);
  line-height: 1.2;
  margin-bottom: 12px;
}

.section-separator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 16px;
}

.sep-line {
  width: 44px;
  height: 1.5px;
  background-color: var(--arena);
}

.sep-arch {
  width: 14px;
  height: 14px;
  border: 2px solid var(--arena);
  border-radius: 50% 50% 0 0;
  display: inline-block;
}

.section-subtitle {
  font-size: 1.05rem;
  color: var(--texto);
  line-height: 1.6;
}

/* -------------------- BOTONES EN PÍLDORA -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  padding: 14px 32px;
  transition: all 0.25s ease;
  text-decoration: none;
  border: none;
}

.btn-pill {
  border-radius: var(--radius-pill);
  background-color: var(--arena);
  color: var(--texto);
}

.btn-pill:hover,
.btn-pill:focus-visible {
  background-color: var(--arena-hover);
  color: var(--texto);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(45, 30, 24, 0.16);
}

.btn-block {
  width: 100%;
}

/* -------------------- HEADER FIJO -------------------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background-color: var(--nogal);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  display: flex;
  align-items: center;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--blanco);
}

.logo-icon {
  width: 32px;
  height: 32px;
  stroke: var(--arena);
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
}

.logo-name {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--blanco);
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.logo-tag {
  font-family: var(--font-body);
  font-size: 0.65rem;
  letter-spacing: 2px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 500;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--blanco);
  position: relative;
  padding: 6px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--arena);
  transition: width 0.25s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-header {
  padding: 9px 22px;
  font-size: 0.88rem;
}

/* Hamburguesa móvil (oculta en desktop) */
.hamburger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--arena);
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background-color 0.2s ease;
}

.hamburger-btn:hover {
  background-color: var(--arena-hover);
}

.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  width: 20px;
  height: 2px;
  background-color: var(--nogal);
  position: absolute;
  transition: all 0.25s ease;
}

.hamburger-icon {
  position: relative;
}

.hamburger-icon::before {
  content: '';
  top: -6px;
  left: 0;
}

.hamburger-icon::after {
  content: '';
  top: 6px;
  left: 0;
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon {
  background-color: transparent;
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon::before {
  top: 0;
  transform: rotate(45deg);
}

.hamburger-btn[aria-expanded="true"] .hamburger-icon::after {
  top: 0;
  transform: rotate(-45deg);
}

/* Panel Desplegable Móvil */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background-color: var(--nogal);
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.4);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  padding: 30px 24px;
  transition: right 0.35s ease;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(198, 156, 109, 0.25);
}

.drawer-logo {
  font-family: var(--font-title);
  font-size: 1.3rem;
  color: var(--blanco);
  font-weight: 600;
}

.drawer-close-btn {
  font-size: 2rem;
  line-height: 1;
  color: var(--arena);
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 36px;
}

.drawer-link {
  font-size: 1.1rem;
  color: var(--blanco);
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-link:hover {
  color: var(--arena);
}

.drawer-cta {
  margin-top: auto;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 1050;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
}

/* -------------------- HERO: FOTO CIRCULAR CON ANILLOS (100VH SIN SCROLL) -------------------- */
.hero-section {
  background-color: var(--nogal);
  height: 100vh;
  height: 100dvh;
  min-height: 480px;
  max-height: 100vh;
  padding-top: var(--header-height);
  padding-bottom: 0;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.hero-container {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, auto);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: center;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  height: 100%;
  max-height: calc(100vh - var(--header-height));
  box-sizing: border-box;
}

/* Columna Izquierda: Texto */
.hero-text-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  color: var(--blanco);
  position: relative;
  z-index: 2;
  min-width: 0;
}

.hero-accent-line {
  width: 56px;
  height: 2px;
  background-color: var(--arena);
  margin-bottom: 16px;
  flex-shrink: 0;
}

.hero-text-slider {
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
}

.hero-slide {
  grid-column: 1;
  grid-row: 1;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  align-self: start;
}

.hero-slide.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.65s ease 0.35s, visibility 0.65s ease 0.35s;
}

.hero-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 3.4vw, 3.35rem);
  font-weight: 600;
  color: var(--blanco);
  line-height: 1.15;
  margin-bottom: 14px;
  max-width: 615px;
}

.hero-title-s2 {
  font-size: clamp(1.9rem, 2.9vw, 2.85rem);
}

.hero-paragraph {
  font-family: var(--font-body);
  font-size: 1.05rem;
  color: var(--blanco);
  line-height: 1.55;
  margin-bottom: 22px;
  max-width: 615px;
}

.hero-btn-wrap {
  display: flex;
  align-items: center;
}

.hero-btn-wrap .btn {
  padding: 11px 28px;
  font-size: 0.95rem;
}

/* Puntos de navegación bajo el botón */
.hero-dots {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.hero-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.32);
  border: 1px solid transparent;
  transition: all 0.25s ease;
  cursor: pointer;
  padding: 0;
}

.hero-dot.active {
  background-color: var(--arena);
  transform: scale(1.25);
}

.hero-dot:focus-visible,
.hero-arrow:focus-visible,
.hero-btn-wrap .btn:focus-visible {
  outline: 2px solid var(--blanco);
  outline-offset: 3px;
}

/* Columna Derecha: Círculo, Anillos e Insignia */
.hero-visual-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  min-width: 0;
}

.hero-circle-stage {
  --stage-dim: min(480px, calc(100vh - var(--header-height) - 80px), 36vw);
  position: relative;
  width: var(--stage-dim);
  height: var(--stage-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Segundo Anillo Sólido Cuero (estático) */
.hero-ring-solid {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid var(--cuero);
  pointer-events: none;
  box-sizing: border-box;
}

/* Primer Anillo Punteado Arena Giratorio */
@keyframes rotateHeroRing {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.hero-ring-dashed {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 93.8%;
  height: 93.8%;
  border-radius: 50%;
  border: 1px dashed rgba(198, 156, 109, 0.7);
  pointer-events: none;
  box-sizing: border-box;
  animation: rotateHeroRing 90s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .hero-ring-dashed {
    animation: none;
  }
}

/* Círculo Principal de Foto */
.hero-circle-frame {
  position: relative;
  width: 84.6%;
  height: 84.6%;
  border-radius: 50%;
  border: 3px solid var(--arena);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr;
  box-sizing: border-box;
  z-index: 2;
  background-color: var(--nogal);
}

.hero-photo-slide {
  grid-column: 1;
  grid-row: 1;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.hero-photo-slide.active {
  opacity: 1;
  visibility: visible;
}

.hero-circle-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1);
  transition: transform 7s ease-out;
  display: block;
}

.hero-photo-slide.active .hero-circle-img {
  transform: scale(1.06);
}

@media (prefers-reduced-motion: reduce) {
  .hero-photo-slide.active .hero-circle-img {
    transform: none;
  }
}

/* Insignia Redonda Fija (+15 años de experiencia) */
.hero-badge {
  position: absolute;
  bottom: 6%;
  left: 6%;
  width: clamp(80px, calc(var(--stage-dim) * 0.235), 116px);
  height: clamp(80px, calc(var(--stage-dim) * 0.235), 116px);
  border-radius: 50%;
  background-color: var(--arena);
  color: #111111;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(45, 30, 24, 0.45);
  z-index: 5;
  box-sizing: border-box;
}

.hero-badge-num {
  font-family: var(--font-title);
  font-size: clamp(1.4rem, calc(var(--stage-dim) * 0.08), 2.1rem);
  font-weight: 700;
  color: #111111;
  line-height: 1;
}

.hero-badge-lbl {
  font-family: var(--font-body);
  font-size: clamp(0.6rem, calc(var(--stage-dim) * 0.028), 0.75rem);
  font-weight: 600;
  color: #111111;
  line-height: 1.15;
  margin-top: 2px;
}

/* Flechas Redondas Debajo del Círculo */
.hero-arrows-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 10px;
  z-index: 4;
}

.hero-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1.5px solid var(--arena);
  background-color: rgba(45, 30, 24, 0.65);
  color: var(--arena);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  cursor: pointer;
  padding: 0;
}

.hero-arrow:hover {
  background-color: var(--arena);
  color: var(--nogal);
  transform: scale(1.05);
}

/* -------------------- FRANJA DE 4 TARJETAS -------------------- */
.section-franja {
  padding: 70px 0 60px;
}

.franja-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.franja-card {
  background-color: var(--blanco);
  border: 1px solid var(--arena);
  border-radius: var(--radius-card);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.franja-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-subtle);
}

.franja-icon {
  width: 38px;
  height: 38px;
  stroke: var(--cuero);
  margin-bottom: 18px;
}

.franja-title {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.25;
  margin-bottom: 10px;
}

.franja-desc {
  font-size: 0.95rem;
  color: var(--texto);
  line-height: 1.55;
  margin-bottom: 18px;
  flex-grow: 1;
}

.franja-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--texto);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.franja-link:hover {
  color: var(--cuero);
  text-decoration: underline;
}

/* -------------------- SECCIÓN A: SERVICIOS -------------------- */
.section-services {
  padding: 90px 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
}

.service-card {
  background-color: var(--blanco);
  border: 1px solid rgba(198, 156, 109, 0.35);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--arena);
}

.service-number {
  position: absolute;
  top: 24px;
  right: 26px;
  font-family: var(--font-title);
  font-size: 2.8rem;
  font-weight: 700;
  color: rgba(198, 156, 109, 0.22);
  line-height: 1;
  pointer-events: none;
}

.service-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--cuero);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background-color 0.3s ease;
}

.service-icon-wrap svg {
  width: 26px;
  height: 26px;
  stroke: var(--arena);
}

.service-card:hover .service-icon-wrap {
  background-color: var(--nogal);
}

.service-title {
  font-family: var(--font-title);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.25;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.98rem;
  color: var(--texto);
  line-height: 1.6;
  margin-bottom: 24px;
  flex-grow: 1;
}

.service-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--texto);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.service-link:hover {
  color: var(--cuero);
  text-decoration: underline;
}

/* -------------------- SECCIÓN B: QUIÉNES SOMOS -------------------- */
.section-about {
  padding: 95px 0;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 56px;
  align-items: stretch;
}

.about-image-col {
  position: relative;
  display: flex;
  height: 100%;
}

.about-arch-outer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 540px;
  display: flex;
}

.about-arch-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px 999px 20px 20px;
  border: 2px solid var(--arena);
  overflow: hidden;
}

/* Contorno fino arena desplazado */
.about-arch-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 999px 999px 26px 26px;
  border: 1px solid var(--arena);
  pointer-events: none;
  z-index: 2;
}

.about-arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Insignia circular de 110px */
.about-badge {
  position: absolute;
  bottom: 24px;
  right: -20px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: var(--arena);
  color: var(--texto);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  box-shadow: 0 8px 24px rgba(45, 30, 24, 0.2);
  z-index: 3;
}

.badge-num {
  font-family: var(--font-title);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1;
  color: var(--texto);
}

.badge-lbl {
  font-size: 0.74rem;
  font-weight: 600;
  line-height: 1.15;
  color: var(--texto);
  margin-top: 2px;
}

.about-text-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.about-header {
  margin-bottom: 20px;
}

.about-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 3.8vw, 2.85rem);
  font-weight: 600;
  color: var(--texto);
  line-height: 1.2;
}

.about-paragraph {
  font-size: 1.05rem;
  color: var(--texto);
  line-height: 1.7;
  margin-bottom: 24px;
}

.about-quote {
  background-color: var(--crema);
  border-left: 4px solid var(--arena);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 28px;
}

.about-quote p {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--texto);
  line-height: 1.65;
  margin-bottom: 14px;
}

.quote-footer {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.quote-signature {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 700;
  font-style: italic;
  color: var(--texto);
  letter-spacing: 0.5px;
}

.quote-role {
  font-size: 0.88rem;
  color: var(--texto);
  font-weight: 500;
}

.about-values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.value-card {
  border: 1px solid var(--arena);
  border-radius: 16px;
  padding: 18px 14px;
  background-color: var(--blanco);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.value-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--cuero);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.value-icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--arena);
}

.value-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--texto);
  margin-bottom: 4px;
}

.value-desc {
  font-size: 0.84rem;
  color: var(--texto);
  line-height: 1.45;
}

/* -------------------- SECCIÓN C: LLAMADO A LA ACCIÓN 1 -------------------- */
.section-cta1 {
  padding: 60px 0;
}

.cta1-banner {
  position: relative;
  border-radius: var(--radius-card);
  overflow: hidden;
  background-image: linear-gradient(90deg, rgba(45, 30, 24, 0.92) 0%, rgba(45, 30, 24, 0.85) 45%, rgba(45, 30, 24, 0.55) 100%), url('assets/img/abogados-04.webp');
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  padding: 70px 60px;
  box-shadow: var(--shadow-dark);
}

.cta1-content {
  max-width: 600px;
  color: var(--blanco);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cta1-title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 3.6vw, 2.7rem);
  font-weight: 600;
  color: var(--blanco);
  line-height: 1.2;
  margin-bottom: 14px;
}

.cta1-text {
  font-size: 1.1rem;
  color: var(--blanco);
  line-height: 1.6;
  margin-bottom: 22px;
}

.cta1-phone {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 3.2vw, 2.3rem);
  font-weight: 700;
  color: var(--blanco);
  display: inline-block;
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.cta1-phone:hover {
  color: var(--arena);
}

.cta1-btn-wrap {
  display: flex;
}

/* -------------------- SECCIÓN D: CONTÁCTANOS -------------------- */
.section-contact {
  padding: 95px 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.contact-data-col {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.contact-header {
  margin-bottom: 28px;
}

.contact-title {
  font-family: var(--font-title);
  font-size: clamp(2.2rem, 3.8vw, 2.85rem);
  font-weight: 600;
  color: var(--texto);
  line-height: 1.2;
}

.contact-subtitle {
  font-size: 1.05rem;
  color: var(--texto);
  line-height: 1.6;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--cuero);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--arena);
}

.contact-detail {
  display: flex;
  flex-direction: column;
}

.contact-label {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--texto);
  margin-bottom: 2px;
}

.contact-val {
  font-size: 1.02rem;
  color: var(--texto);
  line-height: 1.45;
}

.contact-val-link:hover {
  color: var(--cuero);
  text-decoration: underline;
}

.contact-btn-wrap {
  display: flex;
}

.contact-image-col {
  position: relative;
  display: flex;
  height: 100%;
}

.contact-arch-outer {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 520px;
  display: flex;
}

.contact-arch-frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 999px 999px 20px 20px;
  border: 2px solid var(--arena);
  overflow: hidden;
}

/* Contorno fino arena desplazado */
.contact-arch-frame::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 999px 999px 26px 26px;
  border: 1px solid var(--arena);
  pointer-events: none;
  z-index: 2;
}

.contact-arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* -------------------- SECCIÓN E: MÁS INFORMES (FORMULARIO) -------------------- */
.section-form {
  padding: 90px 0;
}

.form-card-container {
  max-width: 760px;
  margin: 0 auto;
  background-color: var(--crema);
  border: 1px solid var(--arena);
  border-radius: var(--radius-card);
  padding: 44px 40px;
  position: relative;
  box-shadow: var(--shadow-subtle);
}

.form-card-tab {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--arena);
  color: var(--texto);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 12px rgba(45, 30, 24, 0.12);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--texto);
}

.form-input,
.form-textarea {
  background-color: var(--blanco);
  border: 1px solid rgba(99, 72, 50, 0.25);
  border-radius: var(--radius-field);
  padding: 12px 16px;
  font-size: 0.98rem;
  color: var(--texto);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--arena);
  box-shadow: 0 0 0 3px rgba(198, 156, 109, 0.25);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  font-size: 0.8rem;
  color: #B22222;
  min-height: 18px;
}

.form-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.form-feedback {
  margin-top: 18px;
  padding: 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  text-align: center;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: rgba(198, 156, 109, 0.2);
  border: 1px solid var(--arena);
  color: var(--texto);
}

/* -------------------- SECCIÓN F: CTA 2 (BANDA SÓLIDA CUERO) -------------------- */
.section-cta2 {
  background-color: var(--cuero);
  padding: 85px 0;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.cta2-bg-arch {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  border-radius: 300px 300px 0 0;
  border: 1.5px solid rgba(198, 156, 109, 0.25);
  border-bottom: none;
  pointer-events: none;
}

.cta2-container {
  position: relative;
  z-index: 2;
  max-width: 760px;
}

.cta2-tag {
  font-size: 0.75rem;
  letter-spacing: 2px;
  color: var(--arena);
  font-weight: 600;
  display: inline-block;
  margin-bottom: 12px;
}

.cta2-title {
  font-family: var(--font-title);
  font-size: clamp(2.1rem, 3.8vw, 2.85rem);
  font-weight: 600;
  color: var(--blanco);
  line-height: 1.25;
  margin-bottom: 16px;
}

.cta2-text {
  font-size: 1.1rem;
  color: var(--blanco);
  line-height: 1.6;
  margin-bottom: 30px;
}

.cta2-btn-wrap {
  display: flex;
  justify-content: center;
}

/* -------------------- SECCIÓN G: PREGUNTAS FRECUENTES -------------------- */
.section-faq {
  padding: 95px 0;
}

.faq-accordion {
  max-width: 860px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--cuero);
}

.faq-trigger {
  width: 100%;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  text-align: left;
}

.faq-question {
  font-family: var(--font-body);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--texto);
  line-height: 1.4;
}

.faq-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: var(--arena);
  color: var(--texto);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 600;
  flex-shrink: 0;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.faq-trigger[aria-expanded="true"] .faq-icon {
  background-color: var(--arena-hover);
  transform: rotate(45deg);
}

.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding-bottom 0.35s ease;
}

.faq-panel.open {
  padding-bottom: 22px;
}

.faq-answer {
  font-size: 1.02rem;
  color: var(--texto);
  line-height: 1.65;
}

/* -------------------- SECCIÓN H: LOGROS -------------------- */
.section-achievements {
  padding: 95px 0;
}

.achievements-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 20px;
}

.achievement-block {
  text-align: center;
  padding: 24px 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.achievement-block:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15%;
  right: 0;
  height: 70%;
  width: 1px;
  background-color: var(--arena);
}

.achievement-number {
  font-family: var(--font-title);
  font-size: clamp(3.2rem, 5vw, 4.6rem);
  font-weight: 600;
  color: var(--texto);
  line-height: 1;
  margin-bottom: 12px;
}

.achievement-line {
  width: 36px;
  height: 2px;
  background-color: var(--arena);
  margin-bottom: 14px;
}

.achievement-label {
  font-size: 1.02rem;
  font-weight: 500;
  color: var(--texto);
  line-height: 1.35;
}

/* -------------------- SECCIÓN I: NUESTROS CLIENTES -------------------- */
.section-testimonials {
  padding: 95px 0;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  background-color: var(--blanco);
  border: 1px solid var(--arena);
  border-radius: var(--radius-card);
  padding: 36px 30px;
  position: relative;
  display: flex;
  flex-direction: column;
}

.testimonial-quote-icon {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 38px;
  height: 38px;
  fill: var(--arena);
  opacity: 0.28;
  pointer-events: none;
}

.testimonial-stars {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
}

.star-icon {
  width: 18px;
  height: 18px;
  fill: var(--arena);
  stroke: var(--cuero);
  stroke-width: 0.8;
}

.testimonial-text {
  font-size: 1.02rem;
  font-style: italic;
  color: var(--texto);
  line-height: 1.65;
  margin-bottom: 26px;
  flex-grow: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background-color: var(--cuero);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.author-info {
  display: flex;
  flex-direction: column;
}

.author-name {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.2;
}

.author-area {
  font-size: 0.85rem;
  color: var(--texto);
}

/* -------------------- SECCIÓN J: NUESTRO BLOG -------------------- */
.section-blog {
  padding: 95px 0;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  background-color: var(--blanco);
  border: 1px solid var(--arena);
  border-radius: var(--radius-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
}

.blog-img-wrap {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
}

.blog-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.blog-card:hover .blog-img {
  transform: scale(1.05);
}

.blog-date-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--arena);
  color: var(--texto);
  border-radius: 10px;
  padding: 6px 12px;
  text-align: center;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(45, 30, 24, 0.18);
}

.date-day {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1;
}

.date-month {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.blog-content {
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-cat-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.blog-category {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--texto);
}

.blog-cat-line {
  flex-grow: 1;
  height: 1px;
  background-color: var(--arena);
}

.blog-title {
  font-family: var(--font-title);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--texto);
  line-height: 1.3;
  margin-bottom: 12px;
}

.blog-desc {
  font-size: 0.95rem;
  color: var(--texto);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.blog-link {
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--texto);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.blog-link:hover {
  color: var(--cuero);
  text-decoration: underline;
}

/* -------------------- FOOTER -------------------- */
.site-footer {
  background-color: var(--nogal);
  border-top: 3px solid var(--arena);
  color: var(--blanco);
  padding: 70px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 50px;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.logo-footer {
  margin-bottom: 18px;
}

.footer-desc {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 360px;
  margin-bottom: 24px;
}

.footer-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.social-icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1.5px solid var(--arena);
  background-color: transparent;
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.social-icon-btn:hover {
  background-color: var(--arena);
  color: var(--nogal);
  border-color: var(--arena);
  transform: translateY(-3px);
}

.footer-heading {
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--blanco);
  margin-bottom: 8px;
}

.footer-heading-line {
  width: 36px;
  height: 2px;
  background-color: var(--arena);
  margin-bottom: 20px;
}

.footer-nav-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-nav-list a {
  font-size: 0.96rem;
  color: rgba(255, 255, 255, 0.85);
  transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--arena);
  padding-left: 4px;
}

.footer-contact-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.94rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.footer-item-icon {
  width: 18px;
  height: 18px;
  stroke: var(--arena);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-contact-item a:hover {
  color: var(--arena);
}

/* Subfooter */
.site-subfooter {
  background-color: #111111;
  color: var(--blanco);
  padding: 20px 0;
  font-size: 0.9rem;
}

.subfooter-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.subfooter-link {
  color: var(--blanco);
}

.subfooter-link:hover {
  color: var(--arena);
  text-decoration: underline;
}

/* -------------------- BOTONES FLOTANTES -------------------- */
@keyframes floatHeartbeat {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.08);
  }
}

.float-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  animation: floatHeartbeat 2.8s infinite ease-in-out;
  transform-origin: center;
  margin: 0;
  padding: 0;
}

.float-btn:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}

/* WhatsApp Flotante (Izquierda) */
.float-wa {
  position: fixed;
  bottom: 30px;
  left: 30px;
  background-color: #25D366;
  color: #FFFFFF;
}

.float-wa svg {
  width: 32px;
  height: 32px;
  fill: #FFFFFF;
}

/* Asistente Virtual Flotante (Derecha) */
.float-assistant-container {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  margin: 0;
  padding: 0;
  z-index: 999;
}

.float-assistant {
  position: relative;
  width: 60px;
  height: 60px;
  top: 0;
  left: 0;
  bottom: auto;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--arena);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
  animation: floatHeartbeat 2.8s infinite ease-in-out;
  transform-origin: center;
  padding: 0;
  margin: 0;
}

.float-assistant:hover {
  animation-play-state: paused;
  transform: scale(1.1);
}

.assistant-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.online-indicator {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: #25D366;
  border: 2px solid var(--blanco);
  pointer-events: none;
  z-index: 1000;
}

/* Panel de Chat de Demostración */
.chat-panel {
  position: absolute;
  bottom: 74px;
  right: 0;
  width: 340px;
  background-color: var(--blanco);
  border-radius: 16px;
  box-shadow: 0 12px 36px rgba(45, 30, 24, 0.25);
  border: 1px solid var(--arena);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
  z-index: 1001;
}

.chat-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.chat-header {
  background-color: var(--nogal);
  color: var(--blanco);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-header-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1.5px solid var(--arena);
  object-fit: cover;
}

.chat-title {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--blanco);
  line-height: 1.1;
}

.chat-status {
  font-size: 0.72rem;
  color: var(--arena);
  display: flex;
  align-items: center;
  gap: 5px;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #25D366;
  display: inline-block;
}

.chat-close-btn {
  color: var(--blanco);
  font-size: 1.6rem;
  line-height: 1;
}

.chat-body {
  padding: 16px;
  height: 220px;
  overflow-y: auto;
  background-color: var(--crema);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.chat-msg-bot {
  background-color: var(--blanco);
  color: var(--texto);
  align-self: flex-start;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.chat-msg-user {
  background-color: var(--nogal);
  color: var(--blanco);
  align-self: flex-end;
  border-bottom-right-radius: 2px;
}

.chat-time {
  font-size: 0.68rem;
  color: rgba(17, 17, 17, 0.55);
  display: block;
  margin-top: 4px;
  text-align: right;
}

.chat-msg-user .chat-time {
  color: rgba(255, 255, 255, 0.65);
}

.chat-quick-replies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 12px;
  background-color: var(--blanco);
  border-top: 1px solid rgba(198, 156, 109, 0.25);
}

.quick-reply-btn {
  font-size: 0.76rem;
  background-color: var(--crema);
  border: 1px solid var(--arena);
  color: var(--texto);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
  transition: all 0.2s ease;
}

.quick-reply-btn:hover {
  background-color: var(--arena);
  color: var(--texto);
}

.chat-footer {
  display: flex;
  align-items: center;
  padding: 8px 12px;
  background-color: var(--blanco);
  border-top: 1px solid rgba(198, 156, 109, 0.25);
}

.chat-input {
  flex-grow: 1;
  font-size: 0.9rem;
  padding: 6px 10px;
  color: var(--texto);
}

.chat-send-btn {
  color: var(--cuero);
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease;
}

.chat-send-btn:hover {
  color: var(--arena);
}

/* -------------------- RESPONSIVE DESIGN -------------------- */

/* TABLET (1024px o menos) */
@media (max-width: 1024px) {
  .header-nav,
  .btn-header {
    display: none;
  }

  .hamburger-btn {
    display: flex;
  }

  .franja-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-arch-outer,
  .contact-arch-outer {
    height: 340px;
    min-height: 340px;
  }

  .about-badge {
    right: 20px;
    bottom: -15px;
  }

  .achievements-row {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 24px;
  }

  .achievement-block:nth-child(2)::after {
    display: none;
  }

  .achievement-block:nth-child(1)::after,
  .achievement-block:nth-child(3)::after {
    height: 60%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }

  .footer-col-contact {
    grid-column: 1 / -1;
  }
}

/* TABLET CHICA / MÓVIL (768px o menos) */
@media (max-width: 768px) {
  .hero-arrow {
    display: none;
  }

  

  .hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    padding-top: calc(var(--header-height) + 16px);
  }

  

  

  

  .cta1-banner {
    padding: 50px 30px;
    text-align: center;
    background-image: linear-gradient(rgba(45, 30, 24, 0.85), rgba(45, 30, 24, 0.85)), url('assets/img/abogados-04.webp');
  }

  .cta1-content {
    max-width: 100%;
  }

  .cta1-btn-wrap {
    justify-content: center;
  }

  .testimonials-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .form-card-container {
    padding: 36px 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .subfooter-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .chat-panel {
    width: calc(100vw - 40px);
    right: -10px;
  }
}

/* MÓVIL PEQUEÑO (480px o menos) */
@media (max-width: 480px) {
  .franja-grid,
  .services-grid {
    grid-template-columns: 1fr;
  }

  

  

  .about-values-grid {
    grid-template-columns: 1fr;
  }

  .achievements-row {
    grid-template-columns: 1fr;
  }

  .achievement-block::after {
    display: none;
  }

  .float-wa {
    left: 16px;
    bottom: 20px;
  }

  .float-assistant-container {
    right: 16px;
    bottom: 20px;
  }
}


/* ==========================================================================
   RESPONSIVE HERO (MENOS DE 900PX: UNA SOLA COLUMNA)
   ========================================================================== */
@media (max-width: 900px) {
  .hero-section {
    height: auto;
    min-height: calc(100vh - var(--header-height));
    min-height: calc(100dvh - var(--header-height));
    max-height: none;
    padding-top: calc(var(--header-height) + 24px);
    padding-bottom: 40px;
  }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    height: auto;
    max-height: none;
  }

  .hero-text-col {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-accent-line {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-slide {
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .hero-title {
    font-size: clamp(1.9rem, 5.2vw, 2.7rem);
    text-align: center;
    max-width: 620px;
  }

  .hero-title-s2 {
    font-size: clamp(1.75rem, 4.6vw, 2.4rem);
  }

  .hero-paragraph {
    font-size: clamp(0.95rem, 3.5vw, 1.05rem);
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    max-width: 560px;
  }

  .hero-btn-wrap {
    justify-content: center;
    width: 100%;
  }

  .hero-dots {
    justify-content: center;
    margin-top: 20px;
  }

  .hero-arrows-wrap {
    display: none !important;
  }

  .hero-visual-col {
    width: 100%;
    overflow: hidden;
  }

  /* Círculo min(72vw, 320px) y anillos proporcionales */
  .hero-circle-stage {
    --stage-dim: min(86vw, 380px);
    width: var(--stage-dim);
    height: var(--stage-dim);
  }

  .hero-badge {
    width: 88px;
    height: 88px;
    padding: 6px;
    bottom: 8%;
    left: 8%;
  }

  .hero-badge-num {
    font-size: 1.6rem;
  }

  .hero-badge-lbl {
    font-size: 0.65rem;
  }
}
