/* ============================================================
   PERZE Contractors – Hoja de estilos principal
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Colores */
  --perze-primary:        #f49d25;
  --perze-primary-hover:  #e08c1a;
  --perze-primary-10:     rgba(244,157,37,.1);
  --perze-primary-20:     rgba(244,157,37,.2);
  --perze-primary-30:     rgba(244,157,37,.3);

  /* Modo claro */
  --perze-bg:             #f8f7f5;
  --perze-surface:        #ffffff;
  --perze-text-primary:   #0f172a;
  --perze-text-secondary: #475569;
  --perze-text-muted:     #64748b;
  --perze-border:         #e2e8f0;
  --perze-shadow:         rgba(0,0,0,.08);
  --perze-nav-bg:         rgba(255,255,255,.92);

  /* Tipografía */
  --perze-font:           'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Espaciado */
  --perze-py:             6rem;       /* padding vertical sección */
  --perze-py-sm:          4rem;
  --perze-container:      1280px;
  --perze-container-px:   1.5rem;

  /* Transiciones */
  --perze-ease:           cubic-bezier(.4,0,.2,1);
  --perze-dur:            .3s;

  /* Radios */
  --perze-radius:         .5rem;
  --perze-radius-lg:      1rem;
  --perze-radius-full:    9999px;

  /* Nav */
  --perze-nav-h:          5rem;
}

/* ── Dark Mode ───────────────────────────────────────────────── */
html.dark {
  --perze-bg:             #0a0a0a;
  --perze-surface:        #161616;
  --perze-text-primary:   #f1f5f9;
  --perze-text-secondary: #cbd5e1;
  --perze-text-muted:     #94a3b8;
  --perze-border:         rgba(255,255,255,.08);
  --perze-shadow:         rgba(0,0,0,.5);
  --perze-nav-bg:         rgba(10,10,10,.92);
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--perze-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--perze-text-secondary);
  background: var(--perze-bg);
  transition: background var(--perze-dur) var(--perze-ease), color var(--perze-dur) var(--perze-ease);
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--perze-bg); }
::-webkit-scrollbar-thumb { background: #444; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--perze-primary); }

/* Selección de texto */
::selection { background: var(--perze-primary); color: white; }

/* Focus visible */
:focus-visible {
  outline: 2px solid var(--perze-primary);
  outline-offset: 3px;
}

/* ── Contenedor ─────────────────────────────────────────────── */
.perze-container {
  width: 100%;
  max-width: var(--perze-container);
  margin-inline: auto;
  padding-inline: var(--perze-container-px);
}

/* ── Secciones ──────────────────────────────────────────────── */
.perze-section {
  padding-block: var(--perze-py);
  position: relative;
}
.perze-section--light   { background: var(--perze-bg); }
.perze-section--surface { background: var(--perze-surface); }
.perze-section--primary { background: var(--perze-primary); }
.perze-section--primary-bg { background: var(--perze-primary); padding-block: 4rem; }

.perze-text-center { text-align: center; }

/* ── Etiquetas de sección ───────────────────────────────────── */
.perze-section-label {
  display: inline-block;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--perze-primary);
  margin-bottom: .5rem;
}
.perze-section-label--white { color: rgba(255,255,255,.8); }

/* ── Títulos de sección ─────────────────────────────────────── */
.perze-section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--perze-text-primary);
  line-height: 1.2;
  margin-bottom: 1.25rem;
}
.perze-section-title--white { color: white; }

/* ── Botones ────────────────────────────────────────────────── */
.perze-btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.75rem;
  font-size: .9375rem;
  font-weight: 700;
  border-radius: var(--perze-radius);
  transition: all var(--perze-dur) var(--perze-ease);
  cursor: pointer;
}
.perze-btn--primary {
  background: var(--perze-primary);
  color: white;
  box-shadow: 0 8px 24px rgba(244,157,37,.25);
}
.perze-btn--primary:hover {
  background: var(--perze-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(244,157,37,.35);
}
.perze-btn--outline {
  background: transparent;
  color: var(--perze-primary);
  border: 1.5px solid var(--perze-primary);
}
.perze-btn--outline:hover {
  background: var(--perze-primary-10);
  transform: translateY(-2px);
}
.perze-btn--primary-sm {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  padding: .5rem 1rem;
  font-size: .8125rem;
  font-weight: 700;
  border-radius: var(--perze-radius);
  background: var(--perze-primary);
  color: white;
  transition: background var(--perze-dur) var(--perze-ease);
}
.perze-btn--primary-sm:hover { background: var(--perze-primary-hover); }
.perze-btn--full { width: 100%; justify-content: center; }
/* WhatsApp icon inside button */
.perze-icon-whatsapp { flex-shrink: 0; }

/* ── Badge ──────────────────────────────────────────────────── */
.perze-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  border-radius: var(--perze-radius-full);
  border: 1px solid rgba(244,157,37,.3);
  background: rgba(244,157,37,.08);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--perze-primary);
  margin-bottom: 1rem;
}
.perze-badge--primary { color: var(--perze-primary); }

/* ═══════════════════════════════════════════════════════════════
   NAVEGACIÓN
   ═══════════════════════════════════════════════════════════════ */
header.wp-block-template-part,
.perze-nav-wrap {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: var(--perze-nav-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--perze-border);
  transition: background var(--perze-dur) var(--perze-ease), box-shadow var(--perze-dur) var(--perze-ease);
}
header.wp-block-template-part.perze-nav--scrolled { box-shadow: 0 4px 20px var(--perze-shadow); }

.perze-nav {
  max-width: var(--perze-container);
  margin-inline: auto;
  padding-inline: var(--perze-container-px);
  height: var(--perze-nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

/* Logo */
.perze-nav__logo img,
.perze-nav .wp-block-site-logo img {
  height: 3.5rem !important;
  width: auto !important;
  object-fit: contain;
}

/* Menú */
.perze-nav .wp-block-navigation,
.perze-nav__menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.perze-nav .wp-block-navigation-item__content,
.perze-nav a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--perze-text-secondary);
  transition: color var(--perze-dur) var(--perze-ease);
}
.perze-nav .wp-block-navigation-item__content:hover,
.perze-nav a:hover { color: var(--perze-primary); }

/* Acciones de nav */
.perze-nav__actions {
  display: flex;
  align-items: center;
  gap: .75rem;
  flex-shrink: 0;
}
.perze-nav__btns { display: flex; gap: .5rem; align-items: center; }
.perze-nav__btns .wp-block-button__link {
  padding: .5rem 1.125rem !important;
  font-size: .8125rem !important;
  font-weight: 700 !important;
  border-radius: var(--perze-radius) !important;
  transition: all var(--perze-dur) var(--perze-ease) !important;
}
.perze-btn-primary .wp-block-button__link {
  background: var(--perze-primary) !important;
  color: white !important;
  border: none !important;
  box-shadow: 0 4px 12px rgba(244,157,37,.25) !important;
}
.perze-btn-primary .wp-block-button__link:hover { background: var(--perze-primary-hover) !important; }
.perze-btn-outline .wp-block-button__link {
  background: transparent !important;
  color: var(--perze-primary) !important;
  border: 1.5px solid var(--perze-primary) !important;
}
.perze-btn-outline .wp-block-button__link:hover { background: var(--perze-primary-10) !important; }

/* Toggle Dark Mode */
.perze-dark-toggle {
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--perze-radius-full);
  background: var(--perze-primary-10);
  color: var(--perze-primary);
  transition: background var(--perze-dur) var(--perze-ease), transform var(--perze-dur) var(--perze-ease);
  flex-shrink: 0;
}
.perze-dark-toggle:hover { background: var(--perze-primary-20); transform: rotate(20deg); }
.perze-dark-toggle__icon { display: flex; align-items: center; font-size: 1.125rem; }
.perze-dark-toggle__moon { display: none; }
html.dark .perze-dark-toggle__sun  { display: none; }
html.dark .perze-dark-toggle__moon { display: flex; }

/* ═══════════════════════════════════════════════════════════════
   HERO
   ═══════════════════════════════════════════════════════════════ */
.perze-hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-block: 0;
  background: #0a0a0a;
}

.perze-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.perze-hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Video local */
.perze-hero__bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
}

/* iframe YouTube / Vimeo — técnica de cobertura 16:9 sobre cualquier tamaño */
.perze-hero__bg-iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  /* Asegura cubrir el contenedor en cualquier aspect ratio */
  width: 100vw;
  height: 56.25vw;   /* 100 / 16 * 9 */
  min-height: 100%;
  min-width: 177.78vh; /* 100 / 9 * 16 */
  border: 0;
  pointer-events: none;
}
.perze-hero__overlay {
  position: absolute;
  inset: 0;
  /* Gradiente compuesto:
     - Horizontal: oscuro en la izquierda para el texto, transparente a la derecha
     - Vertical: claro en la parte superior, muy oscuro al fondo para la transición */
  background:
    linear-gradient(to bottom, transparent 35%, rgba(6,6,6,.97) 100%),
    linear-gradient(to right,  rgba(6,6,6,.92) 0%, rgba(6,6,6,.55) 55%, transparent 100%);
}

.perze-hero__content {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: var(--perze-nav-h);
}
.perze-hero__inner {
  max-width: 44rem;
  padding-block: 5rem;
}

.perze-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .375rem .875rem;
  border-radius: var(--perze-radius-full);
  border: 1px solid rgba(244,157,37,.3);
  background: rgba(244,157,37,.1);
  backdrop-filter: blur(8px);
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--perze-primary);
  margin-bottom: 1.5rem;
}
.perze-hero__badge-dot {
  width: .5rem; height: .5rem;
  border-radius: 50%;
  background: var(--perze-primary);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.4); }
}

.perze-hero__title {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 900;
  color: white;
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 1.25rem;
}
.perze-hero__highlight {
  background: linear-gradient(135deg, var(--perze-primary), #e05f00);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.perze-hero__desc {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: rgba(203,213,225,.9);
  font-weight: 500;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.perze-hero__bullets {
  display: flex;
  flex-direction: column;
  gap: .625rem;
  margin-bottom: 2.5rem;
}
.perze-hero__bullet {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .9375rem;
  color: rgba(203,213,225,.85);
}
.perze-hero__bullet .material-icons-outlined { color: var(--perze-primary); font-size: 1.1rem; }

.perze-hero__ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.perze-hero__scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.4);
  animation: bounceDown 2s ease-in-out infinite;
  z-index: 1;
}
@keyframes bounceDown {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ═══════════════════════════════════════════════════════════════
   NOSOTROS
   ═══════════════════════════════════════════════════════════════ */
.perze-nosotros__inner { max-width: 52rem; }

.perze-nosotros__parrafo {
  font-size: 1.0625rem;
  color: var(--perze-text-secondary);
  line-height: 1.75;
  margin-bottom: 1.5rem;
}
.perze-nosotros__parrafo p { margin-bottom: 1em; }

.perze-nosotros__quote {
  font-size: 1.0625rem;
  font-style: italic;
  color: var(--perze-text-secondary);
  line-height: 1.75;
  border-left: 4px solid var(--perze-primary);
  padding-left: 1.5rem;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   SERVICIOS
   ═══════════════════════════════════════════════════════════════ */
.perze-servicios { overflow: hidden; }

.perze-servicios__deco {
  position: absolute;
  top: 0; right: 0;
  width: 33%;
  height: 100%;
  background: linear-gradient(to left, rgba(244,157,37,.04), transparent);
  pointer-events: none;
}

.perze-servicios__header { margin-bottom: 4rem; text-align: center; }

/* ── Carrusel de servicios ── */
.perze-servicios__carousel-wrap {
  position: relative;
  margin-bottom: 4rem;
  padding-inline: 3rem;
}
.perze-servicios__swiper { overflow: visible; }
.perze-servicios__swiper .swiper-wrapper { align-items: stretch; }
.perze-servicios__swiper .swiper-slide   { height: auto; }

/* Flechas */
.perze-servicios__prev,
.perze-servicios__next {
  position: absolute;
  top: 40%;
  transform: translateY(-50%);
  z-index: 10;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: var(--perze-surface);
  border: 1px solid var(--perze-border);
  color: var(--perze-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--perze-dur) var(--perze-ease),
              border-color var(--perze-dur) var(--perze-ease),
              color var(--perze-dur) var(--perze-ease);
}
.perze-servicios__prev:hover,
.perze-servicios__next:hover {
  background: var(--perze-primary);
  border-color: var(--perze-primary);
  color: #000;
}
.perze-servicios__prev { left: 0; }
.perze-servicios__next { right: 0; }

/* Paginación dots – fuera del swiper, fluye debajo de los cards */
.perze-servicios__pagination,
.perze-servicios__pagination.swiper-pagination,
.perze-servicios__pagination.swiper-pagination-bullets,
.perze-servicios__pagination.swiper-pagination-bullets.swiper-pagination-horizontal {
  position: relative !important;
  bottom: auto !important;
  top: auto !important;
  left: auto !important;
  width: 100% !important;
  transform: none !important;
  margin-top: 1.75rem;
  text-align: center;
}
.perze-servicios__pagination .swiper-pagination-bullet {
  background: var(--perze-border);
  opacity: 1;
  width: .5rem;
  height: .5rem;
  transition: background var(--perze-dur) var(--perze-ease),
              transform var(--perze-dur) var(--perze-ease);
}
.perze-servicios__pagination .swiper-pagination-bullet-active {
  background: var(--perze-primary);
  transform: scale(1.4);
}

/* Tarjeta de servicio */
.perze-servicio-card {
  background: var(--perze-bg);
  border: 1px solid var(--perze-border);
  border-radius: var(--perze-radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;        /* ocupa todo el alto del swiper-slide */
  transition: border-color var(--perze-dur) var(--perze-ease),
              transform var(--perze-dur) var(--perze-ease),
              box-shadow var(--perze-dur) var(--perze-ease);
}
.perze-servicio-card:hover,
.perze-servicio-card:focus-within {
  border-color: rgba(244,157,37,.5);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,.12), 0 0 0 1px rgba(244,157,37,.1);
}
.perze-servicio-card--has-gallery { cursor: pointer; }

.perze-servicio-card__img-wrap {
  position: relative;
  height: 13rem;
  overflow: hidden;
}
.perze-servicio-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--perze-ease);
}
.perze-servicio-card:hover .perze-servicio-card__img { transform: scale(1.08); }

.perze-servicio-card__overlay {
  position: absolute;
  inset: 0;
  background: rgba(244,157,37,.85);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  color: white;
  font-size: .875rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity var(--perze-dur) var(--perze-ease);
}
.perze-servicio-card__overlay .material-icons-outlined { font-size: 2rem; }
.perze-servicio-card:hover .perze-servicio-card__overlay,
.perze-servicio-card:focus-within .perze-servicio-card__overlay { opacity: 1; }

.perze-servicio-card__body { padding: 1.5rem 1.75rem; flex: 1; display: flex; flex-direction: column; }

.perze-servicio-card__icon {
  color: var(--perze-primary);
  font-size: 1.75rem;
  margin-bottom: .75rem;
  display: block;
}
.perze-servicio-card__title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--perze-text-primary);
  margin-bottom: .625rem;
  line-height: 1.3;
}
.perze-servicio-card__desc {
  font-size: .9375rem;
  color: var(--perze-text-muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}
.perze-servicio-card__cta {
  display: inline-flex;
  align-items: center;
  gap: .375rem;
  font-size: .8125rem;
  font-weight: 600;
  color: var(--perze-primary);
  margin-top: auto;    /* empuja el botón al fondo */
  transition: gap var(--perze-dur) var(--perze-ease);
}
.perze-servicio-card__cta:hover { gap: .625rem; }
.perze-servicio-card__cta .material-icons-outlined { font-size: 1rem; }

/* Servicios complementarios */
.perze-servicios__comp {
  border-top: 1px solid var(--perze-border);
  padding-top: 3rem;
}
.perze-servicios__comp-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--perze-text-primary);
  margin-bottom: 2rem;
}
.perze-servicios__comp-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: .5rem;
}
.perze-servicio-comp {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--perze-radius);
  transition: background var(--perze-dur) var(--perze-ease);
}
.perze-servicio-comp:hover { background: var(--perze-bg); }
.perze-section--surface .perze-servicio-comp:hover { background: var(--perze-surface); }

.perze-servicio-comp__icon { color: var(--perze-primary); margin-top: .125rem; font-size: 1.5rem; flex-shrink: 0; }
.perze-servicio-comp__title {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--perze-text-primary);
  margin-bottom: .25rem;
}
.perze-servicio-comp__desc { font-size: .8125rem; color: var(--perze-text-muted); line-height: 1.5; }

/* ═══════════════════════════════════════════════════════════════
   EXPERIENCIA
   ═══════════════════════════════════════════════════════════════ */
.perze-experiencia__grid {
  display: grid;
  /* minmax(0,1fr) evita el bug donde 1fr se expande al max-content del Swiper */
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4rem;
  align-items: start;
}
/* Los ítems del grid deben tener min-width:0 para que 1fr funcione correctamente */
.perze-experiencia__content,
.perze-experiencia__carousel-wrap {
  min-width: 0;
  overflow: hidden;
}
/* El glow-bg usa overflow visible así que lo restauramos en el wrap */
.perze-experiencia__carousel-wrap {
  overflow: visible;
}
@media (max-width: 1024px) {
  .perze-experiencia__grid { grid-template-columns: 1fr; gap: 3rem; }
}

.perze-experiencia__title {
  font-size: clamp(1.75rem, 3.5vw, 3rem);
  font-weight: 800;
  color: var(--perze-text-primary);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.perze-experiencia__desc {
  font-size: 1.0625rem;
  color: var(--perze-text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.perze-experiencia__subtitle {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--perze-text-primary);
  margin-bottom: 1.75rem;
}

/* Timeline */
.perze-timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.perze-timeline__line {
  position: absolute;
  left: .9375rem;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  background: var(--perze-border);
}
.perze-timeline__item {
  position: relative;
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}
.perze-timeline__dot {
  position: relative;
  z-index: 1;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  background: var(--perze-surface);
  border: 2px solid var(--perze-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color var(--perze-dur) var(--perze-ease),
              background var(--perze-dur) var(--perze-ease),
              box-shadow var(--perze-dur) var(--perze-ease);
}
/* Icono siempre presente, oculto por default */
.perze-timeline__dot .material-icons-outlined {
  font-size: .875rem;
  color: var(--perze-text-muted);
  transition: color var(--perze-dur) var(--perze-ease), transform var(--perze-dur) var(--perze-ease);
}
/* Hover: activa color naranja + icono blanco */
.perze-timeline__item:hover .perze-timeline__dot {
  border-color: var(--perze-primary);
  background: var(--perze-primary);
  box-shadow: 0 0 0 5px rgba(244,157,37,.18);
}
.perze-timeline__item:hover .perze-timeline__dot .material-icons-outlined {
  color: white;
  transform: scale(1.15);
}

.perze-timeline__title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--perze-text-primary);
  margin-bottom: .25rem;
  transition: color var(--perze-dur) var(--perze-ease);
}
.perze-timeline__item:hover .perze-timeline__title { color: var(--perze-primary); }
.perze-timeline__sub { font-size: .875rem; color: var(--perze-text-muted); line-height: 1.55; }

/* Carrusel Experiencia */
.perze-experiencia__carousel-wrap {
  position: relative;
  /* Altura explícita para evitar el bug de Swiper con height:100% en cascada */
  height: clamp(420px, 60vh, 700px);
  min-height: 420px;
  align-self: start;
}
.perze-glow-bg {
  position: absolute;
  inset: -1rem;
  background: radial-gradient(ellipse at center, rgba(244,157,37,.12), transparent 70%);
  border-radius: var(--perze-radius-lg);
  opacity: 0;
  transition: opacity .5s var(--perze-ease);
  pointer-events: none;
  z-index: 0;
}
.perze-experiencia__carousel-wrap:hover .perze-glow-bg { opacity: 1; }

.perze-exp-swiper {
  position: relative;
  z-index: 1;
  border-radius: var(--perze-radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 48px var(--perze-shadow);
  width: 100%;
  height: 100%; /* usa la altura del wrapper, no aspect-ratio */
}
/* Forzar que el swiper-wrapper y slides respeten la altura del contenedor */
.perze-exp-swiper .swiper-wrapper { height: 100% !important; }
.perze-exp-swiper .swiper-slide   { height: 100% !important; }
@media (max-width: 640px) {
  .perze-experiencia__carousel-wrap { height: clamp(280px, 65vw, 400px); min-height: 280px; }
}

.perze-exp-slide__inner { position: relative; width: 100%; height: 100%; min-height: 0; }
.perze-exp-slide__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.perze-exp-slide__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.8) 0%, transparent 50%);
}
.perze-exp-slide__info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 2rem 2rem 3.5rem;   /* bottom extra para no tapar el badge */
  color: white;
}
.perze-exp-slide__label {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--perze-primary);
  margin-bottom: .5rem;
}
.perze-exp-slide__title { font-size: 1.5rem; font-weight: 700; margin-bottom: .5rem; }
.perze-exp-slide__loc {
  display: flex;
  align-items: center;
  gap: .25rem;
  font-size: .875rem;
  color: rgba(255,255,255,.7);
}

/* Swiper custom nav */
.perze-exp-swiper .swiper-button-prev,
.perze-exp-swiper .swiper-button-next {
  width: 2.5rem;
  height: 2.5rem;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  color: white !important;
}
.perze-exp-swiper .swiper-button-prev::after,
.perze-exp-swiper .swiper-button-next::after { font-size: .875rem !important; font-weight: 900; }
.perze-exp-swiper .swiper-button-prev:hover,
.perze-exp-swiper .swiper-button-next:hover { background: rgba(244,157,37,.8); }

.perze-exp-swiper .swiper-pagination-bullet { background: rgba(255,255,255,.5); }
.perze-exp-swiper .swiper-pagination-bullet-active { background: var(--perze-primary); }

/* Badge certificado */
.perze-exp-badge {
  position: absolute;
  bottom: -1.5rem;
  left: -1.5rem;
  background: var(--perze-surface);
  border: 1px solid var(--perze-border);
  border-radius: var(--perze-radius);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  box-shadow: 0 8px 24px var(--perze-shadow);
  z-index: 2;
}
.perze-exp-badge .material-icons-outlined { color: var(--perze-primary); font-size: 2rem; }
.perze-exp-badge strong { display: block; color: var(--perze-text-primary); font-size: .9375rem; }
.perze-exp-badge span  { font-size: .75rem; color: var(--perze-text-muted); }

/* ═══════════════════════════════════════════════════════════════
   COBERTURA
   ═══════════════════════════════════════════════════════════════ */
.perze-cobertura__inner { max-width: 52rem; }
.perze-cobertura__desc {
  font-size: 1.0625rem;
  color: var(--perze-text-secondary);
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--perze-border);
  line-height: 1.7;
}
.perze-cobertura__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
  gap: 3rem;
}
.perze-cobertura__item { display: flex; align-items: flex-start; gap: 1rem; }
.perze-cobertura__icon-wrap {
  width: 2.5rem;
  height: 2.5rem;
  background: var(--perze-primary-10);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.perze-cobertura__icon-wrap .material-icons-outlined { color: var(--perze-primary); font-size: 1.25rem; }
.perze-cobertura__item-title {
  font-size: 1.1875rem;
  font-weight: 700;
  color: var(--perze-text-primary);
  margin-bottom: .5rem;
}
.perze-cobertura__item-text { font-size: .9375rem; color: var(--perze-text-muted); line-height: 1.6; }
.perze-cobertura__cta { margin-top: 2.5rem; }

/* CTA de Experiencia (columna izquierda) */
.perze-experiencia__cta { margin-top: 2rem; }

/* ═══════════════════════════════════════════════════════════════
   CLIENTES
   ═══════════════════════════════════════════════════════════════ */
.perze-clientes__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 768px) { .perze-clientes__grid { grid-template-columns: 1fr; } }

.perze-clientes__desc { font-size: 1.0625rem; line-height: 1.7; color: rgba(255,255,255,.9); }
.perze-clientes__desc p { margin-bottom: .5em; }

.perze-clientes__quote-wrap {
  background: rgba(0,0,0,.2);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--perze-radius-lg);
  padding: 2rem;
  backdrop-filter: blur(4px);
}
.perze-clientes__quote {
  font-size: 1.1875rem;
  font-weight: 500;
  line-height: 1.7;
  color: white;
  margin: 0;
}

/* ── Marquee de logos (Clientes) ─────────────────────────────── */
.perze-clientes__marquee-section {
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid rgba(255,255,255,.15);
  overflow: hidden;
}
.perze-clientes__marquee-label {
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
  text-align: center;
  margin-bottom: 1.5rem;
}
.perze-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
  mask-image: linear-gradient(to right, transparent, black 12%, black 88%, transparent);
}
.perze-marquee__track {
  display: flex;
  gap: 3rem;
  width: max-content;
  animation: perze-marquee-slide 28s linear infinite;
}
.perze-marquee:hover .perze-marquee__track {
  animation-play-state: paused;
}
@keyframes perze-marquee-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.perze-marquee__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 3rem;
  padding: .5rem 1.5rem;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--perze-radius);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background var(--perze-dur) var(--perze-ease);
}
.perze-marquee__logo:hover { background: rgba(255,255,255,.15); }
.perze-marquee__logo img {
  height: 1.75rem;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: .65;
  transition: opacity var(--perze-dur) var(--perze-ease);
}
.perze-marquee__logo:hover img { opacity: 1; }
.perze-marquee__logo--text {
  font-size: .875rem;
  font-weight: 700;
  color: rgba(255,255,255,.65);
  letter-spacing: .04em;
  font-family: var(--perze-font);
}
@media (max-width: 480px) {
  .perze-marquee__track { gap: 2rem; }
  .perze-marquee__logo { padding: .4rem 1rem; }
  .perze-marquee__logo--text { font-size: .8125rem; }
}

/* ═══════════════════════════════════════════════════════════════
   PORTAFOLIO
   ═══════════════════════════════════════════════════════════════ */
.perze-portafolio__header { margin-bottom: 3.5rem; }
.perze-portafolio__desc {
  font-size: 1.0625rem;
  color: var(--perze-text-muted);
  max-width: 36rem;
  margin-inline: auto;
  line-height: 1.7;
}

.perze-portafolio__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  gap: 1.5rem;
}

.perze-portafolio__item { cursor: pointer; border-radius: var(--perze-radius-lg); overflow: hidden; }
.perze-portafolio__img-wrap {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.perze-portafolio__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--perze-ease);
}
.perze-portafolio__item:hover .perze-portafolio__img { transform: scale(1.08); }

.perze-portafolio__hover {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.6);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity var(--perze-dur) var(--perze-ease);
  color: white;
}
.perze-portafolio__item:hover .perze-portafolio__hover,
.perze-portafolio__item:focus-within .perze-portafolio__hover { opacity: 1; }
.perze-portafolio__hover > .material-icons-outlined { font-size: 2.5rem; color: white; align-self: center; }
.perze-portafolio__hover-info { align-self: flex-start; }
.perze-portafolio__hover-tag {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--perze-primary);
  margin-bottom: .25rem;
}
.perze-portafolio__hover-title { font-size: 1rem; font-weight: 700; }
.perze-portafolio__hover-loc { display: flex; align-items: center; gap: .25rem; font-size: .8125rem; color: rgba(255,255,255,.7); margin-top: .25rem; }
.perze-portafolio__hover-count { font-size: .75rem; color: rgba(255,255,255,.6); align-self: flex-end; }

/* ═══════════════════════════════════════════════════════════════
   TRUST BANNER
   ═══════════════════════════════════════════════════════════════ */
.perze-trust { padding-block: 4rem; }
.perze-trust__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}
@media (max-width: 768px) { .perze-trust__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 400px) { .perze-trust__grid { grid-template-columns: 1fr; } }

.perze-trust__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .375rem;
  padding-inline: 1rem;
}
.perze-trust__item + .perze-trust__item {
  border-left: 1px solid rgba(255,255,255,.2);
}
@media (max-width: 400px) {
  .perze-trust__item + .perze-trust__item { border-left: none; border-top: 1px solid rgba(255,255,255,.2); padding-top: 1rem; }
}
.perze-trust__title { font-size: 1.25rem; font-weight: 800; color: white; }
.perze-trust__sub { font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* ═══════════════════════════════════════════════════════════════
   FAQ – PREGUNTAS FRECUENTES
   ═══════════════════════════════════════════════════════════════ */
.perze-faq { background: var(--perze-bg); }
.perze-faq__header { margin-bottom: 3rem; }
.perze-faq__desc {
  color: var(--perze-text-muted);
  max-width: 42rem;
  margin: .75rem auto 0;
  font-size: 1.0625rem;
}

.perze-faq__list {
  max-width: 52rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: .75rem;
}

.perze-faq__item {
  background: var(--perze-surface);
  border: 1px solid var(--perze-border);
  border-radius: var(--perze-radius);
  overflow: hidden;
  transition: border-color var(--perze-dur) var(--perze-ease);
}
.perze-faq__item:has(.perze-faq__question[aria-expanded="true"]) {
  border-color: rgba(244,157,37,.45);
}

.perze-faq__question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: var(--perze-text);
  transition: background var(--perze-dur) var(--perze-ease);
}
.perze-faq__question:hover { background: rgba(255,255,255,.03); }
.perze-faq__question[aria-expanded="true"] { background: rgba(244,157,37,.06); }

.perze-faq__question-text {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
  flex: 1;
}

.perze-faq__icon {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(244,157,37,.12);
  color: var(--perze-primary);
  transition: background var(--perze-dur) var(--perze-ease), transform var(--perze-dur) var(--perze-ease);
  position: relative;
}
.perze-faq__question[aria-expanded="true"] .perze-faq__icon {
  background: var(--perze-primary);
  color: #000;
  transform: rotate(180deg);
}
.perze-faq__icon-plus,
.perze-faq__icon-minus { font-size: 1.1rem !important; position: absolute; transition: opacity .2s; }
.perze-faq__icon-minus { opacity: 0; }
.perze-faq__question[aria-expanded="true"] .perze-faq__icon-plus  { opacity: 0; }
.perze-faq__question[aria-expanded="true"] .perze-faq__icon-minus { opacity: 1; }

/* Acordeón con grid-template-rows para animación suave sin JS height */
.perze-faq__answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--perze-ease);
}
.perze-faq__answer.is-open {
  grid-template-rows: 1fr;
}
.perze-faq__answer-inner {
  overflow: hidden;
}
.perze-faq__answer-inner p {
  padding: 1rem 1.5rem 1.25rem;
  color: var(--perze-text-muted);
  font-size: .9375rem;
  line-height: 1.7;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   CONTACTO
   ═══════════════════════════════════════════════════════════════ */
.perze-contacto__card {
  max-width: 64rem;
  margin-inline: auto;
  background: var(--perze-surface);
  border-radius: var(--perze-radius-lg);
  box-shadow: 0 24px 64px var(--perze-shadow);
  border: 1px solid var(--perze-border);
  overflow: hidden;
  display: grid;
  grid-template-columns: 2fr 3fr;
}
@media (max-width: 768px) { .perze-contacto__card { grid-template-columns: 1fr; } }

.perze-contacto__info {
  background: #0f172a;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.perze-contacto__info-pattern {
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: radial-gradient(var(--perze-primary) 1px, transparent 1px);
  background-size: 20px 20px;
}
.perze-contacto__info-content { position: relative; z-index: 1; flex: 1; }
.perze-contacto__info-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1rem;
}
.perze-contacto__info-desc { font-size: .9375rem; color: rgba(148,163,184,.9); line-height: 1.7; margin-bottom: 2.5rem; }

.perze-contacto__data-list { display: flex; flex-direction: column; gap: 1.5rem; }
.perze-contacto__data-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.perze-contacto__data-item > .material-icons-outlined { color: var(--perze-primary); margin-top: .125rem; flex-shrink: 0; }
.perze-contacto__data-label { display: block; font-size: .75rem; color: rgba(148,163,184,.75); margin-bottom: .125rem; }
.perze-contacto__data-value { font-size: .9375rem; color: white; font-style: normal; }
.perze-contacto__data-link:hover { color: var(--perze-primary); }

.perze-contacto__social {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}
.perze-contacto__ig { font-size: .875rem; color: white; }

.perze-contacto__form-wrap { padding: 2.5rem; }
.perze-contacto__form-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--perze-text-primary);
  margin-bottom: .375rem;
}
.perze-contacto__form-desc { font-size: .9375rem; color: var(--perze-text-muted); margin-bottom: 2rem; }

/* Formulario */
.perze-form { display: flex; flex-direction: column; gap: 1.25rem; }
.perze-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 600px) { .perze-form__row { grid-template-columns: 1fr; } }
.perze-form__group { display: flex; flex-direction: column; gap: .375rem; }
.perze-form__label { font-size: .875rem; font-weight: 600; color: var(--perze-text-secondary); }
.perze-form__input {
  padding: .75rem 1rem;
  border-radius: var(--perze-radius);
  background: var(--perze-bg);
  border: 1px solid var(--perze-border);
  color: var(--perze-text-primary);
  font-size: .9375rem;
  font-family: var(--perze-font);
  transition: border-color var(--perze-dur) var(--perze-ease), box-shadow var(--perze-dur) var(--perze-ease);
  width: 100%;
}
.perze-form__input:focus {
  outline: none;
  border-color: var(--perze-primary);
  box-shadow: 0 0 0 3px rgba(244,157,37,.15);
}
.perze-form__textarea { resize: vertical; min-height: 7rem; }

/* CF7 override */
.perze-cf7-wrap .wpcf7-form { display: flex; flex-direction: column; gap: 1.25rem; }
.perze-cf7-wrap .wpcf7-form-control-wrap { display: block; }
.perze-cf7-wrap input:not([type=submit]),
.perze-cf7-wrap textarea,
.perze-cf7-wrap select {
  width: 100%;
  padding: .75rem 1rem;
  border-radius: var(--perze-radius);
  background: var(--perze-bg);
  border: 1px solid var(--perze-border);
  color: var(--perze-text-primary);
  font-size: .9375rem;
  font-family: var(--perze-font);
  transition: border-color var(--perze-dur) var(--perze-ease);
}
.perze-cf7-wrap input:focus,
.perze-cf7-wrap textarea:focus,
.perze-cf7-wrap select:focus {
  outline: none;
  border-color: var(--perze-primary);
  box-shadow: 0 0 0 3px rgba(244,157,37,.15);
}
.perze-cf7-wrap input[type=submit] {
  width: 100%;
  padding: .9375rem 2rem;
  background: var(--perze-primary);
  color: white;
  font-size: .9375rem;
  font-weight: 700;
  border: none;
  border-radius: var(--perze-radius);
  cursor: pointer;
  transition: background var(--perze-dur) var(--perze-ease), transform var(--perze-dur) var(--perze-ease);
  font-family: var(--perze-font);
  letter-spacing: .01em;
}
.perze-cf7-wrap input[type=submit]:hover {
  background: var(--perze-primary-hover);
  transform: translateY(-1px);
}
.perze-cf7-wrap .wpcf7-not-valid-tip { font-size: .8125rem; color: #ef4444; margin-top: .25rem; }
.perze-cf7-wrap .wpcf7-response-output {
  padding: .75rem 1rem;
  border-radius: var(--perze-radius);
  font-size: .875rem;
  font-weight: 600;
  border: 1px solid;
  margin-top: .5rem;
}
.perze-cf7-wrap .wpcf7-response-output.wpcf7-mail-sent-ok {
  background: rgba(34,197,94,.1);
  border-color: #22c55e;
  color: #16a34a;
}
.perze-cf7-wrap .wpcf7-response-output.wpcf7-validation-errors,
.perze-cf7-wrap .wpcf7-response-output.wpcf7-mail-sent-ng {
  background: rgba(239,68,68,.1);
  border-color: #ef4444;
  color: #dc2626;
}

.perze-contacto__notice {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  padding: 1rem;
  background: var(--perze-primary-10);
  border-radius: var(--perze-radius);
  color: var(--perze-primary);
  font-size: .875rem;
  margin-bottom: 1.5rem;
}
.perze-contacto__notice p { color: var(--perze-text-secondary); flex: 1; }

/* ═══════════════════════════════════════════════════════════════
   MAPA
   ═══════════════════════════════════════════════════════════════ */
.perze-mapa {
  position: relative;
  height: 22rem;
  overflow: hidden;
  filter: grayscale(1);
  transition: filter .7s var(--perze-ease);
}
.perze-mapa:hover { filter: grayscale(0); }
.perze-mapa__img { width: 100%; height: 100%; object-fit: cover; }
.perze-mapa__overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,10,10,.3);
  pointer-events: none;
}
.perze-mapa__badge {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  background: var(--perze-surface);
  border-radius: var(--perze-radius-full);
  padding: .75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: .625rem;
  box-shadow: 0 8px 32px rgba(0,0,0,.25);
  font-weight: 700;
  color: var(--perze-text-primary);
  font-size: .9375rem;
  white-space: nowrap;
}
.perze-mapa__badge-dot {
  width: .625rem;
  height: .625rem;
  border-radius: 50%;
  background: #22c55e;
  animation: pulseDot 2s ease-in-out infinite;
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════ */
.perze-footer {
  background: #161616;
  border-top: 1px solid rgba(255,255,255,.05);
}
.perze-footer__inner {
  padding: 4rem var(--perze-container-px) 2rem;
}

.perze-footer__logo img { height: 3rem; width: auto; object-fit: contain; }

.perze-footer__tagline {
  font-size: .875rem;
  color: rgba(148,163,184,.75);
  line-height: 1.6;
  margin-top: 1rem;
}

.perze-footer__col-title {
  font-size: .9375rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.5rem;
}

.perze-footer__list {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  font-size: .875rem;
  color: rgba(148,163,184,.75);
  line-height: 1.5;
}
.perze-footer__list a { transition: color var(--perze-dur) var(--perze-ease); }
.perze-footer__list a:hover { color: var(--perze-primary); }
.perze-footer__wa { color: var(--perze-primary); }
.perze-footer__wa:hover { color: var(--perze-primary-hover); }

.perze-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.05);
  padding-top: 2rem;
  margin-top: 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.perze-footer__copy { font-size: .8125rem; color: rgba(100,116,139,.8); }
.perze-footer__legal-list {
  display: flex;
  gap: 1.5rem;
  font-size: .8125rem;
  color: rgba(100,116,139,.8);
}
.perze-footer__legal-list a:hover { color: white; }

/* WP blocks en footer – forzar grid para que las columnas respeten sus anchos */
.perze-footer__cols.wp-block-columns {
  display: grid !important;
  grid-template-columns: 3fr 2fr 2fr 3fr;
  gap: 3rem;
  flex-wrap: unset;
}
.perze-footer__cols .wp-block-column {
  flex-basis: auto !important;
  width: auto !important;
  min-width: 0;
  max-width: none !important;
}
@media (max-width: 768px) {
  .perze-footer__cols.wp-block-columns {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 480px) {
  .perze-footer__cols.wp-block-columns {
    grid-template-columns: 1fr;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MODAL GALERÍA
   ═══════════════════════════════════════════════════════════════ */
.perze-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9000;
  background: rgba(0,0,0,.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--perze-ease);
}
.perze-modal-backdrop.perze-modal--open {
  opacity: 1;
  pointer-events: all;
}

.perze-modal {
  position: relative;
  width: 100%;
  max-width: 72rem;
  max-height: 90svh;
  display: flex;
  flex-direction: column;
  background: #111;
  border-radius: var(--perze-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  box-shadow: 0 40px 80px rgba(0,0,0,.6);
  transform: scale(.96);
  transition: transform .25s var(--perze-ease);
}
.perze-modal-backdrop.perze-modal--open .perze-modal { transform: scale(1); }

/* Cabecera del modal */
.perze-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.perze-modal__title { font-size: 1rem; font-weight: 700; color: white; }
.perze-modal__counter { font-size: .8125rem; color: rgba(255,255,255,.45); }
.perze-modal__close {
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.7);
  transition: background var(--perze-dur) var(--perze-ease), color var(--perze-dur) var(--perze-ease);
}
.perze-modal__close:hover { background: rgba(239,68,68,.8); color: white; }

/* Imagen principal del modal */
.perze-modal__main {
  position: relative;
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  min-height: 0;
}
.perze-modal__img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
  height: 100%;
}
.perze-modal__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background var(--perze-dur) var(--perze-ease);
  z-index: 10;
}
.perze-modal__nav:hover { background: rgba(244,157,37,.7); }
.perze-modal__nav--prev { left: 1rem; }
.perze-modal__nav--next { right: 1rem; }

/* Thumbnails del modal */
.perze-modal__thumbs {
  display: flex;
  gap: .5rem;
  padding: .75rem 1rem;
  overflow-x: auto;
  background: rgba(0,0,0,.4);
  border-top: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
  scrollbar-width: thin;
}
.perze-modal__thumb {
  flex-shrink: 0;
  width: 4rem;
  height: 3rem;
  border-radius: .25rem;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--perze-dur) var(--perze-ease), opacity var(--perze-dur) var(--perze-ease);
  opacity: .6;
}
.perze-modal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.perze-modal__thumb--active { border-color: var(--perze-primary); opacity: 1; }

/* ═══════════════════════════════════════════════════════════════
   ANIMACIONES GSAP (clases de estado inicial)
   ═══════════════════════════════════════════════════════════════ */
.perze-gsap-fade-up    { opacity: 0; transform: translateY(32px); }
.perze-gsap-fade-left  { opacity: 0; transform: translateX(-32px); }
.perze-gsap-fade-right { opacity: 0; transform: translateX(32px); }
.perze-gsap-card       { opacity: 0; transform: translateY(24px); }

/* Hero: visible desde el primer render, GSAP solo hace el slide-up suave */
.perze-hero .perze-gsap-fade-up {
  opacity: 1;
  transform: translateY(18px); /* offset pequeño, solo movimiento vertical */
}
.perze-gsap-done       { opacity: 1; transform: none; } /* clase tras animar */

/* ═══════════════════════════════════════════════════════════════
   UTILIDADES
   ═══════════════════════════════════════════════════════════════ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ═══════════════════════════════════════════════════════════════
   MENÚ MOBILE – FULL SCREEN OVERLAY CENTRADO
   ═══════════════════════════════════════════════════════════════ */

/* ── Mobile: ocultar botón WhatsApp outline ──────────────────── */
@media (max-width: 768px) {
  .perze-nav__btns .perze-btn-outline { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MENÚ MOBILE WP NAVIGATION – FULL SCREEN OVERLAY CENTRADO
   Todos los selectores scoped al estado .is-menu-open
   para no afectar el layout desktop
   ═══════════════════════════════════════════════════════════════ */

/* Overlay full-screen */
.wp-block-navigation__responsive-container.is-menu-open {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: rgba(6,6,6,.97) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  z-index: 9999 !important;
  display: block !important;
  padding: 0 !important;
}

/* Wrapper que llena todo el overlay */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-close {
  position: absolute !important;
  inset: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Dialog llena el espacio */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-dialog {
  position: relative !important;
  width: 100% !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
}

/* Contenido centrado – solo cuando overlay está abierto */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-content {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 360px;
  gap: 0 !important;
}

.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-content
.wp-block-navigation__container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  width: 100% !important;
  gap: 0 !important;
}

/* Items del menú overlay */
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100% !important;
  text-align: center !important;
  border-bottom: 1px solid rgba(255,255,255,.06) !important;
}
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item__content {
  display: block !important;
  width: 100% !important;
  padding: 1.1rem 1rem !important;
  font-size: 1.4rem !important;
  font-weight: 700 !important;
  color: rgba(255,255,255,.85) !important;
  letter-spacing: -.01em !important;
  transition: color .2s ease !important;
}
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation-item__content:hover {
  color: var(--perze-primary) !important;
}

/* Botón hamburguesa: solo visible en mobile */
.wp-block-navigation__responsive-container-open {
  display: none;
}
@media (max-width: 768px) {
  .wp-block-navigation__responsive-container-open {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 2.5rem !important;
    height: 2.5rem !important;
    background: var(--perze-primary-10) !important;
    border-radius: var(--perze-radius) !important;
    color: var(--perze-primary) !important;
    border: 1px solid rgba(244,157,37,.3) !important;
    cursor: pointer !important;
    transition: background .2s ease !important;
  }
  .wp-block-navigation__responsive-container-open:hover {
    background: var(--perze-primary-20) !important;
  }
}

/* Botón X de cierre */
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-close {
  position: absolute !important;
  top: 1.25rem !important;
  right: 1.25rem !important;
  width: 2.75rem !important;
  height: 2.75rem !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,.08) !important;
  border-radius: 50% !important;
  color: white !important;
  border: none !important;
  cursor: pointer !important;
  transition: background .2s ease !important;
  z-index: 10 !important;
}
.wp-block-navigation__responsive-container.is-menu-open
.wp-block-navigation__responsive-container-close:hover {
  background: rgba(244,157,37,.8) !important;
}

/* Logo "PERZE" en el overlay mobile */
.wp-block-navigation__responsive-container.is-menu-open::before {
  content: 'PERZE';
  position: absolute;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.125rem;
  font-weight: 900;
  letter-spacing: .08em;
  color: var(--perze-primary);
  pointer-events: none;
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  :root {
    --perze-py: 5rem;
    --perze-container: 100%;
  }
}

@media (max-width: 768px) {
  :root { --perze-py: 4rem; }

  /* Hero */
  .perze-hero__inner { padding-block: 4rem 3rem; }
  .perze-hero__ctas { flex-direction: column; }
  .perze-hero__ctas .perze-btn { justify-content: center; width: 100%; }

  /* Experiencia */
  .perze-experiencia__grid { grid-template-columns: 1fr; }
  .perze-exp-badge { position: static; margin-top: 2rem; width: fit-content; }
  .perze-exp-slide__info { padding-bottom: 2rem; } /* sin badge flotante en mobile */

  /* Portafolio */
  .perze-portafolio__grid { grid-template-columns: repeat(2, 1fr); }

  /* Modal */
  .perze-modal__thumbs { display: none; }

  /* Nav actions: ocultar btn WhatsApp outline en móvil */
  .perze-nav__btns .is-style-outline { display: none; }

  /* Clientes */
  .perze-clientes__grid { grid-template-columns: 1fr; gap: 2rem; }
  .perze-clientes__marquee-section { margin-top: 2rem; }

  /* Contacto */
  .perze-contacto__card { grid-template-columns: 1fr; }

  /* Cobertura */
  .perze-cobertura__grid { grid-template-columns: 1fr; gap: 2rem; }

  /* Trust */
  .perze-trust__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  :root { --perze-py: 3rem; --perze-container-px: 1rem; }

  /* Hero más compacto */
  .perze-hero__title { font-size: clamp(1.875rem, 9vw, 2.5rem); }
  .perze-hero__desc  { font-size: .9375rem; }
  .perze-hero__inner { padding-block: 3.5rem 2.5rem; }

  /* Servicios */
  .perze-servicios__carousel-wrap { padding-inline: 2.25rem; }
  .perze-servicios__comp-grid { grid-template-columns: 1fr; }

  /* Portafolio */
  .perze-portafolio__grid { grid-template-columns: 1fr; }

  /* Trust */
  .perze-trust__grid { grid-template-columns: 1fr 1fr; }
  .perze-trust__title { font-size: 1.0625rem; }

  /* Footer */
  .perze-footer__cols.wp-block-columns { gap: 1.5rem; }

  /* Sección labels */
  .perze-section-title { font-size: clamp(1.5rem, 7vw, 2rem); }

  /* Timeline items más compactos */
  .perze-timeline { gap: 1.25rem; }
  .perze-timeline__title { font-size: 1rem; }
}

/* ── WP Reset ──────────────────────────────────────────────── */
.wp-block-post-content > * + * { margin-top: 0 !important; }
.perze-landing > * { margin-top: 0 !important; margin-bottom: 0 !important; }
.is-layout-flow > * + * { margin-block-start: 0 !important; }

/* Nav WP core override */
.perze-nav .wp-block-navigation .wp-block-navigation-item a {
  font-size: .875rem !important;
  font-weight: 500 !important;
  color: var(--perze-text-secondary) !important;
  padding: 0 !important;
  transition: color var(--perze-dur) var(--perze-ease) !important;
}
.perze-nav .wp-block-navigation .wp-block-navigation-item a:hover { color: var(--perze-primary) !important; }
.perze-nav .wp-block-navigation-item--current a { color: var(--perze-primary) !important; }

/* Hide default WP margins */
.wp-site-blocks { padding: 0 !important; }
.wp-site-blocks > header { padding: 0 !important; }
