/* ============================================
   SERVICES PAGE REDESIGN - Premium Medical/SaaS
   ============================================ */

:root {
  --primary-dark: #0f172a67;
  --accent-blue: #3b82f6;
  --accent-gold: #f59e0b;
  --glass-bg: rgba(255, 255, 255, 0.95);
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  --shadow-lg:
    0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 20px rgba(59, 131, 246, 0.123);
}

html {
  scroll-behavior: smooth !important;
}

/* ============================================
   1. HERO SECTION PREMIUM
   ============================================ */
.services-hero {
  position: relative;
  background: url("img/doc-fran-1.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: white;
  padding: 180px 20px 260px;
  min-height: 80vh;
  text-align: center;
  margin-bottom: 80px;
}

/* Ensure suggestions are on top */
.services-search-wrapper {
  position: relative;
  flex: 0 1 450px;
  z-index: 50; /* Higher Z-index */
}

.search-suggestions {
  position: absolute;
  top: calc(100% + 12px); /* Slightly lower */
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  max-height: 400px; /* Taller */
  overflow-y: auto;
  z-index: 1000; /* Very high Z-index */
}

.hero-overlay {
  display: none;
}

.services-hero .container {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.badge-premium {
  display: inline-block;
  background: rgba(59, 131, 246, 0.151);
  border: 1px solid rgba(59, 131, 246, 0.13);
  color: #93c5fd;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.services-hero-title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(2.5rem, 6vw, 4rem) !important;
  font-weight: 900 !important;
  margin-bottom: 1.5rem !important;
  letter-spacing: -0.02em;
  line-height: 1.1 !important;
  color: #ffffff !important;
  text-shadow:
    0 4px 15px rgba(0, 0, 0, 0.6),
    0 2px 8px rgba(20, 184, 166, 0.4);
}

.services-hero-subtitle {
  font-family: "Lato", sans-serif;
  font-size: clamp(1.1rem, 2.5vw, 1.35rem) !important;
  color: #ffffff !important;
  max-width: 660px;
  margin: 0 auto 3.5rem !important;
  font-weight: 600 !important;
  text-shadow: 0 3px 10px rgba(0, 0, 0, 0.7);
  line-height: 1.6 !important;
}

/* ============================================
   2. HERO ACTIONS (Search + CTA)
   ============================================ */
.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem; /* Increased gap */
  flex-wrap: wrap;
  margin-top: 2rem;
  width: 100%;
}

.services-search-wrapper {
  position: relative;
  flex: 0 1 450px; /* Slightly wider */
}

/* Updated Search Box with Chevron */
.services-search-box {
  background: white !important;
  border-radius: 50px !important;
  display: flex;
  align-items: center;
  padding: 0.75rem 1.5rem !important;
  width: 100%;
  box-shadow: var(--shadow-lg) !important;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  cursor: pointer; /* Indicates it's clickable */
}

.services-search-box:hover {
  transform: translateY(-2px);
}

.search-dropdown-icon {
  display: block !important; /* Visible now */
  color: #94a3b8;
  margin-left: auto; /* Push to right */
  font-size: 0.9rem;
  pointer-events: none;
}

/* Enhanced CTA Buttons */
.hero-cta-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.btn-primary-glow {
  background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
  color: white;
  padding: 1.1rem 2.8rem; /* Larger */
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.15rem;
  /* Premium Glassy Shadow & Border */
  box-shadow:
    0 4px 15px rgba(245, 158, 11, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* Bouncy spring */
  display: inline-flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

/* Shine Effect */
.btn-primary-glow::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.4),
    transparent
  );
  transform: skewX(-20deg);
  transition: 0.5s;
}

.btn-primary-glow:hover {
  background: linear-gradient(135deg, #fbbf24 0%, #b45309 100%);
  transform: translateY(-4px) scale(1.02);
  box-shadow:
    0 20px 30px -10px rgba(245, 158, 11, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
  color: white;
}

.btn-primary-glow:hover::after {
  left: 150%;
  transition: 0.7s ease-in-out;
}

.btn-secondary-glow {
  background: #25d366; /* WhatsApp Green */
  color: white;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  text-decoration: none;
}

.btn-secondary-glow:hover {
  background: #128c7e;
  transform: scale(1.1) rotate(10deg);
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.6);
  color: white;
}

/* Search Suggestions */
.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  max-height: 320px;
  overflow-y: auto;
  z-index: 1000;
}

.suggestion-item {
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: background 0.2s ease;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #f8fafc;
  color: var(--accent-blue);
}

.suggestion-icon {
  color: #94a3b8;
  font-size: 0.9rem;
}

.suggestion-item:hover .suggestion-icon {
  color: var(--accent-blue);
}

.no-results {
  padding: 20px;
  text-align: center;
  color: #64748b;
}

/* ============================================
   3. INFO CARDS - Floating Effect
   ============================================ */
.services-info-container {
  margin-top: -80px;
  position: relative;
  z-index: 10;
  padding: 0 20px 4rem;
}

.services-info-container .container {
  max-width: 1200px;
  margin: 0 auto;
}

.info-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.info-card {
  background: white;
  padding: 1.75rem;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 1.25rem;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.icon-wrapper {
  background: #eff6ff;
  color: var(--accent-blue);
  width: 56px;
  height: 56px;
  min-width: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  font-size: 1.4rem;
  transition: all 0.3s ease;
}

.info-card:hover .icon-wrapper {
  transform: rotate(5deg) scale(1.1);
  background: var(--accent-blue);
  color: white;
}

/* Highlight Card (Emergencias) */
.info-card.highlight {
  background: linear-gradient(135deg, #fef2f2 0%, #ffffff 100%);
  border-color: rgba(239, 68, 68, 0.2);
}

.info-card.highlight .icon-wrapper {
  margin: 0 0 4px 0;
  line-height: 1;
}

.card-text p {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

/* ============================================
   4. NAVIGATION CATEGORIES (Non-Sticky)
   ============================================ */
.services-category-nav {
  position: relative; /* Changed from sticky */
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 10;
  border-bottom: 1px solid rgba(20, 184, 166, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.6);
  padding: 0.5rem 0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
  margin-top: 0;
}

.category-scroll {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0 20px;
  scrollbar-width: none;
}

.category-scroll::-webkit-scrollbar {
  display: none;
}

.category-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 14px;
  transition: all 0.3s ease;
  white-space: nowrap;
  gap: 8px;
  border: 1px solid transparent; /* Prevent layout shift */
}

.nav-icon {
  width: 44px;
  height: 44px;
  background: #f0fdfa; /* Mint 50 */
  color: #0d9488; /* Mint 600 */
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); /* Bouncy */
  border: 1px solid rgba(20, 184, 166, 0.1);
}

.nav-icon i {
  font-size: 1.3rem;
  transition: transform 0.3s ease;
}

.category-nav-item:hover {
  background: #f0fdfa; /* Mint 50 */
  color: #0f766e; /* Mint 700 */
}

.category-nav-item.active {
  color: #0d9488; /* Darker Mint */
  background: rgba(240, 253, 250, 0.8);
  box-shadow:
    0 4px 12px rgba(20, 184, 166, 0.15),
    inset 0 0 0 1px rgba(20, 184, 166, 0.2);
  border: 1px solid transparent;
}

.category-nav-item:hover .nav-icon {
  background: white;
  color: #0d9488;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(20, 184, 166, 0.1);
}

.category-nav-item.active .nav-icon {
  background: linear-gradient(
    135deg,
    #14b8a6 0%,
    #0d9488 100%
  ); /* Premium Mint Gradient */
  color: white;
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 6px 16px rgba(20, 184, 166, 0.3);
}

.category-nav-item:hover .nav-icon i {
  transform: scale(1.1);
}

/* ============================================
   5. RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
  .services-hero {
    padding: 80px 16px 120px;
  }

  .services-hero-title {
    font-size: 2rem !important;
  }

  .services-hero-subtitle {
    font-size: 1rem !important;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .services-search-box {
    width: 100%;
  }

  .btn-primary-glow {
    width: 100%;
    justify-content: center;
  }

  .services-info-container {
    margin-top: -60px;
    padding: 0 16px 3rem;
  }

  .info-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .info-card {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  .card-text h3 {
    font-size: 1.25rem;
  }

  .category-scroll {
    justify-content: flex-start;
    gap: 0.5rem;
  }

  .category-nav-item {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  .nav-icon {
    width: 38px;
    height: 38px;
  }

  .nav-icon i {
    font-size: 1.1rem;
  }
}

@media (max-width: 480px) {
  .services-hero {
    padding: 60px 12px 100px;
  }

  .badge-premium {
    font-size: 0.75rem;
    padding: 6px 16px;
  }

  .info-cards-grid {
    grid-template-columns: 1fr;
  }

  .info-card {
    flex-direction: row;
    text-align: left;
  }
}

/* Hide old elements */
.services-hero-badge,
.hero-trust-row,
.services-hero-stats,
.text-gradient,
.services-info-cards,
.info-cards-container,
.info-card-icon,
.sticky-nav-container,
.sticky-nav-item {
  display: none !important;
}
/* ============================================
   6. SERVICES LIST (Apple Bento Grid)
   ============================================ */
.services-detailed-page {
  padding: 60px 20px 80px;
  background: #fbfbfd;
}

.services-intro {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 60px;
}

.services-intro h2 {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  margin-bottom: 16px;
  color: #1d1d1f;
  letter-spacing: -0.01em;
}

.services-intro p {
  font-size: 1.1rem;
  color: #86868b;
  line-height: 1.5;
}

.services-detailed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
}

.service-expanded {
  background: rgba(255, 255, 255, 0.95); /* More opaque for performance */
  border-radius: 28px;
  padding: 40px;
  box-shadow:
    0 8px 32px rgba(31, 38, 135, 0.05),
    0 4px 8px rgba(0, 0, 0, 0.02);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.8);
  /* BACKDROP FILTER REMOVED FOR PERFORMANCE - Causes scroll lag */
  /* backdrop-filter: blur(16px) saturate(160%); */
  /* -webkit-backdrop-filter: blur(16px) saturate(160%); */
  /* will-change: transform; - Removed to save memory */
}

.service-expanded:hover {
  transform: translateY(-8px);
  box-shadow:
    0 20px 40px rgba(31, 38, 135, 0.1),
    0 1px 1px rgba(255, 255, 255, 0.5) inset;
  background: #ffffff;
  border-color: #ffffff;
}

.service-expanded-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.service-expanded img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.service-expanded:hover img {
  transform: scale(1.1);
}

.service-expanded h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #1d1d1f;
  margin: 0;
  letter-spacing: -0.01em;
}

.service-badge {
  position: absolute;
  top: 30px;
  right: 30px;
  padding: 6px 12px;
  background: #f5f5f7;
  color: #6e6e73;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.service-expanded-description {
  color: #424245;
  line-height: 1.6;
  margin-bottom: 24px;
  font-size: 1rem;
}

.service-features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px 0;
}

.service-features-list li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 12px;
  color: #6e6e73;
  font-size: 0.95rem;
}

.service-features-list li::before {
  content: "\f00c";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0;
  top: 2px;
  color: var(--accent-blue);
  font-size: 0.85rem;
}

.service-card-cta {
  margin-top: auto;
  display: block;
  text-align: center;
  background: #0071e3;
  color: white;
  padding: 14px 24px;
  border-radius: 980px;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  font-size: 0.95rem;
}

.service-card-cta:hover {
  background: #0077ed;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* ============================================
   8. ORGANIC & PROFESSIONAL CTA (Final v3)
   ============================================ */
.cta-section-organic {
  position: relative;
  padding: 120px 20px;
  background: transparent; /* Transparent to show body original background */
  overflow: hidden;
}

/* --- Organic Blobs Background --- */
.cta-organic-blob-1,
.cta-organic-blob-2 {
  display: none; /* Hidden requested to show body background purely */
}

/* --- The Glass/White Card -> NOW DARK MINT GREEN CARD --- */
.cta-card-glass {
  position: relative;
  /* Dark Mint Green Gradient (Professional) */
  background: linear-gradient(135deg, #0f4c45 0%, #115e59 100%);

  /* Slight subtle noise or pattern if desired, sticking to clean gradient for now */

  /* Glassy border */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 32px;
  padding: 60px;

  /* Deep Shadow */
  box-shadow:
    0 25px 50px -12px rgba(17, 94, 89, 0.5),
    0 10px 20px -5px rgba(0, 0, 0, 0.2);

  max-width: 1100px;
  margin: 0 auto;
  overflow: hidden;
  isolation: isolate;
}

/* Decoration removed to show body background clearly */
.cta-card-glass::before {
  display: none;
}

.cta-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 2;
}

/* --- Left Column: Text (All White) --- */
.cta-text-content {
  text-align: left;
}

.cta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(
    255,
    255,
    255,
    0.2
  ); /* Increased opacity for Mint background */
  color: #ffffff;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  margin-bottom: 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.cta-title-organic {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  line-height: 1.1;
  margin-bottom: 24px;
  letter-spacing: -0.5px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
}

.text-gradient-primary {
  background: none;
  -webkit-text-fill-color: #ffffff;
  color: #ffffff;
  display: inline;
}

.cta-desc-organic {
  font-family: "Inter", sans-serif;
  font-size: 1.15rem;
  color: #f0fdf4; /* Very light mint white */
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 95%;
  font-weight: 400;
  opacity: 1;
}

/* --- Buttons --- */
.cta-actions-organic {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.btn-organic-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #ffffff;
  color: #0d9488; /* Matching Teal Text */
  border: none;
  border-radius: 50px;
  padding: 14px 28px;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-organic-primary:hover {
  transform: translateY(-3px);
  background: #f0fdfa; /* Light mint hover */
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.btn-organic-primary .icon-circle {
  width: 38px;
  height: 38px;
  background: #0d9488; /* Matching Teal Circle */
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.btn-organic-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.5); /* Stronger border */
  transition: all 0.3s ease;
  background: rgba(0, 0, 0, 0.2); /* Slight darkening for readability */
}

.btn-organic-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* Trust Indicators White */
.cta-trust-indicators {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.trust-item {
  color: #ffffff;
  font-weight: 500;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.trust-item .check-circle {
  background: rgba(255, 255, 255, 0.9);
  color: #0d9488; /* Teal checkmark */
}

/* --- Right Column: Visual --- */
.cta-visual-content {
  display: block;
  position: relative;
  height: 450px;
  width: 100%;
}

.image-frame-organic {
  width: 100%;
  height: 100%;
  position: relative;
  background-image: url("img/caricatura-vet.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  animation: floatImage 6s ease-in-out infinite;
}

/* --- Button Styles Cleaned Up --- */
.btn-organic-primary {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: white;
  color: #0f766e;
  padding: 10px 10px 10px 28px; /* Special padding for circle icon */
  border-radius: 100px;
  border: none;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 10px 25px -5px rgba(15, 118, 110, 0.4);
  transition: all 0.3s ease;
}

.btn-organic-primary .icon-circle {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  transition: background 0.3s ease;
}

.btn-organic-primary:hover {
  transform: translateY(-3px);
  background: #f0fdfa; /* Light mint hover */
  box-shadow: 0 15px 30px -5px rgba(15, 118, 110, 0.5);
}

.btn-organic-primary:hover .icon-circle {
  background: #115e59;
  color: white;
}

.btn-organic-secondary {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  font-size: 1rem;
  padding: 12px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  transition: all 0.3s ease;
}

.btn-organic-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  transform: translateY(-2px);
}

/* --- Trust Indicators --- */
.cta-trust-indicators {
  display: flex;
  gap: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 30px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.9rem;
}

.trust-item .check-circle {
  width: 24px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.7rem;
}

/* --- Right Column: Visual --- */
.cta-visual-content {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
}

.image-frame-organic {
  width: 100%;
  height: 100%;
  min-height: 400px;
  position: relative;
  background-image: url("img/caricatura-vet.webp");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.3));
  animation: floatImage 6s ease-in-out infinite;
}

@keyframes floatImage {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .cta-card-glass {
    /* Maintain Dark Mint Gradient on Mobile */
    background: linear-gradient(135deg, #0f4c45 0%, #115e59 100%);
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cta-card-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 20px;
  }

  .cta-text-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .cta-eyebrow {
    margin: 0 auto 12px;
    font-size: 0.85rem;
    display: inline-flex;
  }

  .cta-title-organic {
    font-size: 1.8rem;
    width: 100%;
  }

  .cta-desc-organic {
    margin: 0 auto 24px;
    font-size: 0.95rem;
    max-width: 100%;
  }

  .cta-actions-organic {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping only if screen is tiny */
    margin-bottom: 24px;
    gap: 15px;
  }

  .cta-trust-indicators {
    width: 100%;
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    gap: 6px; /* Tighter gap */
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 15px; /* Reduced top padding */
    overflow-x: hidden;
  }

  .trust-item {
    font-size: 0.65rem; /* Significantly smaller as requested */
    white-space: nowrap;
  }

  .trust-item .check-circle {
    width: 14px; /* Tiny check circle */
    height: 14px;
    font-size: 0.5rem;
  }

  /* Image smaller and centered */
  .cta-visual-content {
    width: 100%;
    height: 160px; /* Reduced significantly */
    margin-top: 0;
    display: flex;
    justify-content: center;
    order: 2; /* Ensure image is below text if flex direction changes, or simply last */
  }

  .image-frame-organic {
    min-height: unset;
    height: 100%;
    background-size: contain;
    background-position: center;
    width: 80%; /* Don't take full width to look nicer */
  }
}

@media (max-width: 480px) {
  .cta-title-organic {
    font-size: 1.5rem;
  }

  .cta-actions-organic {
    flex-direction: column;
    align-items: center;
  }

  .btn-organic-primary,
  .btn-organic-secondary {
    width: 100%;
    justify-content: center;
    max-width: 280px; /* Prevent too wide on small screens */
  }

  .cta-visual-content {
    height: 140px; /* Even smaller for phones */
  }
}

/* ============================================
   RESPONSIVE ADJUSTMENTS (Globals)
   ============================================ */
@media (max-width: 768px) {
  .services-detailed-page {
    padding: 60px 20px;
  }

  .services-detailed-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .service-expanded {
    padding: 30px 24px;
  }
}

/* Header Hide on Scroll Transition */
.header {
  transition:
    transform 0.3s ease-in-out,
    background-color 0.3s ease,
    padding 0.3s ease,
    box-shadow 0.3s ease;
}

.header.header-hidden {
  transform: translateY(-100%);
}

/* ============================================
   FAQ SECTION (PREGUNTAS FRECUENTES)
   ============================================ */
.faq-section {
  padding: 80px 20px;
  background-color: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

.faq-header {
  text-align: center;
  margin-bottom: 40px;
}

.faq-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #0a192f;
  margin-bottom: 12px;
}

.faq-header p {
  color: #64748b;
  font-size: 1.1rem;
}

.faq-wrapper {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  transition: box-shadow 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  background: none;
  border: none;
  text-align: left;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 600;
  color: #0a192f;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background-color: #f1f5f9;
}

.faq-question i {
  color: #3b82f6;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background-color: #fff;
}

.faq-answer p {
  padding: 0 24px 24px;
  color: #475569;
  line-height: 1.6;
  font-size: 1rem;
  margin: 0;
}

.faq-item.active .faq-answer {
  max-height: 200px; /* Adjust as needed */
  transition: max-height 0.3s ease-in;
}

/* ============================================
   STICKY CTA MOBILE
   ============================================ */
.sticky-cta-mobile {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 16px 20px;
  background: white;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: flex;
  justify-content: center;
  animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

.btn-sticky-cta {
  width: 100%;
  max-width: 400px;
  padding: 16px;
  background: linear-gradient(135deg, #1fb295 0%, #0d9488 100%);
  color: white;
  border: none;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 178, 149, 0.4);
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-sticky-cta:active {
  transform: scale(0.98);
}

/* Hide Sticky CTA on Desktop */
@media (min-width: 769px) {
  .sticky-cta-mobile {
    display: none;
  }
}

/* Adjustments for FAQ on mobile */
@media (max-width: 640px) {
  .faq-header h2 {
    font-size: 1.75rem;
  }

  .faq-question {
    padding: 16px 20px;
    font-size: 1rem;
  }

  /* Add padding to bottom to account for sticky CTA */
  .footer {
    padding-bottom: 100px;
  }
}

/* ============================================
   SPECIALTIES SECTION
   ============================================ */
.specialties-section {
  padding: 80px 20px;
  background-color: #f8fafc;
  position: relative;
  overflow: hidden;
}

/* Background blob decoration */
.specialties-section::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(
    circle,
    rgba(59, 130, 246, 0.05) 0%,
    rgba(255, 255, 255, 0) 70%
  );
  border-radius: 50%;
  pointer-events: none;
}

.specialties-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 10;
}

.specialties-header h2 {
  font-size: 2.5rem;
  color: #1e293b;
  margin-bottom: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.specialties-header p {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.6;
}

/* Force Specialty Card Styles with High Specificity */
.specialties-section .specialty-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  background: #ffffff !important;
  border-radius: 16px !important;
  padding: 24px !important;
  text-align: center !important;
  border: 1px solid rgba(226, 232, 240, 0.8) !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
  height: 100% !important;
  width: 100% !important;
  min-height: 140px; /* Ensure minimum height */
}

/* Force Grid Layout */
.specialties-section .specialties-grid {
  display: grid !important;
  grid-template-columns: repeat(
    auto-fill,
    minmax(160px, 1fr)
  ) !important; /* Slightly smaller min-width for mobile */
  gap: 16px !important;
  width: 100% !important;
}

/* Force Icon Wrapper styles */
.specialties-section .specialty-icon-wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 56px !important;
  height: 56px !important;
  background: rgba(59, 130, 246, 0.1) !important;
  border-radius: 50% !important;
  margin-bottom: 16px !important;
  color: #3b82f6 !important;
}

.specialties-section .specialty-name {
  font-size: 1rem !important;
  font-weight: 600 !important;
  color: #1e293b !important;
  margin: 0 !important;
  line-height: 1.4 !important;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .specialties-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .specialties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 0 10px;
  }

  .specialty-card {
    padding: 24px 16px;
  }

  .specialties-header h2 {
    font-size: 2rem;
  }

  .specialty-icon-wrapper {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
  }

  .specialty-icon-wrapper i {
    font-size: 1.25rem;
  }
}

@media (max-width: 480px) {
  .specialties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr) !important; /* Force 2 columns */
    gap: 12px;
  }

  .specialty-card {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: auto !important;
    min-height: 120px;
    padding: 16px 12px !important;
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
  }

  .specialty-icon-wrapper {
    display: flex !important;
    width: 48px !important;
    height: 48px !important;
    margin-bottom: 12px !important;
    background-color: rgba(59, 130, 246, 0.1) !important;
    border-radius: 50% !important;
  }

  .specialty-name {
    font-size: 0.9rem !important;
    line-height: 1.3;
    text-align: center;
  }

  .specialties-header h2 {
    font-size: 1.75rem;
  }
}
