/* ========================================
   FORTEX — CSS Personalizado para WordPress
   Versión adaptada para Astra + Elementor
   
   Este archivo contiene TODOS los estilos
   del diseño original de FORTEX, adaptados
   para sobreescribir Astra y Elementor.
   ======================================== */

/* ═══════════════════════════════════════
   VARIABLES CSS (Design Tokens)
   ═══════════════════════════════════════ */
:root {
  /* ─── Brand Colors ─── */
  --azul-marino:        #0A1628;
  --azul-marino-light:  #132240;
  --azul-marino-mid:    #1B3058;
  --azul-profundo:      #0D1F3C;
  --dorado:             #C9A84C;
  --dorado-light:       #D4B96A;
  --dorado-dark:        #A8893E;
  --dorado-glow:        rgba(201, 168, 76, 0.25);
  --gris-grafito:       #3A3A3C;
  --gris-grafito-light: #5A5A5C;
  --gris-claro:         #E8E8E8;
  --gris-bg:            #F5F5F5;
  --blanco:             #FFFFFF;
  --negro:              #000000;

  /* ─── Semantic ─── */
  --color-primary:      var(--azul-marino);
  --color-accent:       var(--dorado);
  --color-accent-hover: var(--dorado-light);
  --color-text:         var(--gris-grafito);
  --color-text-light:   var(--gris-grafito-light);
  --color-bg:           var(--blanco);
  --color-bg-alt:       var(--gris-bg);
  --color-surface:      var(--blanco);

  /* ─── Typography ─── */
  --font-heading:  'Montserrat', sans-serif;
  --font-subhead:  'Poppins', sans-serif;
  --font-body:     'Open Sans', sans-serif;
  --font-alt:      'Lato', sans-serif;

  /* ─── Spacing Scale ─── */
  --space-xs:   0.25rem;
  --space-sm:   0.5rem;
  --space-md:   1rem;
  --space-lg:   1.5rem;
  --space-xl:   2rem;
  --space-2xl:  3rem;
  --space-3xl:  4rem;
  --space-4xl:  6rem;
  --space-5xl:  8rem;

  /* ─── Border Radius ─── */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   20px;
  --radius-full: 50%;

  /* ─── Shadows ─── */
  --shadow-sm:    0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:    0 8px 32px rgba(0,0,0,0.14);
  --shadow-xl:    0 16px 48px rgba(0,0,0,0.18);
  --shadow-gold:  0 4px 20px rgba(201,168,76,0.30);

  /* ─── Transitions ─── */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   200ms;
  --duration-normal: 350ms;
  --duration-slow:   500ms;

  /* ─── Container ─── */
  --container-sm:  640px;
  --container-md:  768px;
  --container-lg:  1024px;
  --container-xl:  1200px;
  --container-2xl: 1400px;

  /* ─── Z-index ─── */
  --z-header:  1000;
  --z-overlay: 2000;
  --z-modal:   3000;
}


/* ═══════════════════════════════════════
   ASTRA OVERRIDES — GLOBAL
   ═══════════════════════════════════════ */
body,
.ast-body {
  font-family: var(--font-body) !important;
  color: var(--color-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  transition: color var(--duration-fast) var(--ease-smooth);
}

/* Fix para Elementor full width */
.ast-plain-container .site-content > .ast-container {
  max-width: 100% !important;
  padding: 0 !important;
}

.elementor-page .site-content {
  padding-top: 0 !important;
}

.ast-separate-container .ast-article-single {
  padding-top: 0 !important;
}

.elementor-section.elementor-section-full_width {
  max-width: 100%;
}


/* ═══════════════════════════════════════
   ASTRA HEADER OVERRIDES
   ═══════════════════════════════════════ */
.ast-primary-header-bar,
.ast-header-break-point .ast-primary-header-bar {
  background: transparent !important;
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: var(--z-header);
  transition: all var(--duration-normal) var(--ease-smooth);
  padding: var(--space-lg) 0;
  border-bottom: none !important;
  box-shadow: none !important;
}

.ast-primary-header-bar.scrolled {
  background: rgba(10, 22, 40, 0.95) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-sm) 0;
  box-shadow: 0 4px 30px rgba(0,0,0,0.3) !important;
}

/* Logo en header */
.ast-site-identity .site-logo-img,
.custom-logo-link img {
  max-height: 44px !important;
  width: auto !important;
  mix-blend-mode: screen;
  filter: brightness(1.1) contrast(1.05);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.ast-primary-header-bar.scrolled .ast-site-identity .site-logo-img,
.ast-primary-header-bar.scrolled .custom-logo-link img {
  max-height: 38px !important;
}

/* Nombre del sitio (si no hay logo) */
.site-title,
.site-title a {
  font-family: var(--font-heading) !important;
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  letter-spacing: 4px !important;
  color: var(--blanco) !important;
}

/* Links del menú principal */
.ast-header-break-point .main-header-menu a,
.main-header-menu > .menu-item > a,
.ast-header-sections-navigation .menu-item > a,
.ast-builder-menu .menu-item > .menu-link {
  color: rgba(255,255,255,0.8) !important;
  font-family: var(--font-subhead) !important;
  font-weight: 500 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  transition: color var(--duration-fast) var(--ease-smooth) !important;
  position: relative;
}

.main-header-menu > .menu-item > a:hover,
.main-header-menu > .current-menu-item > a,
.main-header-menu > .current-menu-ancestor > a,
.ast-builder-menu .menu-item > .menu-link:hover,
.ast-builder-menu .current-menu-item > .menu-link {
  color: var(--dorado) !important;
}

/* Botón CTA "Contacto" en el menú */
.menu-cta-button > a,
.menu-cta-button > .menu-link {
  background: linear-gradient(135deg, var(--dorado), var(--dorado-light)) !important;
  color: var(--azul-marino) !important;
  padding: 10px 24px !important;
  border-radius: var(--radius-md) !important;
  font-weight: 600 !important;
  font-family: var(--font-subhead) !important;
  font-size: 0.85rem !important;
  letter-spacing: 1px !important;
  transition: all var(--duration-normal) var(--ease-smooth) !important;
}

.menu-cta-button > a:hover,
.menu-cta-button > .menu-link:hover {
  background: linear-gradient(135deg, var(--dorado-light), var(--dorado)) !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--dorado-glow) !important;
}


/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.fortex-container {
  width: 100%;
  max-width: var(--container-xl);
  margin: 0 auto;
  padding: 0 var(--space-xl);
}

.fortex-section {
  padding: var(--space-5xl) 0;
}

.fortex-section--dark {
  background: var(--azul-marino);
  color: var(--blanco);
}

.fortex-section--alt {
  background: var(--color-bg-alt);
}

.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ─── Section Label ─── */
.section__label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-family: var(--font-subhead);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--dorado);
  margin-bottom: 1.5rem;
}

.section__label::before {
  content: '';
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--dorado);
  flex-shrink: 0;
}

/* ─── Section Title ─── */
.section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--azul-marino);
}

.fortex-section--dark .section__title {
  color: var(--blanco);
}

.section__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 640px;
  line-height: 1.8;
}

.fortex-section--dark .section__subtitle {
  color: rgba(255,255,255,0.7);
}

/* ─── Gold Separator ─── */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--dorado), var(--dorado-light));
  border-radius: 2px;
  margin: var(--space-lg) 0;
}

.text-center .gold-line {
  margin-left: auto;
  margin-right: auto;
}


/* ═══════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════ */
.btn,
.fortex-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-subhead);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  text-decoration: none;
  border: none;
}

.btn::after,
.fortex-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15), transparent);
  opacity: 0;
  transition: opacity var(--duration-fast) var(--ease-smooth);
}

.btn:hover::after,
.fortex-btn:hover::after {
  opacity: 1;
}

.btn--primary,
.fortex-btn--primary {
  background: linear-gradient(135deg, var(--dorado), var(--dorado-dark));
  color: var(--azul-marino);
  box-shadow: var(--shadow-gold);
}

.btn--primary:hover,
.fortex-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(201,168,76,0.45);
  color: var(--azul-marino);
}

.btn--outline,
.fortex-btn--outline {
  border: 2px solid var(--dorado);
  color: var(--dorado);
  background: transparent;
}

.btn--outline:hover,
.fortex-btn--outline:hover {
  background: var(--dorado);
  color: var(--azul-marino);
  transform: translateY(-2px);
}

.btn--white {
  background: var(--blanco);
  color: var(--azul-marino);
  box-shadow: var(--shadow-md);
}

.btn--white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

/* Elementor button overrides */
.elementor-button.fortex-btn--primary {
  background: linear-gradient(135deg, var(--dorado), var(--dorado-dark)) !important;
  color: var(--azul-marino) !important;
  border: none !important;
}

.elementor-button.fortex-btn--outline {
  background: transparent !important;
  border: 2px solid var(--dorado) !important;
  color: var(--dorado) !important;
}


/* ═══════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════ */
.hero,
.fortex-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--azul-marino);
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero__bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero__bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(10, 22, 40, 0.5) 0%,
    rgba(10, 22, 40, 0.85) 60%,
    var(--azul-marino) 100%
  );
}

/* Animated geometric shapes */
.hero__shapes {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hero__shape {
  position: absolute;
  border: 1px solid rgba(201, 168, 76, 0.12);
  border-radius: var(--radius-md);
  animation: float 20s ease-in-out infinite;
}

.hero__shape--1 {
  width: 300px;
  height: 300px;
  top: 10%;
  right: -5%;
  transform: rotate(15deg);
  animation-delay: 0s;
}

.hero__shape--2 {
  width: 200px;
  height: 200px;
  bottom: 20%;
  left: -3%;
  transform: rotate(-10deg);
  animation-delay: -7s;
}

.hero__shape--3 {
  width: 150px;
  height: 150px;
  top: 40%;
  right: 20%;
  transform: rotate(30deg);
  animation-delay: -14s;
}

@keyframes float {
  0%, 100% { transform: rotate(var(--r, 15deg)) translateY(0); }
  50%      { transform: rotate(var(--r, 15deg)) translateY(-30px); }
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 800px;
  padding: var(--space-4xl) var(--space-xl);
}

.hero__logo {
  width: 120px;
  height: auto;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.95);
  padding: 12px;
  animation: fadeInUp 1s var(--ease-smooth) 0.3s both;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), 0 0 0 1px rgba(201,168,76,0.3);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: var(--space-2xl);
  font-family: var(--font-subhead);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dorado);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s var(--ease-smooth) 0.2s both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--dorado);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

.hero__company {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  letter-spacing: 12px;
  color: var(--blanco);
  margin-bottom: var(--space-md);
  animation: fadeInUp 1s var(--ease-smooth) 0.4s both;
}

.hero__tagline {
  font-family: var(--font-subhead);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  font-weight: 300;
  color: var(--dorado);
  letter-spacing: 3px;
  margin-bottom: var(--space-2xl);
  animation: fadeInUp 1s var(--ease-smooth) 0.6s both;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  max-width: 560px;
  margin: 0 auto var(--space-2xl);
  line-height: 1.8;
  animation: fadeInUp 1s var(--ease-smooth) 0.8s both;
}

.hero__actions {
  display: flex;
  gap: var(--space-lg);
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 1s var(--ease-smooth) 1s both;
}

.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s var(--ease-smooth) 1.2s both;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--dorado), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}


/* ═══════════════════════════════════════
   PAGE HERO (Subpages)
   ═══════════════════════════════════════ */
.page-hero {
  background: var(--azul-marino);
  padding: calc(var(--space-5xl) + 80px) 0 var(--space-3xl);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.page-hero__content {
  position: relative;
  z-index: 2;
}

.page-hero__breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-subhead);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: var(--space-lg);
}

.page-hero__breadcrumb a {
  color: var(--dorado);
}

.page-hero__breadcrumb a:hover {
  color: var(--dorado-light);
}

.page-hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--blanco);
  margin-bottom: var(--space-md);
  letter-spacing: 1px;
}

.page-hero__subtitle {
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: rgba(255,255,255,0.6);
  max-width: 600px;
  line-height: 1.8;
}

.page-hero__shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-hero__shape {
  position: absolute;
  border: 1px solid rgba(201,168,76,0.08);
  border-radius: var(--radius-md);
}

.page-hero__shape--1 {
  width: 250px;
  height: 250px;
  top: -60px;
  right: -40px;
  transform: rotate(20deg);
}

.page-hero__shape--2 {
  width: 150px;
  height: 150px;
  bottom: -30px;
  left: 10%;
  transform: rotate(-15deg);
}


/* ═══════════════════════════════════════
   ABOUT / QUIÉNES SOMOS
   ═══════════════════════════════════════ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
  align-items: center;
}

.about__image-wrapper {
  position: relative;
}

.about__image {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--dorado);
  border-radius: var(--radius-lg);
  z-index: -1;
}

.about__stats {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: var(--azul-marino);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(201, 168, 76, 0.15);
  z-index: 5;
}

.about__stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dorado);
  line-height: 1;
}

.about__stat-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
  margin-top: 0.25rem;
}

.about__content p {
  margin-bottom: var(--space-lg);
  color: var(--color-text-light);
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about__value {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--azul-marino);
}

.about__value-icon {
  width: 8px;
  height: 8px;
  background: var(--dorado);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}


/* ═══════════════════════════════════════
   SERVICES
   ═══════════════════════════════════════ */
.services__tabs {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.services__tab {
  padding: 12px 28px;
  border-radius: 100px;
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  border: 2px solid transparent;
  color: rgba(255,255,255,0.6);
  background: none;
}

.services__tab:hover {
  color: var(--dorado);
  border-color: rgba(201,168,76,0.3);
}

.services__tab.active {
  background: var(--dorado);
  color: var(--azul-marino);
  border-color: var(--dorado);
}

.services__panel {
  display: none;
  animation: fadeIn 0.5s var(--ease-smooth);
}

.services__panel.active {
  display: block;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.service-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--dorado), var(--dorado-light));
  transform: scaleX(0);
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.service-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(201,168,76,0.2);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  background: rgba(201,168,76,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 1.5rem;
}

.service-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--blanco);
  margin-bottom: var(--space-md);
}

.service-card__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card__list li {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  padding-left: var(--space-lg);
  position: relative;
}

.service-card__list li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--dorado);
  font-weight: 700;
}


/* ═══════════════════════════════════════
   PROPERTIES
   ═══════════════════════════════════════ */
.properties__filters {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--space-3xl);
}

.filter-btn {
  padding: 10px 24px;
  border-radius: 100px;
  font-family: var(--font-subhead);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration-normal) var(--ease-smooth);
  border: 1px solid var(--gris-claro);
  color: var(--color-text-light);
  background: var(--blanco);
}

.filter-btn:hover {
  border-color: var(--dorado);
  color: var(--dorado);
}

.filter-btn.active {
  background: var(--azul-marino);
  color: var(--blanco);
  border-color: var(--azul-marino);
}

.properties__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: var(--space-xl);
}

.property-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-smooth);
  border: 1px solid rgba(0,0,0,0.05);
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.property-card__image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.property-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.property-card:hover .property-card__image img {
  transform: scale(1.08);
}

.property-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 100px;
  font-family: var(--font-subhead);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.property-card__badge--venta {
  background: var(--dorado);
  color: var(--azul-marino);
}

.property-card__badge--renta {
  background: var(--azul-marino);
  color: var(--blanco);
}

.property-card__gallery-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  color: var(--blanco);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.property-card__body {
  padding: var(--space-xl);
}

.property-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--azul-marino);
  margin-bottom: var(--space-sm);
}

.property-card__location {
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.property-card__location svg {
  width: 14px;
  height: 14px;
  fill: var(--dorado);
}

.property-card__features {
  display: flex;
  gap: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--gris-claro);
  margin-bottom: var(--space-lg);
}

.property-card__feature {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: 0.82rem;
  color: var(--color-text-light);
}

.property-card__feature svg {
  width: 16px;
  height: 16px;
  fill: var(--gris-grafito-light);
}

.property-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.property-card__price {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--dorado-dark);
}

.property-card__cta {
  font-family: var(--font-subhead);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--azul-marino);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.property-card__cta:hover {
  color: var(--dorado);
}


/* ═══════════════════════════════════════
   DEVELOPMENTS
   ═══════════════════════════════════════ */
.development-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--blanco);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-3xl);
  border: 1px solid rgba(0,0,0,0.05);
  transition: box-shadow var(--duration-normal) var(--ease-smooth);
}

.development-card:hover {
  box-shadow: var(--shadow-xl);
}

.development-card:nth-child(even) {
  direction: rtl;
}

.development-card:nth-child(even) > * {
  direction: ltr;
}

.development-card__image {
  height: 100%;
  min-height: 400px;
  overflow: hidden;
}

.development-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.development-card:hover .development-card__image img {
  transform: scale(1.05);
}

.development-card__content {
  padding: var(--space-3xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.development-card__status {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(201,168,76,0.1);
  border: 1px solid rgba(201,168,76,0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-family: var(--font-subhead);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dorado-dark);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-lg);
  width: fit-content;
}

.development-card__status-dot {
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--dorado);
  animation: pulse-dot 2s ease-in-out infinite;
}

.development-card__title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--azul-marino);
  margin-bottom: var(--space-md);
}

.development-card__desc {
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: var(--space-xl);
}

.development-card__features {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
}

.development-card__feature-tag {
  padding: 6px 14px;
  background: var(--color-bg-alt);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--azul-marino);
}


/* ═══════════════════════════════════════
   BLOG
   ═══════════════════════════════════════ */
.blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.blog-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration-normal) var(--ease-smooth);
  border: 1px solid rgba(0,0,0,0.05);
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.blog-card__image {
  height: 200px;
  overflow: hidden;
}

.blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--duration-slow) var(--ease-smooth);
}

.blog-card:hover .blog-card__image img {
  transform: scale(1.08);
}

.blog-card__body {
  padding: var(--space-xl);
}

.blog-card__category {
  font-family: var(--font-subhead);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--dorado);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: var(--space-sm);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--azul-marino);
  margin-bottom: var(--space-md);
  line-height: 1.4;
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--color-text-light);
}

.blog-card__read-more {
  font-family: var(--font-subhead);
  font-weight: 600;
  color: var(--azul-marino);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.blog-card__read-more:hover {
  color: var(--dorado);
}


/* ═══════════════════════════════════════
   CONTACT
   ═══════════════════════════════════════ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4xl);
}

.contact__info {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
}

.contact__info-item {
  display: flex;
  gap: var(--space-lg);
}

.contact__info-icon {
  width: 52px;
  height: 52px;
  background: rgba(201,168,76,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--dorado);
  font-size: 1.2rem;
}

.contact__info-label {
  font-family: var(--font-subhead);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dorado);
  margin-bottom: var(--space-xs);
}

.contact__info-text {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

.contact__socials {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.contact__social-link {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: var(--azul-marino);
  color: var(--blanco);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.contact__social-link:hover {
  background: var(--dorado);
  color: var(--azul-marino);
  transform: translateY(-3px);
}

/* Contact form overrides for WPForms */
.contact__form,
.wpforms-container {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0,0,0,0.05);
}

.wpforms-container .wpforms-field input,
.wpforms-container .wpforms-field textarea,
.wpforms-container .wpforms-field select,
.form__input,
.form__textarea,
.form__select {
  width: 100%;
  padding: 14px 18px !important;
  border: 1.5px solid var(--gris-claro) !important;
  border-radius: var(--radius-md) !important;
  font-size: 0.95rem !important;
  color: var(--color-text) !important;
  background: var(--blanco) !important;
  transition: all var(--duration-fast) var(--ease-smooth) !important;
  font-family: var(--font-body) !important;
}

.wpforms-container .wpforms-field input:focus,
.wpforms-container .wpforms-field textarea:focus,
.form__input:focus,
.form__textarea:focus,
.form__select:focus {
  border-color: var(--dorado) !important;
  box-shadow: 0 0 0 3px var(--dorado-glow) !important;
  outline: none !important;
}

.wpforms-container .wpforms-submit-container button,
.wpforms-container .wpforms-submit {
  background: linear-gradient(135deg, var(--dorado), var(--dorado-dark)) !important;
  color: var(--azul-marino) !important;
  padding: 14px 32px !important;
  border-radius: var(--radius-md) !important;
  font-family: var(--font-subhead) !important;
  font-weight: 600 !important;
  font-size: 0.95rem !important;
  border: none !important;
  cursor: pointer !important;
  transition: all var(--duration-normal) var(--ease-smooth) !important;
}

.wpforms-container .wpforms-submit:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 8px 30px rgba(201,168,76,0.45) !important;
}

.form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

.form__label {
  display: block;
  font-family: var(--font-subhead);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--azul-marino);
  margin-bottom: var(--space-sm);
  letter-spacing: 0.5px;
}

.form__textarea {
  min-height: 130px;
  resize: vertical;
}

/* Map */
.map-wrapper {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin-top: var(--space-3xl);
}

.map-wrapper iframe {
  width: 100%;
  height: 400px;
  border: none;
}


/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer,
.site-footer,
.ast-footer-overlay,
.ast-small-footer {
  background: var(--azul-profundo) !important;
  color: rgba(255,255,255,0.6) !important;
}

.site-footer a,
.ast-small-footer a {
  color: rgba(255,255,255,0.6) !important;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.site-footer a:hover,
.ast-small-footer a:hover {
  color: var(--dorado) !important;
  padding-left: 6px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer__logo-img {
  height: 60px;
  width: auto;
  mix-blend-mode: screen;
  filter: brightness(1.5) contrast(1.2);
  margin-bottom: var(--space-lg);
}

.footer__brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 4px;
  color: var(--blanco);
  margin-bottom: var(--space-lg);
}

.footer__brand-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-bottom: var(--space-xl);
}

.footer__heading {
  font-family: var(--font-subhead);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--dorado) !important;
  margin-bottom: var(--space-xl);
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__link {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.footer__link:hover {
  color: var(--dorado);
  padding-left: 6px;
}

.footer__bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
}


/* ═══════════════════════════════════════
   WHATSAPP FLOATING BUTTON
   ═══════════════════════════════════════ */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: var(--z-header);
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  transition: all var(--duration-normal) var(--ease-smooth);
  cursor: pointer;
  animation: whatsapp-pulse 2s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 8px 30px rgba(37,211,102,0.5);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: var(--blanco);
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%      { box-shadow: 0 4px 30px rgba(37,211,102,0.6); }
}


/* ═══════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-smooth), transform 0.8s var(--ease-smooth);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-30px);
}

.reveal--left.revealed {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(30px);
}

.reveal--right.revealed {
  transform: translateX(0);
}


/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
  .about__grid {
    grid-template-columns: 1fr;
    gap: var(--space-3xl);
  }

  .about__stats {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: var(--space-xl);
  }

  .development-card {
    grid-template-columns: 1fr;
  }

  .development-card:nth-child(even) {
    direction: ltr;
  }

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

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  .fortex-section {
    padding: var(--space-3xl) 0;
  }

  .fortex-container {
    padding: 0 var(--space-lg);
  }

  .hero__company {
    letter-spacing: 6px;
  }

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

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

  .footer__grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

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

  .about__image-accent {
    display: none;
  }
}

@media (max-width: 480px) {
  .hero__actions {
    flex-direction: column;
    align-items: center;
  }

  .btn,
  .fortex-btn {
    width: 100%;
    justify-content: center;
  }

  .services__tabs {
    flex-direction: column;
    align-items: center;
  }

  .properties__filters {
    flex-direction: column;
    align-items: center;
  }
}

/* ═══════════════════════════════════════
   HERO SECTION — Elementor Overrides
   ═══════════════════════════════════════ */

/* Badge "Raíces · Desarrollo Patrimonial · Ingeniería" */
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.25);
  border-radius: 100px;
  padding: 8px 20px;
  margin-bottom: 2rem;
  font-family: var(--font-subhead);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--dorado);
  letter-spacing: 2px;
  text-transform: uppercase;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dorado);
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.5; transform: scale(1.5); }
}

/* "EXPLORAR" scroll indicator — posición absoluta al fondo */
.hero__scroll {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  color: rgba(255,255,255,0.4);
  font-size: 0.75rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-family: var(--font-subhead);
  animation: fadeInUp 1s ease 1.2s both;
  z-index: 5;
}

/* Espaciado entre widgets dentro del Hero en Elementor */
.hero .elementor-widget {
  margin-bottom: 1rem;
}

.hero .elementor-widget:last-child {
  margin-bottom: 0;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, var(--dorado), transparent);
  animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
  0%   { transform: scaleY(0); transform-origin: top; }
  50%  { transform: scaleY(1); transform-origin: top; }
  51%  { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Hero responsive adjustments for Elementor */
@media (max-width: 768px) {
  .hero__badge {
    font-size: 0.65rem;
    padding: 6px 14px;
    letter-spacing: 1px;
  }

  .hero__scroll {
    display: none; /* Ocultar en móvil */
  }
}

/* ═══════════════════════════════════════
   ABOUT / QUIÉNES SOMOS — Elementor
   ═══════════════════════════════════════ */

/* NOTA: .section__label y .section__title ya están definidos
   arriba (línea ~248). NO duplicar aquí. */

/* Línea dorada decorativa */
.gold-line {
  width: 60px;
  height: 3px;
  background: linear-gradient(to right, var(--dorado), var(--dorado-light));
  border-radius: 2px;
  margin-bottom: 1.5rem;
}

/* Contenedor de imagen con acento */
.about__image-wrapper {
  position: relative;
}

.about__image {
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.about__image-accent {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--dorado);
  border-radius: 12px;
  z-index: -1;
}

/* Tarjeta de estadísticas superpuesta */
.about__stats {
  position: absolute;
  bottom: 30px;
  left: -30px;
  background: var(--azul-marino);
  border-radius: 12px;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  z-index: 2;
}

.about__stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--dorado);
}

.about__stat-text {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}

/* Grid de valores */
.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.about__value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-subhead);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--azul-marino);
}

.about__value-icon {
  width: 8px;
  height: 8px;
  background: var(--dorado);
  border-radius: 2px;
  transform: rotate(45deg);
  flex-shrink: 0;
}

/* Responsivo About */
@media (max-width: 768px) {
  .about__stats {
    position: relative;
    left: 0;
    bottom: -15px;
    margin: 0 auto;
  }

  .about__image-accent {
    display: none;
  }

  .about__image {
    height: 300px;
  }

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