/* ==========================================================================
   HERCO ASESORES - MAIN STYLESHEET
   Location: Valencia, Spain
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS Custom Properties / Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand Palette - Primary: Orange #D74A21, Secondary: Deep Midnight Blue #0A1E3F (High Contrast) */
  --herco-primary: #D74A21;        /* Vibrant Corporate Orange */
  --herco-primary-hover: #B83A17;  /* Darker Orange Hover */
  --herco-secondary: #0A1E3F;      /* Deep Midnight Blue (High Contrast vs Orange) */
  --herco-secondary-hover: #050F21;/* Darker Midnight Blue Hover */
  --herco-accent: #FF7A45;         /* Vibrant Orange Accent */
  --herco-accent-light: #FCD8CB;   /* Soft Light Orange Tint */
  --herco-dark: #1C0D08;           /* Dark Charcoal Brown */
  --herco-light: #FCF8F6;          /* Soft Warm Background Light */
  --herco-surface: #FFFFFF;        /* Crisp White */
  --herco-border: #F0D8D0;         /* Soft Border */
  --herco-border-subtle: #F9EBE6;  /* Subtle Border */
  --herco-text-dark: #1C1917;      /* Dark Text for Contrast */
  --herco-text-muted: #57534E;     /* Muted Text */
  --herco-text-light: #FCF8F6;     /* Light Text on Dark BG */

  /* Typography: Elegant Serif Headings + Softer Rounded Sans Body */
  --herco-font-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --herco-font-heading: 'Cormorant Garamond', 'Georgia', serif;

  /* Shadow & Elevation */
  --herco-shadow-sm: 0 2px 6px rgba(74, 46, 53, 0.04), 0 1px 3px rgba(74, 46, 53, 0.03);
  --herco-shadow-md: 0 6px 18px -2px rgba(74, 46, 53, 0.08), 0 2px 6px -1px rgba(74, 46, 53, 0.03);
  --herco-shadow-lg: 0 16px 32px -6px rgba(74, 46, 53, 0.11), 0 8px 14px -4px rgba(74, 46, 53, 0.04);
  --herco-shadow-xl: 0 26px 45px -12px rgba(74, 46, 53, 0.2);
  --herco-shadow-glow: 0 0 25px rgba(215, 74, 33, 0.35);

  /* Soft Curved Radius */
  --herco-radius-sm: 10px;
  --herco-radius-md: 16px;
  --herco-radius-lg: 24px;
  --herco-radius-xl: 32px;
  --herco-radius-full: 9999px;

  /* Transitions */
  --herco-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --herco-transition-fast: all 0.18s ease-in-out;
}

/* --------------------------------------------------------------------------
   1b. Color Presets (Regla 60-30-10)
   -------------------------------------------------------------------------- */

/* PRESET 1: Naranja + Azul Noche (Máximo Contraste Cromático) */
[data-theme-preset="navy-orange"] {
  --herco-primary: #D74A21;
  --herco-primary-hover: #B83A17;
  --herco-secondary: #0A1E3F;
  --herco-secondary-hover: #050F21;
  --herco-accent: #FF7A45;
  --herco-accent-light: #FCD8CB;
  --herco-dark: #061124;
  --herco-light: #F8FAFC;
  --herco-surface: #FFFFFF;
  --herco-border: #E2E8F0;
  --herco-border-subtle: #F1F5F9;
  --herco-text-dark: #1E293B;
  --herco-text-muted: #475569;
  --herco-text-light: #F8FAFC;
  --herco-font-heading: 'Outfit', sans-serif;
  --herco-shadow-glow: 0 0 25px rgba(215, 74, 33, 0.35);
}

/* PRESET 2: Azul Cobalto + Verde Esmeralda (Solvencia, Crecimiento y Finanzas) */
[data-theme-preset="navy-green"] {
  --herco-primary: #0A2540;
  --herco-primary-hover: #0E3357;
  --herco-secondary: #059669;
  --herco-secondary-hover: #047857;
  --herco-accent: #34D399;
  --herco-accent-light: #A7F3D0;
  --herco-dark: #061729;
  --herco-light: #F4F7F6;
  --herco-surface: #FFFFFF;
  --herco-border: #E0E7E5;
  --herco-border-subtle: #EDF2F0;
  --herco-text-dark: #1A2E2B;
  --herco-text-muted: #4B635E;
  --herco-text-light: #F4F7F6;
  --herco-font-heading: 'Outfit', sans-serif;
  --herco-shadow-glow: 0 0 25px rgba(5, 150, 105, 0.35);
}

/* PRESET 3: Caoba Rosewood + Terracota Cobre (Distinción Femenina Ejecutiva) */
[data-theme-preset="rosewood-terracotta"] {
  --herco-primary: #4A2E35;
  --herco-primary-hover: #372026;
  --herco-secondary: #AD513E;
  --herco-secondary-hover: #8F3C2B;
  --herco-accent: #E8B499;
  --herco-accent-light: #FFDFD3;
  --herco-dark: #2A1D21;
  --herco-light: #FAF5F3;
  --herco-surface: #FFFFFF;
  --herco-border: #EFE2DE;
  --herco-border-subtle: #F7EFEB;
  --herco-text-dark: #2A1A1E;
  --herco-text-muted: #5E4A4E;
  --herco-text-light: #FAF5F3;
  --herco-font-heading: 'Cormorant Garamond', 'Georgia', serif;
  --herco-shadow-glow: 0 0 25px rgba(173, 81, 62, 0.35);
}

/* PRESET 4: Naranja + Azul Noche (Alto Contraste Ejecutivo) */
[data-theme-preset="orange-navy"] {
  --herco-primary: #D74A21;
  --herco-primary-hover: #B83A17;
  --herco-secondary: #0A1E3F;
  --herco-secondary-hover: #050F21;
  --herco-accent: #FF7A45;
  --herco-accent-light: #FCD8CB;
  --herco-dark: #061124;
  --herco-light: #F8FAFC;
  --herco-surface: #FFFFFF;
  --herco-border: #E2E8F0;
  --herco-border-subtle: #F1F5F9;
  --herco-text-dark: #1E293B;
  --herco-text-muted: #475569;
  --herco-text-light: #F8FAFC;
  --herco-font-heading: 'Outfit', sans-serif;
  --herco-shadow-glow: 0 0 25px rgba(215, 74, 33, 0.35);
}


/* --------------------------------------------------------------------------
   1c. Floating Color Switcher Widget
   -------------------------------------------------------------------------- */
.herco-palette-switcher {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 9999;
  background: #FFFFFF;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: var(--herco-radius-full);
  padding: 0.4rem 0.6rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
  display: flex;
  align-items: center;
  gap: 0.35rem;
  backdrop-filter: blur(10px);
}
.herco-palette-switcher-title {
  font-size: 0.78rem;
  font-weight: 700;
  color: #1E293B;
  padding: 0 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  letter-spacing: 0.02em;
}
.herco-palette-btn {
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  border-radius: var(--herco-radius-full);
  padding: 0.35rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: var(--herco-transition-fast);
}
.herco-palette-btn:hover {
  background: #E2E8F0;
}
.herco-palette-btn.active {
  background: #0F2537;
  color: #FFFFFF;
  border-color: #0F2537;
}
.herco-palette-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

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

html {
  font-family: var(--herco-font-primary);
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--herco-light);
  color: var(--herco-text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--herco-primary);
  text-decoration: none;
  transition: var(--herco-transition-fast);
}
a:hover {
  color: var(--herco-secondary);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--herco-font-heading);
  color: var(--herco-primary);
  font-weight: 700;
  line-height: 1.25;
}

h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }

p {
  margin-bottom: 1rem;
  color: var(--herco-text-muted);
}
p:last-child {
  margin-bottom: 0;
}

.content-container {
  width: 100%;
  max-width: 1366px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.herco-container {
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* Limitación a 1366px en la Pestaña de Inicio (Front Page / Home) */
.home .herco-container,
.front-page .herco-container,
.home .content-container,
.front-page .content-container,
.home .entry-content,
.front-page .entry-content,
.home .site-main,
.front-page .site-main,
.home .page-content,
.front-page .page-content,
.home .herco-topbar .herco-container,
.front-page .herco-topbar .herco-container,
.home .herco-navbar .herco-container,
.front-page .herco-navbar .herco-container,
.home .herco-footer .herco-container,
.front-page .herco-footer .herco-container {
  width: 100%;
  max-width: 1366px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Limitación a 1366px en Header, Footer y Bloques de contenido */
.herco-topbar .herco-container,
.herco-navbar .herco-container,
.herco-footer .herco-container,
.kit-container {
  width: 100%;
  max-width: 1366px !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

.entry-content,
.site-main,
.page-content,
.wp-block,
.editor-styles-wrapper .block-editor-block-list__layout {
  width: 100%;
  max-width: 1366px;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  box-sizing: border-box;
}

/* Grilla Flex al 50% para Servicios */
.herco-services-catalog-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  padding: 4rem 0;
}

.herco-services-catalog-grid > div {
  flex: 0 0 calc(50% - 1rem);
  width: calc(50% - 1rem);
  box-sizing: border-box;
}

@media (max-width: 992px) {
  .herco-services-catalog-grid > div {
    flex: 0 0 100%;
    width: 100%;
  }
}

/* Prestaciones destacadas con flex-direction column */
.herco-service-features-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.6rem !important;
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
  padding-left: 0;
  list-style: none;
}

/* Caja de Iconos de Servicios */
.herco-service-icon-box {
  width: 52px;
  height: 52px;
  min-width: 52px;
  min-height: 52px;
  border-radius: 12px;
  background: rgba(15, 37, 55, 0.08);
  color: var(--herco-primary);
  display: flex !important;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.herco-service-icon-box svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* --------------------------------------------------------------------------
   3. Utility Classes & Badges
   -------------------------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-gold { color: var(--herco-secondary) !important; }
.text-primary { color: var(--herco-primary) !important; }

.herco-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--herco-radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
  border: 1px solid rgba(255, 255, 255, 0.3);
  margin-bottom: 1rem;
}

.herco-badge-primary {
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.3);
}

.herco-section-title {
  max-width: 720px;
  margin: 0 auto 3rem auto;
}
.herco-section-title h2 {
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
.herco-section-title p {
  font-size: 1.1rem;
}

/* Buttons */
.herco-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--herco-radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: var(--herco-transition);
  box-shadow: var(--herco-shadow-sm);
  line-height: 1.2;
}

.herco-btn-primary {
  background-color: var(--herco-primary);
  color: #FFFFFF !important;
  border-color: var(--herco-primary);
}
.herco-btn-primary:hover {
  background-color: var(--herco-primary-hover);
  border-color: var(--herco-primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--herco-shadow-glow);
}

.herco-btn-secondary {
  background-color: var(--herco-secondary);
  color: #FFFFFF !important;
  border-color: var(--herco-secondary);
}
.herco-btn-secondary:hover {
  background-color: var(--herco-secondary-hover);
  border-color: var(--herco-secondary-hover);
  transform: translateY(-2px);
}

.herco-btn-navy {
  background-color: var(--herco-secondary);
  color: #FFFFFF !important;
  border-color: var(--herco-secondary);
}
.herco-btn-navy:hover {
  background-color: var(--herco-secondary-hover);
  border-color: var(--herco-secondary-hover);
  transform: translateY(-2px);
  box-shadow: var(--herco-shadow-md);
}

.herco-btn-outline {
  background-color: transparent;
  color: var(--herco-primary) !important;
  border-color: var(--herco-primary);
}
.herco-btn-outline:hover {
  background-color: var(--herco-primary);
  color: #FFFFFF !important;
  transform: translateY(-2px);
}

.herco-btn-outline-white {
  background-color: transparent;
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.4);
}
.herco-btn-outline-white:hover {
  background-color: #FFFFFF;
  color: var(--herco-primary) !important;
  border-color: #FFFFFF;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
/* Top Header Bar */
.herco-topbar {
  background-color: var(--herco-primary);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.875rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.herco-topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.herco-topbar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.herco-topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.85);
}
.herco-topbar-item a {
  color: rgba(255, 255, 255, 0.9);
}
.herco-topbar-item a:hover {
  color: var(--herco-secondary);
}

.herco-topbar-social {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.herco-topbar-social a {
  color: rgba(255, 255, 255, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: var(--herco-radius-full);
  background: rgba(255, 255, 255, 0.1);
  transition: var(--herco-transition-fast);
}
.herco-topbar-social a:hover {
  background: var(--herco-secondary);
  color: #FFFFFF;
}

/* Main Navbar */
.herco-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--herco-border);
  box-shadow: var(--herco-shadow-sm);
  transition: var(--herco-transition);
}
.herco-navbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
}

.herco-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.herco-logo-mark {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--herco-primary), var(--herco-accent));
  color: #FFFFFF;
  border-radius: var(--herco-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.5px;
  box-shadow: var(--herco-shadow-sm);
  border: 1px solid rgba(215, 74, 33, 0.3);
}
.herco-logo-text {
  display: flex;
  flex-direction: column;
}
.herco-logo-brand {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--herco-primary);
  letter-spacing: -0.5px;
  line-height: 1;
}
.herco-logo-sub {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--herco-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.herco-nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.herco-nav-menu ul {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}
.herco-nav-menu a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--herco-text-dark);
  padding: 0.5rem 0;
  position: relative;
}
.herco-nav-menu a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background-color: var(--herco-primary);
  transition: var(--herco-transition);
}
.herco-nav-menu a:hover::after,
.herco-nav-menu li.current-menu-item > a::after {
  width: 100%;
}
.herco-nav-menu li.current-menu-item > a {
  color: var(--herco-primary);
}

/* Botón Pide Cita Presencial en Header: Sin subrayado y más padding horizontal */
.herco-nav-menu .herco-btn,
.herco-navbar .herco-btn {
  padding-left: 2rem !important;
  padding-right: 2rem !important;
  text-decoration: none !important;
}

.herco-nav-menu .herco-btn::after,
.herco-navbar .herco-btn::after {
  display: none !important;
  content: none !important;
}

/* Mobile Toggle */
.herco-mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  color: var(--herco-primary);
  cursor: pointer;
  padding: 0.5rem;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.herco-hero {
  position: relative;
  background: linear-gradient(135deg, var(--herco-primary) 0%, var(--herco-secondary) 100%);
  color: #FFFFFF;
  padding: 6rem 0 7rem 0;
  overflow: hidden;
}
.herco-hero-bg-overlay {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, rgba(215, 74, 33, 0.25) 0%, transparent 60%);
  pointer-events: none;
}
.herco-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}
.herco-hero-content h1 {
  color: #FFFFFF;
  margin-bottom: 1.25rem;
}
.herco-hero-content p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.2rem;
  margin-bottom: 2rem;
  max-width: 580px;
}
.herco-hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero Feature Card Right */
.herco-hero-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--herco-radius-lg);
  padding: 2.5rem;
  box-shadow: var(--herco-shadow-xl);
}
.herco-hero-card-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}
.herco-hero-card-header h3 {
  color: #FFFFFF;
  font-size: 1.35rem;
}
.herco-hero-features {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.herco-hero-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}
.herco-hero-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--herco-radius-sm);
  background: rgba(215, 74, 33, 0.25);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.herco-hero-feature-text h4 {
  color: #FFFFFF;
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
}
.herco-hero-feature-text p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------------------
   6. Statistics Bar
   -------------------------------------------------------------------------- */
.herco-stats {
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
}
.herco-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #FFFFFF;
  padding: 2rem;
  border-radius: var(--herco-radius-lg);
  box-shadow: var(--herco-shadow-lg);
  border: 1px solid var(--herco-border);
}
.herco-stat-card {
  text-align: center;
  padding: 1rem;
  border-right: 1px solid var(--herco-border-subtle);
}
.herco-stat-card:last-child {
  border-right: none;
}
.herco-stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--herco-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
  font-family: var(--herco-font-heading);
}
.herco-stat-number span {
  color: var(--herco-secondary);
}
.herco-stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--herco-text-muted);
}

/* --------------------------------------------------------------------------
   7. Services Section
   -------------------------------------------------------------------------- */
.herco-services-section {
  padding: 6rem 0;
}
.herco-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.herco-service-card {
  background: var(--herco-surface);
  border: 1px solid var(--herco-border);
  border-radius: var(--herco-radius-lg);
  padding: 2.25rem;
  transition: var(--herco-transition);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.herco-service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--herco-primary), var(--herco-secondary));
  opacity: 0;
  transition: var(--herco-transition);
}
.herco-service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--herco-shadow-xl);
  border-color: rgba(217, 119, 6, 0.3);
}
.herco-service-card:hover::before {
  opacity: 1;
}

.herco-service-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--herco-radius-md);
  background: rgba(215, 74, 33, 0.1);
  color: var(--herco-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  transition: var(--herco-transition);
}
.herco-service-card:hover .herco-service-icon {
  background: var(--herco-primary);
  color: #FFFFFF;
}

.herco-service-card h3 {
  margin-bottom: 0.75rem;
  font-size: 1.4rem;
}
.herco-service-card p {
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}
.herco-service-list {
  margin-bottom: 1.5rem;
  border-top: 1px solid var(--herco-border-subtle);
  padding-top: 1rem;
}
.herco-service-list li {
  font-size: 0.875rem;
  color: var(--herco-text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}
.herco-service-list li svg {
  color: var(--herco-secondary);
  flex-shrink: 0;
}
.herco-service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--herco-primary);
}
.herco-service-card:hover .herco-service-link {
  color: var(--herco-secondary);
}

/* --------------------------------------------------------------------------
   8. Calculator Section (Removed)
   -------------------------------------------------------------------------- */
.herco-calculator-section,
.herco-calc-box,
#hercoBudgetCalc {
  display: none !important;
}

/* --------------------------------------------------------------------------
   9. Why Choose Us / Features Grid
   -------------------------------------------------------------------------- */
.herco-why-section {
  padding: 6rem 0;
  background-color: var(--herco-light);
}
.herco-why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}
.herco-why-item {
  background: var(--herco-surface);
  padding: 2rem;
  border-radius: var(--herco-radius-lg);
  border: 1px solid var(--herco-border);
  box-shadow: var(--herco-shadow-sm);
  transition: var(--herco-transition);
}
.herco-why-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--herco-shadow-md);
  border-color: rgba(217, 119, 6, 0.3);
}
.herco-why-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--herco-radius-md);
  background: rgba(217, 119, 6, 0.1);
  color: var(--herco-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}
.herco-why-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. Team & Testimonials
   -------------------------------------------------------------------------- */
.herco-team-section {
  padding: 6rem 0;
  background-color: #FFFFFF;
}
.herco-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}
.herco-team-card {
  background: var(--herco-light);
  border-radius: var(--herco-radius-lg);
  overflow: hidden;
  border: 1px solid var(--herco-border);
  text-align: center;
  padding: 2rem 1.5rem;
  transition: var(--herco-transition);
}
.herco-team-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--herco-shadow-lg);
}
.herco-team-avatar {
  width: 110px;
  height: 110px;
  border-radius: var(--herco-radius-full);
  margin: 0 auto 1.25rem auto;
  object-fit: cover;
  border: 3px solid var(--herco-secondary);
  box-shadow: var(--herco-shadow-md);
  background: var(--herco-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 2.2rem;
  font-weight: 800;
}
.herco-team-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}
.herco-team-role {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--herco-secondary);
  margin-bottom: 0.75rem;
}
.herco-team-bio {
  font-size: 0.875rem;
}

/* Testimonials */
.herco-testimonials-section {
  padding: 6rem 0;
  background: var(--herco-light);
}
.herco-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}
.herco-testimonial-card {
  background: #FFFFFF;
  border-radius: var(--herco-radius-lg);
  padding: 2rem;
  border: 1px solid var(--herco-border);
  box-shadow: var(--herco-shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.herco-stars {
  color: var(--herco-accent);
  margin-bottom: 1rem;
  display: flex;
  gap: 0.25rem;
}
.herco-testimonial-quote {
  font-style: italic;
  font-size: 0.95rem;
  color: var(--herco-text-dark);
  margin-bottom: 1.5rem;
}
.herco-testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  border-top: 1px solid var(--herco-border-subtle);
  padding-top: 1rem;
}
.herco-author-avatar {
  width: 44px;
  height: 44px;
  border-radius: var(--herco-radius-full);
  background: var(--herco-primary);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.herco-author-info h4 {
  font-size: 0.95rem;
  margin-bottom: 0.1rem;
}
.herco-author-info p {
  font-size: 0.8rem;
  color: var(--herco-text-muted);
}

/* --------------------------------------------------------------------------
   11. Contact Form & Valencia Location Map Section
   -------------------------------------------------------------------------- */
.herco-contact-section {
  padding: 6rem 0;
  background-color: #FFFFFF;
}
.herco-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: start;
}
.herco-contact-info-box {
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
}
.herco-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
}
.herco-contact-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--herco-radius-md);
  background: rgba(15, 37, 55, 0.08);
  color: var(--herco-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.herco-contact-details h4 {
  font-size: 1.1rem;
  margin-bottom: 0.25rem;
}
.herco-contact-details p, .herco-contact-details a {
  font-size: 0.95rem;
  color: var(--herco-text-muted);
}

.herco-contact-form-box {
  background: var(--herco-light);
  border-radius: var(--herco-radius-lg);
  padding: 2.5rem;
  border: 1px solid var(--herco-border);
  box-shadow: var(--herco-shadow-md);
}
.herco-form-group {
  margin-bottom: 1.25rem;
}
.herco-form-group label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--herco-text-dark);
  margin-bottom: 0.4rem;
}
.herco-form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: var(--herco-radius-md);
  border: 1px solid var(--herco-border);
  background: #FFFFFF;
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: var(--herco-transition-fast);
}
.herco-form-control:focus {
  border-color: var(--herco-primary);
  box-shadow: 0 0 0 3px rgba(15, 37, 55, 0.12);
}
textarea.herco-form-control {
  resize: vertical;
  min-height: 120px;
}

.herco-map-embed {
  margin-top: 2rem;
  border-radius: var(--herco-radius-md);
  overflow: hidden;
  border: 1px solid var(--herco-border);
  box-shadow: var(--herco-shadow-sm);
  height: 250px;
}
.herco-map-embed iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
/* --------------------------------------------------------------------------
   12. Footer (Pure White #FFFFFF Text - High Contrast WCAG AAA)
   -------------------------------------------------------------------------- */
.herco-footer {
  background-color: var(--herco-primary);
  color: #FFFFFF !important;
  padding: 5rem 0 2rem 0;
  font-size: 0.95rem;
}
/* --------------------------------------------------------------------------
   11b. Kit Digital Logos Container
   -------------------------------------------------------------------------- */
.kit-container {
  background-color: inherit;
  border-top: 1px solid var(--herco-border);
  border-bottom: 1px solid var(--herco-border);
  padding: 2.5rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 2.5rem;
}
.kit-container img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
  transition: var(--herco-transition-fast);
}
.kit-container img:hover {
  transform: translateY(-2px);
}

.herco-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3.5rem;
}
.herco-footer-brand p {
  color: #FFFFFF !important;
  opacity: 1 !important;
  margin-top: 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.6;
}
.herco-footer-title {
  color: #FFFFFF !important;
  font-size: 1.25rem;
  font-family: var(--herco-font-heading);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}
.herco-footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.herco-footer-links p,
.herco-footer-links li {
  color: #FFFFFF !important;
  opacity: 1 !important;
}
.herco-footer-links a {
  color: #FFFFFF !important;
  opacity: 1 !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-underline-offset: 4px;
  font-weight: 500;
  transition: var(--herco-transition-fast);
}
.herco-footer-links a:hover,
.herco-footer-links a:focus {
  color: var(--herco-accent-light) !important; /* #FFDFD3 - Ratio 9.8:1 */
  text-decoration-color: var(--herco-accent-light);
  padding-left: 4px;
}

.herco-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  color: #FFFFFF !important;
}
.herco-footer-bottom p {
  color: #FFFFFF !important;
  opacity: 1 !important;
  font-weight: 500;
}
.herco-footer-legal {
  display: flex;
  gap: 1.5rem;
}
.herco-footer-legal a {
  color: #FFFFFF !important;
  opacity: 1 !important;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.6);
  text-underline-offset: 4px;
}
.herco-footer-legal a:hover,
.herco-footer-legal a:focus {
  color: var(--herco-accent-light) !important;
  text-decoration-color: var(--herco-accent-light);
}

/* Floating WhatsApp Button */
.herco-whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 56px;
  height: 56px;
  background-color: #25D366;
  color: #FFFFFF;
  border-radius: var(--herco-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: var(--herco-transition);
}
.herco-whatsapp-float:hover {
  transform: scale(1.1);
  color: #FFFFFF;
}

/* ==== BANNER KIT ==== */

.kit-container {
    display: flex;
    width: 90%;
    margin: 0 auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 36px 0;
    gap: 26px;
    justify-content: center;
    align-items: center;

    img {
        height: 36px;
        width: auto;
    }

    img:last-child {
        height: 28px;
    }
}


.legal-menu {
    display: flex;
    margin: 16px auto;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 16px;

    ul {
        padding: 0;
        display: inline-block;

        li {
            display: inline-block;
            padding: 8px 8px;
            font-weight: 500;
            font-size: 0.8em;

            a {
                color: white;
            }
        }
    }
}






/* --------------------------------------------------------------------------
   13. Responsive Media Queries
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .herco-hero-grid,
  .herco-calc-grid,
  .herco-contact-grid,
  .herco-footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .herco-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .herco-stat-card:nth-child(2) {
    border-right: none;
  }
  .herco-stat-card {
    border-bottom: 1px solid var(--herco-border-subtle);
  }
}

@media (max-width: 768px) {
  .herco-mobile-toggle {
    display: block;
  }
  .herco-nav-menu {
    position: absolute;
    top: 80px;
    left: 0;
    width: 100%;
    background: #FFFFFF;
    flex-direction: column;
    padding: 2rem;
    box-shadow: var(--herco-shadow-lg);
    border-bottom: 1px solid var(--herco-border);
    display: none;
  }
  .herco-nav-menu.active {
    display: flex;
  }
  .herco-nav-menu ul {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 1rem;
  }
  .herco-topbar-inner {
    flex-direction: column;
    text-align: center;
  }
  .herco-stats-grid {
    grid-template-columns: 1fr;
  }
  .herco-stat-card {
    border-right: none;
  }
}
