/*
  Clínica Veterinaria Spa Perros
  Premium CSS Stylesheet - Expanded & Refined
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  /* Color Palette */
  --primary: #1e40af;       /* Deep Medical Blue */
  --primary-light: #3b82f6; /* Bright Blue */
  --primary-dark: #1e3a8a;  /* Dark Navy Blue */
  --secondary: #0ea5e9;     /* Spa Cyan/Sky Blue */
  --secondary-light: #e0f2fe; /* Light sky blue background tint */
  --accent: #06b6d4;        /* Fresh Turquoise */
  --accent-light: #ecfeff;  /* Soft teal tint */
  --text-dark: #0f172a;     /* Slate 900 for high readability */
  --text-muted: #475569;    /* Slate 600 for descriptions */
  --bg-main: #f8fafc;       /* Off-white background */
  --bg-card: #ffffff;       /* Pure white for cards */
  --success: #10b981;       /* WhatsApp Green / Success */
  --success-dark: #059669;  /* Dark WhatsApp Green */
  --danger: #ef4444;        /* Emergency Red */
  --danger-dark: #b91c1c;   /* Dark Emergency Red */
  
  /* Fonts */
  --font-headers: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  /* Shadow & Blur System */
  --shadow-sm: 0 2px 4px rgba(30, 64, 175, 0.05);
  --shadow-md: 0 10px 25px -5px rgba(30, 64, 175, 0.08), 0 8px 16px -6px rgba(30, 64, 175, 0.05);
  --shadow-lg: 0 20px 40px -10px rgba(30, 64, 175, 0.12), 0 10px 20px -8px rgba(30, 64, 175, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.4);
  --glass-blur: blur(12px);

  /* Borders & Radius */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px; /* offset for sticky navbar */
}

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(25px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes pulse-soft {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

@keyframes pulse-danger {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5);
  }
  50% {
    transform: scale(1.03);
    box-shadow: 0 0 0 12px rgba(239, 68, 68, 0);
  }
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-padding {
  padding: 90px 0;
}

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

.badge {
  display: inline-block;
  padding: 6px 16px;
  background-color: var(--secondary-light);
  color: var(--primary);
  border-radius: 50px;
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.header.scrolled {
  padding: 8px 0;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow-md);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 80px;
  transition: var(--transition);
}

.header.scrolled .nav-container {
  height: 65px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.logo-img {
  height: 34px; /* 30% smaller */
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition);
}

.logo-img-white {
  height: 144px; /* 3x larger */
  width: auto;
  display: block;
  object-fit: contain;
  transition: var(--transition);
}


.nav-links {
  display: flex;
  gap: 26px; /* Spaced out by 8px more */
  list-style: none;
  align-items: center;
}

.nav-link {
  font-family: var(--font-headers);
  font-weight: 700;
  font-size: 0.8rem; /* Premium typography sizing */
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  position: relative;
  padding: 6px 0;
  white-space: nowrap;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
}

.nav-separator {
  width: 1px;
  height: 20px;
  background-color: rgba(30, 64, 175, 0.15);
  margin: 0 10px;
  align-self: center;
}

@media (max-width: 992px) {
  .nav-separator {
    display: none;
  }
}

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

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

.nav-cta-btn {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff !important;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.85rem;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.15);
  white-space: nowrap;
}

.nav-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(30, 64, 175, 0.25);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.menu-toggle svg {
  width: 28px;
  height: 28px;
  stroke: var(--primary-dark);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 40%, #ecfeff 100%);
  padding-top: 160px;
  padding-bottom: 90px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.15fr; /* Expanded image column by 20% footprint */
  gap: 48px;
  align-items: center;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-title span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.125rem;
  color: var(--text-muted);
  margin-bottom: 24px;
  max-width: 540px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius-md);
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 1.05rem;
  transition: var(--transition);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--success);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
  animation: pulse-soft 3s infinite;
}

.btn-primary:hover {
  background-color: var(--success-dark);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
  background-color: #ffffff;
  color: var(--primary);
  border: 2px solid var(--secondary-light);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background-color: var(--secondary-light);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.hero-image-container {
  position: relative;
  animation: fadeInUp 1s ease-out;
}

.hero-floating-logo {
  position: absolute;
  top: calc(10% + 70px); /* Lowered further */
  right: -55px; /* Shifted right */
  width: 182px; /* 30% larger */
  height: auto;
  z-index: 10;
  pointer-events: none;
  filter: drop-shadow(0 12px 24px rgba(30, 64, 175, 0.25));
  animation: hero-logo-float 8s ease-in-out infinite;
}

@keyframes hero-logo-float {
  0%, 100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(4deg);
  }
}

.hero-image-wrapper {
  position: relative;
  z-index: 2;
}

.hero-image {
  width: 100%;
  height: auto;
  display: block;
  transition: var(--transition);
}

.hero-image-wrapper:hover .hero-image {
  transform: translateY(-5px); /* Soft float lift on hover instead of container zoom */
}

/* Background bubble decoration */
.bubble-decor {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(6,182,212,0.15) 0%, rgba(255,255,255,0) 70%);
  border-radius: 50%;
  z-index: 1;
  pointer-events: none;
}

.bubble-1 {
  top: -40px;
  right: -40px;
  animation: float 6s ease-in-out infinite;
}

.bubble-2 {
  bottom: -60px;
  left: -60px;
  width: 150px;
  height: 150px;
  animation: float 8s ease-in-out infinite 1s;
}

/* Services Section */
.services {
  background-color: #ffffff;
  position: relative;
}

.section-header {
  max-width: 650px;
  margin: 0 auto 60px;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.service-card {
  background-color: var(--bg-main);
  padding: 0 0 30px 0; /* Padding only at bottom, image is flush top/sides */
  border-radius: var(--radius-md);
  border: 1px solid rgba(30, 64, 175, 0.04);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center; /* Centering elements */
  text-align: center;   /* Centering texts */
  height: 100%;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: center;
  transition: var(--transition);
  z-index: 3;
}

.service-card:hover {
  transform: translateY(-8px);
  background-color: #ffffff;
  box-shadow: var(--shadow-lg);
  border-color: rgba(30, 64, 175, 0.1);
}

.service-card:hover::before {
  transform: scaleX(1);
}

/* Service Card Image Styling */
.service-card-img-wrapper {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md) var(--radius-md) 0 0; /* Round only top corners */
  overflow: hidden;
  margin-bottom: 20px;
  border: none;
}

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

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

.service-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background-color: var(--secondary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -45px; /* overlay icon on top of the image */
  margin-bottom: 16px;
  z-index: 2;
  border: 4px solid var(--bg-card);
  transition: var(--transition);
  color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.service-card:hover .service-icon-box {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  transform: scale(1.1);
  border-color: #ffffff;
}

.service-icon-box svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.service-card-title {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--primary-dark);
  padding: 0 24px;
}

.service-card-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
  padding: 0 24px;
}

.service-card-link {
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--primary);
  display: inline-flex;
  padding: 0 24px;
  align-items: center;
  gap: 4px;
}

.service-card-link svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  transition: var(--transition);
}

.service-card:hover .service-card-link svg {
  transform: translateX(4px);
}

/* Full-Width Detailed Service Sections */
.detail-section-full {
  display: flex;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  overflow: hidden;
  align-items: stretch;
  /* No min-height — section height is dictated by text content + padding */
}

.detail-text-col {
  width: 60%;
  display: flex;
  align-items: center;
  padding: 32px 0; /* Comfortable padding, section wraps tightly around this */
  z-index: 5;
}

.detail-text-content {
  max-width: 540px;
  padding: 0 20px;
}

.detail-text-content .badge {
  margin-bottom: 10px;
}

.detail-title {
  font-size: 2.2rem;
  margin-bottom: 14px;
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-title .title-icon {
  width: 28px;
  height: 28px;
  fill: var(--primary);
  flex-shrink: 0;
}

.detail-title .title-icon-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.btn-icon-img-large {
  width: 28px; /* 40% larger */
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
}

.detail-desc {
  font-size: 1.08rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.65;
}

.detail-features {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.detail-feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1rem;
  color: var(--text-dark);
}

.detail-feature-item svg {
  width: 18px;
  height: 18px;
  fill: var(--success);
  flex-shrink: 0;
}

.detail-text-content .btn {
  padding: 12px 28px;
  font-size: 1rem;
}

.detail-image-col {
  width: 40%;
  position: relative;
  overflow: hidden;
  height: auto;
}

.detail-image-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: var(--transition);
}

.detail-section-full:hover .detail-image-full {
  transform: scale(1.03);
}

/* Desktop layout container margins alignment and slanting cuts */
@media (min-width: 769px) {
  /* Normal Section: Text Left, Image Right */
  .detail-section-full:not(.reverse) .detail-text-col {
    padding-left: calc((100vw - 1200px) / 2 + 24px);
    padding-right: 60px;
  }
  .detail-section-full:not(.reverse) .detail-image-col {
    clip-path: polygon(10% 0, 100% 0, 100% 100%, 0% 100%);
    margin-left: -4vw; /* Overlap compensation */
    width: 44%; /* 40% + 4% overlap */
  }

  /* Reverse Section: Image Left, Text Right */
  .detail-section-full.reverse .detail-text-col {
    padding-right: calc((100vw - 1200px) / 2 + 24px);
    padding-left: 120px; /* Moved further right to avoid photo text collision */
    order: 2;
  }
  .detail-section-full.reverse .detail-image-col {
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    margin-right: -4vw; /* Overlap compensation */
    width: 44%; /* 40% + 4% overlap */
    order: 1;
  }
}

/* Alternate Section backgrounds */
.bg-alt-light {
  background-color: var(--accent-light);
}

/* Merged Locations & Contact Section (Unified Footer) */
.footer-merged {
  background: linear-gradient(180deg, #0e1b38 0%, #060c1c 100%);
  color: #ffffff;
  padding-top: 60px;
  padding-bottom: 30px;
  position: relative;
  overflow: hidden;
}

.footer-merged::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(14,165,233,0.08) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  pointer-events: none;
}

.contact-locations-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr 2.1fr; /* Adjusted column ratios */
  gap: 40px;
  margin-bottom: 40px;
}

/* Column 1 styling */
.contact-info-panel {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center-align elements */
  text-align: center; /* Center tagline text */
  gap: 16px;
}

.contact-brand-desc {
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
}

.merged-phones-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.merged-phone-card {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center; /* Center horizontally inside card */
  gap: 16px;
  transition: var(--transition);
}

.merged-phone-card:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(14, 165, 233, 0.25);
  transform: translateX(5px);
}

.merged-phone-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background-color: rgba(30, 82, 246, 0.1);
  color: var(--secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.merged-phone-icon svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.merged-phone-text {
  text-align: center;
}

.merged-phone-text p {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.merged-phone-text a {
  font-family: var(--font-headers);
  font-size: 1.1rem;
  font-weight: 700;
  color: #ffffff;
  display: inline-block;
}

.merged-phone-text a:hover {
  color: var(--secondary);
}

.phone-links-group {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center-align link elements */
  gap: 4px;
  margin-top: 2px;
}

.merged-whatsapp-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(5, 150, 105, 0.04) 100%);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.merged-whatsapp-highlight:hover {
  border-color: var(--success);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.08) 100%);
}

.merged-whatsapp-highlight .merged-phone-icon {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--success);
}

.merged-emergency-highlight {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.12) 0%, rgba(185, 28, 28, 0.04) 100%);
  border: 1px solid rgba(239, 68, 68, 0.25);
}

.merged-emergency-highlight:hover {
  border-color: var(--danger);
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(185, 28, 28, 0.08) 100%);
}

.merged-emergency-highlight .merged-phone-icon {
  background-color: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

/* Shared column title for footer panels */
.contact-col-title {
  font-size: 1.4rem;
  color: #ffffff;
  margin-bottom: 24px; /* Uniform bottom margin */
  position: relative;
  display: inline-block;
  padding-bottom: 8px;
}

.contact-col-title::after {
  content: '';
  position: absolute;
  left: 50%; /* Center global accent underlines */
  transform: translateX(-50%);
  bottom: 0;
  width: 32px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.contact-info-panel .contact-col-title::after {
  left: 50%;
  transform: translateX(-50%);
}

/* Phone lines panel */
.contact-phones-panel {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center column content */
}

/* Branch Cards styling inside unified footer */
.merged-branches-panel {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center column content */
}

.merged-branches-title {
  font-size: 1.75rem;
  color: #ffffff;
  position: relative;
  display: inline-block;
}

.merged-branches-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 40px;
  height: 3px;
  background-color: var(--secondary);
  border-radius: 2px;
}

.merged-branches-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Align cards side-by-side */
  gap: 32px; /* Increased gap for vertical separator spacing */
}

.merged-branch-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center; /* Center card elements */
  text-align: center; /* Center text */
  gap: 14px;
  transition: var(--transition);
}

.merged-branch-card:hover {
  transform: translateY(-5px);
}

@media (min-width: 769px) {
  #branch-cordoba {
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    padding-right: 32px !important;
  }
}

.branch-header-tag {
  display: inline-block;
  padding: 4px 10px;
  background-color: rgba(14, 165, 233, 0.15);
  color: var(--secondary);
  border-radius: 4px;
  font-size: 0.75rem;
  font-family: var(--font-headers);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  align-self: center; /* Center badge */
}

.branch-title-text {
  font-size: 1.4rem;
  color: #ffffff;
  margin-top: -5px;
}

.branch-info-row {
  display: flex;
  justify-content: center; /* Center icon and row content */
  gap: 12px;
}

.branch-info-row svg {
  width: 18px;
  height: 18px;
  fill: var(--secondary);
  flex-shrink: 0;
  margin-top: 3px;
}

.branch-info-row p {
  font-size: 0.9rem;
  color: #cbd5e1;
  line-height: 1.4;
}

.btn-branch-map {
  margin-top: auto;
  padding: 12px;
  width: 85%;
  max-width: 220px;
  white-space: nowrap;
  align-self: center; /* Center align */
  border-radius: var(--radius-sm);
  background-color: rgba(255,255,255,0.05);
  color: #ffffff;
  border: 1px solid rgba(255,255,255,0.1);
  font-family: var(--font-headers);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-branch-map:hover {
  background-color: var(--secondary);
  color: #ffffff;
  border-color: var(--secondary);
}

/* Floating Actions Area */
.floating-whatsapp {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--success);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-soft 2s infinite;
}

.floating-whatsapp svg {
  width: 32px;
  height: 32px;
  fill: #ffffff;
}

.floating-whatsapp:hover {
  background-color: var(--success-dark);
  transform: scale(1.1) rotate(10deg);
}

/* Floating Emergency Button */
.floating-emergency {
  position: fixed;
  bottom: 105px; /* Positioned directly above the WhatsApp button */
  right: 30px;
  width: 60px;
  height: 60px;
  background-color: var(--danger);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  z-index: 999;
  transition: var(--transition);
  animation: pulse-danger 1.5s infinite;
}

.floating-emergency svg {
  width: 28px;
  height: 28px;
  fill: #ffffff;
}

.floating-emergency:hover {
  background-color: var(--danger-dark);
  transform: scale(1.1) rotate(-10deg);
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  
  .hero-title {
    font-size: 2.8rem;
  }
  
  .hero-description {
    margin: 0 auto 30px;
  }
  
  .hero-ctas {
    justify-content: center;
  }
  
  .hero-image-wrapper {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .contact-locations-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .detail-section-full:not(.reverse) .detail-text-col {
    padding-left: 40px;
    padding-right: 40px;
  }
  .detail-section-full.reverse .detail-text-col {
    padding-right: 40px;
    padding-left: 40px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    height: 28px;
  }
  .logo-img-white {
    height: 110px;
  }
  .hero-floating-logo {
    width: 117px;
    right: -10px;
    top: 5%;
  }

  .section-padding {
    padding: 70px 0;
  }
  
  .menu-toggle {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 80px;
    left: -100%;
    width: 100%;
    height: calc(100vh - 80px);
    background-color: #ffffff;
    flex-direction: column;
    padding: 40px;
    gap: 20px;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    align-items: center;
    overflow-y: auto; /* Allow scrolling if long list */
  }
  
  .header.scrolled .nav-links {
    top: 65px;
    height: calc(100vh - 65px);
  }
  
  .nav-links.active {
    left: 0;
  }
  
  .nav-cta-btn {
    width: 100%;
    text-align: center;
  }

  /* Stacking the detailed section columns on mobile */
  .detail-section-full {
    flex-direction: column !important;
    min-height: auto;
    height: auto !important;
    width: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    margin-right: 0;
  }
  
  .detail-text-col {
    width: 100% !important;
    padding: 40px 24px !important; /* Slightly adjusted padding for mobile */
    order: 1 !important;
  }
  
  .detail-image-col {
    width: 100% !important;
    height: 280px; /* Adjusted height for mobile fit */
    order: 2 !important;
    clip-path: none !important;
    margin: 0 !important;
  }

  .merged-branches-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 2.2rem;
  }
  
  .hero-ctas {
    flex-direction: column;
  }
  
  .btn {
    width: 100%;
    justify-content: center;
  }

  .detail-title {
    font-size: 1.8rem;
    gap: 10px;
  }

  .detail-title .title-icon {
    width: 24px;
    height: 24px;
  }

  .detail-features {
    grid-template-columns: 1fr;
  }
  
  .floating-whatsapp {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }
  
  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }

  .floating-emergency {
    bottom: 85px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .floating-emergency svg {
    width: 24px;
    height: 24px;
  }
}

.footer-links-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* Sitemap occupies exactly 50% width */
  gap: 60px;
  padding-top: 60px;
  padding-bottom: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 40px;
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally */
  text-align: center; /* Center tagline text */
  gap: 16px;
}

.footer-brand-col .logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand-col .logo-text {
  background: linear-gradient(135deg, #ffffff, #93c5fd);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.footer-brand-tagline {
  color: #94a3b8;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-nav-col, .footer-legal-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer-nav-title {
  font-size: 1.1rem;
  color: #ffffff;
  position: relative;
  padding-bottom: 8px;
}

.footer-nav-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 24px;
  height: 2px;
  background-color: var(--secondary);
  border-radius: 1px;
}

.footer-sitemap-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 columns for sitemap */
  gap: 8px 20px;
}

.footer-sitemap-list a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-sitemap-list a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

.footer-legal-list {
  list-style: none;
  display: flex;
  flex-direction: column; /* Apilados verticalmente (2 renglones) */
  gap: 10px;
}

.footer-legal-list a {
  color: #94a3b8;
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-legal-list a:hover {
  color: var(--secondary);
  padding-left: 4px;
}

@media (max-width: 768px) {
  .footer-links-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.footer-bottom {
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.footer-bottom p {
  color: #64748b;
  font-size: 0.85rem;
  margin: 0;
}

.footer-bottom span {
  color: var(--danger);
}
