@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Lora:ital,wght@0,400..700;1,400..700&family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* ==========================================
   CSS VARIABLES & DESIGN TOKENS
   ========================================== */
:root {
  --font-serif: 'Lora', 'Playfair Display', Georgia, serif;
  --font-sans: 'DM Sans', system-ui, -apple-system, sans-serif;

  /* Colors */
  --color-primary-gold: #A7A24A;       /* Olive-gold bar and details */
  --color-primary-gold-light: #ebead1; /* Soft tint of primary */
  --color-primary-gold-dark: #A7A24A;  /* Darker gold for contrast */
  
  --color-accent-brown: #ab8f73;       /* Warm tan for primary CTAs */
  --color-accent-brown-dark: #8c7158;  /* Hover state for brown */
  --color-accent-brown-light: #f5f0eb; /* Soft brown background tint */
  
  --color-text-dark: #6B5041;          /* Deep warm brown for high readability */
  --color-text-muted: #8D8376;         /* Softer text color for body paragraphs */
  
  --color-bg-cream: #FAF8F5;           /* Light, warm cream background */
  --color-bg-cream-dark: #f0ebe2;      /* Medium cream/tan for sections and cards */
  --color-bg-white: #ffffff;           /* Pure white for visual breathing room */
  
  --color-footer-bg: #8c7765;          /* Warm bronze/brown for footer */
  --color-footer-text: #fdfaf7;        /* Clean white/cream for footer text */
  --color-footer-text-muted: #dfd5cb;  /* Muted tone for sub-links */
  --color-text-white: #ffffff;         /* Pure white text */
  
  --color-border: #e8e2d9;             /* Elegant thin borders */
  
  /* Layout & Animation */
  --border-radius-sm: 0.5rem;
  --border-radius-md: 1rem;
  --border-radius-lg: 1.5rem;
  --border-radius-pill: 9999px;
  
  --box-shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --box-shadow-md: 0 10px 15px -3px rgba(47, 42, 37, 0.07), 0 4px 6px -2px rgba(47, 42, 37, 0.05);
  --box-shadow-lg: 0 20px 25px -5px rgba(47, 42, 37, 0.1), 0 10px 10px -5px rgba(47, 42, 37, 0.04);
  
  --transition-smooth: all 0.35s cubic-bezier(0.25, 1, 0.5, 1);
  --max-width-content: 1200px;
}

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

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

body {
  font-family: var(--font-sans);
  color: var(--color-text-dark);
  background-color: var(--color-bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  color: var(--color-text-dark);
  font-weight: 500;
}

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

a:focus, button:focus, a:active, button:active {
  outline: none !important;
  box-shadow: none !important;
}

/* Accessible focus styling for keyboard navigation */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-primary-gold) !important;
  outline-offset: 4px !important;
  box-shadow: none !important;
}

a:focus:not(:focus-visible), button:focus:not(:focus-visible), a:active:not(:focus-visible), button:active:not(:focus-visible) {
  outline: none !important;
  box-shadow: none !important;
}

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

.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin: 0 auto;
  padding: 0 2rem;
}

/* ==========================================
   HEADER & NAVIGATION
   ========================================== */
.site-header {
  background-color: var(--color-bg-white);
  border-bottom: 1px solid var(--color-border);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 100;
  backdrop-filter: blur(10px);
  background-color: rgba(255, 255, 255, 0.95);
  transition: var(--transition-smooth);
}

.header-spacer {
  width: 100%;
  height: 230px; /* Desktop header height without announcement bar */
}

.header-spacer.home-spacer {
  height: 270px; /* Desktop header + announcement bar height */
}

@media (max-width: 768px) {
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--color-border);
  }
  .header-spacer,
  .header-spacer.home-spacer {
    display: block;
    height: 102px;
  }
}

.header-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2.5rem 2rem 2.8rem 2rem;
  max-width: var(--max-width-content);
  margin: 0 auto;
  gap: 2rem;
  transition: var(--transition-smooth);
}

.logo-link {
  display: flex;
  justify-content: center;
  align-items: center;
}

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

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

/* Mobile menu checkbox hack styles (hidden on desktop) */
.menu-toggle-chk {
  display: none;
}

.menu-toggle-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  cursor: pointer;
  z-index: 101;
}

.hamburger-line {
  display: block;
  height: 3px;
  width: 100%;
  background-color: var(--color-text-dark);
  border-radius: 3px;
  transition: all 0.3s ease;
}

/* Scrolled Header styles */
.site-header.scrolled {
  box-shadow: var(--box-shadow-sm);
}

.site-header.scrolled .header-container {
  padding: 1rem 2rem 1.2rem 2rem;
  gap: 1rem;
}

.site-header.scrolled .logo-img {
  height: 65px;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  width: 100%;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #333333;
  padding: 0.5rem 0;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--color-primary-gold); /* #A7A24A */
  transition: var(--transition-smooth);
}

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

.nav-link.active {
  color: #333333;
}

.nav-link:hover {
  color: var(--color-primary-gold); /* #A7A24A */
}

/* Lang switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
}

.lang-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  transition: var(--transition-smooth);
  text-decoration: none;
  color: inherit;
}

.lang-btn.active {
  color: var(--color-text-dark);
  border-bottom: 2px solid var(--color-primary-gold);
}

.lang-btn:hover {
  color: var(--color-primary-gold-dark);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--border-radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--color-accent-brown);
  color: var(--color-bg-white);
  box-shadow: 0 4px 10px rgba(171, 143, 115, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-accent-brown-dark);
  box-shadow: 0 6px 15px rgba(171, 143, 115, 0.35);
  transform: translateY(-2px);
}

.btn-secondary {
  background-color: transparent;
  border-color: var(--color-border);
  color: var(--color-text-dark);
}

.btn-secondary:hover {
  background-color: var(--color-accent-brown-light);
  border-color: var(--color-accent-brown);
  transform: translateY(-2px);
}

.btn-small {
  padding: 0.5rem 1.25rem;
  font-size: 0.75rem;
}

#header-cta-btn {
  font-size: 0.85rem;
}

/* Announcement Bar */
.announcement-bar {
  background-color: var(--color-primary-gold);
  color: var(--color-bg-white);
  text-align: center;
  padding: 0.7rem 1rem;
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
}

.announcement-icon {
  width: 1.25rem;
  height: 1.25rem;
  stroke: var(--color-bg-white);
  flex-shrink: 0;
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero-section {
  background-color: var(--color-bg-cream);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 4rem;
}

.hero-tagline {
  color: var(--color-primary-gold);
  font-size: 0.95rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1.5rem;
}

.hero-quote {
  font-size: 2.25rem;
  line-height: 1.25;
  color: var(--color-text-dark);
  font-weight: 500;
  margin-bottom: 1.5rem;
  position: relative;
  letter-spacing: -0.01em;
}

.hero-author {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: #6F4F34;
  margin-bottom: 2rem;
}

.hero-desc {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  margin-bottom: 2.8rem;
  max-width: 520px;
}

/* Custom hero olive-bordered secondary button */
.btn-secondary-olive {
  background-color: transparent;
  border-color: var(--color-primary-gold) !important;
  color: #333333 !important;
}

.btn-secondary-olive:hover {
  background-color: var(--color-accent-brown-light) !important;
  border-color: var(--color-primary-gold-dark) !important;
  transform: translateY(-2px);
}

.hero-actions {
  display: flex;
  gap: 1.2rem;
}

.hero-image-container {
  position: relative;
}

.hero-img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-lg);
  position: relative;
  z-index: 2;
}

.hero-image-decor {
  position: absolute;
  top: -20px;
  right: -20px;
  width: 100%;
  height: 100%;
  border: 2px solid var(--color-primary-gold-light);
  border-radius: var(--border-radius-lg);
  z-index: 1;
}

/* ==========================================
   ABOUT SECTION (SOBRE MÍ)
   ========================================== */
.about-section {
  padding: 7rem 0;
  background-color: var(--color-bg-white);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  align-items: center;
  gap: 5rem;
}

.about-image-container {
  position: relative;
}

.about-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--box-shadow-md);
}

.image-caption {
  font-size: 0.68rem;
  color: var(--color-text-muted);
  margin-top: 0.75rem;
  line-height: 1.4;
  font-family: var(--font-sans);
}

.about-label {
  color: var(--color-primary-gold-dark);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
  display: block;
}

.about-title {
  font-size: 2.25rem;
  line-height: 1.25;
  margin-bottom: 1.5rem;
}

.about-text {
  font-size: 1.05rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.btn-about-trayectoria {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 2rem;
  border: 1px solid var(--color-primary-gold);
  border-radius: var(--border-radius-pill);
  color: #333333;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  background-color: transparent;
  transition: var(--transition-smooth);
  width: 100%;
}

.btn-about-trayectoria:hover {
  background-color: var(--color-accent-brown-light);
  border-color: var(--color-primary-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-sm);
}

/* ==========================================
   SPECIALTIES SECTION (ÁREAS)
   ========================================== */
.specialties-section {
  background-color: var(--color-bg-cream);
  padding: 7rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
  position: relative;
}

.section-title {
  font-size: 2.25rem;
  margin-bottom: 1rem;
  display: inline-block;
  position: relative;
  padding-bottom: 1rem;
}

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

.specialties-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.specialty-card {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  padding: 2rem 1.5rem; /* Shorter padding to make cards more square and less vertical */
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.specialty-icon-wrapper {
  width: 52px;
  height: 52px;
  background-color: rgba(167, 162, 74, 0.12); /* Soft primary gold tint */
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  color: var(--color-primary-gold); /* #A7A24A */
}

.specialty-icon-wrapper svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.specialty-icon-wrapper .specialty-icon-img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.specialty-card-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 0.8rem;
  line-height: 1.3;
}

.specialty-card-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  flex-grow: 1;
}

.specialties-footer {
  text-align: center;
}

.specialties-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.75rem 2.5rem;
  border: 1px solid var(--color-primary-gold);
  border-radius: var(--border-radius-pill);
  color: #333333;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  background-color: transparent;
  transition: var(--transition-smooth);
}

.specialties-link:hover {
  background-color: var(--color-accent-brown-light);
  border-color: var(--color-primary-gold-dark);
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-sm);
  color: #333333;
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials-section {
  padding: 7rem 0;
  background-color: var(--color-bg-white);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 860px;
  margin: 0 auto;
}

.testimonial-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-primary-gold);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  box-shadow: 0 10px 30px rgba(107, 80, 65, 0.05);
  transition: var(--transition-smooth);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 15px 35px rgba(107, 80, 65, 0.08);
  border-color: var(--color-primary-gold-dark);
}

.testimonial-stars {
  display: flex;
  gap: 0.3rem;
  margin-bottom: 1.2rem;
  color: var(--color-primary-gold);
}

.testimonial-stars svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

.testimonial-author {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  margin-bottom: 0.2rem;
}

.testimonial-context {
  font-size: 0.85rem;
  color: var(--color-accent-brown);
  letter-spacing: 0.02em;
}

/* ==========================================
   FAQ SECTION (PREGUNTAS)
   ========================================== */
.faq-section {
  background-color: var(--color-bg-cream);
  padding: 7rem 0;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

/* FAQ Tabs */
.faq-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 3rem;
}

.faq-tab-btn {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  padding: 0.6rem 1.2rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.faq-tab-btn:hover {
  border-color: var(--color-primary-gold);
  color: var(--color-primary-gold);
  transform: translateY(-1px);
}

.faq-tab-btn.active {
  background-color: var(--color-primary-gold);
  border-color: var(--color-primary-gold);
  color: var(--color-bg-white);
  box-shadow: 0 4px 10px rgba(167, 162, 74, 0.2);
}

/* FAQ Groups and Animation */
.faq-group {
  display: none;
  opacity: 0;
  flex-direction: column;
  gap: 1.2rem;
  transition: opacity 0.35s ease;
}

.faq-group.active {
  display: flex;
  opacity: 1;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* Styled details disclosure */
.faq-details {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-sm);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.faq-details[open] {
  box-shadow: var(--box-shadow-md);
  border-color: var(--color-primary-gold);
}

.faq-summary {
  padding: 1.5rem 2rem;
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--color-text-dark);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-summary-text {
  padding-right: 1.5rem;
}

/* Toggle Icon */
.faq-icon-wrapper {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary-gold);
  transition: var(--transition-smooth);
}

.faq-icon-wrapper::before,
.faq-icon-wrapper::after {
  content: '';
  position: absolute;
  background-color: currentColor;
  transition: var(--transition-smooth);
}

/* Horizontal line */
.faq-icon-wrapper::before {
  width: 14px;
  height: 2px;
}

/* Vertical line */
.faq-icon-wrapper::after {
  width: 2px;
  height: 14px;
}

/* Open states */
.faq-details[open] .faq-icon-wrapper::after {
  transform: rotate(90deg);
  opacity: 0;
}

.faq-details[open] .faq-icon-wrapper {
  transform: rotate(180deg);
  color: var(--color-accent-brown);
}

.faq-content {
  padding: 0 2rem 2rem 2rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  border-top: 1px solid transparent;
  animation: slideDown 0.3s ease-out;
}

.faq-details[open] .faq-content {
  border-top-color: var(--color-border);
  padding-top: 1.2rem;
}

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

/* ==========================================
   CALL TO ACTION (CTA) SECTION
   ========================================== */
.cta-section {
  padding: 6rem 0;
  background-color: var(--color-bg-white);
}

.cta-box {
  background-color: var(--color-bg-cream-dark);
  border-radius: var(--border-radius-lg);
  padding: 5rem 3rem;
  text-align: center;
  box-shadow: var(--box-shadow-sm);
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
}

.cta-title {
  font-size: 2.75rem;
  margin-bottom: 1rem;
}

.cta-subtitle {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  margin-bottom: 2.5rem;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.cta-box .btn {
  width: 100%;
  max-width: 450px;
  padding: 0.85rem 2rem;
  box-shadow: none;
}

.cta-box .btn:hover {
  box-shadow: none;
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
  background-color: var(--color-footer-bg);
  color: var(--color-footer-text);
  padding: 5rem 0 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-logo-link {
  margin-bottom: 1.5rem;
  display: inline-block;
}

.footer-logo-img {
  height: 180px;
  width: auto;
  object-fit: contain;
}

.footer-col-title {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-footer-text);
  margin-bottom: 1.5rem;
  font-weight: 600;
  position: relative;
}

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

.footer-link {
  font-size: 0.95rem;
  color: var(--color-footer-text-muted);
  transition: var(--transition-smooth);
}

.footer-link:hover {
  color: var(--color-footer-text);
  padding-left: 0.3rem;
}

.footer-contact-item {
  font-size: 0.95rem;
  color: var(--color-footer-text-muted);
  margin-bottom: 1.2rem;
  line-height: 1.5;
}

.footer-contact-label {
  font-weight: 600;
  color: var(--color-footer-text);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 2rem;
  font-size: 0.8rem;
  color: var(--color-footer-text-muted);
}

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

.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-legal-link {
  color: var(--color-footer-text-muted);
  text-decoration: none;
  transition: var(--transition-smooth);
}

.footer-legal-link:hover {
  color: var(--color-text-white);
}

.footer-legal-separator {
  color: rgba(255, 255, 255, 0.2);
}

.footer-credit-link {
  color: var(--color-footer-text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-smooth);
}

.footer-credit-link:hover {
  color: var(--color-text-white);
  text-decoration: underline;
}

@media (max-width: 768px) {
  .footer-bottom-content {
    flex-direction: column;
    text-align: center;
    justify-content: center;
  }
}

/* ==========================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================== */

/* Tablet & Smaller Desktops */
@media (max-width: 1024px) {
  html {
    font-size: 16px;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }
  
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-actions {
    justify-content: center;
  }
  
  .hero-image-container {
    max-width: 480px;
    margin: 0 auto;
  }
  
  .about-grid {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
  
  .about-image-container {
    max-width: 480px;
    margin: 0 auto;
    order: -1;
  }
  
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

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

/* Mobile Devices */
@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .container {
    padding: 0 1.5rem;
  }
  
  .header-container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.5rem;
    gap: 0;
    transition: var(--transition-smooth);
  }
  
  .site-header.scrolled .header-container {
    padding: 0.8rem 1.5rem;
    gap: 0;
  }
  
  .site-header.scrolled .logo-img {
    height: 75px;
  }
  
  .logo-img {
    height: 75px; /* Large logo on mobile */
  }
  
  .menu-toggle-btn {
    display: flex;
  }
  
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--color-bg-white);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 2rem 1.5rem;
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.05);
    z-index: 99;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  
  .menu-toggle-chk:checked ~ .main-nav {
    display: flex;
    animation: slideDownMenu 0.3s ease-out forwards;
  }
  
  .menu-toggle-chk:checked ~ .menu-toggle-btn .hamburger-line:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
  }
  
  .menu-toggle-chk:checked ~ .menu-toggle-btn .hamburger-line:nth-child(2) {
    opacity: 0;
  }
  
  .menu-toggle-chk:checked ~ .menu-toggle-btn .hamburger-line:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
  }
  
  .nav-links {
    flex-direction: column;
    align-items: center;
    gap: 1.2rem;
    width: 100%;
  }
  
  .btn-small {
    width: 100%;
    max-width: 280px;
  }
  

  .hero-actions {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  
  .hero-actions .btn {
    width: 100%;
  }
  
  .specialties-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-box {
    padding: 3.5rem 1.5rem;
  }
  
  .cta-title {
    font-size: 2rem;
  }

  .faq-tabs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.6rem;
  }
  .faq-tab-btn {
    font-size: 0.95rem;
    padding: 0.55rem 1.15rem;
  }
}

/* ==========================================
   SCROLL REVEAL & HERO ENTRANCE ANIMATIONS
   ========================================== */

/* Hero Entrance Animation (On Load) */
@media (prefers-reduced-motion: no-preference) {
  .hero-tagline,
  .hero-quote,
  .hero-author,
  .hero-desc,
  .hero-actions,
  .hero-image-container {
    opacity: 0;
    transform: translateY(24px);
    animation: heroReveal 1.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  }

  .hero-tagline { animation-delay: 0.1s; }
  .hero-quote { animation-delay: 0.25s; }
  .hero-author { animation-delay: 0.35s; }
  .hero-desc { animation-delay: 0.45s; }
  .hero-actions { animation-delay: 0.55s; }
  
  .hero-image-container {
    transform: scale(0.96) translateY(20px);
    animation: heroImageReveal 1.4s cubic-bezier(0.25, 1, 0.5, 1) forwards;
    animation-delay: 0.4s;
  }

  @keyframes heroReveal {
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }

  @keyframes heroImageReveal {
    to {
      opacity: 1;
      transform: scale(1) translateY(0);
    }
  }
}

/* Scroll Reveal animations */
@media (prefers-reduced-motion: no-preference) {
  /* Initial state when JS is enabled */
  html.js-enabled .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.215, 0.61, 0.355, 1), 
                transform 1s cubic-bezier(0.215, 0.61, 0.355, 1);
    will-change: transform, opacity;
  }

  html.js-enabled .reveal.revealed {
    opacity: 1;
    transform: translateY(0);
  }

  /* Staggering child elements (e.g. cards) */
  html.js-enabled .stagger-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s cubic-bezier(0.25, 1, 0.5, 1), 
                transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform, opacity;
  }

  html.js-enabled .reveal.revealed .stagger-reveal {
    opacity: 1;
    transform: translateY(0);
  }

  /* Define staggers for child items */
  html.js-enabled .reveal.revealed .stagger-reveal:nth-child(1) { transition-delay: 0.15s; }
  html.js-enabled .reveal.revealed .stagger-reveal:nth-child(2) { transition-delay: 0.25s; }
  html.js-enabled .reveal.revealed .stagger-reveal:nth-child(3) { transition-delay: 0.35s; }
  html.js-enabled .reveal.revealed .stagger-reveal:nth-child(4) { transition-delay: 0.45s; }
}

/* ==========================================
   SOBRE MÍ SUBPAGE CUSTOM COMPONENTS
   ========================================== */

/* Timeline styles */
.timeline-container {
  position: relative;
  max-width: 900px;
  margin: 4rem auto 2rem auto;
  padding: 2rem 0;
}

.timeline-container::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 4px;
  background-color: var(--color-primary-gold-light);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 1rem 3rem;
  box-sizing: border-box;
  margin-bottom: 2rem;
}

.timeline-item:nth-child(odd) {
  left: 0;
  text-align: right;
}

.timeline-item:nth-child(even) {
  left: 50%;
  text-align: left;
}

.timeline-dot {
  position: absolute;
  left: 100%;
  top: 2.5rem;
  width: 18px;
  height: 18px;
  background-color: var(--color-bg-white);
  border: 4px solid var(--color-primary-gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 10;
  transition: var(--transition-smooth);
}

.timeline-item:nth-child(even) .timeline-dot {
  left: 0;
}

.timeline-item:hover .timeline-dot {
  background-color: var(--color-accent-brown);
  border-color: var(--color-accent-brown-light);
  transform: translate(-50%, -50%) scale(1.3);
}

.timeline-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-smooth);
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-md);
  border-color: var(--color-accent-brown);
}

.timeline-date {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-accent-brown);
  margin-bottom: 0.5rem;
  display: block;
}

.timeline-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.8rem;
  color: var(--color-text-dark);
}

.timeline-card p {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Areas Grid (3 Columns) */
.areas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

/* RUA Badge Container */
.rua-badge-container {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.rua-badge {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  background-color: var(--color-bg-cream-dark);
  border: 2px solid var(--color-primary-gold);
  border-radius: var(--border-radius-md);
  padding: 1.5rem 3rem;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-smooth);
  max-width: 100%;
}

.rua-badge:hover {
  transform: translateY(-3px);
  box-shadow: var(--box-shadow-md);
  border-color: var(--color-accent-brown);
}

.rua-badge-icon {
  font-size: 3rem;
  line-height: 1;
}

.rua-badge-text {
  text-align: left;
}

.rua-badge-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.rua-badge-number {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.2;
}

/* Responsive adjustments for new elements */
@media (max-width: 1024px) {
  .areas-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }
  
  .timeline-item {
    width: 100%;
    left: 0 !important;
    padding-left: 45px;
    padding-right: 0;
    text-align: left !important;
    margin-bottom: 2rem;
  }
  
  .timeline-dot {
    left: 20px !important;
    top: 2.2rem;
  }
  
  .timeline-item:nth-child(even) .timeline-dot {
    left: 20px !important;
  }
  
  .areas-grid {
    grid-template-columns: 1fr;
  }
  
  .rua-badge {
    padding: 1.5rem 2rem;
    gap: 1rem;
  }
  
  .rua-badge-number {
    font-size: 1.4rem;
  }
}

/* Biography page grid layout */
.bio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 1024px) {
  .bio-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .bio-image-container {
    order: -1;
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Compromiso section custom styles */
.compromiso-section {
  background-color: var(--color-accent-brown-light) !important;
  padding: 7rem 0;
}

.compromiso-card {
  background-color: var(--color-bg-white) !important;
  border: 1px solid var(--color-primary-gold-light) !important;
  box-shadow: var(--box-shadow-md) !important;
}

.compromiso-card:hover {
  border-color: var(--color-primary-gold) !important;
  box-shadow: var(--box-shadow-lg) !important;
  transform: translateY(-2px);
}

/* Biography page image layout override */
.bio-image-container img {
  height: 480px !important;
  object-fit: cover;
}

@media (max-width: 768px) {
  .bio-image-container img {
    height: 320px !important;
  }
}

/* 2-Column Grid for Services */
.areas-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin-bottom: 3.5rem;
}

@media (max-width: 768px) {
  .areas-grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================
   CONTACT PAGE FORM STYLES
   ========================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 5rem;
}

.contact-info-col {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.office-card {
  background-color: var(--color-bg-cream-dark);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 2.5rem;
  box-shadow: var(--box-shadow-sm);
  transition: var(--transition-smooth);
}

.office-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--box-shadow-md);
  border-color: var(--color-primary-gold);
}

.office-title {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--color-text-dark);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.office-details {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.office-details strong {
  color: var(--color-text-dark);
}

/* Form Styling */
.contact-form-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-lg);
  padding: 3rem;
  box-shadow: var(--box-shadow-md);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-label {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-dark);
}

.form-input,
.form-select,
.form-textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  background-color: var(--color-bg-cream);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 0.9rem 1.2rem;
  transition: var(--transition-smooth);
  width: 100%;
  box-sizing: border-box;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background-color: var(--color-bg-white);
  border-color: var(--color-primary-gold);
  box-shadow: 0 0 0 3px rgba(167, 162, 74, 0.15);
}

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

/* Radios Group */
.radio-group {
  display: flex;
  gap: 2rem;
  margin-top: 0.25rem;
}

.radio-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.95rem;
  color: var(--color-text-muted);
}

.radio-option input[type="radio"] {
  accent-color: var(--color-primary-gold);
  width: 16px;
  height: 16px;
}

.form-submit-btn {
  margin-top: 1rem;
  width: 100%;
}

/* Success notification message */
.form-success-message {
  display: none;
  background-color: rgba(167, 162, 74, 0.1);
  border: 1px solid var(--color-primary-gold);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  text-align: center;
  margin-bottom: 2rem;
  color: var(--color-text-dark);
  font-size: 1rem;
  animation: fadeIn 0.4s ease-out;
}

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

@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .form-group-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-group.full-width {
    grid-column: span 1;
  }
  .contact-form-card {
    padding: 2rem;
  }
  .radio-group {
    flex-direction: column;
    gap: 0.8rem;
  }
}

/* File upload custom input styling */
.form-file-input {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--color-text-dark);
  background-color: var(--color-bg-cream);
  border: 1px dashed var(--color-border);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  transition: var(--transition-smooth);
  width: 100%;
  box-sizing: border-box;
  cursor: pointer;
}

.form-file-input::file-selector-button {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-white);
  background-color: var(--color-accent-brown);
  border: none;
  border-radius: 4px;
  padding: 0.5rem 1rem;
  margin-right: 1rem;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.form-file-input::file-selector-button:hover {
  background-color: var(--color-text-dark);
}

.form-file-input:focus {
  outline: none;
  border-color: var(--color-primary-gold);
  border-style: solid;
  box-shadow: 0 0 0 3px rgba(167, 162, 74, 0.15);
}

.form-file-help {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 0.4rem;
  line-height: 1.4;
}

/* Legal Pages Styling */
.legal-section {
  padding: 4rem 0 6rem 0;
  background-color: var(--color-bg-cream);
}

.legal-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 3rem 4rem;
  box-shadow: var(--shadow-subtle);
  max-width: 900px;
  margin: 0 auto;
}

.legal-card h2 {
  font-family: var(--font-serif);
  color: var(--color-text-dark);
  font-size: 1.6rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 0.5rem;
}

.legal-card h3 {
  font-family: var(--font-sans);
  color: var(--color-accent-brown);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-card p {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 1.5rem;
}

.legal-card ul {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.legal-card li {
  font-family: var(--font-sans);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
  margin-bottom: 0.5rem;
  list-style-type: disc;
}

@media (max-width: 768px) {
  .legal-card {
    padding: 2rem;
  }
}

/* Blog Filter Pills */
.blog-filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-bottom: 2rem;
  margin-top: 1rem;
}

.blog-filter-btn {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  padding: 0.6rem 1.25rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--border-radius-pill);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.blog-filter-btn:hover {
  border-color: var(--color-primary-gold);
  color: var(--color-primary-gold);
  transform: translateY(-1px);
}

.blog-filter-btn.active {
  background-color: var(--color-primary-gold);
  border-color: var(--color-primary-gold);
  color: var(--color-bg-white);
  box-shadow: 0 4px 10px rgba(167, 162, 74, 0.2);
}

/* Blog Page and Cards Styling */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-top: 3rem;
}

.blog-card {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-subtle);
  transition: var(--transition-smooth);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-medium);
  border-color: var(--color-primary-gold);
}

.blog-card-image-container {
  height: 200px;
  width: 100%;
  overflow: hidden;
  position: relative;
  background-color: var(--color-bg-cream);
  border-bottom: 1px solid var(--color-border);
}

.blog-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-smooth);
}

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

/* Custom styling for document/form previews in cards */
.blog-card-image-container.document-container {
  background-color: #ffffff;
}

.blog-card-img.document-img {
  object-fit: cover;
  object-position: top center;
}

.blog-card:hover .blog-card-img.document-img {
  transform: scale(1.02);
}

.blog-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.blog-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.8rem;
  font-size: 0.8rem;
}

.blog-card-category {
  font-family: var(--font-sans);
  color: var(--color-accent-brown);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-card-readtime {
  color: var(--color-text-muted);
}

.blog-card-title {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  color: var(--color-text-dark);
  margin-bottom: 0.8rem;
  line-height: 1.4;
  font-weight: 500;
}

.blog-card-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.blog-card-link {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary-gold-dark);
  transition: var(--transition-smooth);
}

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

/* Modal for Blog Article Reading */
.blog-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 2000;
  overflow-y: auto;
  backdrop-filter: blur(5px);
  padding: 2rem 1rem;
  box-sizing: border-box;
}

.blog-modal-content {
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-md);
  max-width: 800px;
  margin: 2rem auto;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  position: relative;
  animation: modalFadeIn 0.4s ease;
}

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

.blog-modal-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-border);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-smooth);
  color: var(--color-text-dark);
  z-index: 10;
}

.blog-modal-close:hover {
  background-color: var(--color-accent-brown);
  color: var(--color-text-white);
}

.blog-modal-image-wrapper {
  height: 350px;
  width: 100%;
  position: relative;
}

.blog-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-modal-body {
  padding: 3rem 4rem;
}

.blog-modal-meta {
  display: flex;
  gap: 1.5rem;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.blog-modal-category {
  font-family: var(--font-sans);
  color: var(--color-accent-brown);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.blog-modal-title {
  font-family: var(--font-serif);
  font-size: 2rem;
  color: var(--color-text-dark);
  margin-bottom: 2rem;
  line-height: 1.3;
}

.blog-modal-text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-muted);
}

.blog-modal-text p {
  margin-bottom: 1.5rem;
}

.blog-modal-text h4 {
  font-family: var(--font-serif);
  color: var(--color-text-dark);
  font-size: 1.3rem;
  margin-top: 2rem;
  margin-bottom: 0.8rem;
}

.blog-modal-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--color-border);
  text-align: center;
}

@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .blog-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .blog-modal-body {
    padding: 2rem;
  }
  .blog-modal-image-wrapper {
    height: 220px;
  }
  .blog-modal-title {
    font-size: 1.6rem;
  }
}

/* ==========================================
   FLOATING WHATSAPP BUTTON
   ========================================== */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 9999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  font-family: var(--font-sans);
  pointer-events: auto;
}

.whatsapp-icon-container {
  width: 3.75rem;
  height: 3.75rem;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg-white);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4), inset 0 2px 4px rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
}

.whatsapp-icon-svg {
  width: 2rem;
  height: 2rem;
  fill: currentColor;
  transition: transform 0.4s ease;
}

/* Pulsing effect around the button */
.whatsapp-icon-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
  z-index: -1;
  opacity: 0.5;
  transform: scale(1);
  animation: whatsapp-pulse 2.5s infinite;
  pointer-events: none;
}

/* Tooltip text */
.whatsapp-tooltip {
  background-color: var(--color-bg-white);
  color: var(--color-text-dark);
  padding: 0.6rem 1.2rem;
  border-radius: 2rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: var(--box-shadow-md);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateX(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  white-space: nowrap;
}

/* Hover effects */
.whatsapp-float:hover .whatsapp-icon-container {
  transform: scale(1.08) rotate(8deg);
  background: #20ba5a;
  box-shadow: 0 12px 30px rgba(37, 211, 102, 0.5), inset 0 2px 4px rgba(255, 255, 255, 0.3);
}

.whatsapp-float:hover .whatsapp-icon-svg {
  transform: scale(1.05);
}

.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(0) scale(1);
}

/* Pulse animation */
@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }
  70% {
    transform: scale(1.4);
    opacity: 0;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

/* Adjustments for mobile screens */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 1.5rem;
    right: 1.5rem;
  }
  
  .whatsapp-icon-container {
    width: 3.25rem;
    height: 3.25rem;
  }
  
  .whatsapp-icon-svg {
    width: 1.75rem;
    height: 1.75rem;
  }
  
  .whatsapp-tooltip {
    display: none;
  }
}

/* ==========================================
   CONTACT CHOICE MODAL
   ========================================== */
.contact-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s ease;
}

.contact-modal.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(47, 42, 37, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.contact-modal-box {
  position: relative;
  background-color: var(--color-bg-white);
  border-radius: var(--border-radius-lg);
  padding: 2.5rem;
  max-width: 420px;
  width: 90%;
  box-shadow: var(--box-shadow-lg);
  border: 1px solid var(--color-border);
  z-index: 10001;
  text-align: center;
  transform: scale(0.9);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact-modal.active .contact-modal-box {
  transform: scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.8rem;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.contact-modal-close:hover {
  color: var(--color-text-dark);
}

.contact-modal-title {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--color-text-dark);
  margin-bottom: 0.75rem;
}

.contact-modal-desc {
  font-size: 0.95rem;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  line-height: 1.5;
}

.contact-modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-modal-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.9rem 1.5rem;
  border-radius: var(--border-radius-pill);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-smooth);
  border: 1px solid transparent;
}

.contact-modal-phone {
  background-color: var(--color-accent-brown);
  color: var(--color-bg-white);
  box-shadow: 0 4px 10px rgba(171, 143, 115, 0.25);
}

.contact-modal-phone:hover {
  background-color: var(--color-accent-brown-dark);
  box-shadow: 0 6px 15px rgba(171, 143, 115, 0.35);
  transform: translateY(-2px);
}

.contact-modal-wa {
  background-color: #25D366;
  color: var(--color-bg-white);
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.contact-modal-wa:hover {
  background-color: #20ba5a;
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35);
  transform: translateY(-2px);
}

.contact-btn-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

/* Blog Pagination */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3.5rem;
}

.pagination-btn {
  background-color: var(--color-bg-white);
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  min-width: 2.75rem;
  height: 2.75rem;
  padding: 0 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--border-radius-md);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.pagination-btn:hover:not(:disabled) {
  border-color: var(--color-primary-gold);
  color: var(--color-primary-gold);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background-color: var(--color-primary-gold);
  border-color: var(--color-primary-gold);
  color: var(--color-bg-white);
  box-shadow: 0 4px 10px rgba(167, 162, 74, 0.2);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none !important;
}

