/**
 * ================================================
 * BLUEACCOUNT CMS - CONSOLIDATED MAIN STYLESHEET
 * Design System: Estudio Alfaro (BlueAccount)
 * Version: 1.0.0
 * ================================================
 */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800&family=Open+Sans:wght@300;400;500;600;700&display=swap');

/* ===============================================
   1. CSS VARIABLES - Design System
   =============================================== */
:root {
  /* Primary Colors */
  --color-primary: #1B3A5C;
  --color-primary-dark: #0F2440;
  --color-primary-light: #2A5F8F;

  /* Secondary Colors */
  --color-secondary: #D4A843;
  --color-secondary-dark: #B8922F;
  --color-secondary-light: #E8C96A;

  /* Accent Colors */
  --color-accent: #2196F3;
  --color-accent-hover: #1976D2;
  --color-success: #27AE60;

  /* Neutrals */
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;
  --color-heading: #1B3A5C;
  --color-white: #FFFFFF;
  --color-bg-light: #F5F7FA;
  --color-bg-gray: #EBEEF2;
  --color-border: #E0E4E8;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #1B3A5C 0%, #2A5F8F 100%);
  --gradient-overlay: linear-gradient(180deg, rgba(27,58,92,0.85) 0%, rgba(15,36,64,0.95) 100%);
  --gradient-gold: linear-gradient(135deg, #D4A843 0%, #E8C96A 100%);

  /* Typography */
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Open Sans', sans-serif;

  /* Font Sizes */
  --fs-hero: clamp(2.5rem, 5vw, 4rem);
  --fs-h1: clamp(2rem, 4vw, 3rem);
  --fs-h2: clamp(1.75rem, 3vw, 2.25rem);
  --fs-h3: clamp(1.25rem, 2.5vw, 1.75rem);
  --fs-h4: clamp(1.1rem, 2vw, 1.375rem);
  --fs-body: 1rem;
  --fs-body-lg: 1.125rem;
  --fs-small: 0.875rem;
  --fs-xs: 0.75rem;

  /* Font Weights */
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 800;

  /* Line Heights */
  --lh-tight: 1.2;
  --lh-normal: 1.5;
  --lh-relaxed: 1.7;
  --lh-loose: 1.9;

  /* Letter Spacing */
  --ls-tight: -0.025em;
  --ls-normal: 0;
  --ls-wide: 0.05em;
  --ls-wider: 0.1em;

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

  /* Container */
  --container-width: 1140px;
  --container-padding: 15px;

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

  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.16);
  --shadow-card: 0 5px 20px rgba(27, 58, 92, 0.1);
  --shadow-card-hover: 0 10px 40px rgba(27, 58, 92, 0.18);
}

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

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

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  font-weight: var(--fw-regular);
  line-height: var(--lh-relaxed);
  color: var(--color-text);
  background: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin-bottom: 0.5em;
  font-weight: var(--fw-bold);
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
h5 { font-size: 1.1rem; }
h6 { font-size: 1rem; }

/* Force white text on all dark/blue background sections */
.page-header-banner h1,
.page-header-banner h2,
.page-header-banner h3,
.page-header-banner h4,
.page-header-banner p,
.page-header-servicio h1,
.page-header-servicio h2,
.page-header-servicio h3,
.page-header-servicio h4,
.page-header-servicio p,
.stats-section h1,
.stats-section h2,
.stats-section h3,
.stats-section p,
.section-porque-alfaro h1,
.section-porque-alfaro h2,
.section-porque-alfaro h3,
.section-porque-alfaro h4,
.section-porque-alfaro p,
.porque-title-alfaro,
.porque-card-title-alfaro {
  color: var(--color-white);
}

p {
  margin-bottom: 1em;
  line-height: var(--lh-relaxed);
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--color-primary-dark);
}

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

ul, ol {
  list-style: none;
}

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding-left: var(--container-padding);
  padding-right: var(--container-padding);
  width: 100%;
}

/* ===============================================
   3. TOP BAR
   =============================================== */
.top-bar {
  background-color: var(--color-primary);
  color: var(--color-white);
  padding: 10px 0;
  font-size: var(--fs-small);
  border-bottom: 2px solid var(--color-secondary);
}

.top-bar .container,
.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.top-bar-left {
  display: flex;
  gap: 2rem;
  align-items: center;
  flex-wrap: wrap;
}

.top-bar-item,
.top-bar a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: color 0.3s ease;
}

.top-bar-item:hover,
.top-bar a:hover {
  color: var(--color-secondary);
}

.top-bar-item i,
.top-bar i {
  color: var(--color-secondary);
  font-size: 14px;
}

.top-bar-right,
.top-bar-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.top-bar-buttons {
  display: flex;
  gap: 8px;
  margin-right: 15px;
}

.top-bar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.top-bar-btn-brochure {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.top-bar-btn-brochure:hover {
  background: var(--color-white);
  color: var(--color-primary);
}

.top-bar-btn-brochure i {
  color: #ef4444;
  font-size: 13px;
}

.top-bar-btn-brochure:hover i {
  color: #dc2626;
}

.top-bar-btn-asesoria {
  background: #25D366;
  color: var(--color-white);
  border: 1px solid #25D366;
}

.top-bar-btn-asesoria:hover {
  background: #128C7E;
  border-color: #128C7E;
  color: var(--color-white);
}

.top-bar-btn-asesoria i {
  color: var(--color-white) !important;
  font-size: 14px;
}

.top-bar-btn-login {
  background: var(--color-primary);
  color: var(--color-white);
  border: 1px solid var(--color-primary);
}

.top-bar-btn-login:hover {
  background: #142d4a;
  border-color: #142d4a;
  color: var(--color-white);
}

.top-bar-btn-login i {
  color: var(--color-white) !important;
  font-size: 13px;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-icon:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(212, 168, 67, 0.3);
}

/* ===============================================
   4. HEADER & NAVIGATION
   =============================================== */
.header,
.site-header {
  background: var(--color-white);
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: all 0.3s ease;
}

.header.scrolled,
.site-header.scrolled {
  box-shadow: var(--shadow-lg);
}

.site-header.scrolled {
  padding: 5px 0;
}

.navbar,
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  transition: height 0.3s ease;
}

.header.scrolled .navbar,
.site-header.scrolled .container {
  height: 70px;
}

.logo img {
  height: 50px;
  max-height: 65px;
  width: auto;
  transition: all 0.3s ease;
}

.header.scrolled .logo img,
.site-header.scrolled .logo img {
  height: 40px;
  max-height: 50px;
}

.logo:hover img {
  transform: scale(1.03);
}

/* Nav Menu - Desktop horizontal */
.nav-menu,
.main-nav {
  display: flex;
  list-style: none;
  gap: 0.5rem;
  align-items: center;
}

.nav-menu > li {
  position: relative;
}

.nav-menu a,
.main-nav a {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: var(--fw-semibold);
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  padding: 10px 18px;
  position: relative;
  display: block;
  transition: color 0.3s ease;
}

.nav-menu > li > a::after,
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: var(--color-secondary);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  transform: translateX(-50%);
}

.nav-menu a:hover,
.nav-menu a.active,
.main-nav a:hover,
.main-nav a.active {
  color: var(--color-accent);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after,
.main-nav a:hover::after,
.main-nav a.active::after {
  width: 80%;
}

/* Dropdown - Desktop
   Compatible with wp_nav_menu():
   <ul class="nav-menu">
     <li class="has-dropdown menu-item-has-children">
       <a>...</a>
       <ul class="dropdown-menu">...</ul>
     </li>
   </ul>
*/
.has-dropdown,
.menu-item-has-children {
  position: relative;
}

.has-dropdown > a,
.menu-item-has-children > a {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.has-dropdown > a .dropdown-icon {
  font-size: 0.7rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.has-dropdown:hover > a .dropdown-icon {
  transform: rotate(180deg);
}

/* CSS-only dropdown arrow fallback */
.has-dropdown > a::after,
.menu-item-has-children > a::after {
  content: '';
  display: inline-block;
  margin-left: 6px;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  vertical-align: middle;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: static;
  background: none;
}

.has-dropdown:hover > a::after,
.menu-item-has-children:hover > a::after {
  transform: rotate(180deg);
}

.dropdown-menu,
.sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--color-white);
  min-width: 260px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #1B78C8;
  border-radius: 0;
  padding: 0;
  margin-top: 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1001;
  list-style: none;
}

.has-dropdown:hover > .dropdown-menu,
.has-dropdown:hover > .sub-menu,
.menu-item-has-children:hover > .dropdown-menu,
.menu-item-has-children:hover > .sub-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-menu li,
.sub-menu li {
  list-style: none;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #E5E7EB;
}

.dropdown-menu li:last-child,
.sub-menu li:last-child {
  border-bottom: none;
}

.dropdown-menu li a,
.sub-menu li a {
  display: block;
  padding: 16px 24px;
  color: #6B7280;
  font-size: 14px;
  font-weight: var(--fw-medium);
  letter-spacing: 0.3px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dropdown-menu li a::after,
.sub-menu li a::after {
  display: none;
}

.dropdown-menu li a:hover,
.sub-menu li a:hover {
  background: #F3F4F6;
  color: #1B78C8;
  padding-left: 30px;
}

/* ===============================================
   5. MOBILE MENU
   =============================================== */

/* Hamburger button - hidden on desktop */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 100001;
  position: relative;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle span {
  display: block;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* X animation when active */
.mobile-menu-toggle.active span:nth-child(1) {
  transform: translateY(10.5px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: translateY(-10.5px) rotate(-45deg);
}

/* Menu toggle fallback class */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Overlay when menu is open */
body.menu-open {
  overflow: hidden;
  height: 100vh;
  width: 100%;
}

body.menu-open::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 99998;
  animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===============================================
   6. HERO SECTION
   =============================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  background: var(--gradient-primary);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  opacity: 0.15;
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  animation: fadeInUp 1s ease-out;
}

.hero-tagline {
  color: var(--color-secondary-light);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-title {
  color: var(--color-white);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s ease-out 0.4s both;
}

.hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  line-height: 1.6;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1s ease-out 0.6s both;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  animation: fadeInUp 1s ease-out 0.8s both;
}

.hero-decoration {
  position: absolute;
  right: -100px;
  top: 50%;
  transform: translateY(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(42, 95, 143, 0.2) 0%, transparent 70%);
  border-radius: var(--radius-full);
  animation: float 6s ease-in-out infinite;
}

/* ===============================================
   7. HERO SLIDER
   =============================================== */
.hero-slider-alfaro {
  position: relative;
  width: 100%;
  height: clamp(500px, 80vh, 750px);
  overflow: hidden;
}

.slider-container-alfaro {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Individual slide - stacked with opacity transition */
.slide-alfaro {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

.slide-alfaro.active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

/* Overlay gradient on each slide */
.slide-overlay-alfaro {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(10, 35, 66, 0.75) 0%, rgba(27, 120, 200, 0.45) 100%);
  z-index: 1;
}

/* Slide content (centered text + button) */
.slide-content-alfaro {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--color-white);
  max-width: 850px;
  margin: 0 auto;
  padding: 0 20px;
}

.slide-content-alfaro h1 {
  font-family: var(--font-heading);
  font-size: var(--fs-hero);
  font-weight: var(--fw-extrabold);
  line-height: var(--lh-tight);
  margin-bottom: 20px;
  color: var(--color-white);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 0.8s ease-out;
}

.slide-content-alfaro p {
  font-size: var(--fs-body-lg);
  color: rgba(255, 255, 255, 0.95);
  line-height: var(--lh-relaxed);
  margin-bottom: 30px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.slide-content-alfaro .btn {
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Slider Controls - Prev / Next arrows */
.slider-prev-alfaro,
.slider-next-alfaro {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 55px;
  height: 55px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  border: none;
  border-radius: var(--radius-full);
  color: var(--color-white);
  font-size: 20px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.slider-prev-alfaro:hover,
.slider-next-alfaro:hover {
  background: var(--color-secondary);
  transform: translateY(-50%) scale(1.1);
}

.slider-prev-alfaro { left: 30px; }
.slider-next-alfaro { right: 30px; }

/* Slider Dots */
.slider-dots-alfaro {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 10;
}

.slider-dots-alfaro .dot {
  width: 12px;
  height: 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: none;
}

.slider-dots-alfaro .dot.active {
  background: var(--color-secondary);
  width: 35px;
  border-radius: 6px;
}

/* ===============================================
   8. BUTTONS
   =============================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  text-decoration: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
  box-shadow: 0 4px 15px rgba(27, 58, 92, 0.25);
  padding: 14px 32px;
  font-size: 14px;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(27, 58, 92, 0.35);
  color: var(--color-white);
}

.btn-secondary {
  background: var(--color-secondary);
  color: var(--color-primary);
  border-color: var(--color-secondary);
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
  padding: 14px 32px;
  font-size: 14px;
}

.btn-secondary:hover {
  background: var(--color-secondary-dark);
  border-color: var(--color-secondary-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.4);
  color: var(--color-primary);
}

.btn-outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
  padding: 12px 28px;
  font-size: 14px;
}

.btn-outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(27, 58, 92, 0.3);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 15px;
}

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

/* Ripple effect */
.btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  transform: translate(-50%, -50%);
  transition: width 0.6s ease, height 0.6s ease;
}

.btn:active::before {
  width: 300px;
  height: 300px;
}

/* ===============================================
   9. SECTION STYLES
   =============================================== */
.section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  position: relative;
}

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

.section-dark {
  background: #374151;
  color: var(--color-white);
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.section-tagline {
  color: var(--color-secondary);
  font-size: 0.9rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}

.section-title {
  font-size: var(--fs-h2);
  color: var(--color-heading);
  position: relative;
  display: inline-block;
  padding-bottom: 20px;
  margin-bottom: 15px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-gold);
  border-radius: 2px;
}

.section-description {
  font-size: var(--fs-body-lg);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  max-width: 700px;
  margin: 20px auto 0;
}

/* ===============================================
   10. SERVICES GRID & CARDS
   =============================================== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 35px 30px;
  text-align: center;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
  border-top: 4px solid transparent;
}

/* Color por tarjeta - Contable: azul oscuro (primary) */
.service-card:nth-child(1) {
  border-top-color: #1B3A5C;
}
.service-card:nth-child(1) .service-icon {
  background: rgba(27, 58, 92, 0.1);
  color: #1B3A5C;
}
.service-card:nth-child(1):hover {
  border-color: #1B3A5C;
}

/* Tributaria: dorado (accent) */
.service-card:nth-child(2) {
  border-top-color: #D4A843;
}
.service-card:nth-child(2) .service-icon {
  background: rgba(212, 168, 67, 0.12);
  color: #D4A843;
}
.service-card:nth-child(2):hover {
  border-color: #D4A843;
}

/* Financiera: azul medio */
.service-card:nth-child(3) {
  border-top-color: #2980B9;
}
.service-card:nth-child(3) .service-icon {
  background: rgba(41, 128, 185, 0.1);
  color: #2980B9;
}
.service-card:nth-child(3):hover {
  border-color: #2980B9;
}

/* Laboral: verde corporativo */
.service-card:nth-child(4) {
  border-top-color: #27AE60;
}
.service-card:nth-child(4) .service-icon {
  background: rgba(39, 174, 96, 0.1);
  color: #27AE60;
}
.service-card:nth-child(4):hover {
  border-color: #27AE60;
}

/* Capital Humano: naranja */
.service-card:nth-child(5) {
  border-top-color: #E67E22;
}
.service-card:nth-child(5) .service-icon {
  background: rgba(230, 126, 34, 0.1);
  color: #E67E22;
}
.service-card:nth-child(5):hover {
  border-color: #E67E22;
}

/* Societaria: granate */
.service-card:nth-child(6) {
  border-top-color: #8E3553;
}
.service-card:nth-child(6) .service-icon {
  background: rgba(142, 53, 83, 0.1);
  color: #8E3553;
}
.service-card:nth-child(6):hover {
  border-color: #8E3553;
}

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-card-hover);
}

/* Hover icon colors per card */
.service-card:nth-child(1):hover .service-icon {
  background: #1B3A5C; color: #fff;
  box-shadow: 0 8px 25px rgba(27, 58, 92, 0.3);
}
.service-card:nth-child(2):hover .service-icon {
  background: #D4A843; color: #fff;
  box-shadow: 0 8px 25px rgba(212, 168, 67, 0.3);
}
.service-card:nth-child(3):hover .service-icon {
  background: #2980B9; color: #fff;
  box-shadow: 0 8px 25px rgba(41, 128, 185, 0.3);
}
.service-card:nth-child(4):hover .service-icon {
  background: #27AE60; color: #fff;
  box-shadow: 0 8px 25px rgba(39, 174, 96, 0.3);
}
.service-card:nth-child(5):hover .service-icon {
  background: #E67E22; color: #fff;
  box-shadow: 0 8px 25px rgba(230, 126, 34, 0.3);
}
.service-card:nth-child(6):hover .service-icon {
  background: #8E3553; color: #fff;
  box-shadow: 0 8px 25px rgba(142, 53, 83, 0.3);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: var(--color-bg-light);
  color: var(--color-primary);
  font-size: 32px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-icon {
  color: var(--color-white);
  transform: rotateY(180deg) scale(1.05);
}

.service-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h4);
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  margin-bottom: 12px;
  transition: color 0.3s ease;
}

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

.service-description {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
  margin-bottom: 15px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  text-decoration: none;
  transition: all 0.3s ease;
}

.service-link::after {
  content: '\2192';
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .service-link::after {
  transform: translateX(5px);
}

/* Service Badge (ESPECIAL) */
.service-badge {
  position: absolute;
  top: 20px;
  right: -30px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  padding: 6px 40px;
  transform: rotate(45deg);
  z-index: 2;
}

/* Special service card (gold accent) */
.service-card-special {
  border: 2px solid var(--color-secondary);
}

.service-card-special::before {
  background: var(--gradient-gold);
}

.service-card-special .service-icon {
  background: rgba(212, 168, 67, 0.1);
  color: var(--color-secondary);
}

.service-card-special:hover .service-icon {
  background: var(--color-secondary);
  color: var(--color-white);
}

/* Service features list inside cards */
.service-features-list {
  list-style: none;
  text-align: left;
  margin-top: 15px;
  padding: 0;
}

.service-features-list li {
  padding: 6px 0;
  font-size: var(--fs-small);
  color: var(--color-text-light);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-features-list li::before {
  content: '\2713';
  color: var(--color-success);
  font-weight: var(--fw-bold);
  flex-shrink: 0;
}

/* ===============================================
   11. ABOUT SECTION
   =============================================== */
.about-section {
  background: var(--color-bg-light);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-image {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-image:hover img {
  transform: scale(1.05);
}

.about-content h3 {
  font-size: 2rem;
  margin-bottom: 1.5rem;
}

.about-content p {
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
}

.features-list {
  list-style: none;
  margin-top: 2rem;
  padding: 0;
}

.features-list li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--color-border);
}

.features-list li:last-child {
  border-bottom: none;
}

.features-list i,
.features-list li::before {
  color: #F97316;
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.25rem;
}

.features-list span {
  font-size: 1.05rem;
  line-height: 1.6;
}

/* ===============================================
   12. STATS SECTION
   =============================================== */
.stats-section {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: var(--space-4xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3rem;
  text-align: center;
}

.stat-item {
  padding: 2rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 3.5rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-secondary-light);
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-size: 1.1rem;
  font-weight: var(--fw-medium);
  opacity: 0.9;
}

/* ===============================================
   12b. STATS STRIP (Counter Bar)
   =============================================== */
.stats-strip-alfaro {
  background: linear-gradient(135deg, var(--color-primary) 0%, #0d2a47 100%);
  padding: 50px 0;
  position: relative;
  overflow: hidden;
}

.stats-strip-alfaro::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.5;
}

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

.stats-strip-item {
  text-align: center;
  padding: 20px 10px;
  position: relative;
}

.stats-strip-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 15%;
  height: 70%;
  width: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.stats-strip-icon {
  width: 60px;
  height: 60px;
  background: rgba(212, 168, 67, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  font-size: 1.4rem;
  color: var(--color-secondary);
  transition: transform 0.3s ease, background 0.3s ease;
}

.stats-strip-item:hover .stats-strip-icon {
  transform: scale(1.1);
  background: rgba(212, 168, 67, 0.25);
}

.stats-strip-data {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 8px;
}

.stats-strip-alfaro .stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: var(--fw-extrabold);
  color: var(--color-white);
  line-height: 1;
}

.stats-strip-suffix {
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--color-secondary);
}

.stats-strip-label {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: var(--fw-medium);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ===============================================
   13. CTA SECTION
   =============================================== */
.cta-section {
  background: var(--gradient-primary);
  padding: var(--space-4xl) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 500px;
  height: 500px;
  border-radius: var(--radius-full);
  background: rgba(212, 168, 67, 0.05);
}

.cta-section .section-title,
.cta-section .section-description,
.cta-section h2,
.cta-section p {
  color: var(--color-white);
}

.cta-section .section-title::after {
  background: var(--color-secondary);
}

.cta-section .section-description {
  color: rgba(255, 255, 255, 0.9);
  max-width: 600px;
  margin: 0 auto 2rem;
}

/* ===============================================
   14. OFERTAS SECTION
   =============================================== */
.ofertas-section {
  background: var(--color-bg-light);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.ofertas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.ofertas-section .oferta-item,
.ofertas-section li {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-bottom: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ofertas-section .oferta-item:hover,
.ofertas-section li:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

/* ===============================================
   15. ACTUALIDAD / BLOG SECTION
   =============================================== */
.actualidad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.actualidad-grid .blog-card,
.actualidad-grid .post-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.actualidad-grid .blog-card:hover,
.actualidad-grid .post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-card-hover);
}

.actualidad-grid .post-image {
  position: relative;
  overflow: hidden;
  height: 200px;
}

.actualidad-grid .post-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.actualidad-grid .blog-card:hover .post-image img,
.actualidad-grid .post-card:hover .post-image img {
  transform: scale(1.08);
}

.category-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  background: var(--color-secondary);
  color: var(--color-primary);
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  padding: 4px 12px;
  border-radius: var(--radius-sm);
}

.actualidad-grid .post-content {
  padding: 25px;
}

.actualidad-grid .post-content h3 {
  font-size: var(--fs-h4);
  margin-bottom: 10px;
}

.actualidad-grid .post-content p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-xs);
  color: var(--color-text-muted);
  margin-bottom: 10px;
}

/* ===============================================
   16. CLIENTES SECTION
   =============================================== */
.clientes-section {
  padding: clamp(3rem, 8vw, 6rem) 0;
  text-align: center;
}

.clientes-slider {
  position: relative;
  overflow: hidden;
  padding: 0 50px;
}

.clientes-slider .slider-prev,
.clientes-slider .slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 45px;
  height: 45px;
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-full);
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 5;
}

.clientes-slider .slider-prev:hover,
.clientes-slider .slider-next:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
}

.clientes-slider .slider-prev { left: 0; }
.clientes-slider .slider-next { right: 0; }

.clientes-track {
  display: flex;
  gap: 30px;
  align-items: center;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.cliente-item {
  flex: 0 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cliente-item img {
  max-height: 60px;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s ease;
}

.cliente-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

/* ===============================================
   17. PAGE HEADER BANNER
   =============================================== */
.page-header-banner,
.page-header-servicio {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
  color: var(--color-white);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-header-banner::before,
.page-header-servicio::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
  opacity: 0.3;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  position: relative;
  z-index: 1;
  list-style: none;
  padding: 0;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--color-secondary);
}

.breadcrumb span,
.breadcrumb .separator {
  color: rgba(255, 255, 255, 0.5);
}

.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: var(--fw-bold);
  margin-bottom: 15px;
  position: relative;
  z-index: 1;
  color: var(--color-white);
}

.page-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

/* ===============================================
   18. CONTACT SECTION
   =============================================== */
.contact-section {
  background: var(--color-bg-light);
  padding: clamp(3rem, 8vw, 6rem) 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

.contact-info {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-xl);
}

.contact-info h3 {
  color: var(--color-white);
  margin-bottom: 2rem;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

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

.contact-icon {
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.contact-item i {
  width: 40px;
  height: 40px;
  background: var(--color-bg-light);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-item strong {
  display: block;
  font-size: var(--fs-small);
  color: var(--color-text-muted);
  margin-bottom: 5px;
}

.contact-item a {
  color: var(--color-heading);
  text-decoration: none;
  font-weight: var(--fw-semibold);
  font-size: 0.95rem;
  transition: color 0.3s ease;
}

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

.contact-form {
  background: var(--color-white);
  padding: 3rem;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: var(--fw-semibold);
  color: var(--color-text);
  font-size: var(--fs-small);
}

.form-control {
  width: 100%;
  padding: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  color: var(--color-text);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: var(--color-white);
}

.form-control:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

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

/* Form validation states */
.form-control.is-invalid {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-message {
  display: block;
  font-size: 0.85rem;
  margin-top: 0.35rem;
  min-height: 1.2em;
}

.form-message.error {
  color: #dc2626;
}

.form-message.success {
  color: #16a34a;
}

/* Form response area */
.form-response {
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1rem;
  font-weight: var(--fw-medium);
}

.form-response.success {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.form-response.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.btn.is-loading {
  opacity: 0.7;
  cursor: not-allowed;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

/* ===============================================
   19. SINGLE SERVICE LAYOUT
   =============================================== */
.servicio-detalle-section {
  padding: 80px 0;
}

.servicio-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
}

.servicio-content {
  max-width: 100%;
}

.servicio-featured-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.servicio-featured-image img {
  width: 100%;
  height: auto;
  display: block;
}

.servicio-description h2,
.servicio-beneficios h2,
.servicio-proceso h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  margin-bottom: 25px;
}

.servicio-description h3 {
  font-size: 1.5rem;
  color: var(--color-heading);
  margin: 30px 0 20px;
}

.servicio-description p {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-light);
  margin-bottom: 20px;
}

/* Service list items */
.servicios-lista {
  margin: 30px 0;
}

.servicio-item-lista {
  display: flex;
  gap: 20px;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--color-bg-light);
  border-radius: var(--radius-lg);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.servicio-item-lista:hover {
  background: #EBF0F7;
  transform: translateX(5px);
}

.servicio-icon-check {
  flex-shrink: 0;
  width: 50px;
  height: 50px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 1.5rem;
}

.servicio-item-lista h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--fw-semibold);
  color: var(--color-heading);
  margin-bottom: 8px;
}

.servicio-item-lista p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin: 0;
  line-height: 1.6;
}

/* Beneficios Grid */
.servicio-beneficios {
  margin: 60px 0;
}

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

.beneficio-card {
  background: var(--color-white);
  border: 2px solid #E5E7EB;
  border-radius: 15px;
  padding: 30px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.beneficio-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(33, 150, 243, 0.15);
}

.beneficio-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 2rem;
  margin: 0 auto 20px;
}

.beneficio-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  margin-bottom: 10px;
}

.beneficio-card p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

/* Proceso Steps */
.servicio-proceso {
  margin: 60px 0;
}

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

.proceso-step {
  text-align: center;
  position: relative;
}

/* Arrow connectors between steps */
.proceso-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 35px;
  right: -15px;
  width: 30px;
  height: 2px;
  background: linear-gradient(90deg, var(--color-accent) 0%, transparent 100%);
}

.step-number {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, var(--color-secondary) 0%, var(--color-secondary-dark) 100%);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: var(--fw-bold);
  margin: 0 auto 20px;
  box-shadow: 0 4px 15px rgba(212, 168, 67, 0.3);
}

.proceso-step h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  margin-bottom: 10px;
}

.proceso-step p {
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

/* Sidebar */
.servicio-sidebar {
  position: sticky;
  top: 100px;
  align-self: flex-start;
}

.sidebar-card {
  background: var(--color-white);
  border-radius: 15px;
  padding: 30px;
  box-shadow: var(--shadow-card);
  margin-bottom: 30px;
}

.sidebar-card h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: var(--fw-bold);
  color: var(--color-heading);
  margin-bottom: 15px;
}

.sidebar-card p {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 20px;
}

.sidebar-contact {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid #E5E7EB;
}

.sidebar-servicios-lista {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-servicios-lista li {
  margin-bottom: 12px;
}

.sidebar-servicios-lista li:last-child {
  margin-bottom: 0;
}

.sidebar-servicios-lista a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-light);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-servicios-lista a:hover {
  background: var(--color-bg-light);
  color: var(--color-accent);
  padding-left: 20px;
}

.sidebar-servicios-lista i {
  color: var(--color-accent);
  font-size: 0.8rem;
}

/* Sidebar Promo (blue gradient) */
.sidebar-promo {
  background: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-hover) 100%);
  color: var(--color-white);
  text-align: center;
}

.sidebar-promo h3,
.sidebar-promo p {
  color: var(--color-white);
}

.promo-icon {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 20px;
}

/* ===============================================
   20. BLOG / ARCHIVE
   =============================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-card .card-image {
  position: relative;
  overflow: hidden;
  height: 220px;
}

.blog-card .card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.blog-card .card-content {
  padding: 25px;
}

.blog-card .card-content h3 {
  font-size: var(--fs-h4);
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.blog-card:hover .card-content h3 {
  color: var(--color-accent);
}

.blog-card .card-content p {
  font-size: var(--fs-small);
  color: var(--color-text-light);
  line-height: var(--lh-relaxed);
}

.blog-card .read-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  color: var(--color-accent);
  margin-top: 15px;
  transition: all 0.3s ease;
}

.blog-card .read-more:hover {
  color: var(--color-primary);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: var(--space-3xl);
  padding: 0;
  list-style: none;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-size: var(--fs-small);
  font-weight: var(--fw-semibold);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--color-border);
  color: var(--color-text);
}

.pagination a:hover {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.pagination .current,
.pagination span.current {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 16px;
}

/* ===============================================
   21. FOOTER
   =============================================== */
.footer,
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.8);
  padding-top: var(--space-4xl);
}

.footer-content,
.footer-main {
  padding-bottom: var(--space-3xl);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-grid,
.footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: var(--space-2xl);
}

.footer-logo {
  margin-bottom: 1.5rem;
}

.footer-logo img {
  height: 50px;
  filter: brightness(0) invert(1);
}

.footer-description {
  margin-bottom: 1.5rem;
  line-height: var(--lh-relaxed);
  color: rgba(255, 255, 255, 0.65);
}

.footer-col h3,
.footer-col h4,
.footer-column h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: var(--fw-bold);
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: var(--ls-wide);
  margin-bottom: 20px;
  padding-bottom: 10px;
  position: relative;
}

.footer-col h3::after,
.footer-col h4::after,
.footer-column h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--color-secondary);
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.65);
  font-size: var(--fs-small);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-links a::before {
  content: '\203A';
  color: var(--color-secondary);
  font-weight: bold;
  transition: transform 0.3s ease;
}

.footer-links a:hover {
  color: var(--color-secondary);
  transform: translateX(5px);
}

.footer-links a:hover::before {
  transform: translateX(3px);
}

.footer-contact {
  list-style: none;
  padding: 0;
}

.footer-contact li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 15px;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.65);
}

.footer-contact li i {
  color: var(--color-secondary);
  font-size: 18px;
  margin-top: 3px;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-contact a:hover {
  color: var(--color-secondary);
}

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

.social-links a {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.7);
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.social-links a:hover {
  background: var(--color-secondary);
  color: var(--color-primary);
  transform: translateY(-3px);
}

.footer-bottom {
  padding: 25px 0;
  text-align: center;
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.5);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom a {
  color: var(--color-secondary);
  font-weight: var(--fw-semibold);
}

/* ===============================================
   22. WHATSAPP WIDGET
   =============================================== */
.whatsapp-widget {
  position: fixed;
  bottom: 25px;
  right: 25px;
  z-index: 9999;
  font-family: var(--font-body);
}

.whatsapp-float-btn {
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-white);
  font-size: 30px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.5);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  border: none;
  animation: pulse-whatsapp 2s infinite;
}

.whatsapp-float-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(37, 211, 102, 0.7);
}

.whatsapp-float-btn.hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

.whatsapp-badge {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #FF3B30;
  color: var(--color-white);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: var(--fw-bold);
  border: 2px solid var(--color-white);
  animation: bounce-badge 1s ease-in-out infinite;
}

.whatsapp-popup {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 360px;
  max-width: calc(100vw - 40px);
  background: var(--color-white);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  transform: scale(0) translateY(20px);
  transform-origin: bottom right;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}

.whatsapp-popup.active {
  transform: scale(1) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.whatsapp-header {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--color-white);
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.whatsapp-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: var(--color-white);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
}

.whatsapp-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

.whatsapp-body {
  background: #ECE5DD;
  padding: 20px;
  min-height: 200px;
  max-height: 300px;
  overflow-y: auto;
}

.whatsapp-footer {
  background: #F0F0F0;
  padding: 10px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border-top: 1px solid #DDD;
}

.whatsapp-send-btn {
  background: #25D366;
  border: none;
  color: var(--color-white);
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  font-size: 16px;
}

.whatsapp-send-btn:hover {
  background: #128C7E;
  transform: scale(1.05);
}

/* ===============================================
   22b. Q&A CHATBOT WIDGET
   =============================================== */
.qa-widget {
  position: fixed;
  bottom: 25px;
  right: 95px;
  z-index: 9998;
  font-family: var(--font-body);
}

.qa-float-btn {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background: var(--color-primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  box-shadow: 0 4px 15px rgba(27, 58, 92, 0.4);
  transition: all 0.3s ease;
  position: relative;
  animation: pulse-qa 2s infinite;
}

.qa-float-btn:hover {
  background: #142d4a;
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(27, 58, 92, 0.5);
}

.qa-float-btn.qa-btn-hidden {
  transform: scale(0);
  opacity: 0;
  pointer-events: none;
}

@keyframes pulse-qa {
  0% { box-shadow: 0 0 0 0 rgba(27, 58, 92, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(27, 58, 92, 0); }
  100% { box-shadow: 0 0 0 0 rgba(27, 58, 92, 0); }
}

.qa-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 20px;
  height: 20px;
  background: #FFA500;
  color: white;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bounce-badge 1s ease infinite;
}

/* Popup */
.qa-popup {
  position: absolute;
  bottom: 65px;
  right: 0;
  width: 380px;
  max-height: 560px;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: scale(0);
  transform-origin: bottom right;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}

.qa-popup.active {
  transform: scale(1);
}

/* Header */
.qa-header {
  background: linear-gradient(135deg, var(--color-primary) 0%, #142d4a 100%);
  color: white;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.qa-header-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.qa-avatar {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.qa-header-info h4 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin: 0;
  line-height: 1.3;
}

.qa-status {
  font-size: 0.7rem;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.qa-close {
  background: none;
  border: none;
  color: white;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0 5px;
  opacity: 0.8;
  transition: opacity 0.2s;
  line-height: 1;
}

.qa-close:hover {
  opacity: 1;
}

/* Chat Body */
.qa-body {
  flex: 1;
  overflow-y: auto;
  padding: 15px;
  background: #F0F2F5;
  min-height: 200px;
  max-height: 280px;
}

/* Messages */
.qa-msg {
  margin-bottom: 10px;
  display: flex;
}

.qa-msg-bot {
  justify-content: flex-start;
}

.qa-msg-user {
  justify-content: flex-end;
}

.qa-msg-bubble {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.82rem;
  line-height: 1.5;
  position: relative;
  word-wrap: break-word;
}

.qa-msg-bot .qa-msg-bubble {
  background: white;
  color: #333;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.qa-msg-user .qa-msg-bubble {
  background: var(--color-primary);
  color: white;
  border-bottom-right-radius: 4px;
}

.qa-msg-line {
  display: inline;
}

.qa-msg-time {
  display: block;
  font-size: 0.62rem;
  opacity: 0.6;
  margin-top: 5px;
  text-align: right;
}

/* Typing indicator */
.qa-typing .qa-msg-bubble {
  padding: 12px 18px;
}

.qa-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.qa-dots span {
  width: 7px;
  height: 7px;
  background: #94a3b8;
  border-radius: 50%;
  animation: qa-dot-bounce 1.4s ease-in-out infinite;
}

.qa-dots span:nth-child(2) {
  animation-delay: 0.2s;
}

.qa-dots span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes qa-dot-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Suggestions */
.qa-suggestions {
  padding: 10px 15px;
  background: white;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  border-top: 1px solid #E5E7EB;
  flex-shrink: 0;
}

.qa-chip {
  background: transparent;
  border: 1.5px solid var(--color-primary);
  color: var(--color-primary);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}

.qa-chip:hover {
  background: var(--color-primary);
  color: white;
}

.qa-chip i {
  margin-right: 4px;
  font-size: 0.68rem;
}

/* Action buttons */
.qa-actions {
  display: flex;
  gap: 8px;
  padding: 10px 15px;
  background: white;
  border-top: 1px solid #E5E7EB;
  flex-shrink: 0;
}

.qa-action-btn {
  flex: 1;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
  color: white;
}

.qa-action-whatsapp {
  background: #25D366;
}

.qa-action-whatsapp:hover {
  background: #128C7E;
}

.qa-action-email {
  background: var(--color-primary);
}

.qa-action-email:hover {
  background: #142d4a;
}

.qa-action-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.qa-action-success {
  background: #10b981 !important;
}

.qa-action-btn i {
  margin-right: 4px;
}

/* Footer input */
.qa-footer {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 10px 12px;
  background: white;
  border-top: 1px solid #E5E7EB;
  flex-shrink: 0;
}

.qa-footer textarea {
  flex: 1;
  border: 1px solid #E5E7EB;
  border-radius: 20px;
  padding: 8px 15px;
  font-size: 0.82rem;
  font-family: var(--font-body);
  resize: none;
  outline: none;
  max-height: 80px;
  line-height: 1.4;
  transition: border-color 0.2s;
}

.qa-footer textarea:focus {
  border-color: var(--color-primary);
}

.qa-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #FFA500;
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.qa-send-btn:hover {
  background: #FF8C00;
  transform: scale(1.05);
}

/* Category Tabs */
.qa-categories {
  display: flex;
  overflow-x: auto;
  gap: 0;
  background: #f8f9fa;
  border-bottom: 1px solid #E5E7EB;
  flex-shrink: 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.qa-categories::-webkit-scrollbar {
  display: none;
}

.qa-cat-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 8px 10px;
  font-size: 0.65rem;
  font-weight: 600;
  color: #64748b;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  font-family: var(--font-body);
  flex-shrink: 0;
}

.qa-cat-tab:hover {
  color: var(--color-primary);
  background: rgba(27, 58, 92, 0.05);
}

.qa-cat-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  background: rgba(27, 58, 92, 0.08);
}

.qa-cat-tab i {
  margin-right: 3px;
  font-size: 0.6rem;
}

/* Rich text in bot messages */
.qa-msg-bubble strong {
  font-weight: 700;
  color: var(--color-primary);
}

.qa-msg-bot .qa-msg-bubble ul {
  margin: 6px 0;
  padding-left: 16px;
  list-style: disc;
}

.qa-msg-bot .qa-msg-bubble ul li {
  margin-bottom: 3px;
  font-size: 0.8rem;
  line-height: 1.4;
}

/* Feedback buttons */
.qa-feedback {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.qa-feedback-btn {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  padding: 3px 10px;
  font-size: 0.65rem;
  cursor: pointer;
  color: #64748b;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.qa-feedback-btn:hover {
  background: #e2e8f0;
  color: var(--color-primary);
}

.qa-feedback-btn.qa-fb-selected {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.qa-feedback-btn i {
  margin-right: 3px;
}

/* Follow-up suggestion chips inside messages */
.qa-followups {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.qa-followup-chip {
  background: rgba(27, 58, 92, 0.08);
  border: 1px solid rgba(27, 58, 92, 0.2);
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 15px;
  font-size: 0.68rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: var(--font-body);
}

.qa-followup-chip:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

/* ===============================================
   22c. BLOG PAGE
   =============================================== */

/* Filter Bar */
.blog-filter-bar {
  background: #f8f9fa;
  padding: 15px 0;
  border-bottom: 1px solid #e5e7eb;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-filters::-webkit-scrollbar {
  display: none;
}

.blog-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  border-radius: 20px;
  background: white;
  color: var(--color-text-light);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: var(--font-body);
}

.blog-filter-chip:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.blog-filter-chip.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.blog-filter-count {
  font-size: 0.7rem;
  opacity: 0.7;
}

/* Blog Layout */
.blog-section {
  padding: 3rem 0;
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* Blog Grid */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

/* Blog Card */
.blog-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.blog-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

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

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-placeholder i {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.3);
}

.blog-card-category {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--color-primary);
  color: white;
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.blog-card-body {
  padding: 20px;
}

.blog-card-meta {
  display: flex;
  gap: 15px;
  margin-bottom: 10px;
  font-size: 0.75rem;
  color: var(--color-text-light);
}

.blog-card-meta i {
  margin-right: 4px;
  font-size: 0.7rem;
}

.blog-card-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--color-heading);
}

.blog-card-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

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

.blog-card-excerpt {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 12px;
}

.blog-card-link {
  color: var(--color-primary);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-card-link:hover {
  color: var(--color-accent);
}

.blog-card-link i {
  margin-left: 4px;
  font-size: 0.7rem;
  transition: transform 0.2s ease;
}

.blog-card-link:hover i {
  transform: translateX(3px);
}

/* Blog Search Results */
.blog-search-results {
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  padding: 12px 18px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--color-text);
}

.blog-search-results a {
  color: var(--color-accent);
  margin-left: 10px;
  font-weight: 600;
}

/* Blog Empty State */
.blog-empty {
  text-align: center;
  padding: 60px 20px;
  background: #f8f9fa;
  border-radius: 12px;
}

.blog-empty i {
  font-size: 3rem;
  color: #94a3b8;
  margin-bottom: 15px;
}

.blog-empty h3 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--color-heading);
  margin-bottom: 8px;
}

.blog-empty p {
  color: var(--color-text-light);
  margin-bottom: 20px;
}

/* Pagination */
.blog-pagination {
  margin-top: 30px;
  display: flex;
  justify-content: center;
}

.blog-pagination .page-numbers {
  list-style: none;
  display: flex;
  gap: 5px;
  padding: 0;
  margin: 0;
}

.blog-pagination .page-numbers li {
  list-style: none;
}

.blog-pagination .page-numbers a,
.blog-pagination .page-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  color: var(--color-text);
  background: white;
  border: 1px solid #e5e7eb;
}

.blog-pagination .page-numbers a:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.blog-pagination .page-numbers .current {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
}

.blog-pagination .page-numbers .prev,
.blog-pagination .page-numbers .next {
  width: auto;
  padding: 0 12px;
}

/* Sidebar */
.blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.sidebar-widget {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}

.sidebar-widget-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-heading);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-primary);
}

.sidebar-widget-title i {
  margin-right: 6px;
  color: var(--color-primary);
}

/* Sidebar Search */
.sidebar-search {
  display: flex;
  gap: 0;
}

.sidebar-search input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-right: none;
  border-radius: 8px 0 0 8px;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.2s;
}

.sidebar-search input:focus {
  border-color: var(--color-primary);
}

.sidebar-search button {
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  padding: 10px 14px;
  cursor: pointer;
  transition: background 0.2s;
}

.sidebar-search button:hover {
  background: #142d4a;
}

/* Sidebar Categories */
.sidebar-categories {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-categories li {
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-categories li:last-child {
  border-bottom: none;
}

.sidebar-categories a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  color: var(--color-text);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

.sidebar-categories a:hover {
  color: var(--color-primary);
}

.sidebar-categories span {
  background: #f1f5f9;
  color: var(--color-text-light);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 600;
}

/* Sidebar Recent Posts */
.sidebar-recent {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-recent-item {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
}

.sidebar-recent-item:last-child {
  border-bottom: none;
}

.sidebar-recent-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.sidebar-recent-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-recent-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #1e3a8a, #3b82f6);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sidebar-recent-placeholder i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 1.2rem;
}

.sidebar-recent-info {
  flex: 1;
  min-width: 0;
}

.sidebar-recent-info a {
  display: block;
  color: var(--color-heading);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  margin-bottom: 4px;
  transition: color 0.2s;
}

.sidebar-recent-info a:hover {
  color: var(--color-primary);
}

.sidebar-recent-date {
  font-size: 0.72rem;
  color: var(--color-text-light);
}

/* Sidebar Tags */
.sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sidebar-tag {
  display: inline-block;
  padding: 5px 12px;
  background: #f1f5f9;
  color: var(--color-text);
  border-radius: 15px;
  font-size: 0.75rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.sidebar-tag:hover {
  background: var(--color-primary);
  color: white;
}

/* ===============================================
   23. ANIMATIONS
   =============================================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes slideInUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes heroZoom {
  0% { transform: scale(1); }
  100% { transform: scale(1.1); }
}

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

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

@keyframes bounce-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Animation classes */
.animate-fade-in-up {
  animation: fadeInUp 0.7s ease-out forwards;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* Staggered card animation delays */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }

/* Visible state for scroll-triggered animations */
.service-card.visible {
  animation: fadeInUp 0.6s ease-out forwards;
}

/* ===============================================
   23b. ALFARO SECTION STYLES (Homepage Sections)
   =============================================== */

/* --- Seccion Estudio Contable --- */
.section-estudio-alfaro {
  padding: 80px 0;
  background: #F5F7FA;
}

.estudio-grid-alfaro {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 60px;
  align-items: center;
}

.estudio-tagline-alfaro {
  color: #2563EB;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 15px;
}

.estudio-title-alfaro {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 25px;
  line-height: 1.3;
}

.estudio-description-alfaro {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #64748b;
  margin-bottom: 30px;
}

.btn-contacto-alfaro {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--color-primary);
  color: white;
  padding: 14px 35px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(27, 58, 92, 0.3);
}

.btn-contacto-alfaro:hover {
  background: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(27, 58, 92, 0.4);
  color: white;
}

.estudio-images-alfaro {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.image-main-alfaro {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.image-main-alfaro img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.image-main-alfaro:hover img {
  transform: scale(1.05);
}

.images-grid-alfaro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.image-small-alfaro {
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.image-small-alfaro img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.image-small-alfaro:hover img {
  transform: scale(1.1);
}

/* Mision / Vision boxes */
.estudio-mision-vision {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 25px 0;
}

.mision-box,
.vision-box {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  border-left: 4px solid var(--color-primary);
}

.vision-box {
  border-left-color: #FFA500;
}

.mision-box h3,
.vision-box h3 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vision-box h3 {
  color: #d97706;
}

.mision-box p,
.vision-box p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #64748b;
  margin: 0;
}

@media (max-width: 768px) {
  .estudio-mision-vision {
    grid-template-columns: 1fr;
  }
}

/* --- Seccion Servicios Destacados --- */
.section-servicios-alfaro {
  padding: 80px 0;
  background: #4B5563;
}

.servicios-layout-alfaro {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 60px;
}

.servicios-text-alfaro {
  color: white;
}

.servicios-title-alfaro {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 25px;
  color: white;
}

.servicios-description-alfaro {
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
  color: rgba(255, 255, 255, 0.9);
}

.btn-ver-todo-alfaro {
  display: inline-block;
  background: #FFA500;
  color: white;
  padding: 14px 40px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 20px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.btn-ver-todo-alfaro:hover {
  background: #FF8C00;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

.servicios-grid-alfaro {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 25px;
}

.servicio-card-alfaro {
  padding: 30px 25px;
  border-radius: 15px;
  transition: all 0.4s ease;
  display: block;
  cursor: pointer;
}

/* Gestion Contable - Azul oscuro corporativo */
.card-contable-alfaro {
  background: #1a3a5c;
  color: white;
  border-left: 5px solid #d4a843;
}

/* Gestion Tributaria - Verde oscuro */
.card-tributaria-alfaro {
  background: #1b5e3b;
  color: white;
  border-left: 5px solid #d4a843;
}

/* Gestion Financiera - Azul profundo */
.card-financiera-alfaro {
  background: #1e3a8a;
  color: white;
  border-left: 5px solid #d4a843;
}

/* Gestion Laboral - Gris azulado */
.card-laboral-alfaro {
  background: #2d4a6f;
  color: white;
  border-left: 5px solid #d4a843;
}

/* Talento Humano - Teal */
.card-talento-alfaro {
  background: #0d6e6e;
  color: white;
  border-left: 5px solid #d4a843;
}

/* Societaria Administrativa - Azul acero */
.card-societaria-alfaro {
  background: #34495e;
  color: white;
  border-left: 5px solid #d4a843;
}

.servicio-card-alfaro:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  border-left-color: white;
}

.servicio-icon-alfaro {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 20px;
}

.icon-blue-alfaro {
  background: #3B82F6;
  color: white;
}

.icon-white-alfaro {
  background: rgba(255, 255, 255, 0.15);
  color: #d4a843;
}

.servicio-title-alfaro {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.4;
  color: white;
}

.servicio-description-alfaro {
  font-size: 1.15rem;
  line-height: 1.6;
  opacity: 0.9;
  color: white;
}

.servicio-card-alfaro {
  color: white !important;
}

@media (max-width: 768px) {
  .servicio-title-alfaro {
    font-size: 1.4rem;
  }
  .servicio-description-alfaro {
    font-size: 1.1rem;
  }
}

.servicios-buttons-alfaro {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn-mensaje-alfaro {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--color-primary);
  color: white;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s ease;
  border: 2px solid rgba(255,255,255,0.3);
}

.btn-mensaje-alfaro:hover {
  background: #142d4a;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(26, 58, 92, 0.4);
}

/* --- Seccion Ofertas y Promociones --- */
.section-ofertas-alfaro {
  padding: 80px 0;
  background: white;
}

.ofertas-grid-alfaro {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 60px;
  align-items: center;
}

.ofertas-image-alfaro img {
  width: 100%;
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.ofertas-title-alfaro {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 30px;
}

.ofertas-list-alfaro {
  list-style: none;
  padding: 0;
  margin: 0;
}

.oferta-item-alfaro {
  padding: 15px 0;
  border-bottom: 1px solid #E5E7EB;
  font-size: 0.95rem;
  line-height: 1.6;
  color: #64748b;
}

.oferta-item-alfaro strong {
  color: var(--color-primary);
  font-weight: 600;
}

.ofertas-footer-alfaro {
  margin-top: 25px;
  font-size: 1rem;
  color: #64748b;
  line-height: 1.8;
}

.btn-contacta-alfaro {
  display: inline-block;
  background: #FFA500;
  color: white;
  padding: 14px 40px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-weight: 600;
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 25px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(255, 165, 0, 0.4);
}

.btn-contacta-alfaro:hover {
  background: #FF8C00;
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(255, 165, 0, 0.5);
}

/* --- Seccion Actualidad --- */
.section-actualidad-alfaro {
  padding: 80px 0;
  background: #F5F7FA;
}

.actualidad-title-alfaro {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  margin-bottom: 50px;
}

.actualidad-grid-alfaro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.actualidad-card-alfaro {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  transition: all 0.4s ease;
}

.actualidad-card-alfaro:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.actualidad-image-alfaro {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.actualidad-image-alfaro img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.actualidad-card-alfaro:hover .actualidad-image-alfaro img {
  transform: scale(1.1);
}

.actualidad-category-alfaro {
  position: absolute;
  bottom: 15px;
  left: 15px;
  background: var(--color-primary);
  color: white;
  padding: 6px 15px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}

.actualidad-content-alfaro {
  padding: 25px;
}

.actualidad-card-title-alfaro {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 12px;
  line-height: 1.4;
}

.actualidad-excerpt-alfaro {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 15px;
}

.actualidad-link-alfaro {
  color: #FFA500;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: lowercase;
  transition: color 0.3s ease;
}

.actualidad-link-alfaro:hover {
  color: #FF8C00;
}

/* --- Fallback Actualidad (articulos normativos) --- */
.actualidad-grid-fallback {
  grid-template-columns: repeat(3, 1fr);
  gap: 25px;
}

.actualidad-card-fallback .actualidad-image-alfaro {
  height: 180px;
}

.actualidad-fallback-cover {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: transform 0.5s ease;
}

.actualidad-card-fallback:hover .actualidad-fallback-cover {
  transform: scale(1.05);
}

.actualidad-fallback-cover i {
  font-size: 2.8rem;
  color: rgba(255, 255, 255, 0.5);
}

.actualidad-fallback-tag {
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.75rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: 20px;
  letter-spacing: 0.5px;
}

.actualidad-date-alfaro {
  display: inline-block;
  font-size: 0.75rem;
  color: #94a3b8;
  margin-bottom: 10px;
  font-weight: 500;
}

.actualidad-date-alfaro i {
  margin-right: 5px;
  color: #FFA500;
}

.actualidad-card-fallback .actualidad-content-alfaro {
  padding: 20px;
}

.actualidad-card-fallback .actualidad-card-title-alfaro {
  font-size: 0.95rem;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.actualidad-card-fallback .actualidad-excerpt-alfaro {
  font-size: 0.8rem;
  line-height: 1.6;
  margin-bottom: 0;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* --- Seccion Por Que Trabajar Con Nosotros --- */
.section-porque-alfaro {
  padding: 80px 0;
  background: var(--color-primary);
  color: white;
}

.porque-title-alfaro {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 50px;
}

.porque-grid-alfaro {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.porque-card-alfaro {
  text-align: center;
  padding: 30px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  transition: all 0.3s ease;
}

.porque-card-alfaro:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-5px);
}

.porque-icon-alfaro {
  width: 80px;
  height: 80px;
  background: #FFA500;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 20px;
  color: white;
}

.porque-card-title-alfaro {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 15px;
}

.porque-card-description-alfaro {
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.9;
}

/* --- Seccion Clientes --- */
/* --- CTA Contact Form Section --- */
.section-cta-contacto-alfaro {
  position: relative;
  padding: 80px 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.cta-contacto-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.35);
}

.section-cta-contacto-alfaro .container {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.cta-contacto-form-wrapper {
  background: white;
  border-radius: 12px;
  padding: 50px 45px;
  max-width: 600px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.cta-contacto-form-wrapper h2 {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 30px;
}

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

.cta-form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: #555;
  margin-bottom: 8px;
}

.cta-form-group input,
.cta-form-group textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 1rem;
  font-family: var(--font-body);
  background: #f8f9fa;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.cta-form-group input:focus,
.cta-form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background: white;
}

.cta-form-checks {
  margin-bottom: 25px;
}

.cta-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: #555;
  cursor: pointer;
}

.cta-check-label input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.cta-submit-btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cta-submit-btn:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(27, 58, 92, 0.4);
}

.cta-form-response {
  margin-top: 15px;
  padding: 12px;
  border-radius: 6px;
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  .cta-contacto-form-wrapper {
    padding: 30px 20px;
    margin: 0 15px;
  }
  .cta-contacto-form-wrapper h2 {
    font-size: 1.6rem;
  }
}

/* ===============================================
   24. UTILITY CLASSES
   =============================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.mt-4 { margin-top: 4rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mb-4 { margin-bottom: 4rem; }

.hidden { display: none; }
.visible { display: block; }

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

  .footer-grid,
  .footer-main {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .servicio-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .servicio-sidebar {
    position: static;
  }

  .beneficios-grid,
  .proceso-steps {
    grid-template-columns: 1fr;
  }

  .proceso-step:not(:last-child)::after {
    display: none;
  }

  /* Alfaro sections - 1024px */
  .estudio-grid-alfaro,
  .servicios-layout-alfaro,
  .ofertas-grid-alfaro {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .servicios-grid-alfaro {
    grid-template-columns: 1fr;
  }

  .actualidad-grid-alfaro,
  .actualidad-grid-fallback,
  .porque-grid-alfaro {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Blog - 1024px */
  .blog-layout {
    grid-template-columns: 1fr 280px;
    gap: 30px;
  }

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

/* ===============================================
   25b. RESPONSIVE - 1100px (Top bar buttons text)
   =============================================== */
@media (max-width: 1100px) {
  .top-bar-btn span {
    display: none;
  }
  .top-bar-btn {
    padding: 6px 10px;
  }
  .top-bar-buttons {
    gap: 6px;
    margin-right: 10px;
  }
}

/* ===============================================
   25c. RESPONSIVE - 992px (Mobile Menu Breakpoint)
   =============================================== */
@media (max-width: 992px) {

  /* Hide top bar on mobile */
  .top-bar {
    display: none;
  }

  /* Show hamburger button */
  .mobile-menu-toggle,
  .menu-toggle {
    display: flex;
  }

  /* Mobile Nav Menu - Slide-in drawer from right */
  .nav-menu {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    bottom: 0 !important;
    left: auto !important;
    width: 85vw !important;
    max-width: 320px !important;
    height: 100vh !important;
    background: var(--color-white) !important;
    box-shadow: -5px 0 20px rgba(0, 0, 0, 0.3) !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    justify-content: flex-start !important;
    padding: 70px 0 20px 0 !important;
    margin: 0 !important;
    gap: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    overscroll-behavior: contain !important;
    -webkit-overflow-scrolling: touch !important;
    z-index: 99999 !important;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    transform: translateZ(0) !important;
  }

  /* Menu open state */
  .nav-menu.active {
    right: 0 !important;
  }

  /* Hide desktop nav */
  .main-nav {
    display: none;
  }

  /* Menu list items */
  .nav-menu > li {
    display: block !important;
    width: 100% !important;
    min-height: 48px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-bottom: 1px solid #e5e7eb !important;
    position: relative !important;
    pointer-events: auto !important;
  }

  /* Menu links */
  .nav-menu > li > a {
    display: block !important;
    width: 100% !important;
    padding: 15px 20px !important;
    margin: 0 !important;
    color: var(--color-primary) !important;
    font-size: 15px !important;
    font-weight: var(--fw-medium) !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    transition: background 0.2s, padding 0.2s !important;
    text-transform: none !important;
  }

  /* Remove underline effect on mobile links */
  .nav-menu > li > a::after {
    display: none !important;
  }

  .nav-menu > li > a:hover,
  .nav-menu > li > a:active,
  .nav-menu > li > a.active {
    background: #f1f5f9 !important;
    color: var(--color-accent) !important;
    padding-left: 25px !important;
  }

  /* Mobile dropdown arrow */
  .nav-menu .has-dropdown > a::after,
  .nav-menu .menu-item-has-children > a::after {
    content: '\25BC' !important;
    display: inline !important;
    float: right !important;
    font-size: 12px !important;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    border: none !important;
    background: none !important;
  }

  .nav-menu .has-dropdown.active > a::after,
  .nav-menu .menu-item-has-children.active > a::after {
    transform: rotate(180deg) !important;
  }

  /* Mobile dropdown - accordion style */
  .nav-menu .dropdown-menu,
  .nav-menu .sub-menu {
    position: static !important;
    display: none !important;
    width: 100% !important;
    background: #f8f9fb !important;
    padding: 0 !important;
    margin: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border-left: none !important;
    border-radius: 0 !important;
  }

  .nav-menu .has-dropdown.active .dropdown-menu,
  .nav-menu .has-dropdown.active .sub-menu,
  .nav-menu .menu-item-has-children.active .dropdown-menu,
  .nav-menu .menu-item-has-children.active .sub-menu {
    display: block !important;
    max-height: 600px !important;
  }

  .nav-menu .dropdown-menu li,
  .nav-menu .sub-menu li {
    display: block !important;
    width: 100% !important;
    border-bottom: none !important;
  }

  .nav-menu .dropdown-menu li a,
  .nav-menu .sub-menu li a {
    display: block !important;
    width: 100% !important;
    padding: 12px 20px 12px 40px !important;
    margin: 0 !important;
    color: #475569 !important;
    font-size: 14px !important;
    font-weight: var(--fw-regular) !important;
    text-decoration: none !important;
    text-transform: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  .nav-menu .dropdown-menu li a:hover,
  .nav-menu .dropdown-menu li a:active,
  .nav-menu .sub-menu li a:hover,
  .nav-menu .sub-menu li a:active {
    background: #e2e8f0 !important;
    color: var(--color-accent) !important;
    padding-left: 45px !important;
  }

  /* Body lock when menu open */
  body.menu-open {
    overflow: hidden !important;
    height: 100vh !important;
    width: 100% !important;
  }

  body.menu-open .nav-menu {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    overscroll-behavior: contain !important;
  }

  /* Raise header above overlay when menu is open (fixes stacking context) */
  body.menu-open .header,
  body.menu-open .site-header {
    z-index: 100000 !important;
  }

  /* Overlay */
  body.menu-open::before {
    content: '' !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 99998 !important;
    animation: fadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  }

  /* Ensure menu is above overlay */
  .nav-menu.active {
    z-index: 100001 !important;
  }

  /* Ensure clickability */
  .nav-menu a,
  .nav-menu li {
    pointer-events: auto !important;
    cursor: pointer !important;
  }

  /* Grids go 1-col */
  .about-grid,
  .contact-grid,
  .ofertas-grid {
    grid-template-columns: 1fr;
  }

  /* Hero slider adjustments */
  .hero-slider-alfaro {
    height: clamp(400px, 70vh, 550px);
  }

  .slide-content-alfaro h1 {
    font-size: 1.8rem;
  }

  .slide-content-alfaro p {
    font-size: 0.95rem;
  }

  .slider-prev-alfaro,
  .slider-next-alfaro {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .slider-prev-alfaro { left: 20px; }
  .slider-next-alfaro { right: 20px; }
}

/* ===============================================
   25c. RESPONSIVE - 768px
   =============================================== */
@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .footer-grid,
  .footer-main {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-col h3::after,
  .footer-col h4::after,
  .footer-column h4::after {
    left: 50%;
    transform: translateX(-50%);
  }

  .social-links {
    justify-content: center;
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .stats-strip-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .stats-strip-item:not(:last-child)::after {
    display: none;
  }

  .stats-strip-alfaro .stat-number {
    font-size: 2.2rem;
  }

  .stats-strip-suffix {
    font-size: 1.5rem;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .blog-grid,
  .actualidad-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .page-header-banner,
  .page-header-servicio {
    padding: 60px 0 30px;
  }

  .page-title {
    font-size: 2rem;
  }

  /* Hero slider - 768px */
  .hero-slider-alfaro {
    height: clamp(350px, 60vh, 450px);
  }

  .slide-content-alfaro h1 {
    font-size: 1.5rem;
    margin-bottom: 12px;
  }

  .slide-content-alfaro p {
    font-size: 0.9rem;
    margin-bottom: 20px;
  }

  .slide-content-alfaro .btn {
    font-size: 0.85rem;
    padding: 10px 24px;
  }

  .slider-prev-alfaro,
  .slider-next-alfaro {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }

  .slider-prev-alfaro { left: 10px; }
  .slider-next-alfaro { right: 10px; }

  .page-subtitle {
    font-size: 1rem;
  }

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

  /* Alfaro sections - 768px */
  .actualidad-grid-alfaro,
  .actualidad-grid-fallback,
  .porque-grid-alfaro {
    grid-template-columns: 1fr;
  }

  .actualidad-card-fallback .actualidad-image-alfaro {
    height: 150px;
  }

  .section-estudio-alfaro,
  .section-servicios-alfaro,
  .section-ofertas-alfaro,
  .section-actualidad-alfaro,
  .section-porque-alfaro,
  .section-clientes-alfaro {
    padding: 50px 0;
  }

  .clientes-slider-alfaro {
    padding: 0 50px;
  }

  /* Blog - 768px: sidebar stacks below */
  .blog-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

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

  .blog-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 5px;
  }

  .blog-card-image {
    height: 180px;
  }
}

/* ===============================================
   25d. RESPONSIVE - 640px
   =============================================== */
@media (max-width: 640px) {
  .section {
    padding: clamp(2rem, 6vw, 4rem) 0;
  }

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

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .service-card {
    padding: 25px 20px;
  }

  .contact-info,
  .contact-form {
    padding: 2rem;
  }

  .hero-decoration {
    width: 300px;
    height: 300px;
  }

  .whatsapp-widget {
    bottom: 15px;
    right: 15px;
  }

  .whatsapp-float-btn {
    width: 55px;
    height: 55px;
    font-size: 26px;
  }

  .whatsapp-popup {
    width: calc(100vw - 30px);
    max-width: 360px;
  }

  /* Q&A Widget - mobile */
  .qa-widget {
    bottom: 15px;
    right: 80px;
  }

  .qa-float-btn {
    width: 48px;
    height: 48px;
    font-size: 1.2rem;
  }

  .qa-popup {
    width: calc(100vw - 20px);
    max-width: 360px;
    right: -65px;
    bottom: 58px;
    max-height: 75vh;
  }

  .qa-body {
    max-height: 200px;
  }

  .qa-chip {
    font-size: 0.68rem;
    padding: 4px 10px;
  }
}

/* ===============================================
   25e. RESPONSIVE - 480px (Small Mobile)
   =============================================== */
@media (max-width: 480px) {
  /* Smaller mobile drawer */
  .nav-menu {
    width: 90vw !important;
    max-width: 280px !important;
  }

  .nav-menu > li > a {
    font-size: 0.95rem !important;
    padding: 14px 20px !important;
  }

  .nav-menu .dropdown-menu li a,
  .nav-menu .sub-menu li a {
    padding: 10px 20px 10px 40px !important;
    font-size: 0.9rem !important;
  }

  /* Hero slider - 480px */
  .hero-slider-alfaro {
    height: clamp(300px, 55vh, 400px);
  }

  .slide-content-alfaro {
    padding: 0 40px;
  }

  .slide-content-alfaro h1 {
    font-size: 1.25rem;
    margin-bottom: 10px;
  }

  .slide-content-alfaro p {
    font-size: 0.8rem;
    margin-bottom: 15px;
  }

  .slide-content-alfaro .btn {
    font-size: 0.8rem;
    padding: 8px 20px;
  }

  .slider-prev-alfaro,
  .slider-next-alfaro {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }

  .slider-prev-alfaro { left: 5px; }
  .slider-next-alfaro { right: 5px; }

  .slider-dots-alfaro {
    bottom: 15px;
    gap: 8px;
  }

  h1 { font-size: clamp(1.5rem, 4vw, 2rem); }
  h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }

  .stat-number {
    font-size: 2.5rem;
  }
}

/* ===============================================
   SOCIAL SHARING BUTTONS
   =============================================== */
.social-share-box {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: var(--color-bg-light, #f8fafc);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e2e8f0);
}

.social-share-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--color-heading, #1a3a5c);
}

.social-share-title i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.social-share-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: white;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.share-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.share-facebook {
  background: #1877f2;
}

.share-facebook:hover {
  background: #0d65d9;
  color: white;
}

.share-whatsapp {
  background: #25D366;
}

.share-whatsapp:hover {
  background: #1da851;
  color: white;
}

.share-linkedin {
  background: #0077b5;
}

.share-linkedin:hover {
  background: #005e93;
  color: white;
}

.share-copy {
  background: var(--color-primary, #1b3a5c);
  color: white;
}

.share-copy:hover {
  background: var(--color-secondary, #c9a84c);
  color: white;
}

.social-share-instagram-tip {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--color-text-muted, #64748b);
  font-style: italic;
}

.social-share-instagram-tip i {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-right: 0.4rem;
}

/* ===============================================
   COMMENTS SECTION
   =============================================== */
.comments-area {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--color-border, #e2e8f0);
}

.comments-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-heading, #1a3a5c);
  margin-bottom: 2rem;
}

.comments-title i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment-item {
  margin-bottom: 1.5rem;
}

.comment-item .children {
  list-style: none;
  padding-left: 2rem;
  margin-top: 1rem;
  border-left: 3px solid var(--color-primary, #1b3a5c);
}

.comment-body {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  background: var(--color-bg-light, #f8fafc);
  border-radius: 12px;
  border: 1px solid var(--color-border, #e2e8f0);
}

.comment-avatar img {
  border-radius: 50%;
  width: 50px;
  height: 50px;
}

.comment-content {
  flex: 1;
}

.comment-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.comment-author {
  color: var(--color-heading, #1a3a5c);
  font-size: 0.95rem;
}

.comment-date {
  font-size: 0.8rem;
  color: var(--color-text-muted, #64748b);
}

.comment-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text, #334155);
}

.comment-text p {
  margin: 0;
}

.comment-awaiting {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #d97706;
  font-style: italic;
}

.comment-reply {
  margin-top: 0.5rem;
}

.comment-reply a {
  font-size: 0.85rem;
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 600;
}

.comment-reply a:hover {
  color: var(--color-secondary, #c9a84c);
}

/* Comment Form */
.comment-respond {
  margin-top: 2.5rem;
}

.comment-respond .comment-reply-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--color-heading, #1a3a5c);
  margin-bottom: 1rem;
}

.comment-respond .comment-reply-title i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.comment-respond .comment-reply-title small a {
  font-size: 0.85rem;
  color: var(--color-primary);
  margin-left: 1rem;
}

.comment-notes {
  font-size: 0.9rem;
  color: var(--color-text-muted, #64748b);
  margin-bottom: 1.5rem;
  padding: 0.75rem 1rem;
  background: #eff6ff;
  border-radius: 8px;
  border-left: 4px solid var(--color-primary, #1b3a5c);
}

.comment-notes i {
  margin-right: 0.5rem;
  color: var(--color-primary);
}

.comment-form label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
  color: var(--color-heading, #1a3a5c);
}

.comment-form .required {
  color: #dc2626;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--color-border, #e2e8f0);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color 0.3s ease;
  background: white;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--color-primary, #1b3a5c);
  box-shadow: 0 0 0 3px rgba(27, 58, 92, 0.1);
}

.comment-form p {
  margin-bottom: 1rem;
}

.btn-comentario {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 2rem;
  background: var(--color-primary, #1b3a5c);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: var(--font-body);
}

.btn-comentario:hover {
  background: var(--color-secondary, #c9a84c);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.no-comments {
  font-size: 0.95rem;
  color: var(--color-text-muted, #64748b);
  font-style: italic;
  padding: 1rem;
  background: var(--color-bg-light);
  border-radius: 8px;
  text-align: center;
}

/* Comments responsive */
@media (max-width: 768px) {
  .social-share-buttons {
    flex-direction: column;
  }

  .share-btn {
    justify-content: center;
  }

  .comment-body {
    flex-direction: column;
    align-items: flex-start;
  }

  .comment-item .children {
    padding-left: 1rem;
  }

  .comment-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

/* ===============================================
   END OF CONSOLIDATED STYLESHEET
   =============================================== */
