/*
Theme Name: Avenida Publicidad
Theme URI: https://avenidapublicidad.com
Author: Antigravity AI
Description: Tema a medida para Avenida Publicidad. Extraído directamente de Figma (Diseño Atómico).
Version: 1.0.0
*/

:root {
  /* Typography */
  --font-primary: 'Inter', sans-serif;
  --font-secondary: 'Manrope', sans-serif;

  /* Colors - Extraídos de Figma */
  --color-bg-main: #13081A;
  /* Fondo principal oscuro */
  --color-bg-secondary: #13081A;
  /* Fondo secundario */
  --color-surface: #261034;
  /* Fondo de tarjetas / cards */
  --color-surface-light: #2F154A;

  --color-primary: #D34DEB;
  /* Botones principales (Fucsia/Púrpura brillante) */
  --color-primary-hover: #E594F3;

  --color-accent: #5E2983;
  /* Filtros activos */
  --color-accent-light: #7E549C;

  --color-text-main: #FFFFFF;
  --color-text-muted: #D9D9D9;
  /* Gris claro para subtítulos */
  --color-text-dark: #1C1B1F;
}

/* Base Styles */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  background-color: var(--color-bg-main);
}

body {
  margin: 0 auto;
  padding: 0;
  background-color: var(--color-bg-main);
  color: var(--color-text-main);
  font-family: var(--font-primary);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 1440px;
  position: relative;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-primary);
  margin: 0 0 1rem 0;
}

/* -----------------------------
   ATOMS (Átomos)
----------------------------- */

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 25px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background-color: var(--color-primary);
  color: var(--color-text-main);
}

.btn-primary:hover {
  background-color: #4B2169;
  /* Púrpura oscuro según grilla de Figma */
  color: var(--color-text-main);
}

.btn-secondary {
  background-color: rgba(38, 16, 52, 0.3);
  color: #FFFFFF;
  border: 1px solid #EFEAF3;
}

.btn-secondary:hover {
  background-color: rgba(38, 16, 52, 0.6);
  color: #FFFFFF;
}

.btn-outline {
  background-color: transparent;
  color: var(--color-text-main);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background-color: #261034;
  border-color: var(--color-text-main);
}

/* Filtros y Etiquetas (Pills) */
.filter-pill {
  background-color: var(--color-surface);
  color: var(--color-text-muted);
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  display: inline-block;
}

.filter-pill.active,
.filter-pill:hover {
  background-color: var(--color-accent);
  color: var(--color-text-main);
  border-color: var(--color-accent-light);
}

/* -----------------------------
   LAYOUT & UTILITIES
----------------------------- */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 64px;
}

/* -----------------------------
   HEADER
----------------------------- */
.site-header {
  position: fixed;
  top: 24px;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 1440px;
  z-index: 1000;
}

.header-pill {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #13081A;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 12px 24px;
  border-radius: 50px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.logo {
  color: var(--color-text-main);
  text-decoration: none;
  font-size: 24px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 2px;
}

.logo-icon {
  background: var(--color-text-main);
  color: var(--color-bg-main);
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.site-navigation {
  display: flex;
  align-items: center;
  gap: 40px;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.btn-nav-mobile {
  display: none !important;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  margin: 0 auto;
  width: 100%;
  max-width: 390px;
  background-color: #13081A;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 24px;
  z-index: 1000;
}

.mobile-menu-overlay.active {
  display: block;
  animation: fadeIn 0.3s ease-in-out;
}

.mobile-menu-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
}

.mobile-logo img {
  width: 24px;
  height: 24px;
  object-fit: cover;
  object-position: left;
}

.menu-close {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 40px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.mobile-nav-list a {
  color: #F2F2F2;
  font-size: 16px;
  text-decoration: none;
  font-weight: 500;
}

.mobile-cta-wrapper {
  width: 100%;

}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.site-navigation .nav-menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 40px;
}

.site-navigation a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: color 0.3s;
}

.site-navigation a:hover {
  color: var(--color-text-main);
}

.site-navigation a.btn {
  color: var(--color-text-main);
}


/* -----------------------------
   HERO SECTION
----------------------------- */
.hero-section {
  padding-top: 124px;
  height: 782px;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 10;
  overflow: hidden;
  background-color: var(--color-bg-main);
  background-image: url('./assets/images/hero-bg.png');
  background-position: right center;
  background-size: auto 100%;
  background-repeat: no-repeat;
}

/* Recuadro con degradado a la izquierda para transición suave */
.hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 55%;
  /* Ocupa la mitad izquierda */
  height: 100%;
  background: linear-gradient(to right, #271036 40%, rgba(168, 62, 188, 0) 100%);
  z-index: 10;
}

/* Animación del cartel (fondo) */
.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-position: right center;
  background-size: auto 100%;
  background-repeat: no-repeat;
  opacity: 0;
  z-index: 1;
}

.hero-bg-2 {
  background-image: url('./assets/images/hero-bg-2.png');
  animation: heroBg2 10s infinite;
  z-index: 1;
}

.hero-bg-3 {
  background-image: url('./assets/images/hero-bg-3.png');
  animation: heroBg3 10s infinite;
  z-index: 2;
}

@keyframes heroBg2 {

  0%,
  25% {
    opacity: 0;
  }

  30%,
  60% {
    opacity: 1;
  }

  65%,
  100% {
    opacity: 0;
  }
}

@keyframes heroBg3 {

  0%,
  55% {
    opacity: 0;
  }

  60%,
  90% {
    opacity: 1;
  }

  95%,
  100% {
    opacity: 0;
  }
}

.hero-container {
  display: flex;
  align-items: center;
  gap: 60px;
  flex-wrap: wrap;
  position: relative;
  z-index: 20;
}

.hero-content {
  flex: 1;
  min-width: 300px;
  padding-left: 32px;
  /* Exactamente el mismo padding izquierdo que la pastilla del header */
}

.location-pill {
  display: inline-block;
  border: 1px solid rgba(242, 242, 242, 0.2);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 14px;
  letter-spacing: 0;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-secondary);
  font-size: 80px;
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 36px;
  color: var(--color-text-main);
  word-wrap: break-word;
  overflow-wrap: break-word;
  filter: drop-shadow(0px 4px 4px rgba(0, 0, 0, 0.9));
  max-width: 60%;

}

.hero-divider {
  width: 198px;
  height: 5px;
  background-color: var(--color-primary);
  margin-bottom: 30px;
}

.hero-description {
  font-size: 18px;
  line-height: 1.6;
  color: #F2F2F2;
  font-weight: 400;
  margin-bottom: 54px;
  max-width: 590px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.hero-disclaimer {
  font-family: var(--font-primary);
  font-size: 14px;
  /* Según API */
  font-weight: 400;
  color: #F2F2F2;
  padding-top: 9px;
}

.hero-image {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.placeholder-image {
  width: 100%;
  max-width: 400px;
  height: 600px;
  background: linear-gradient(135deg, var(--color-surface), var(--color-surface-light));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-light);
  font-weight: 600;
  text-align: center;
  padding: 20px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

/* RESPONSIVE BASE (MOBILE FIRST APPROACH) */




/* -----------------------------
   KPI SECTION
----------------------------- */
.kpi-section {
  padding: 60px 0 0 0;
  background: linear-gradient(to bottom, var(--color-surface) 0%, #13081A 40%);
}

.kpi-inner {
  position: relative;
  z-index: 2;
}

.section-subtitle {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
  color: #e594f3;
  margin-bottom: 24px;
}

.kpi-grid {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  flex-wrap: wrap;
}

.kpi-card {
  flex: 1;
  min-width: 182px;
  background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg-main) 100%);
  border: 1px solid rgba(242, 242, 242, 0.12);
  border-radius: 20px;
  padding: 24px 24px;
}

svg.kpi-icon {
  width: 18px;
  height: 18px;
  display: block;
  margin-bottom: 20px;
  color: #4C297F;
  animation: kpi-blink 3s infinite ease-in-out;
}

.kpi-card:nth-child(1) svg.kpi-icon {
  animation-delay: 0s;
}

.kpi-card:nth-child(2) svg.kpi-icon {
  animation-delay: 0.75s;
}

.kpi-card:nth-child(3) svg.kpi-icon {
  animation-delay: 1.5s;
}

.kpi-card:nth-child(4) svg.kpi-icon {
  animation-delay: 2.25s;
}

@keyframes kpi-blink {
  0% {
    color: #4C297F;
    filter: none;
  }

  8.33% {
    color: #D34DEB;
    filter: drop-shadow(0 0 8px rgba(211, 77, 235, 0.8));
  }

  25% {
    color: #D34DEB;
    filter: drop-shadow(0 0 8px rgba(211, 77, 235, 0.8));
  }

  33.33%,
  100% {
    color: #4C297F;
    filter: none;
  }
}

.kpi-number {
  font-family: var(--font-primary);
  font-size: 42px;
  font-weight: 800;
  color: var(--color-text-main);
  margin: 0 0 8px 0;
  line-height: 1;
  letter-spacing: -1px;
}

.kpi-label {
  font-size: 14px;
  color: #DFD4E6;
  margin: 0;
  font-weight: 400;
}

/* -----------------------------
   PORTFOLIO SECTION
----------------------------- */
.portfolio-section {
  padding: 100px 0 0;

}

.portfolio-header {
  margin-bottom: 40px;
  max-width: 800px;
}

.portfolio-eyebrow {
  font-family: var(--font-primary);
  font-size: 14px;
  color: #E594F3;
  letter-spacing: 0;
  text-transform: uppercase;
  display: block;
  margin-bottom: 16px;
}

.portfolio-title {
  font-family: var(--font-secondary);
  font-size: 72px;
  font-weight: 800;
  color: #F2F2F2;
  margin-bottom: 32px;
  line-height: 1.1;
}

.portfolio-description {
  font-family: var(--font-primary);
  font-size: 18px;
  color: #F2F2F2;
  font-weight: 400;
  line-height: 1.6;
}

.portfolio-description p {
  margin-bottom: 24px;
  letter-spacing: 0;
}

.filters-box {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(229, 229, 229, 0.3);
  border-radius: 16px;
  padding: 30px 24px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 40px;
  flex-wrap: wrap;
  gap: 24px;
}

.filters-label {
  font-family: var(--font-primary);
  font-size: 16px;
  color: #CCCCCC;
  margin-bottom: 27px;
  display: block;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0;
}

.filters-right .filters-label {
  margin-bottom: 12px;
}

.filters-group {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-btn {
  background: #09040D;
  border: 1px solid #333333;
  color: #FFFFFF;
  padding: 10px 20px;
  border-radius: 32px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  cursor: pointer;
  display: flex;
  align-items: center;
  transition: all 0.2s ease;
}

.filter-btn:hover {
  background: #1a0b26;
}

.filter-btn.active {
  background: #A93EBC;
  border: 1px solid #A93EBC;
  color: #FFFFFF;
}

.filter-btn svg {
  display: none;
  margin-right: 6px;
}

.filter-btn.active svg {
  display: inline-block;
}

.filter-option {
  transition: background 0.2s ease;
  justify-content: flex-start !important;
}

.filter-option:hover {
  background: rgba(255, 255, 255, 0.05);
}

.filter-option.selected {
  background: #391954;
}

.filter-option.selected::after {
  display: none !important;
}

.filter-option .chk-checked {
  display: none;
}

.filter-option.selected .chk-empty {
  display: none;
}

.filter-option.selected .chk-checked {
  display: inline-block;
}

.count-pill {
  background: #352540;
  padding: 8px 16px;
  border-radius: 20px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: #CCCCCC;
  display: flex;
  align-items: center;
  white-space: nowrap;
  margin-top: 22px;
}

.portfolio-results-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.results-title {
  font-family: var(--font-secondary);
  font-size: 24px;
  color: #F2F2F2;
  font-weight: 800;
  margin: 0;
}

.results-count {
  font-family: var(--font-primary);
  font-size: 14px;
  color: #F2F2F2;
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  justify-content: start;
}

.portfolio-item {
  display: flex;
  flex-direction: column;
  padding-bottom: 24px;
  border-bottom: 1px solid #F2F2F2;
  cursor: pointer;
  transition: transform 0.2s ease;
  width: 100%;
}



.portfolio-image {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, #35144A, #09040D);
  border-radius: 24px;
  margin-bottom: 20px;
  overflow: hidden;
}

.portfolio-image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding-left: 32px;
  background: rgba(19, 8, 26, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.btn-ver-detalle {
  background-color: #D34DEB;
  color: #FFFFFF;
  padding: 10px 24px;
  border-radius: 50px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  transform: translateY(10px);
  transition: transform 0.3s ease;
}

.portfolio-item:hover .portfolio-image-overlay {
  opacity: 1;
}

.portfolio-item:hover .btn-ver-detalle {
  transform: translateY(0);
}

.portfolio-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.item-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.item-title {
  font-family: var(--font-secondary);
  font-size: 22px;
  font-weight: 800;
  color: #F2F2F2;
  margin: 0;
}

.item-number {
  font-family: var(--font-primary);
  font-size: 12px;
  color: #F2F2F2;
}

.item-tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid #FFFFFF;
  border-radius: 32px;
  padding: 4px 8px;
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.06);
  width: fit-content;
}

.item-tag-pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* Variación Analógico */
.portfolio-item.analogico .item-tag-pill {
  color: #FFFFFF;
}

.portfolio-item.analogico .item-tag-pill .dot {
  background: #FFFFFF;
}

/* Variación Digital */
.portfolio-item.digital .item-tag-pill {
  color: #EEB8F7;
}

.portfolio-item.digital .item-tag-pill .dot {
  background: #EEB8F7;
}

/* -----------------------------
   COMO TRABAJAMOS SECTION
----------------------------- */
.como-trabajamos-section {
  padding: 100px 0 0;

}

.como-header {
  margin-bottom: 64px;
  max-width: 800px;
}

.como-title {
  font-family: var(--font-secondary);
  font-size: 72px;
  font-weight: 800;
  color: #F2F2F2;
  margin-bottom: 32px;
  line-height: 1.1;
}

.como-description {
  font-family: var(--font-primary);
  font-size: 18px;
  color: #F2F2F2;
  font-weight: 400;
  line-height: 1.6;
  margin-bottom: 32px;
}

.pasos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.paso-card {
  padding: 24px;
  border-radius: 24px;
  border: 1px solid rgba(242, 242, 242, 0.12);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: linear-gradient(to bottom, #09040D 0%, #261034 80%);
  position: relative;
  overflow: hidden;
}

.paso-card::before {
  content: "";
  position: absolute;
  top: -3%;
  right: -6%;
  left: auto;
  width: 80%;
  height: 120%;
  opacity: 0.3;
  background-position: top right;
  background-repeat: no-repeat;
  background-size: contain;
  z-index: 1;
  animation: highlightPaso 9s infinite;
  will-change: opacity;
}

@keyframes highlightPaso {

  0%,
  33.33%,
  100% {
    opacity: 0.3;
  }

  10%,
  23% {
    opacity: 0.55;
  }
}

.paso-number {
  font-family: var(--font-secondary);
  font-size: 72px;
  font-weight: 800;
  color: #D34DEB;
  line-height: 1;
  position: relative;
  z-index: 2;
}

.paso-title {
  font-family: var(--font-secondary);
  font-size: 24px;
  font-weight: 600;
  color: #F2F2F2;
  margin: 0;
  position: relative;
  z-index: 2;
}

.paso-desc {
  font-family: 'Roboto', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: #DFD4E6;
  margin: 0;
  line-height: 1.5;
  position: relative;
  z-index: 2;
}

/* Pasos Background Images */
.paso-1::before {
  background-image: url('assets/images/objetivos-fondo.png');
  animation-delay: 0s;
}

.paso-2::before {
  background-image: url('assets/images/propuesta-fondo.png');
  animation-delay: 3s;
}

.paso-3::before {
  background-image: url('assets/images/campana-calle-fondo.png');
  animation-delay: 6s;
}

/* -----------------------------
   AMBIENT GLOWS (LUCES DE FONDO)
----------------------------- */
.portfolio-section,
.como-trabajamos-section,
.contacto-section {
  position: relative;
}

.portfolio-section::before,
.como-trabajamos-section::before,
.contacto-section::before {
  content: "";
  position: absolute;
  top: 0;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(211, 77, 235, 20%) 0%, rgba(19, 8, 26, 0%) 70%);
  transform: translateY(0%);
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 0;
}

.portfolio-section .container,
.como-trabajamos-section .container,
.contacto-section .container {
  position: relative;
  z-index: 1;
}

.portfolio-section::before {
  right: -300px;
  /* Brillo a la derecha */
}

.como-trabajamos-section::before {
  left: -300px;
  /* Brillo a la izquierda */
}

.contacto-section::before {
  right: -300px;
  top: 30%;
}

/* -----------------------------
   CONTACTO SECTION
----------------------------- */
.contacto-section {
  padding: 100px 0 40px;

}

.contacto-box {
  background-color: #13081A;
  border: 1px solid rgba(242, 242, 242, 0.12);
  border-radius: 32px;
  padding: 40px 40px;
  display: flex;
  gap: 128px;
  flex-wrap: wrap;
  background: radial-gradient(circle at bottom right, rgba(211, 77, 235, 0.2) 0%, rgba(19, 8, 26, 1) 25%);
}

.contacto-info {
  flex: 1;
  min-width: 300px;
  display: flex;
  flex-direction: column;
}

.contacto-eyebrow-container {
  margin-bottom: 20px;
}

.contacto-title {
  font-family: var(--font-secondary);
  font-size: 42px;
  font-weight: 800;
  color: #F2F2F2;
  margin-bottom: 32px;
  line-height: 1.1;
  text-shadow: 0px 0px 10px rgba(0, 0, 0, 0.5);
}

.contacto-subtitle {
  font-family: var(--font-primary);
  font-size: 18px;
  font-weight: 400;
  color: #F2F2F2;
  line-height: 1.5;
  margin-bottom: 24px;
}

.contacto-datos {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}

.dato-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dato-icon {
  width: 24px;
  height: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: #D9D9D9;
  /* Bounding box según figma, aunque capaz es invisible, lo dejo si lo dicta */
  border-radius: 4px;
  /* Opcional si es cuadrado */
  background: transparent;
  /* Corregimos a transparente porque el bounding box de figma suele ser invisible */
}

.dato-text {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: #F2F2F2;
}

.contacto-mapa-link {
  display: block;
  transition: transform 0.3s ease;
}

.contacto-mapa-link:hover {
  transform: scale(1.02);
}

.contacto-mapa {
  width: 100%;
  max-width: 391px;
  height: 228px;
  border-radius: 24px;
  background: var(--color-surface);
  position: relative;
  overflow: hidden;
  transform: translateZ(0);
  /* Force border radius on iframes in Safari */
}

.contacto-mapa iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  /* Crucial: permite que el clic lo tome el <a href> y no el iframe */
  /* Aplicamos un truco CSS: rotamos los colores para que el pin rojo pase a ser violeta */
  filter: hue-rotate(275deg) saturate(1.5) contrast(1.1);
}

.contacto-mapa .map-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10;
  background: rgba(255, 255, 255, 0);
  transition: background 0.3s ease;
}

.contacto-mapa-link:hover .map-overlay {
  background: rgba(255, 255, 255, 0.1);
}

.contacto-form-box {
  flex: 1;
  min-width: 626px;
  background-color: #09040D;
  border: 1px solid rgba(242, 242, 242, 0.12);
  border-radius: 24px;
  padding: 24px 32px;
}

.contacto-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Mensaje de Éxito CF7 */
.cf7-success-container {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 16px;
}

.cf7-success-icon-wrapper {
  margin-bottom: 24px;
}

.cf7-success-eyebrow {
  color: #E5F7EC;
  font-weight: 500;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0;
  margin-bottom: 16px;
  display: block;
}

.cf7-success-title {
  color: #FFF;
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 0;
}

.cf7-success-text {
  color: #F2F2F2;
  font-size: 16px;
  font-weight: 400;
  margin-bottom: 16px;
  line-height: 1.6;
}

.cf7-success-btn-primary {
  width: 100%;
  margin-bottom: 16px;
}

.cf7-success-btn-outline {
  width: 100%;
  border-color: #EFEAF3;
  border-width: 1px;
  color: #FFFFFF;


}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: #F2F2F2;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background-color: rgba(19, 8, 26, 0.8);
  border: 1px solid rgba(242, 242, 242, 0.12);
  border-radius: 8px;
  padding: 16px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: #999999;
  /* Placeholder/empty text color */
  letter-spacing: 0;
  transition: all 0.3s ease;
  height: 60px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: #999999;
}

.form-group input:hover,
.form-group textarea:hover,
.form-group input:focus,
.form-group textarea:focus,
.form-group input:not(:placeholder-shown),
.form-group textarea:not(:placeholder-shown),
.form-group input.filled,
.form-group textarea.filled {
  outline: none;
  border-color: #9E7FB5;
  color: #F2F2F2;
}

.wpcf7-not-valid {
  border-color: #ff4d4f !important;
  color: #FF8A66 !important;
}

.wpcf7-not-valid::placeholder {
  color: #FF8A66 !important;
}

.form-group:has(.wpcf7-not-valid) label {
  color: #FF8A66 !important;
}

/* Spinner dentro del botón de CF7 */
.wpcf7-spinner {
  position: absolute !important;
  left: 50%;
  top: 50%;
  margin: 0 !important;
  width: 24px !important;
  height: 24px !important;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: btn-spin 1s linear infinite;
  background: transparent !important;
  transform: translate(-50%, -50%);
  /* Ocultamos el spinner por defecto hasta que form.submitting lo active */
  visibility: hidden;
  opacity: 0;
}

form.submitting .wpcf7-spinner {
  visibility: visible;
  opacity: 1;
}

/* Ocultar el SVG/Before por defecto de CF7 */
.wpcf7-spinner::before,
.wpcf7-spinner svg {
  display: none !important;
}

@keyframes btn-spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }

  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

/* Anular botón y ocultar texto mientras envía */
form.submitting .wpcf7-submit {
  color: transparent !important;
  pointer-events: none;
  cursor: not-allowed;
  background-color: var(--color-primary);
  /* Para que mantenga el color morado base */
}

.submit-wrapper .wpcf7-submit {
  width: 100%;
}

.form-group select {
  display: none;
}

/* Custom Select Dropdown */
.custom-select {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  background-color: rgba(19, 8, 26, 0.8);
  border: 1px solid rgba(242, 242, 242, 0.12);
  border-radius: 8px;
  padding: 20px 16px !important;
  font-family: var(--font-primary);
  font-size: 14px;
  color: #999999;
  cursor: pointer;
  background-image: url('data:image/svg+xml;utf8,<svg width="12" height="8" viewBox="0 0 12 8" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.41 0.589966L6 5.16997L10.59 0.589966L12 1.99997L6 7.99997L0 1.99997L1.41 0.589966Z" fill="%23999999"/></svg>');
  background-repeat: no-repeat;
  background-position: right 16px center;
  transition: all 0.3s ease;
}

.custom-select-trigger:hover,
.custom-select.open .custom-select-trigger,
.custom-select.has-value .custom-select-trigger {
  border-color: #9E7FB5;
  color: #F2F2F2;
}

.custom-options {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #1C1B1F;
  border: 1px solid rgba(242, 242, 242, 0.12);
  border-radius: 8px;
  margin-top: 4px;
  z-index: 999;
  display: none;
  overflow: hidden;
}

.custom-select.open .custom-options {
  display: block;
}

.custom-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  font-family: var(--font-primary);
  font-size: 14px;
  color: #F2F2F2;
  cursor: pointer;
  transition: background-color 0.2s;
}

.custom-option:hover,
.custom-option.selected:hover {
  background-color: #5E2983;
  color: #FFF;
}

.custom-option.selected {
  background-color: rgba(94, 41, 131, 0.3);
}

.custom-option.selected::after {
  content: '✓';
  color: #D34DEB;
  font-weight: bold;
}

.form-group textarea {
  min-height: 106px;
  height: 106px;
  resize: vertical;
}

.btn-submit-contacto {
  background-color: #5E2983;
  color: #FFFFFF;
  border-radius: 128px;
  height: 62px;
  line-height: 62px;
  padding: 0 24px;
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  margin-top: 12px;
  transition: background-color 0.3s ease;
}

.btn-submit-contacto:hover:not(:disabled) {
  background-color: #7E549C;
}

.btn-submit-contacto:disabled {
  background-color: #4A4A4A;
  color: #8F8F8F;
  cursor: not-allowed;
}

.form-legal {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: #F2F2F2;
  margin-top: 12px;
  text-align: center;
}

/* -----------------------------
   CONTACT FORM 7 MESSAGES
----------------------------- */
.wpcf7-not-valid-tip {
  color: #FF8A66 !important;
  font-size: 12px !important;
  font-family: var(--font-primary);
  margin-top: 4px;
}

.wpcf7-response-output {
  border-radius: 8px !important;
  font-family: var(--font-primary) !important;
  font-size: 14px !important;
  padding: 16px !important;
  margin: 16px 0 0 0 !important;
}

.wpcf7 form.invalid .wpcf7-response-output,
.wpcf7 form.unaccepted .wpcf7-response-output,
.wpcf7 form.payment-required .wpcf7-response-output {
  border-color: #ff4d4f !important;
  color: #ff4d4f !important;
}

.wpcf7 form.sent .wpcf7-response-output {
  border-color: #5E2983 !important;
  background-color: rgba(94, 41, 131, 0.1) !important;
  color: #E594F3 !important;
}

/* -----------------------------
   FOOTER SECTION
----------------------------- */
.site-footer {
  background-color: #13081A;
  padding: 24px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-logo-img {
  width: 190px;
  height: auto;
  display: block;
}

.footer-meta {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: #CCCCCC;
  margin: 0;
}

/* -----------------------------
   MODAL SECTION
----------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(9, 4, 13, 0.8);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-container {
  background-color: #FFFFFF;
  border-radius: 32px;
  padding: 48px;
  display: flex;
  gap: 56px;
  width: 1200px;
  max-width: 95vw;
  max-height: 95vh;
  overflow-y: auto;
  box-shadow: 0px 24px 48px rgba(0, 0, 0, 0.5);
  transform: translateY(20px);
  transition: transform 0.3s ease;
}

.modal-overlay.active .modal-container {
  transform: translateY(0);
}

.modal-info {
  flex: 4;
  max-width: 416px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  max-height: 667px;
}

.modal-scrollable-content {
  flex: 1;
  min-height: 200px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding-right: 8px;
}

.modal-scrollable-content::-webkit-scrollbar {
  width: 4px;
}

.modal-scrollable-content::-webkit-scrollbar-track {
  background: transparent;
}

.modal-scrollable-content::-webkit-scrollbar-thumb {
  background: #E5E5E5;
  border-radius: 4px;
}

.modal-header-titles {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-eyebrow-container {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 8px;
}

.modal-eyebrow {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 500;
  color: #7E549C;
  line-height: 1.2;
  text-transform: uppercase;
}

.modal-title {
  font-family: var(--font-secondary);
  font-size: 42px;
  font-weight: 800;
  color: #261034;
  margin: 0;
  line-height: 48px;
  letter-spacing: -1px;
}

.modal-divider {
  width: 198px;
  height: 5px;
  background-color: #D34DEB;
  border-radius: 128px;
}

.modal-subtitle {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 400;
  color: #261034;
  margin: 0;
  line-height: 1.4;
}

.modal-datos {
  display: flex;
  flex-direction: column;
}

.modal-dato-item {
  display: flex;
  justify-content: space-between;
  padding: 8px;
  border-bottom: 1px solid #E5E5E5;
}

.dato-label {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: rgba(38, 16, 52, 0.6);
  margin-right: 10px;
}

.dato-value {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: #261034;
}

.modal-caracteristicas-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-caracteristicas-title {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 700;
  color: #261034;
  margin: 0;
}

.modal-caracteristicas-list {
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 400;
  color: #261034;
  line-height: 1.4;
  margin: 0;
  padding-left: 20px;
}

.modal-caracteristicas-list li {
  margin-bottom: 4px;
}

.modal-espacio {
  height: 64px;
}

.modal-beneficios {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 400;
  color: rgba(38, 16, 52, 0.72);
  margin: 0;
}

.modal-acciones {
  display: flex;
  gap: 12px;
}

.modal-btn-contact {
  flex: 1;
  background-color: #5E2983;
  color: #FFFFFF;
  text-decoration: none;
}

.modal-btn-contact:hover {
  background-color: var(--color-primary-hover);
}

.modal-btn-close {
  flex: 1;
  border: 1px solid #5E2983;
  color: #5E2983;
  background: transparent;
  cursor: pointer;
}

.modal-btn-close:hover {
  background: rgba(94, 41, 131, 0.1);
}

.modal-gallery {
  flex: 6;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 36px;
}

.gallery-counter {
  font-family: var(--font-primary);
  font-size: 12px;
  font-weight: 500;
  color: #261034;
}

.btn-close-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #5E2983;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
}

.btn-close-icon:hover {
  background: rgba(94, 41, 131, 0.1);
}

.gallery-main-image {
  width: 100%;
  max-width: 632px;
  aspect-ratio: 632 / 500;
  height: auto;
  max-height: 500px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-main-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 24px;
  overflow: hidden;
}

.gallery-main-image-wrapper img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

.image-caption-pill {
  position: absolute;
  bottom: 10px;
  left: 15px;
  background-color: #13081A;
  color: #FFFFFF;
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 14px;
  font-family: var(--font-primary);
  font-weight: 400;
  z-index: 10;
  display: none;
}

.gallery-thumbnails-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  width: 100%;
  margin-top: auto;
}

.gallery-thumbnails {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  flex: 1;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.gallery-thumbnails::-webkit-scrollbar {
  display: none;
}

.carousel-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  transition: background 0.2s;
  flex-shrink: 0;
  padding: 0;
}

.carousel-btn:hover {
  background: rgba(94, 41, 131, 0.1);
}

.thumbnail {
  flex: 0 0 calc((100% - 36px) / 4);
  aspect-ratio: 3/2;
  height: auto;
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.6;
  cursor: pointer;
  transition: opacity 0.2s, border 0.2s;
  scroll-snap-align: start;
  background-color: #CCCCCC;
}

.thumbnail:hover {
  opacity: 0.8;
}

.thumbnail.active {
  opacity: 1;
  border: 4px solid #D34DEB;
}

/* -----------------------------
   RESPONSIVE DESIGN (Mobile & Tablet)
----------------------------- */
@media (max-width: 1024px) {
  .container {
    padding: 0 40px;
  }

  /* Hero (Ajustes traídos de mobile a tablet) */
  .hero-section {
    background-position: right center;
    background-image: url('./assets/images/hero-bg-768.png');
  }

  .hero-bg-2 {
    background-image: url('./assets/images/hero-bg-768-2.png');
  }

  .hero-bg-3 {
    background-image: url('./assets/images/hero-bg-768-3.png');
  }

  .hero-content {
    max-width: 480px;
  }

  .hero-section::before {
    width: 65%;
  }

  .hero-title {
    font-size: 70px;
    max-width: none;
  }

  /* KPI */
  .kpi-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .feature-card {
    min-height: auto;
    padding: 24px 16px;
  }

  /* Portfolio */
  .portfolio-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .portfolio-item {
    max-width: 100%;
  }

  /* Cómo Trabajamos */
  .pasos-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .modal-container {
    flex-direction: column;
    padding: 0 32px 40px 32px;
    gap: 0;
    position: relative;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    width: calc(100% - 48px);
    max-height: 95vh;
    min-height: 0;
  }

  .modal-info,
  .modal-gallery,
  .modal-scrollable-content,
  .gallery-header {
    display: contents;
  }

  .modal-header-titles {
    order: 1;
    position: sticky;
    top: 0;
    background: #FFF;
    z-index: 20;
    margin-top: 0;
    margin-left: -32px;
    margin-right: -32px;
    padding-top: 40px;
    padding-left: 32px;
    padding-right: 80px;
    padding-bottom: 16px;
    margin-bottom: 24px;
    border-bottom: 1px solid transparent;
    /* Prevents margin collapse issues */
  }

  .modal-subtitle {
    order: 2;
    margin-bottom: 24px;
  }

  .modal-datos {
    order: 3;
    margin-bottom: 24px;
    width: 100%;
  }

  .modal-caracteristicas-container {
    order: 4;
    margin-bottom: 24px;
    width: 100%;
  }

  .modal-espacio {
    display: none;
  }

  .modal-beneficios {
    order: 5;
    margin-bottom: 24px;
    width: 100%;
  }

  .gallery-counter {
    order: 6;
    margin-bottom: 16px;
    width: 100%;
  }

  .gallery-main-image {
    order: 7;
    width: 100%;
    aspect-ratio: 4 / 3;
    max-height: 500px;
    flex: none;
    margin-bottom: 24px;
  }

  .gallery-main-image-wrapper img {
    object-fit: cover;
  }

  .gallery-thumbnails-wrapper {
    order: 8;
    margin-bottom: 24px;
    width: 100%;
  }

  .modal-acciones {
    order: 9;
    width: 100%;
    margin-bottom: 24px;
    display: flex;
    gap: 16px;
  }

  .modal-acciones .btn {
    flex: 1;
    justify-content: center;
  }

  .gallery-thumbnails {
    width: 100%;
    gap: 8px;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .btn-close-icon {
    order: 0;
    position: sticky;
    top: 40px;
    z-index: 30;
    align-self: flex-end;
    margin-bottom: -36px;
    margin-right: -10px;
    /* ajustar a la derecha */
  }

  .gallery-thumbnails .thumbnail {
    width: 155px;
    height: 96px;
    aspect-ratio: auto;
    flex: none;
  }


  .portfolio-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  }
}

@media (max-width: 768px) {

  /* Header */
  .header-pill {
    position: absolute;
    left: 0;
    right: 0;
    max-width: 390px;
    height: 72px;
    margin: 0 auto;
    padding: 0 24px;
  }

  .site-navigation {
    gap: 16px;
  }

  .nav-menu {
    display: none !important;
    /* Ocultamos links texto en mobile */
  }

  .site-navigation a:not(.btn) {
    display: none !important;
  }

  .btn-nav-desktop {
    display: none !important;
  }

  .btn-nav-mobile {
    display: inline-flex !important;
    min-width: 120px;
    justify-content: center;
    text-align: center;
  }

  .btn-nav-cta {
    position: absolute !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
  }

  .location-pill {
    margin-bottom: 19px;
  }

  .hero-section {
    padding-top: 117px;
  }

  .hero-container {
    margin-top: 8px;
  }

  .hero-content {
    padding-left: 0;
  }

  .hero-title {
    font-size: 70px;
    margin-bottom: 26px;
  }

  .hero-divider {
    margin-bottom: 20px;
  }

  .hero-description {
    max-width: 424px;
    margin-bottom: 40px;
    line-height: 28px;
  }

  .hero-actions {
    margin-bottom: 15px;
  }

  .hero-disclaimer {
    padding-top: 0;
    padding-bottom: 9px;
  }

  .site-branding .logo-desktop {
    display: none !important;
  }

  .site-branding .logo-mobile {
    display: block !important;
    height: 24px !important;
    width: 24px !important;
    object-fit: contain;
  }

  .kpi-number {
    font-size: 32px;
  }

  .kpi-section {
    padding: 40px 0 0 0;
  }

  .portfolio-section {
    padding: 73px 0 0;
  }

  .portfolio-eyebrow {
    margin-bottom: 28px;
  }

  .portfolio-grid {
    gap: 24px;
  }

  .portfolio-title {
    font-size: 42px;
    letter-spacing: 0;
  }

  .portfolio-header {
    margin-bottom: 50px;
  }

  .portfolio-image-overlay {
    opacity: 1;
    padding-left: 12px;
    height: 83px;
  }

  .portfolio-info {
    position: absolute;
    width: 100%;
    height: 100%;
  }

  .portfolio-item {
    height: 233px;
    padding-bottom: 0;
    overflow: hidden;
    border: none;
  }

  .portfolio-image {
    margin-bottom: 0;
  }

  .item-title-row {
    position: absolute;
    bottom: 38px;
    width: 100%;
    padding: 0 12px;
  }

  .btn-ver-detalle {
    background: none;
    padding: 0;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0;
    transform: none;
    transition: none;
    margin-top: 35px;
  }



  .item-tag-pill {
    background-color: rgba(9, 4, 13, 0.7);
    margin: 10px 6px;
    width: 87px;
    justify-content: center;
  }

  .item-number {
    font-size: 14px;
  }

  .count-pill {
    display: none;
  }

  .filters-right {
    width: 100%;
  }

  .right-group {
    width: 100%;
  }

  .filter-select {
    width: 100% !important;
  }

  .detalle-arrow {
    display: none;
  }

  .menu-toggle {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
  }

  .como-trabajamos-section {
    padding-top: 66px;
    padding-bottom: 0;
  }

  .como-title {
    font-size: 42px;
  }

  .como-header {
    margin-bottom: 34px;
  }

  .paso-card {
    gap: 20px;
  }

  .paso-number {
    font-size: 40px;
    padding-top: 6px;
  }

  .paso-title {
    font-size: 22px;
    padding-top: 18px;
  }

  .paso-card::before {
    width: 100%;
  }

  /* Contacto */

  .contacto-section {
    padding-top: 63px;
    padding-bottom: 0;
  }

  .contacto-box {
    flex-direction: column;
    gap: 40px;
    padding: 24px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .contacto-eyebrow-container {
    padding-top: 8px;
    margin-bottom: 0;
    ;
  }

  .contacto-info,
  .contacto-form-box {
    min-width: 0 !important;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }


  .contacto-title,
  .contacto-subtitle,
  .contacto-trust,
  .dato-text {
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .contacto-subtitle {
    margin-top: 6px;
    margin-bottom: 14px;
  }

  .contacto-trust {
    font-size: 18px;
  }

  .contacto-datos {
    gap: 10px;
  }

  .cf7-success-container {
    height: 675px;
  }

  .form-row {
    flex-direction: column;
    gap: 16px;
  }

  .modal-header-titles {
    gap: 1px;
    margin-bottom: 0;
  }

  .modal-container {
    padding: 0 40px 32px 40px;
  }

  .modal-acciones {
    margin-bottom: 8px;
  }
}

@media (max-width: 576px) {

  .btn {
    padding: 0 15px;
  }

  .container {
    padding: 0 16px;
  }

  .mobile-cta-wrapper {
    text-align: center;
  }

  .mobile-cta-wrapper .btn {
    display: block;
    line-height: 48px;

  }

  .hero-title {
    font-size: 56px;
  }

  .location-pill {
    background-color: #261034;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .kpi-grid {
    grid-template-columns: 1fr;
  }

  .kpi-card {
    min-width: 182px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .filters-box {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 22px 16px 20px;
    margin-bottom: 30px;
  }

  .filters-group {
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 17px;
  }

  .filters-right {
    align-items: flex-start;
  }

  .portfolio-results-header {
    align-items: center;
    margin-bottom: 18px;
  }

  .right-group {
    flex-wrap: wrap !important;
  }

  .portfolio-item {
    height: 261px;
  }

  .portfolio-image-overlay {
    height: 97px;
    padding-left: 20px;
  }

  .item-tag-pill {
    margin: 9px 7px;
  }

  .item-title-row {
    padding: 0 20px;
    bottom: 50px;
  }

  /* Cómo Trabajamos */
  .pasos-grid {
    grid-template-columns: 1fr;
  }

  /* Hero en mobile (pantalla pequeña) */
  .hero-section {
    padding-top: 430px;
    background-size: 100% auto;
    background-position: top center;
    height: auto;
    background-image: url('./assets/images/hero-bg-576.png');
  }

  .hero-bg {
    background-size: 100% auto;
    background-position: top center;
  }

  .hero-bg-2 {
    background-image: url('./assets/images/hero-bg-576-2.png');
  }

  .hero-bg-3 {
    background-image: url('./assets/images/hero-bg-576-3.png');
  }

  .hero-section::before {
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(9, 4, 13, 0) 250px, #09040D 95%);
  }

  .hero-content {
    min-width: 0;
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
  }

  .hero-container {
    flex-direction: column;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
    font-size: 16px;
    color: #F2F2F2;
    margin-bottom: 20px;
  }

  .hero-disclaimer {
    font-size: 12px;
    text-align: center;
  }

  .kpi-section {
    padding: 35px 0 0 0;
  }

  .kpi-grid {
    display: flex;
    gap: 16px;
  }

  .kpi-number {
    font-size: 32px;
    margin-bottom: 12px;
  }

  .kpi-card {
    padding: 24px;
    min-height: 161px;
  }

  svg.kpi-icon {
    margin-bottom: 13px;
  }

  .portfolio-header {
    margin-bottom: 32px;
  }

  .portfolio-section {
    padding-top: 65px;
  }

  .portfolio-title {
    font-size: 40px;
  }

  .portfolio-description {
    font-size: 16px;
    line-height: 24px;
  }

  .hide-on-mobile {
    display: none;
  }

  /* Footer */
  .footer-container {
    justify-content: center;
    text-align: center;
    flex-direction: column;
    gap: 24px;
  }

  /* Modal */
  .modal-container {
    max-width: none;
    max-height: 100vh;
    height: 100vh;
    width: 100%;
    border-radius: 0;
    padding: 0 17px;
    overflow-y: auto;
  }

  .modal-info,
  .modal-scrollable-content {
    max-height: none;
    overflow-y: visible;
  }

  .btn-close-icon {
    top: 26px;
    margin-right: 4px;
  }

  .modal-header-titles {
    padding-top: 24px;
    margin-bottom: 0px;
    padding-bottom: 10px;
    gap: 0;
  }

  .modal-eyebrow-container {
    margin-bottom: 4px;
  }

  .modal-title {
    font-size: 32px;
  }

  .gallery-counter {
    order: 2;
  }

  .gallery-main-image {
    order: 2;
    margin-bottom: 8px;
    aspect-ratio: 4 / 3;
    height: auto;
    max-height: 350px;
  }

  .gallery-thumbnails-wrapper {
    order: 2;
    margin-top: 0;
    margin-left: -12px;
    margin-right: -12px;
    gap: 4px;
    width: calc(100% + 24px) !important;
  }

  .gallery-thumbnails-wrapper:has(.prev-btn[style*="none"]) {
    margin-left: 0;
    margin-right: 0;
    width: 100% !important;
  }

  .gallery-thumbnails {
    height: 60px;
    gap: 8px;
  }

  .gallery-thumbnails .thumbnail {
    width: calc((100% - 24px) / 4);
    height: 60px;
  }

  .contacto-box {
    padding: 14px 14px 24px 14px;
  }

  .como-description,
  .contacto-subtitle {
    font-size: 16px;
  }

  .contacto-title {
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 22px;
  }

  .contacto-datos {
    margin-bottom: 16px;
  }

  .contacto-mapa {
    height: 202px;
  }

  .contacto-form-box {
    margin-top: -17px;
    padding: 24px 22px;
  }

  .btn-submit-contacto {
    margin-top: 0;
  }

  .form-legal {
    margin-top: 0;
    margin-bottom: 0;
  }

  .site-footer {
    padding-top: 56px;
    padding-bottom: 40px;
  }

  .footer-logo-img {
    height: 30px;
  }

  .modal-acciones {
    position: sticky;
    bottom: 0;
    background-color: white;
    display: block;
    text-align: center;
  }

  .modal-acciones .btn {
    display: block;
    line-height: 48px;
    width: 100%;
    margin-top: 12px;
  }
}

@media (max-width: 411px) {
  .kpi-card {
    min-width: 140px;
  }

  .portfolio-item {
    height: auto;
  }

}

/* -----------------------------
   ANIMACIONES SCROLL
----------------------------- */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* -----------------------------
   UTILITY CLASSES (REPLACING INLINE STYLES)
----------------------------- */
.logo {
  display: flex;
  align-items: center;
}

.logo-desktop {
  height: 30px;
}

.logo-mobile {
  height: 30px;
  display: none;
}

.mobile-menu-logo {
  height: 24px;
  width: 24px;
  object-fit: contain;
}

.mobile-menu .btn-primary.mobile-link {
  width: 100%;
  justify-content: center;
}

.footer-logo-img {
  height: 24px;
  width: auto;
}

.hero-image {
  display: none;
}

.filters-group.right-group {
  align-items: center;
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
}

.filter-select {
  width: 550px;
  max-width: 100%;
}

.filter-select-trigger {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #13081A;
  padding: 10px 16px;
  border-radius: 8px;
  cursor: pointer;
}

.filter-options {
  display: none;
  position: absolute;
  z-index: 99;
  background: #1C1B1F;
  width: 100%;
  border: 1px solid rgba(242, 242, 242, 0.12);
  border-radius: 8px;
  margin-top: 4px;
  max-height: 300px;
  overflow-y: auto;
  padding: 8px 0;
}

.chk-empty,
.chk-checked {
  margin-right: 12px;
  flex-shrink: 0;
}

.filter-option {
  padding: 12px 16px;
  display: flex;
  align-items: center;
  cursor: pointer;
}

.portfolio-image {
  background-size: cover;
  background-position: center;
}

.empty-portfolio-msg {
  color: #fff;
}

.contacto-trust {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: 500;
  color: #F2F2F2;
  margin-bottom: 32px;
}

.map-iframe {
  border: 0;
}

.modal-dummy-img {
  width: 100%;
  height: auto;
  border-radius: 24px;
  display: block;
}

.modal-dummy-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.error-main {
  padding: 150px 20px;
  text-align: center;
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.error-title {
  font-size: 80px;
  font-weight: 700;
  color: #FFF;
  margin-bottom: 20px;
  line-height: 1;
}

.error-subtitle {
  font-size: 32px;
  font-weight: 500;
  color: #E594F3;
  margin-bottom: 24px;
}

.error-text {
  color: #CCCCCC;
  max-width: 500px;
  margin: 0 auto 40px;
  font-size: 18px;
}

.archive-main {
  padding: 120px 20px;
  min-height: 60vh;
}

.archive-header {
  margin-bottom: 40px;
  text-align: center;
}

.archive-title {
  color: #FFF;
  font-size: 40px;
  margin: 0;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
}

.post-card {
  background: #1C1B1F;
  border-radius: 16px;
  padding: 24px;
}

.post-title {
  font-size: 24px;
  margin-bottom: 16px;
}

.post-title a {
  color: #FFF;
  text-decoration: none;
}

.post-meta {
  color: #CCC;
  margin-bottom: 24px;
  font-size: 14px;
}

.post-read-more {
  color: #E594F3;
  text-decoration: none;
  font-weight: 600;
}

.no-posts-msg {
  text-align: center;
  color: #CCC;
}