/* ==========================================================================
   STYLES - XWC.EC (XPERTO) REPLICA
   Contadores, Auditores & Abogados Tributarios
   ========================================================================== */

/* --- ROOT VARIABLES --- */
:root {
  --bg-primary: #000000;
  --bg-secondary: #0a0b0e;
  --bg-tertiary: #111318;
  --bg-card: #14171f;
  --bg-card-hover: #1b1f2b;
  --bg-overlay: rgba(0, 0, 0, 0.75);
  
  --color-text-main: #ffffff;
  --color-text-muted: #8b92a2;
  --color-text-sub: #b2b8c6;
  --color-accent: #00b0ff;
  --color-accent-hover: #33c1ff;
  --color-accent-glow: rgba(0, 176, 255, 0.25);
  --color-swiss-red: #da291c;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.25);
  --border-accent: rgba(0, 176, 255, 0.4);
  
  --curve-radius-lg: 160px;
  --curve-radius-md: 90px;
  --curve-radius-sm: 40px;
  
  --header-height: 86px;
  --container-width: 1200px;
  
  --font-main: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--color-text-main);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-primary);
  color: var(--color-text-main);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-smooth);
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

.container {
  width: 100%;
  max-width: var(--container-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* --- HEADER & NAVIGATION --- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background-color: transparent;
  transition: background-color 0.4s ease, backdrop-filter 0.4s ease, border-bottom 0.4s ease, box-shadow 0.4s ease;
}

.site-header.scrolled {
  background-color: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  height: 74px;
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: transform var(--transition-smooth);
}

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

/* Fallback/Typography Logo if image not ready */
.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-title {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffffff;
  line-height: 1;
}

.logo-sub {
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--color-text-muted);
  text-transform: uppercase;
}

/* Desktop Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-link {
  position: relative;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-sub);
  padding: 8px 0;
  text-transform: capitalize;
  letter-spacing: 0.5px;
}

.nav-link:hover,
.nav-link.active {
  color: #ffffff;
}

/* Underline Animation (Elementor e--pointer-underline e--animation-slide) */
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-accent);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 8px var(--color-accent-glow);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* Header Actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.search-trigger-btn {
  background: transparent;
  border: none;
  color: var(--color-text-sub);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.search-trigger-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 30px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-smooth);
}

.btn-header-cta:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

/* Hamburger button */
.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 32px;
  height: 26px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1100;
}

.hamburger-line {
  width: 100%;
  height: 2px;
  background-color: #ffffff;
  transition: all 0.3s ease;
  transform-origin: center;
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.hamburger-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active .hamburger-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Mobile Nav Drawer */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background-color: var(--bg-tertiary);
  border-left: 1px solid var(--border-subtle);
  z-index: 1050;
  padding: 100px 32px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.8);
}

.mobile-nav-drawer.open {
  right: 0;
}

.mobile-nav-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mobile-nav-link {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-sub);
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--color-accent);
}

.mobile-drawer-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1040;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

/* --- ONE-PAGE SCROLL DOTS (ekit_has_onepagescroll_dot) --- */
.onepage-scroll-dots {
  position: fixed;
  right: 28px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 990;
  display: flex;
  flex-direction: column;
  gap: 16px;
  list-style: none;
}

.scroll-dot-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.scroll-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-dot:hover {
  transform: scale(1.3);
  background-color: #ffffff;
}

.scroll-dot-item.active .scroll-dot {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  transform: scale(1.4);
  box-shadow: 0 0 10px var(--color-accent);
}

.scroll-dot-tooltip {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(18, 20, 26, 0.95);
  color: #ffffff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  border: 1px solid var(--border-subtle);
}

.scroll-dot-item:hover .scroll-dot-tooltip {
  opacity: 1;
  visibility: visible;
  right: 20px;
}

/* --- HERO SECTION --- */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 40px);
  padding-bottom: 80px;
  background-color: #000000;
  border-radius: 0 0 0 var(--curve-radius-lg);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--border-subtle);
}

.hero-background-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: radial-gradient(circle at 80% 30%, rgba(0, 176, 255, 0.08) 0%, rgba(0, 0, 0, 0.95) 70%);
  pointer-events: none;
  z-index: 1;
}

.hero-container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 48px;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-sub);
  margin-bottom: 24px;
}

.swiss-flag-icon {
  display: inline-block;
  width: 12px;
  height: 12px;
  background-color: var(--color-swiss-red);
  position: relative;
  border-radius: 2px;
}

.swiss-flag-icon::before,
.swiss-flag-icon::after {
  content: "";
  position: absolute;
  background-color: #ffffff;
}

.swiss-flag-icon::before {
  top: 2px;
  bottom: 2px;
  left: 5px;
  width: 2px;
}

.swiss-flag-icon::after {
  left: 2px;
  right: 2px;
  top: 5px;
  height: 2px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 3.8rem;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1px;
  color: #ffffff;
  margin-bottom: 24px;
  text-transform: uppercase;
}

.hero-motion-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-sub);
  margin-bottom: 36px;
  border-left: 3px solid var(--color-accent);
  padding-left: 20px;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  background-color: #ffffff;
  color: #000000;
  border-radius: 36px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid #ffffff;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-primary:hover {
  background-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 34px;
  background-color: transparent;
  color: #ffffff;
  border-radius: 36px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid var(--border-hover);
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
  transform: translateY(-3px);
}

/* Hero Media Showcase */
.hero-media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-media-wrapper {
  position: relative;
  width: 100%;
  max-width: 480px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(0, 0, 0, 0.8));
}

.hero-media-img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-media-wrapper:hover .hero-media-img {
  transform: scale(1.04);
}

.hero-floating-card {
  position: absolute;
  bottom: 24px;
  left: -20px;
  background: rgba(17, 19, 24, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 16px 22px;
  border-radius: 14px;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 14px;
}

.floating-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(0, 176, 255, 0.15);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.floating-text h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
}

.floating-text p {
  font-size: 0.78rem;
  color: var(--color-text-muted);
}

/* --- STATS / COUNTERS SECTION (elementor-counter) --- */
.stats-section {
  padding: 80px 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.stat-card {
  background: var(--bg-card);
  padding: 36px 28px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  transition: all var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
}

.stat-number-wrapper {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 12px;
}

.stat-prefix,
.stat-suffix {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--color-accent);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
}

.stat-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text-sub);
  letter-spacing: 0.5px;
}

.stat-bar {
  width: 40px;
  height: 3px;
  background: var(--color-accent);
  margin: 16px auto 0;
  border-radius: 2px;
  opacity: 0.7;
}

/* --- RISK CALLOUT BANNER SECTION --- */
.risk-section {
  position: relative;
  padding: 100px 0;
  background-color: #000000;
  border-radius: 0 0 0 var(--curve-radius-lg);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.risk-container {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
}

.risk-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 18px;
}

.risk-title {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
  color: #ffffff;
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.risk-description {
  font-size: 1.18rem;
  line-height: 1.7;
  color: var(--color-text-sub);
  margin-bottom: 38px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* --- SERVICES SECTION (01 - 04) --- */
.services-section {
  padding: 120px 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-subtitle-tag {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--color-accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.service-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.service-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 900;
  color: rgba(255, 255, 255, 0.15);
  line-height: 1;
  margin-bottom: 20px;
  transition: color var(--transition-smooth);
}

.service-card:hover .service-number {
  color: var(--color-accent);
}

.service-title {
  font-family: var(--font-heading);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
  line-height: 1.3;
}

.service-text {
  font-size: 0.98rem;
  color: var(--color-text-sub);
  line-height: 1.7;
  margin-bottom: 28px;
}

.service-features {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-features li svg {
  color: var(--color-accent);
  flex-shrink: 0;
}

.service-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: all var(--transition-smooth);
}

.service-action-btn:hover {
  color: var(--color-accent);
  border-bottom-color: var(--color-accent);
  gap: 14px;
}

/* --- TEAM SLIDER SECTION (elementskit-team-slider) --- */
.team-section {
  position: relative;
  padding: 120px 0;
  background-color: #000000;
  border-radius: 0 0 0 var(--curve-radius-lg);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.team-carousel-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 28px;
}

.carousel-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-smooth);
}

.carousel-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
}

.team-slider-viewport {
  overflow: hidden;
  width: 100%;
  cursor: grab;
  user-select: none;
}

.team-slider-viewport:active {
  cursor: grabbing;
}

.team-slider-track {
  display: flex;
  gap: 24px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Profile Card Styling */
.team-card {
  flex: 0 0 calc((100% - (3 * 24px)) / 4);
  min-width: 250px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  position: relative;
  transition: all var(--transition-smooth);
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-hover);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
}

.team-card-image-wrap {
  position: relative;
  width: 100%;
  height: 340px;
  overflow: hidden;
  background-color: #0c0e12;
}

.team-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}

.team-card:hover .team-card-image {
  transform: scale(1.05);
}

/* Card Header Information */
.team-card-info {
  padding: 20px 22px;
  text-align: center;
  background: var(--bg-card);
  position: relative;
  z-index: 2;
}

.team-member-name {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.team-member-role {
  font-size: 0.85rem;
  color: var(--color-accent);
  font-weight: 500;
}

/* Overlay Details on Hover (ElementsKit ekit-team-style-overlay_details) */
.team-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(10, 12, 16, 0.96) 60%);
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transform: translateY(15px);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 4;
}

.team-card:hover .team-card-overlay {
  opacity: 1;
  transform: translateY(0);
}

.overlay-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.overlay-email {
  font-size: 0.82rem;
  color: var(--color-accent);
  margin-bottom: 12px;
  display: block;
}

.overlay-credentials {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--color-text-sub);
  margin-bottom: 16px;
  max-height: 140px;
  overflow-y: auto;
}

.overlay-credentials p {
  margin-bottom: 4px;
}

/* --- BOLETINES SECTION --- */
.boletines-section {
  padding: 120px 0;
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
}

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

.boletin-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.boletin-card:hover {
  transform: translateY(-8px);
  border-color: var(--border-hover);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
}

.boletin-thumb-link {
  display: block;
  width: 100%;
  height: 220px;
  overflow: hidden;
  position: relative;
}

.boletin-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.boletin-card:hover .boletin-thumb-img {
  transform: scale(1.08);
}

.boletin-body {
  padding: 28px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.boletin-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: 12px;
}

.boletin-category {
  color: var(--color-accent);
  font-weight: 600;
  text-transform: uppercase;
}

.boletin-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.4;
  margin-bottom: 14px;
  transition: color var(--transition-smooth);
}

.boletin-card:hover .boletin-title {
  color: var(--color-accent);
}

.boletin-excerpt {
  font-size: 0.92rem;
  color: var(--color-text-sub);
  line-height: 1.6;
  margin-bottom: 24px;
}

.boletin-read-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #ffffff;
  transition: all var(--transition-smooth);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.boletin-read-more:hover {
  color: var(--color-accent);
  gap: 12px;
}

/* --- CONTACT SECTION & INTERACTIVE FORM --- */
.contact-section {
  position: relative;
  padding: 120px 0;
  background-color: #000000;
  border-radius: 0 0 0 var(--curve-radius-lg);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 48px;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 40px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 32px;
}

.contact-info-item:last-child {
  margin-bottom: 0;
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-item-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 6px;
}

.contact-item-text {
  font-size: 0.95rem;
  color: var(--color-text-sub);
  line-height: 1.6;
}

.contact-item-text a:hover {
  color: var(--color-accent);
}

/* Interactive Contact Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  padding: 44px;
}

.contact-form-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-sub);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 14px 18px;
  color: #ffffff;
  font-size: 0.95rem;
  outline: none;
  transition: all var(--transition-smooth);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--color-accent);
  background: rgba(0, 176, 255, 0.04);
  box-shadow: 0 0 12px var(--color-accent-glow);
}

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

.form-submit-btn {
  width: 100%;
  padding: 16px;
  background: #ffffff;
  color: #000000;
  border: none;
  border-radius: 36px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all var(--transition-smooth);
}

.form-submit-btn:hover {
  background: var(--color-accent);
  color: #000000;
  box-shadow: 0 0 25px var(--color-accent-glow);
  transform: translateY(-2px);
}

.form-message-status {
  margin-top: 16px;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.92rem;
  display: none;
}

.form-message-status.success {
  display: block;
  background: rgba(39, 174, 96, 0.15);
  color: #2ecc71;
  border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Map Embed Container */
.map-container {
  margin-top: 48px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  height: 380px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  filter: invert(90%) hue-rotate(180deg) brightness(85%) contrast(110%);
}

/* --- FOOTER --- */
.site-footer {
  background-color: #050608;
  padding: 80px 0 32px;
  border-top: 1px solid var(--border-subtle);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 60px;
}

.footer-brand p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-top: 18px;
  max-width: 320px;
}

.footer-column-title {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 22px;
}

.footer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-link {
  font-size: 0.92rem;
  color: var(--color-text-sub);
  transition: all var(--transition-smooth);
}

.footer-link:hover {
  color: var(--color-accent);
  padding-left: 6px;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 16px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--color-text-sub);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-smooth);
}

.social-btn:hover {
  background: #ffffff;
  color: #000000;
  border-color: #ffffff;
  transform: translateY(-3px);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.88rem;
  color: var(--color-text-muted);
}

/* --- WHATSAPP FLOATING WIDGET (creame-whatsapp-me / joinchat) --- */
.whatsapp-widget {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 995;
  display: flex;
  align-items: center;
}

.whatsapp-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #25d366;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  animation: waPulse 2.5s infinite;
  transition: all var(--transition-smooth);
}

.whatsapp-btn:hover {
  transform: scale(1.08);
}

.whatsapp-popup-card {
  position: absolute;
  bottom: 74px;
  left: 0;
  width: 290px;
  background: #191b22;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.whatsapp-widget:hover .whatsapp-popup-card,
.whatsapp-popup-card.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.whatsapp-popup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.whatsapp-popup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
}

.whatsapp-popup-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
}

.whatsapp-popup-body {
  font-size: 0.85rem;
  color: var(--color-text-sub);
  line-height: 1.4;
  margin-bottom: 12px;
}

.whatsapp-action-link {
  display: block;
  text-align: center;
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 8px 12px;
  border-radius: 20px;
  transition: background var(--transition-smooth);
}

.whatsapp-action-link:hover {
  background: #20ba59;
}

/* --- FULLSCREEN SEARCH MODAL --- */
.search-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.94);
  backdrop-filter: blur(20px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.search-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.search-modal-close {
  position: absolute;
  top: 32px;
  right: 32px;
  background: transparent;
  border: none;
  color: #ffffff;
  font-size: 2rem;
  cursor: pointer;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.search-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
}

.search-modal-container {
  width: 100%;
  max-width: 720px;
}

.search-modal-input {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 2px solid rgba(255, 255, 255, 0.3);
  font-size: 2.2rem;
  font-weight: 600;
  color: #ffffff;
  padding: 16px 0;
  outline: none;
  transition: border-color var(--transition-smooth);
}

.search-modal-input:focus {
  border-color: var(--color-accent);
}

.search-results-list {
  margin-top: 32px;
  max-height: 380px;
  overflow-y: auto;
  list-style: none;
}

.search-result-item {
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  margin-bottom: 10px;
  transition: all var(--transition-smooth);
}

.search-result-item:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(6px);
}

.search-result-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #ffffff;
}

.search-result-snippet {
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

/* --- INFO / DETAILS MODAL --- */
.details-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(14px);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.details-modal-overlay.open {
  opacity: 1;
  visibility: visible;
}

.details-modal-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  width: 100%;
  max-width: 680px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 40px;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.8);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.details-modal-overlay.open .details-modal-card {
  transform: scale(1);
}

.details-modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  transition: color 0.2s ease;
}

.details-modal-close:hover {
  color: #ffffff;
}

.details-modal-number {
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.details-modal-title {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 20px;
}

.details-modal-content {
  font-size: 1rem;
  color: var(--color-text-sub);
  line-height: 1.8;
}

.details-modal-content h4 {
  color: #ffffff;
  margin: 20px 0 10px;
}

.details-modal-content ul {
  padding-left: 20px;
  margin-bottom: 20px;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1100px) {
  .hero-title {
    font-size: 3.2rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .team-card {
    flex: 0 0 calc((100% - (1 * 24px)) / 2);
  }
  
  .boletines-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .nav-menu,
  .btn-header-cta {
    display: none;
  }
  
  .hamburger-btn {
    display: flex;
  }
  
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  
  .hero-content {
    margin: 0 auto;
  }
  
  .hero-motion-text {
    border-left: none;
    border-top: 3px solid var(--color-accent);
    padding-left: 0;
    padding-top: 18px;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-media {
    margin-top: 20px;
  }
  
  .services-grid {
    grid-template-columns: 1fr;
  }
  
  .contact-grid {
    grid-template-columns: 1fr;
  }
  
  .onepage-scroll-dots {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --curve-radius-lg: 60px;
  }
  
  .hero-title {
    font-size: 2.5rem;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .team-card {
    flex: 0 0 100%;
  }
  
  .boletines-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .form-row {
    grid-template-columns: 1fr;
  }
  
  .risk-title {
    font-size: 2rem;
  }
}
