/* ==========================================================================
   Nutricionista de Perros CR - Styles
   ========================================================================== */

/* Skip link for accessibility - uses transform for GPU-accelerated animation */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  background: var(--color-primary-dark, #006567);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
  text-decoration: none;
  border-radius: 0 0 4px 0;
  transition: transform 0.15s ease-out;
  /* Ensure sufficient contrast: #006567 on white = 7.5:1 ratio */
}

.skip-link:focus {
  transform: translateY(0);
}

:root {
  /* Colors - Dog-friendly palette (teals) */
  --color-primary: #007A7C;
  --color-primary-dark: #006567;
  --color-primary-light: #38B2AC;
  --color-secondary: #319795;
  --color-secondary-dark: #2C7A7B;

  --color-text: #1A202C;
  --color-text-light: #4A5568;
  --color-text-muted: #636e7b;  /* Darkened for WCAG AA contrast (5.74:1 on white) */

  --color-bg: #FFFFFF;
  --color-bg-alt: #F7FAFC;
  --color-bg-dark: #EDF2F7;

  --color-border: #E2E8F0;

  /* Typography */
  --font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

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

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 1rem;
  --radius-full: 9999px;

  /* Shadows — premium multi-layer system */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 50px -12px rgba(0, 0, 0, 0.15), 0 8px 20px -8px rgba(0, 0, 0, 0.06);
  --shadow-glow: 0 0 30px -5px rgba(0, 122, 124, 0.15);

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-premium: 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

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

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

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

/* Accessibility: Focus states */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary-dark);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(0, 122, 124, 0.2);
}

ul {
  list-style: none;
}

/* ==========================================================================
   Container
   ========================================================================== */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-xs);
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  text-decoration: none;
  position: relative;
}

.btn-primary {
  background-color: var(--color-primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 122, 124, 0.25);
}

.btn-primary:hover {
  background-color: var(--color-primary-dark);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 122, 124, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 1px 4px rgba(0, 122, 124, 0.2);
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-primary);
  border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 122, 124, 0.2);
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1.125rem;
  border-radius: 0.625rem;
}

/* ==========================================================================
   Header
   ========================================================================== */

.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--color-border);
  transition: all var(--transition-premium);
}

@supports (backdrop-filter: blur(12px)) {
  .header {
    background-color: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }
}

.header-scrolled {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 24px rgba(0, 0, 0, 0.06);
  border-bottom-color: rgba(0, 122, 124, 0.08);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-text);
  text-decoration: none;
}

.logo:hover,
.logo:active,
.logo:focus {
  color: var(--color-text);
  text-decoration: none;
}

.logo-icon {
  width: 52px;
  height: 52px;
  object-fit: contain;
  flex-shrink: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--spacing-lg);
}

.nav a {
  color: var(--color-text-light);
  font-weight: 500;
}

.nav a.btn-primary {
  color: white;
}

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

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  /* Touch target minimum 44x44px for accessibility (WCAG 2.1) */
  min-width: 44px;
  min-height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background-color var(--transition-fast);
}

.mobile-menu-btn:hover {
  background-color: var(--color-bg-alt);
}

.mobile-menu-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.mobile-menu-btn span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--color-text);
  transition: all var(--transition-fast);
  transform-origin: center;
}

/* Mobile menu open state - hamburger transforms to X */
.header.nav-open .mobile-menu-btn span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header.nav-open .mobile-menu-btn span:nth-child(2) {
  opacity: 0;
}

.header.nav-open .mobile-menu-btn span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   Shared Typography
   ========================================================================== */

.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.section-heading {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: var(--spacing-md);
}

.section-desc {
  font-size: 1.125rem;
  color: var(--color-text-light);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: var(--spacing-2xl);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  padding: 7rem 0 6rem;
  background: linear-gradient(165deg, #fff 0%, #E0F5F5 40%, #D0EFEF 65%, #EAFAFA 85%, #fff 100%);
  position: relative;
  overflow: hidden;
}

/* Subtle decorative circles */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -80px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 122, 124, 0.04) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 178, 172, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* Staggered entrance animation */
.hero-content > * {
  opacity: 0;
  transform: translateY(20px);
  animation: hero-fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-content > *:nth-child(1) { animation-delay: 0.1s; }
.hero-content > *:nth-child(2) { animation-delay: 0.2s; }
.hero-content > *:nth-child(3) { animation-delay: 0.3s; }
.hero-content > *:nth-child(4) { animation-delay: 0.35s; }
.hero-content > *:nth-child(5) { animation-delay: 0.45s; }

.hero-visual {
  opacity: 0;
  transform: translateY(24px) scale(0.97);
  animation: hero-image-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.3s forwards;
}

@keyframes hero-fade-up {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-image-in {
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hero-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-primary);
  background: rgba(0, 122, 124, 0.06);
  padding: 0.5rem 1.25rem;
  border-radius: 2rem;
  margin-bottom: 2rem;
  border: 1px solid rgba(0, 122, 124, 0.12);
}

.hero h1 {
  font-size: 4.25rem;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: 2rem;
}

/* Accent color on "tu perro" */
.hero h1 .accent {
  color: var(--color-primary);
}

.hero-author {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.hero-author strong {
  font-size: 1.25rem;
  color: var(--color-text);
}

.hero-author span {
  font-size: 1rem;
  color: var(--color-primary);
  font-weight: 500;
}

.hero-text {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.7;
  max-width: 460px;
  margin-bottom: 2.5rem;
}

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

.btn-ghost {
  background: transparent;
  color: var(--color-text);
  border: 2px solid var(--color-text-muted);
}

.btn-ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: rgba(0, 122, 124, 0.04);
  transform: translateY(-1px);
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Organic blob behind hero image */
.hero-visual::before {
  content: '';
  position: absolute;
  top: -8%;
  left: -8%;
  width: 116%;
  height: 116%;
  background: linear-gradient(135deg, rgba(0, 122, 124, 0.08) 0%, rgba(56, 178, 172, 0.12) 50%, rgba(0, 101, 103, 0.06) 100%);
  border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%;
  z-index: -1;
  animation: blob-morph 12s ease-in-out infinite alternate;
}

@keyframes blob-morph {
  0%   { border-radius: 60% 40% 55% 45% / 50% 60% 40% 50%; }
  33%  { border-radius: 45% 55% 50% 50% / 55% 45% 55% 45%; }
  66%  { border-radius: 55% 45% 40% 60% / 45% 55% 50% 50%; }
  100% { border-radius: 50% 50% 55% 45% / 60% 40% 55% 45%; }
}

.hero-visual img {
  border-radius: 0;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.1)) drop-shadow(0 2px 8px rgba(0, 0, 0, 0.06));
  transition: transform var(--transition-premium), filter var(--transition-premium);
}

.hero-visual img:hover {
  transform: translateY(-6px) scale(1.02);
  filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.12)) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.08));
}

/* ==========================================================================
   Credentials
   ========================================================================== */

.credentials {
  background: linear-gradient(135deg, #1B4D4E 0%, #17433F 100%);
  padding: 1.75rem 0;
  position: relative;
}

.credentials-grid {
  display: flex;
  justify-content: center;
  gap: 4rem;
}

.credential {
  display: flex;
  align-items: center;
  gap: 1rem;
  position: relative;
}

/* Luminous vertical separators */
.credential + .credential::before {
  content: '';
  position: absolute;
  left: -2rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, transparent 0%, rgba(56, 178, 172, 0.4) 50%, transparent 100%);
}

.credential svg {
  color: var(--color-primary-light);
  flex-shrink: 0;
}

.credential strong {
  display: block;
  font-size: 0.9375rem;
  color: #fff;
  font-weight: 600;
}

.credential span {
  display: block;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.75);
}

/* ==========================================================================
   Philosophy
   ========================================================================== */

.philosophy {
  padding: 6rem 0;
  background: var(--color-bg);
}

.philosophy-inner {
  max-width: 720px;
  text-align: center;
  margin: 0 auto;
}

/* Decorative accent line above section label */
.philosophy-inner .section-label::before {
  content: '';
  display: block;
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 2px;
  margin: 0 auto 1.25rem;
}

.philosophy h2 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--color-text);
  margin-bottom: 1.5rem;
}

.philosophy p {
  font-size: 1.125rem;
  color: var(--color-text-light);
  line-height: 1.8;
  max-width: 620px;
  margin: 0 auto;
}

/* ==========================================================================
   Benefits
   ========================================================================== */

.benefits {
  padding: 6rem 0;
  background: var(--color-bg-alt);
}

.benefits .container {
  text-align: center;
}

.benefits .section-heading {
  margin-bottom: 1rem;
}

.benefits .section-desc {
  margin-left: auto;
  margin-right: auto;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  text-align: left;
  margin-top: 3rem;
}

.benefit-card {
  background: var(--color-bg);
  padding: 2.5rem 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  transition: all var(--transition-premium);
  position: relative;
  overflow: hidden;
}

/* Gradient accent bar on top */
.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  opacity: 0;
  transition: opacity var(--transition-premium);
}

.benefit-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px -4px rgba(0, 122, 124, 0.1),
              0 20px 48px -12px rgba(0, 122, 124, 0.12);
  border-color: rgba(0, 122, 124, 0.15);
}

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

.benefit-num {
  display: block;
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(0, 122, 124, 0.12), rgba(56, 178, 172, 0.08));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  margin-bottom: 1.25rem;
}

.benefit-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--color-primary);
  display: inline-block;
}

.benefit-card p {
  font-size: 0.9375rem;
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ==========================================================================
   CTA Band
   ========================================================================== */

.cta-band {
  padding: 6rem 0;
  background: linear-gradient(135deg, #007A7C 0%, #005F61 50%, #006567 100%);
  color: white;
  position: relative;
  overflow: hidden;
}

/* Subtle radial glow */
.cta-band::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(56, 178, 172, 0.15) 0%, transparent 60%);
  pointer-events: none;
}

.cta-band-inner {
  max-width: 640px;
  text-align: center;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-band h2 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.cta-band p {
  font-size: 1.125rem;
  line-height: 1.7;
  opacity: 0.88;
  margin-bottom: 2.5rem;
}

.btn-white {
  background: #fff;
  color: var(--color-primary);
  font-weight: 600;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.btn-white:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   Blog
   ========================================================================== */

.blog {
  padding: 6rem 0;
  background: var(--color-bg);
}

.blog .container {
  text-align: center;
}

.blog .section-label,
.blog .section-heading {
  text-align: center;
}

.blog .section-desc {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: var(--spacing-xl);
}

.blog-card {
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: all var(--transition-premium);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.06),
              0 20px 48px -12px rgba(0, 0, 0, 0.1);
  border-color: rgba(0, 122, 124, 0.15);
}

.blog-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

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

.blog-card-image.no-image img {
  width: 60%;
  height: auto;
  object-fit: contain;
  opacity: 0.7;
}

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

.blog-card:hover .blog-card-image.no-image img {
  transform: scale(1.1);
  opacity: 0.9;
}

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

.blog-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.blog-card h3 {
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.5rem;
  color: var(--color-text);
}

.blog-card h3 a { color: inherit; }
.blog-card h3 a:hover { color: var(--color-primary); }

.blog-card-date {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin-top: auto;
}

.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-light);
  padding: var(--spacing-xl);
}

/* ==========================================================================
   Mixed Content Blocks
   ========================================================================== */

.mixed-content {
  margin: var(--spacing-lg) 0;
  overflow: hidden;
}

.mixed-content.float-left .mixed-image {
  float: left;
  margin: 0 var(--spacing-md) var(--spacing-sm) 0;
  max-width: 280px;
  border-radius: var(--radius-md);
}

.mixed-content.float-right .mixed-image {
  float: right;
  margin: 0 0 var(--spacing-sm) var(--spacing-md);
  max-width: 280px;
  border-radius: var(--radius-md);
}

.mixed-content p { margin: 0 0 var(--spacing-sm); line-height: 1.7; }
.clearfix { clear: both; }

@media (max-width: 600px) {
  .mixed-content.float-left .mixed-image,
  .mixed-content.float-right .mixed-image {
    float: none; display: block; max-width: 100%; margin: 0 0 var(--spacing-md) 0;
  }
}

/* ==========================================================================
   Blog Search & Pagination
   ========================================================================== */

.blog-search {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin: 0 auto 3rem;
}

.blog-search input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  font-size: 1rem;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast);
}

.blog-search input:focus { outline: none; border-color: var(--color-primary); }
.blog-search input::placeholder { color: var(--color-text-muted); }

.blog-search button {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem;
  background: var(--color-primary);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background-color var(--transition-fast);
}

.blog-search button:hover { background: var(--color-primary-dark); }

.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.page-info {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  min-width: 120px;
  text-align: center;
}

.blog-pagination .btn:disabled { opacity: 0.5; cursor: not-allowed; }

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--spacing-xl);
}

.no-results h3 { font-size: 1.25rem; color: var(--color-text); margin-bottom: var(--spacing-sm); }
.no-results p { margin-bottom: var(--spacing-md); }

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: linear-gradient(180deg, #1E5253 0%, #1B4D4E 8%, #17433F 100%);
  color: white;
  padding: 5rem 0 2rem;
}

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

.footer-brand .logo-icon,
.footer-brand .logo-text { color: white; }

.footer-brand p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.6;
}

.footer-heading {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-nav ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-nav a {
  color: rgba(255, 255, 255, 0.85);
  transition: color var(--transition-fast);
}

.footer-nav a:hover { color: white; }

.footer-contact p {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
}

.footer-bottom a:hover { color: white; }

/* ==========================================================================
   Scroll Animations
   ========================================================================== */

.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

.benefit-card.animate-on-scroll:nth-child(2) { transition-delay: 0.1s; }
.benefit-card.animate-on-scroll:nth-child(3) { transition-delay: 0.2s; }
.benefit-card.animate-on-scroll:nth-child(4) { transition-delay: 0.3s; }
.benefit-card.animate-on-scroll:nth-child(5) { transition-delay: 0.4s; }
.benefit-card.animate-on-scroll:nth-child(6) { transition-delay: 0.5s; }

@media (prefers-reduced-motion: reduce) {
  .animate-on-scroll { opacity: 1; transform: none; transition: none; }
  .hero-content > *, .hero-visual { opacity: 1; transform: none; animation: none; }
  .hero-visual::before { animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

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

@media (max-width: 768px) {
  .hero { padding: 4rem 0 3rem; }

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

  .hero h1 { font-size: 2.75rem; }
  .hero-author { justify-content: center; }
  .hero-text { max-width: none; margin-left: auto; margin-right: auto; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-visual { order: -1; }
  .hero-visual img { max-width: 320px; }

  .credentials-grid {
    flex-direction: column;
    gap: 1.25rem;
    align-items: center;
  }

  .credential { flex-direction: column; text-align: center; gap: 0.5rem; }
  .credential + .credential::before { display: none; }

  .philosophy { padding: 4rem 0; }
  .philosophy h2 { font-size: 2rem; }

  .benefits { padding: 4rem 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .section-heading { font-size: 2rem; }

  .cta-band { padding: 4rem 0; }
  .cta-band h2 { font-size: 2rem; }

  .blog { padding: 4rem 0; }
  .blog-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .footer-brand { display: flex; flex-direction: column; align-items: center; }

  /* Mobile navigation */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--color-bg);
    padding: var(--spacing-md);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    gap: 0;
  }

  .nav a { display: block; padding: var(--spacing-sm); border-radius: var(--radius-sm); }
  .nav a:hover { background: var(--color-bg-alt); }
  .nav a.btn-primary { margin-top: var(--spacing-sm); text-align: center; }
  .header.nav-open .nav { display: flex; }
  .mobile-menu-btn { display: flex; }
  .header .container { position: relative; }
}

/* ==========================================================================
   WhatsApp Floating Button
   ========================================================================== */

.whatsapp-float {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 3.5rem;
  height: 3.5rem;
  background-color: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  z-index: 999;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.4s ease;
  text-decoration: none;
  opacity: 0;
  pointer-events: none;
}

.whatsapp-float.is-visible {
  opacity: 1;
  pointer-events: auto;
  animation: whatsapp-pulse 2s ease-in-out 1;
}

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

.whatsapp-float:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(37, 211, 102, .5);
}

.whatsapp-float svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: #fff;
}

@keyframes whatsapp-pulse {
  0%, 100% { box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
  50% { box-shadow: 0 4px 20px rgba(37, 211, 102, .5); }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float.is-visible { animation: none; }
}
