/* ============================================================
   CONTA MS — Premium Corporate Landing Page
   Design System & Styles
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:wght@400;500;600;700&display=swap');

/* ---------- CSS Custom Properties ---------- */
:root {
  /* Core Palette */
  --gold:          #D4AF37;
  --gold-light:    #e8cb6b;
  --gold-dark:     #a88a2a;
  
  /* Shared Props */
  --font-body:     'Inter', sans-serif;
  --font-heading:  'Playfair Display', serif;
  --section-py:    6rem;
  --container-max: 1400px;
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);

  /* Theme Variables (DEFAULT: DARK MODE) */
  --theme-bg-body:    #121212;
  --theme-bg-alt:     #1E1E24;
  --theme-bg-white:   #1A1A1A; /* In Dark mode, "white" sections are dark */
  --theme-bg-light:   #222222;
  --theme-bg-card:    rgba(30, 30, 36, 0.60);
  --theme-text-main:  #FFFFFF;
  --theme-text-muted: #B0B0B0;
  --theme-text-dark:  #FFFFFF; /* In Dark mode, dark text should be light */
  --theme-text-dark-muted: #A0A0A0;
  --theme-nav-bg:     rgba(0, 0, 0, 0.9);
  --theme-nav-scrolled: rgba(0, 0, 0, 0.98);
  --theme-nav-text:   #FFFFFF;
  --theme-logo-filter: invert(1) hue-rotate(180deg);
  --theme-border:     rgba(255, 255, 255, 0.1);
  --theme-input-bg:   rgba(0, 0, 0, 0.4);
  --theme-input-text: #FFFFFF;
  --theme-shadow:     rgba(0, 0, 0, 0.4);
}

/* Light Mode / Clean Mode Overrides */
body.light-mode {
  --theme-bg-body:    #F7F7F7;
  --theme-bg-alt:     #FFFFFF;
  --theme-bg-white:   #FFFFFF;
  --theme-bg-light:   #F0F0F0;
  --theme-bg-card:    rgba(255, 255, 255, 0.80);
  --theme-text-main:  #1A1A1A;
  --theme-text-muted: #555555;
  --theme-text-dark:  #1A1A1A;
  --theme-text-dark-muted: #666666;
  --theme-nav-bg:     rgba(255, 255, 255, 0.95);
  --theme-nav-scrolled: #FFFFFF;
  --theme-nav-text:   #1A1A1A;
  --theme-logo-filter: none;
  --theme-border:     rgba(0, 0, 0, 0.08);
  --theme-input-bg:   #FFFFFF;
  --theme-input-text: #1A1A1A;
  --theme-shadow:     rgba(0, 0, 0, 0.08);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--theme-bg-body);
  color: var(--theme-text-main);
  line-height: 1.8; /* Incrementado para aireación */
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s, color 0.4s;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

ul { list-style: none; }

/* ---------- Utility ---------- */
.container {
  width: 90%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.section-label {
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 3px;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 1rem;
}

.section-subtitle {
  color: var(--theme-text-muted);
  font-size: 1.05rem;
  max-width: 600px;
}

/* Fade-in-up — content visible by default, animation is progressive enhancement */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

/* Animation only applies when JS has loaded and prepared elements */
body.js-ready .reveal {
  opacity: 0;
  transform: translateY(30px);
}
body.js-ready .reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 0; /* Un poco más de aire */
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  background: transparent;
}

.navbar.scrolled {
  background: var(--theme-bg-body);
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--theme-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .navbar.scrolled {
  background: white;
  border-bottom: 1px solid #eee;
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: 0.5rem;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 600;
}

.lang-btn {
  background: none;
  border: none;
  color: var(--theme-nav-text);
  opacity: 0.6;
  cursor: pointer;
  padding: 2px 4px;
  font-weight: 700;
  transition: color 0.3s, transform 0.3s, opacity 0.3s;
}

.lang-btn:hover {
  color: var(--gold);
  opacity: 1;
}

.lang-btn.active {
  color: var(--gold);
  border-bottom: 1px solid var(--gold);
  opacity: 1;
}

.lang-sep {
  color: var(--theme-border);
}

/* Theme Toggle Button */
.theme-toggle {
  background: none;
  border: none;
  color: var(--theme-nav-text);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out), color 0.3s;
  margin-left: 1rem;
}

.theme-toggle:hover {
  color: var(--gold);
  transform: scale(1.1);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.theme-toggle .sun-icon { display: none; }
.theme-toggle .moon-icon { display: block; }

body.light-mode .theme-toggle .sun-icon { display: block; }
body.light-mode .theme-toggle .moon-icon { display: none; }
.navbar__logo img {
  height: 150px;
  width: auto;
  transition: height 0.4s var(--ease-out), filter 0.3s;
  filter: var(--theme-logo-filter) drop-shadow(0 5px 15px rgba(0,0,0,0.1));
}

.navbar.scrolled .navbar__logo img {
  height: 100px;
}

/* Fallback text logo when image not available */
.navbar__logo-text {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}

.navbar__links {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.navbar__links a {
  position: relative;
  color: var(--theme-text-main);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.3s ease;
  padding: 0.5rem 0;
}

/* Deloitte-style Underline */
.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold);
  transition: width 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.navbar__links a:hover {
  color: white;
}

[data-theme="light"] .navbar__links a:hover {
  color: var(--black);
}

.navbar__links a:hover::after,
.navbar__links li.active a::after {
  width: 100%;
}

/* Selector de Idioma más sobrio */
.navbar__lang-selector {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-left: 1.5rem;
  padding: 0.2rem 1rem;
  border-left: 1px solid var(--theme-border);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--theme-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  padding: 0;
}

.lang-btn.active {
  color: var(--gold);
}

.navbar__lang-separator {
  display: none; /* Eliminamos la barra dorada entre ES/EN */
}

/* Botón CTA Estilo Deloitte (Ghost Button) */
.navbar__cta .btn {
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 0; /* Bordes rectos para máxima formalidad */
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.navbar__cta .btn:hover {
  background: var(--gold);
  color: #000;
  transform: translateY(-2px);
  /* removed shadow for strict formal feel */
}

/* ============================================================
   NAV DROPDOWN MEGA MENU
   ============================================================ */
.nav-dropdown {
  position: static; /* Allows pure full-width dropdown */
}

.nav-dropdown__trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.nav-dropdown__chevron {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  transition: transform 0.3s var(--ease-out);
  flex-shrink: 0;
}

.nav-dropdown:hover .nav-dropdown__chevron {
  transform: rotate(180deg);
  color: var(--gold);
}

/* Deloitte-style Mega Menu Panel */
.nav-dropdown__panel {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: #111111; /* Solid very dark */
  border: none;
  border-top: 3px solid var(--gold); /* Signature Corporate Accent */
  padding: 3rem 5%; /* Matches container width visually */
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 15px 40px rgba(0,0,0,0.5);
  transform: none;
}

[data-theme="light"] .nav-dropdown__panel {
  background: #F8F8F8;
  border-bottom: 1px solid #E0E0E0;
}

/* Hover bridge: prevents panel from closing while moving mouse from link to panel */
.nav-dropdown__panel::before {
  content: '';
  position: absolute;
  top: -10px; /* Bridge gap before navbar */
  left: 0;
  width: 100%;
  height: 10px;
  background: transparent;
}

.nav-dropdown:hover .nav-dropdown__panel {
  opacity: 1;
  visibility: visible;
}

/* Services grid - Mega Menu layout */
.nav-dropdown__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 3 columns for services */
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-dropdown__item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  padding: 1rem 1.5rem;
  text-decoration: none;
  border-radius: 0;
  border-left: 2px solid transparent;
  transition: all 0.2s ease;
  background: transparent;
}

.nav-dropdown__item:hover {
  background: #1A1A1A;
  border-left-color: var(--gold);
}

[data-theme="light"] .nav-dropdown__item:hover {
  background: #FFFFFF;
  box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.nav-dropdown__item:hover::after {
  display: none;
}

.nav-dropdown__icon {
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 2px;
}

.nav-dropdown__item-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-dropdown__item-text strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 0.9rem;
  color: var(--theme-text-main);
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.nav-dropdown__item-text span {
  font-size: 0.75rem;
  color: var(--theme-text-muted);
  font-weight: 400;
}

/* Tools panel grid */
.nav-dropdown__tools-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

/* About / Nosotros grid */
.nav-dropdown__about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  max-width: var(--container-max);
  margin: 0 auto;
}

.nav-dropdown__tool {
  font-size: 0.85rem;
  color: var(--theme-text-muted);
  text-decoration: none;
  padding: 0.8rem;
  transition: all 0.2s;
  border-left: 3px solid transparent;
  background: transparent;
  display: block;
}

.nav-dropdown__tool:hover {
  color: var(--gold);
  border-left-color: var(--gold);
  background: #1A1A1A;
}

[data-theme="light"] .nav-dropdown__tool:hover {
  background: #F0F0F0;
}

.nav-dropdown__tool:hover::after {
  display: none;
}

/* Hide dropdowns on mobile */
@media (max-width: 900px) {
  .nav-dropdown__panel {
    display: none;
  }
  .nav-dropdown__chevron {
    display: none;
  }
}

/* Hamburger */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 1001;
  background: none;
  border: none;
}

.navbar__hamburger span {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--theme-text-main);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.navbar__hamburger.active span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.navbar__hamburger.active span:nth-child(2) {
  opacity: 0;
}
.navbar__hamburger.active span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--theme-bg-white);
  padding-top: 80px; /* Offset for fixed navbar */
  transition: background 0.4s;
}

.hero__container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 4rem;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.hero__content {
  max-width: 600px;
}

.hero__logo-badge {
  height: 80px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: var(--theme-logo-filter);
  /* removed drop-shadow for flat formal aesthetic */
}

.hero__tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: 1.25rem;
  font-weight: 600;
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--theme-text-dark);
}

.hero__title .highlight {
  color: var(--gold);
}

.hero__description {
  color: var(--theme-text-dark-muted);
  font-size: 1.15rem;
  line-height: 1.8;
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.hero__visual {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: flex-end;
}

.hero__image-wrapper {
  position: relative;
  width: 100%;
  max-width: 600px;
  aspect-ratio: 4/3;
  border-radius: 0; /* Fully square */
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2); /* Formal subtle shadow */
  border: 1px solid var(--theme-border);
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.hero__image-wrapper:hover .hero__image {
  transform: scale(1.05);
}

/* CTA Button — Formal Corporate Edition */
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1rem 2.4rem;
  background: var(--gold); /* flat background, no gradient */
  color: #000;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 0; /* straight sharp edges */
  cursor: pointer;
  transition: background 0.3s var(--ease-out), transform 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.btn-cta:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
  /* No glowing shadow */
}

.btn-cta svg {
  width: 20px;
  height: 20px;
  fill: var(--bg-primary);
}

/* ============================================================
   TOOLS & ALLIES (Institutions Grid)
   ============================================================ */
/* ============================================================
   TOOLS & ALLIES (Mosaic Grid)
   ============================================================ */
.tools-allies {
  padding: 6rem 0;
  background-color: var(--theme-bg-white);
  border-bottom: 1px solid var(--theme-border);
  transition: background 0.4s;
}

.tools-allies__header {
  text-align: center;
  margin-bottom: 4rem;
}

.tools-allies .section-title {
  color: var(--theme-text-dark);
}

.tools-allies__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.75rem;
}

.tool-card {
  background: white;
  border: 1px solid #f2f2f2;
  border-radius: 8px;
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

.tool-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  opacity: 0;
  transition: opacity 0.2s;
}

.tool-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
  border-color: var(--gold-light);
}

.tool-card:hover::before {
  opacity: 1;
}

.tool-card__content {
  flex: 1;
}

.tool-card__tag {
  display: inline-block;
  background: rgba(212, 175, 55, 0.06);
  color: var(--gold-dark);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
  font-size: 0.55rem;
  font-weight: 700;
  text-transform: uppercase;
  margin-bottom: 0.2rem;
}

.tool-card__title {
  font-family: var(--font-heading);
  font-size: 0.95rem;
  color: var(--theme-text-dark);
  margin: 0 0 0.15rem 0;
  line-height: 1.1;
  transition: color 0.3s ease;
}

.tool-card:hover .tool-card__title {
  color: var(--gold-dark);
}

.tool-card__desc {
  font-size: 0.72rem;
  line-height: 1.25;
  color: var(--theme-text-dark-muted);
  margin: 0;
}

.tool-card__logo-wrapper {
  width: 70px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border-radius: 4px;
  padding: 0.3rem;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
  flex-shrink: 0;
}

.tool-card__logo {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.tool-card:hover .tool-card__logo {
  filter: grayscale(0);
  opacity: 1;
}

@media (max-width: 768px) {
  .tools-allies__grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* ============================================================
   SERVICES — PREMIUM REDESIGN
   ============================================================ */

/* Keyframes */
@keyframes borderRotate {
  0%   { --border-angle: 0deg; }
  100% { --border-angle: 360deg; }
}

@keyframes iconPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.20); }
  50%      { box-shadow: 0 0 28px 6px rgba(212,175,55,0.12); }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%) skewX(-15deg); }
  100% { transform: translateX(200%) skewX(-15deg); }
}

/* Section */
.services {
  padding: var(--section-py) 0;
  position: relative;
  overflow: hidden;
  background-color: var(--theme-bg-white);
  transition: background 0.4s;
}

.services .section-title {
  color: var(--theme-text-dark);
}

.services .section-subtitle {
  color: var(--theme-text-dark-muted);
}

/* Subtle dot-grid background */
.services::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(0,0,0,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 30%, transparent 100%);
}

.services__header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.services__header .section-subtitle {
  margin: 0 auto;
}

.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------------
   REVERSIBLE SLIDER MODE
   -------------------------------------------------------------------------- */
.services.services--slider .services__slider-container {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.services.services--slider .services__grid {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 1.5rem;
  padding: 1rem 0.5rem 3rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
  flex: 1;
}

.services.services--slider .services__grid::-webkit-scrollbar {
  display: none;
}

.services.services--slider .service-card {
  flex: 0 0 calc(33.333% - 1rem);
  scroll-snap-align: center;
  min-width: 300px;
}

/* Slider Arrows */
.services__arrow {
  display: none;
  background: var(--theme-bg-body);
  border: 1px solid var(--theme-border);
  color: var(--theme-text-main);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  align-items: center;
  justify-content: center;
  z-index: 10;
  box-shadow: var(--theme-shadow);
  flex-shrink: 0;
  padding: 0;
}

.services.services--slider .services__arrow {
  display: flex;
}

.services__arrow:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.services__arrow svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 1024px) {
  .services.services--slider .service-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 820px) {
  .services.services--slider .services__arrow {
    display: none; /* Hide arrows on tablets/mobile, use dots/swipe */
  }
}

@media (max-width: 768px) {
  .services.services--slider .service-card {
    flex: 0 0 100%;
  }
}

@media (max-width: 1024px) {
  .services.services--slider .service-card {
    flex: 0 0 calc(50% - 1rem);
  }
}

@media (max-width: 768px) {
  .services.services--slider .service-card {
    flex: 0 0 100%;
  }
}

/* Slider Dots */
.services__dots {
  display: none;
  justify-content: center;
  gap: 0.8rem;
  margin-top: -1rem;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.services.services--slider .services__dots {
  display: flex;
}

.services__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid var(--gold);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 0;
}

.services__dot.active {
  background: var(--gold);
  transform: scale(1.3);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
}

/* --------------------------------------------------------------------------
   NEW SERVICE CARDS (Flat, Dark, Premium)
   -------------------------------------------------------------------------- */
.service-card {
  background-color: var(--theme-bg-alt);
  background: linear-gradient(145deg, var(--theme-bg-alt) 0%, var(--theme-bg-body) 100%);
  border-radius: 12px;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--theme-shadow);
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s var(--ease-out), background 0.4s;
  border: 1px solid var(--theme-border);
  text-decoration: none;
}

/* Subtle top border that turns gold on hover */
.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 2px;
  background-color: var(--gold);
  opacity: 0.2;
  transition: width 0.5s var(--ease-out), opacity 0.5s var(--ease-out);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4), 0 0 20px rgba(212, 175, 55, 0.06);
  border-color: rgba(212, 175, 55, 0.15);
}

.service-card:hover::before {
  width: 100%;
  opacity: 1;
}

.service-card__top {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 1.5rem;
  position: relative;
}

.service-card__number {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  color: var(--gold);
  opacity: 0.4;
  font-weight: 500;
  letter-spacing: 2px;
  position: absolute;
  top: -10px;
  right: -5px;
}

.service-card__icon-wrapper {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: inset 0 0 15px rgba(0,0,0,0.4);
  backdrop-filter: blur(5px);
  transition: border-color 0.3s, background 0.3s;
}

.service-card:hover .service-card__icon-wrapper {
  border-color: rgba(212, 175, 55, 0.3);
  background: rgba(212, 175, 55, 0.05);
}

.service-card__icon-svg {
  width: 40px;
  height: 40px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  transition: transform 0.3s var(--ease-out);
}

.service-card:hover .service-card__icon,
.service-card:hover .service-card__icon-svg {
  transform: scale(1.1);
}

.service-card__title {
  color: var(--theme-text-main);
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  text-align: center;
  flex-grow: 1;
}

.service-card__desc {
  color: var(--theme-text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
  flex: 1;
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.3s, transform 0.3s;
  margin-top: auto;
}

.service-card__link svg {
  width: 14px;
  height: 14px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s;
}

.service-card:hover .service-card__link {
  opacity: 1;
}

.service-card:hover .service-card__link svg {
  transform: translateX(4px);
}

/* ============================================================
   TESTIMONIALS & GOOGLE REVIEWS
   ============================================================ */
.testimonials {
  padding: var(--section-py) 0;
  background-color: var(--theme-bg-white);
  position: relative;
  transition: background 0.4s;
}

.testimonials .section-title {
  color: var(--theme-text-dark);
}

.testimonials .section-subtitle {
  color: var(--theme-text-dark-muted);
}

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

.google-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: var(--theme-bg-light);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  border: 1px solid var(--theme-border);
  margin-top: 1.5rem;
}

.google-rating__icon {
  flex-shrink: 0;
}

.google-rating__score {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--theme-text-dark);
}

.google-rating__stars {
  color: var(--gold);
  letter-spacing: 2px;
  font-size: 0.9rem;
}

.google-rating__count {
  font-size: 0.8rem;
  color: var(--theme-text-dark-muted);
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.testimonial-card {
  background: var(--theme-bg-light);
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: all 0.4s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.testimonial-card:hover {
  transform: translateY(-10px);
  border-color: rgba(212, 175, 55, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.testimonial-card__quote {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold);
  margin-bottom: -1rem;
  opacity: 0.3;
}

.testimonial-card__stars {
  color: var(--gold);
  margin-bottom: 1rem;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

.testimonial-card__text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--theme-text-main);
  margin-bottom: 2rem;
  flex: 1;
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-card__avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid rgba(212, 175, 55, 0.3);
}

.testimonial-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.testimonial-card__name {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--theme-text-main);
}

.testimonial-card__role {
  font-size: 0.8rem;
  color: var(--theme-text-muted);
}

/* ============================================================
   ABOUT US
   ============================================================ */
.about {
  padding: var(--section-py) 0;
  background-color: var(--theme-bg-light);
  transition: background 0.4s;
}

.about .section-title {
  color: var(--theme-text-dark);
}

.about .section-subtitle {
  color: var(--theme-text-dark-muted);
}

.about .container {
  position: relative;
}

.about__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


.about__team-img {
  width: 100%;
  max-width: 550px;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.15);
  display: block;
  transition: transform 0.5s var(--ease-out);
}

.about__team-img:hover {
  transform: scale(1.02);
}

.about__logo-watermark {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.about__text .section-subtitle {
  margin-bottom: 2rem;
}

.about__list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.about__list-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--theme-text-dark-muted);
  font-size: 0.95rem;
}

.about__list-item svg {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 2;
  margin-top: 2px;
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--section-py) 0;
  background: var(--theme-bg-body); 
  color: var(--theme-text-main);
  transition: background 0.4s;
}

.contact__layout-header {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr; /* Sincronizado con .contact__wrapper */
  align-items: center;
  margin-bottom: 2rem;
  gap: 3rem;
}

.contact__text-group {
  flex: 1;
}

.contact__text-group .section-subtitle {
  margin: 0;
  max-width: 600px;
}

.contact__logo-group {
  flex-shrink: 0;
}

.contact__mega-logo {
  height: 400px;
  width: auto;
  margin-left: -30px; 
  filter: var(--theme-logo-filter) drop-shadow(0 25px 60px rgba(0,0,0,0.4));
  transition: transform 0.4s var(--ease-out);
}

.contact__mega-logo:hover {
  transform: scale(1.02);
}

.contact__wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group textarea {
  background: var(--theme-input-bg);
  border: 1px solid var(--theme-border);
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  color: var(--theme-input-text);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

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

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact__brand {
  text-align: left;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
}

.contact__tagline {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--gold);
  font-weight: 500;
  letter-spacing: 0.3px;
  opacity: 0.9;
}

.contact__info-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.contact__info-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact__info-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
}

.contact__info-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--theme-text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.contact__info-value {
  font-size: 0.95rem;
  color: var(--theme-text-main);
}

.contact__info-value a {
  color: var(--theme-text-main);
  text-decoration: underline;
  transition: opacity 0.3s;
}
.contact__info-value a:hover { opacity: 0.8; }

.contact__map {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--glass-border);
  margin-top: 1rem;
}

.contact__map iframe {
  width: 100%;
  height: 220px;
  border: 0;
  filter: grayscale(0.8) brightness(0.7) contrast(1.1);
  transition: filter 0.3s;
}

.contact__map:hover iframe {
  filter: grayscale(0.3) brightness(0.85) contrast(1.05);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  padding: 2.5rem 0;
  background: var(--theme-bg-body); 
  border-top: 1px solid var(--theme-border);
  color: var(--theme-text-main);
  transition: background 0.4s;
}

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

.footer__logo-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer__logo {
  height: 120px;
  width: auto;
  margin-bottom: 1.5rem;
  filter: var(--theme-logo-filter);
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--theme-text-muted);
  transition: color 0.3s;
}

.footer__copy {
  font-size: 0.8rem;
  color: var(--theme-text-muted);
}

.footer__links a:hover {
  color: var(--gold);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid,
  .testimonials__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .about .container {
    padding: 0 1.5rem;
  }

  .about__visual {
    order: -1;
    max-height: 280px;
  }
}

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

  /* Mobile nav */
  .navbar__links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 75%;
    max-width: 320px;
    height: 100vh;
    background: var(--theme-text-muted);
    flex-direction: column;
    padding: 6rem 2rem 2rem;
    gap: 1.5rem;
    transition: right 0.4s var(--ease-out);
    box-shadow: -10px 0 40px rgba(0,0,0,0.5);
    border-left: 1px solid var(--glass-border);
  }

  .navbar__links.open {
    right: 0;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Grids */
  .services__grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

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

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

  .contact__layout-header {
    flex-direction: column;
    text-align: center;
    gap: 2rem;
  }
  
  .contact__text-group .section-subtitle {
     margin: 0 auto;
  }

  .hero__container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero__content {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .hero__description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__visual {
    justify-content: center;
  }

  .about__visual-inner {
    width: 160px;
    height: 160px;
    padding: 1.5rem;
  }
  
  .hero__title {
    font-size: clamp(2.2rem, 7vw, 3rem);
  }

  .footer .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .social-proof .container {
    gap: 1.5rem;
  }

  .social-proof__text-logo {
    font-size: 0.9rem;
  }
}

/* ---------- WhatsApp Float ---------- */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
  animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  background-color: #128c7e;
  color: #FFF;
}

@keyframes whatsapp-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(37,211,102,0.7); }
  70%  { box-shadow: 0 0 0 15px rgba(37,211,102,0);   }
  100% { box-shadow: 0 0 0 0   rgba(37,211,102,0);   }
}

/* ============================================================
   ABOUT & TEAM SLIDER (CONTAINER BREAKOUT)
   ============================================================ */
.about {
  padding: 10rem 0;
  overflow: hidden;
  background: var(--theme-bg-body);
  position: relative;
}

/* Center About section properly using standard container */
.about .container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
  position: relative;
}

.about__slider-container {
  position: relative;
  width: 100%;
}

.about__switcher {
  overflow: hidden;
  max-width: 100%;
}

.about__track {
  display: block;
  position: relative;
  width: 100%;
}

/* Remove slide transform since we are fading */
.about__switcher.show-team .about__track {
  transform: none;
}

.about__view {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  padding: 0 20px;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.about__view.active-slide {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 2;
}


.about__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 6rem;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
}

.about__visual {
  display: flex;
  justify-content: flex-end;
}

.about__visual img {
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.5);
}

.about__text {
  text-align: left;
}

.about__text .section-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 2rem;
}

/* Fix broken block if any */
.about__view--content {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--theme-bg-body);
}

.about__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 100;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.about__arrow:hover {
  background: var(--gold);
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 10px 20px rgba(212, 175, 55, 0.4);
}

.about__arrow svg {
  width: 24px;
  height: 24px;
  stroke-width: 2.5;
}

/* Positioning: Use viewport units to keep them at the edges without hitting text on most screens */
.about__arrow--prev { left: 1rem; }
.about__arrow--next { right: 1rem; }

/* Desktop: Push them further out if space allows */
@media (min-width: 1400px) {
  .about__arrow--prev { left: 2rem; }
  .about__arrow--next { right: 2rem; }
}

@media (max-width: 1300px) {
  .about__arrow--prev { left: 10px; }
  .about__arrow--next { right: 10px; }
  .about__slider-container { padding: 0 80px; }
}

@media (max-width: 1024px) {
  .about__layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .about__visual { justify-content: center; }
  .about__text { text-align: center; }
  .about__arrow {
    top: auto;
    bottom: 0px; /* Positioned at bottom center */
    transform: none;
    background: var(--gold);
    color: white;
  }
  .about__arrow--prev { left: calc(50% - 60px); }
  .about__arrow--next { right: calc(50% - 60px); }
  .about__slider-container { padding: 0 0 80px 0; }
}

/* ============================================================
   TEAM SECTION
   ============================================================ */
.team {
  padding: 4rem 0; /* Reduced padding since it's inside about section */
}
.team__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  width: 100%;
  max-width: var(--container-max);
}
.team-card {
  background: var(--theme-bg-card);
  border: 1px solid var(--theme-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  backdrop-filter: blur(8px);
}
.team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25), 0 0 0 1px rgba(212,175,55,0.2);
}
.team-card__avatar {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 1.5rem;
}
.team-card__avatar-svg {
  width: 100%;
  height: 100%;
  color: var(--gold);
  border-radius: 50%;
  background: rgba(212,175,55,0.08);
  border: 2px solid rgba(212,175,55,0.25);
}
.team-card__initials {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 1px;
}
.team-card__name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--theme-text-main);
  margin-bottom: 0.3rem;
}
.team-card__role {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 1rem;
}
.team-card__desc {
  font-size: 0.9rem;
  color: var(--theme-text-muted);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}
.team-card__socials {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
}
.team-card__social {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(37,211,102,0.1);
  color: #25D366;
  border: 1px solid rgba(37,211,102,0.2);
  transition: background 0.3s, transform 0.3s;
}
.team-card__social:hover {
  background: #25D366;
  color: white;
  transform: scale(1.1);
}
.team-card__social svg {
  width: 18px;
  height: 18px;
}
@media (max-width: 900px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .team__grid { grid-template-columns: 1fr; }
}
