/*
 * First Home Care Center — Modern Stylesheet 2026
 * Home Health Agency Design Standards — Ocean Care Palette
 */

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

/* ===== Design Tokens ===== */
:root {
  /* Brand Colors — First Home Care */
  --primary:            #1794d3;
  --primary-dark:       #174972;
  --primary-light:      #4DB5E8;
  --primary-ultra-light:#D0EAF7;

  /* Accent — bright cyan complement */
  --teal:               #0FBAD6;
  --teal-light:         #5DD5F0;
  --green:              #27B589;

  /* Neutrals */
  --dark:               #0E2140;
  --dark-2:             #1A3254;
  --gray-600:           #4A5568;
  --gray-400:           #A0AEC0;
  --gray-200:           #E2E8F0;
  --gray-100:           #F7FAFC;

  /* Backgrounds */
  --bg-white:           #FFFFFF;
  --bg-light:           #F5FAFE;
  --bg-tint:            #E8F4FC;
  --bg-section-alt:     #EEF6FB;

  /* Text */
  --text-primary:       #0E2140;
  --text-secondary:     #3A5068;
  --text-light:         #6B8199;
  --text-white:         #FFFFFF;

  /* Gradients */
  --gradient-primary:   linear-gradient(135deg, #174972 0%, #1794d3 100%);
  --gradient-light:     linear-gradient(135deg, #1794d3 0%, #4DB5E8 100%);
  --gradient-hero:      linear-gradient(135deg, rgba(23,73,114,0.88) 0%, rgba(23,148,211,0.72) 100%);
  --gradient-dark:      linear-gradient(135deg, #0E2140 0%, #174972 100%);

  /* Shadows */
  --shadow-sm:          0 2px 8px rgba(23, 73, 114, 0.08);
  --shadow-md:          0 8px 24px rgba(23, 73, 114, 0.13);
  --shadow-lg:          0 20px 48px rgba(23, 73, 114, 0.18);
  --shadow-xl:          0 32px 64px rgba(23, 73, 114, 0.22);

  /* Layout */
  --border-radius-sm:   8px;
  --border-radius:      16px;
  --border-radius-lg:   24px;
  --border-radius-xl:   32px;
  --border-radius-pill: 100px;

  /* Transitions */
  --transition-fast:    all 0.18s cubic-bezier(0.4, 0, 0.2, 1);
  --transition:         all 0.3s  cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow:    all 0.6s  cubic-bezier(0.4, 0, 0.2, 1);

  /* Typography */
  --font-sans:          'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display:       'Poppins', sans-serif;
}

/* ===== Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: var(--font-sans);
  color: var(--text-primary);
  background-color: var(--bg-light);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

p { color: var(--text-secondary); line-height: 1.75; }
a { text-decoration: none; transition: var(--transition-fast); }
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; }

/* ===== Typography ===== */
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 800;
  color: var(--primary);
  position: relative;
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  letter-spacing: -0.03em;
}

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

.section-title.left-aligned::after { left: 0; transform: none; }

.sub-heading {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary);
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.375rem 1rem;
  background: var(--bg-tint);
  color: var(--teal);
  border-radius: var(--border-radius-pill);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  border: 1px solid rgba(23,148,211,0.25);
}

/* ===== Navigation ===== */
.brand-text-block {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.brand-subtext {
  font-size: 0.65rem;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-sans);
  font-weight: 400;
  letter-spacing: 0.03em;
  line-height: 1;
}


.navbar {
  background: rgba(23, 73, 114, 0.97) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.08), 0 4px 24px rgba(0,0,0,0.18);
  transition: var(--transition);
  padding: 0.875rem 1rem;
  position: sticky;
  top: 0;
  z-index: 1030;
}

.navbar.scrolled {
  padding: 0.5rem 1rem;
  background: rgba(23, 73, 114, 0.99) !important;
  box-shadow: 0 4px 32px rgba(0,0,0,0.25);
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.navbar-logo {
  height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.25));
  transition: var(--transition);
  flex-shrink: 0;
}

.navbar.scrolled .navbar-logo { height: 44px; }

.brand-text {
  color: var(--text-white) !important;
  font-weight: 700;
  font-size: 1.0625rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.navbar-nav {
  align-items: center;
  gap: 2px;
}

.navbar-nav .nav-link {
  color: rgba(255,255,255,0.82) !important;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.875rem !important;
  border-radius: var(--border-radius-pill);
  transition: var(--transition-fast);
  position: relative;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link:focus {
  color: var(--text-white) !important;
  background: rgba(255,255,255,0.13);
}

/* Remove old underline effect */
.navbar-nav .nav-link::after { display: none; }

/* Login / Employee Portal button */
.nav-login-btn {
  background: rgba(255,255,255,0.15) !important;
  border: 1px solid rgba(255,255,255,0.35) !important;
  border-radius: var(--border-radius-pill) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 0.4rem 1rem !important;
  transition: var(--transition) !important;
}

/* Higher specificity to beat .navbar-nav .nav-link:hover !important */
.navbar-nav .nav-link.nav-login-btn:hover,
.navbar-nav .nav-link.nav-login-btn:focus {
  background: white !important;
  color: var(--primary-dark) !important;
  border-color: white !important;
}

.navbar-toggler {
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.375rem 0.6rem;
  border-radius: var(--border-radius-sm);
  outline: none;
}

.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(255,255,255,0.2); }

.navbar-toggler-icon {
  width: 22px;
  height: 22px;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ===== Carousel / Hero ===== */
.carousel { position: relative; margin-top: 0; }

.carousel-inner .carousel-item {
  transition: opacity 0.9s ease;
}

.carousel-inner .carousel-item {
  position: relative;
}

/* Cinematic gradient — rises from bottom, leaves subjects visible */
.carousel-inner .carousel-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(14, 33, 64, 0.94) 0%,
    rgba(14, 33, 64, 0.58) 32%,
    rgba(14, 33, 64, 0.12) 58%,
    transparent 78%
  );
  pointer-events: none;
  z-index: 1;
}

.carousel-inner .carousel-item img {
  width: 100%;
  height: 88vh;
  min-height: 520px;
  object-fit: cover;
  filter: brightness(0.88) saturate(1.1);
}

.carousel-caption {
  /* No box — text floats over the gradient */
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: none;
  box-shadow: none;
  /* Left-aligned, anchored to bottom-left */
  left: 6%;
  right: auto;
  transform: none;
  bottom: 9%;
  max-width: 580px;
  padding: 0;
  text-align: left;
  z-index: 2;
}

.carousel-item.active .carousel-caption {
  animation: captionSlideIn 0.85s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.carousel-caption h2 {
  color: white;
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 16px rgba(0,0,0,0.4);
  line-height: 1.15;
}

.carousel-caption p {
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.875rem, 1.2vw, 1rem);
  line-height: 1.65;
  margin-bottom: 1.375rem;
  text-shadow: 0 1px 8px rgba(0,0,0,0.35);
  max-width: 500px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.75rem 1.875rem;
  background: white;
  color: var(--primary-dark);
  border-radius: var(--border-radius-pill);
  font-weight: 700;
  font-size: 0.9375rem;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  text-decoration: none;
  font-family: var(--font-display);
}

.hero-cta:hover {
  background: var(--gradient-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.carousel-control-prev,
.carousel-control-next {
  width: 52px;
  height: 52px;
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  margin: 0 1.25rem;
  opacity: 1;
  transition: var(--transition-fast);
  border: 1px solid rgba(255,255,255,0.25);
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  background: rgba(255,255,255,0.28);
  transform: translateY(-50%);
}

.carousel-indicators {
  bottom: 20px;
  gap: 6px;
  margin-bottom: 0;
}

.carousel-indicators button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.5);
  transition: var(--transition);
  margin: 0;
}

.carousel-indicators button.active {
  background: white;
  width: 26px;
  border-radius: var(--border-radius-pill);
}

/* ===== Trust Bar ===== */
.trust-bar {
  background: var(--bg-white);
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.trust-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.trust-bar-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 600;
}

.trust-icon {
  width: 34px;
  height: 34px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--gray-200);
}

/* ===== Stats Section ===== */
.stats-section {
  background: var(--gradient-primary);
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 15% 50%, rgba(255,255,255,0.07) 0%, transparent 55%),
    radial-gradient(circle at 85% 50%, rgba(255,255,255,0.05) 0%, transparent 55%);
  pointer-events: none;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}

.stat-number {
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  font-weight: 800;
  color: white;
  font-family: var(--font-display);
  line-height: 1;
  margin-bottom: 0.5rem;
  letter-spacing: -0.04em;
}

.stat-label {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.75);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.stat-sep {
  width: 1px;
  background: rgba(255,255,255,0.2);
  align-self: stretch;
}

/* ===== Services Section ===== */
#servicios {
  padding: 6rem 0;
  background-color: var(--bg-light);
}

.service-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.service-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-ultra-light), #e8f5fa);
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
  color: var(--primary);
  transition: var(--transition);
  flex-shrink: 0;
}

.service-card:hover .service-icon {
  background: var(--gradient-primary);
  color: white;
  transform: scale(1.08) rotate(-5deg);
}

.service-card .card-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.service-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.service-card ul li {
  position: relative;
  padding-left: 1.375rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.service-card ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gradient-primary);
}

/* ===== Requirements Section ===== */
#requisitos {
  padding: 6rem 0;
  background: var(--bg-section-alt);
}

.requirements-section { color: var(--text-primary); }

/* Answer cards — 3-column layout */
.answer-card {
  background: var(--bg-white);
  border-radius: var(--border-radius-lg);
  border: 1px solid var(--gray-200);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.answer-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.answer-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.answer-card:hover::after { transform: scaleX(1); }

/* Featured (middle) card */
.answer-card--featured {
  background: var(--gradient-primary);
  border-color: transparent;
  color: white;
}

.answer-card--featured::after { display: none; }
.answer-card--featured:hover { box-shadow: 0 20px 48px rgba(13,110,142,0.35); }

.answer-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--border-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.answer-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 0;
}

.answer-card--featured .answer-card-title { color: white; }

/* Checklist */
.answer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  flex: 1;
}

.answer-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.answer-list li .bi {
  color: var(--teal);
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.answer-card--featured .answer-list li { color: rgba(255,255,255,0.9); }
.answer-card--featured .answer-list li .bi { color: rgba(255,255,255,0.7); }

/* Footer note inside card */
.answer-card-footer {
  font-size: 0.8125rem;
  color: var(--text-light);
  background: var(--bg-tint);
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1rem;
  line-height: 1.5;
  margin-top: auto;
}

.answer-card-footer .bi { color: var(--primary); }

.answer-card-footer--light {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
}

.answer-card-footer--light .bi { color: rgba(255,255,255,0.8); }

/* Numbered steps inside card 3 */
.answer-steps {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex: 1;
}

.answer-step {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.answer-step-num {
  width: 28px;
  height: 28px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.8125rem;
  font-family: var(--font-display);
  flex-shrink: 0;
  margin-top: 1px;
}

.answer-step strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.2rem;
}

.answer-step p {
  font-size: 0.8375rem;
  color: var(--text-light);
  margin: 0;
  line-height: 1.45;
}

.answer-card-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.25rem;
  background: var(--gradient-primary);
  color: white;
  border-radius: var(--border-radius-pill);
  font-size: 0.875rem;
  font-weight: 700;
  transition: var(--transition);
  text-decoration: none;
  margin-top: auto;
}

.answer-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
}

/* Divider label (insurance & region headings) */
.req-divider-section {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  padding: 2rem;
  border: 1px solid var(--gray-200);
}

.req-divider-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.req-divider-label .bi { font-size: 1rem; }

/* Region card */
.req-region-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  padding: 1.75rem;
  transition: var(--transition);
}

.req-region-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-ultra-light);
  transform: translateY(-3px);
}

.process-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  border: 1px solid var(--gray-200);
  overflow: hidden;
  transition: var(--transition);
}

.process-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-ultra-light);
}

.process-card .card-body { padding: 1.75rem; }

.region-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 0.75rem;
  margin-bottom: 1rem;
  border-bottom: 2px solid var(--primary-ultra-light);
  font-family: var(--font-display);
  display: flex;
  align-items: center;
  gap: 6px;
}

.region-list {
  list-style: none;
  padding: 0;
  columns: 2;
  gap: 0.25rem;
}

.region-list li {
  margin-bottom: 0.3rem;
  break-inside: avoid;
  position: relative;
  padding-left: 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.region-list li::before {
  content: '•';
  color: var(--teal);
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* Insurance cards — CSS grid layout */
.insurance-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
}

.insurance-card {
  background: var(--bg-white);
  border: 1.5px solid var(--gray-200);
  border-radius: var(--border-radius);
  padding: 1.25rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  cursor: default;
}

.insurance-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-ultra-light);
}

.insurance-card img {
  max-height: 60px;
  max-width: 100%;
  object-fit: contain;
  filter: grayscale(20%);
  transition: var(--transition);
}

.insurance-card:hover img { filter: grayscale(0%) saturate(1.2); }

/* ===== About Section ===== */
#sobre-nosotros {
  background: var(--gradient-primary);
  padding: 6rem 0;
  position: relative;
  overflow: hidden;
}

#sobre-nosotros::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 8% 20%,  rgba(255,255,255,0.07) 0%, transparent 50%),
    radial-gradient(circle at 92% 80%, rgba(255,255,255,0.04) 0%, transparent 50%),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.about-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--border-radius-lg);
  transition: var(--transition);
  overflow: hidden;
}

.about-card:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-4px);
  box-shadow: 0 24px 56px rgba(0,0,0,0.22);
}

.about-card-inner { padding: 2.5rem; }

.about-subtitle {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.625rem;
  margin-bottom: 1.25rem;
  color: white;
  letter-spacing: -0.02em;
  position: relative;
  display: inline-block;
}

.about-subtitle::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 40px;
  height: 3px;
  background: rgba(255,255,255,0.5);
  border-radius: var(--border-radius-pill);
  transition: var(--transition);
}

.about-card:hover .about-subtitle::after { width: 80%; }

.about-text {
  font-size: 1.0625rem;
  line-height: 1.78;
  margin-bottom: 1.25rem;
  color: rgba(255,255,255,0.88);
}

.about-text:last-child { margin-bottom: 0; }

.about-quote {
  position: relative;
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0;
  background: rgba(255, 255, 255, 0.09);
  border-radius: var(--border-radius);
  border-left: 3px solid rgba(255,255,255,0.4);
}

.about-quote blockquote {
  font-size: 1.0625rem;
  font-style: italic;
  color: rgba(255,255,255,0.95);
  margin: 0;
  line-height: 1.65;
}

.about-quote::before {
  content: '"';
  position: absolute;
  top: -12px;
  left: 14px;
  font-size: 4rem;
  font-family: Georgia, serif;
  color: rgba(255,255,255,0.18);
  line-height: 1;
}

.section-divider {
  width: 72px;
  height: 3px;
  background: rgba(255,255,255,0.4);
  margin: 0 auto 2rem;
  border-radius: var(--border-radius-pill);
  position: relative;
}

.section-divider::before,
.section-divider::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  top: -2.5px;
}

.section-divider::before { left: -4px; }
.section-divider::after  { right: -4px; }

/* ===== Contact Section ===== */
.contact-card {
  background: var(--bg-white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  height: 100%;
  border: none;
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.18);
}

.contact-card-header {
  background: var(--gradient-primary);
  padding: 1.375rem 1.75rem;
}

.contact-card-header h3 {
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}

.contact-card .card-body { padding: 1.625rem 1.75rem; }

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  margin-bottom: 1.125rem;
  padding-bottom: 1.125rem;
  border-bottom: 1px solid var(--gray-100);
}

.contact-item:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-icon-wrap {
  width: 38px;
  height: 38px;
  background: var(--bg-tint);
  border-radius: var(--border-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1rem;
  flex-shrink: 0;
}

.contact-item i {
  font-size: 1.125rem;
  color: var(--primary);
  min-width: 20px;
  text-align: center;
  margin-top: 2px;
}

.contact-link {
  color: var(--primary);
  font-weight: 600;
  transition: var(--transition-fast);
}

.contact-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.hours-container {
  background: var(--bg-tint);
  border-radius: var(--border-radius-sm);
  padding: 1.125rem 1.25rem;
  margin-top: 1.25rem;
}

.hours-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.875rem;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hours-divider {
  width: 32px;
  height: 2px;
  background: var(--gradient-primary);
  margin: 0.5rem 0 1rem;
  border-radius: var(--border-radius-pill);
}

.hours-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.875rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid rgba(13,110,142,0.07);
}

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

.hours-day {
  font-weight: 600;
  color: var(--text-secondary);
}

.hours-time {
  color: var(--primary);
  font-weight: 600;
}

.contact-info { margin-bottom: 0; }

.contact-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.125rem 1.75rem 1.625rem;
}

.contact-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.625rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--border-radius-pill);
  min-width: 130px;
  transition: var(--transition);
  text-decoration: none;
}

.contact-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.map-card {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0,0,0,0.14);
  height: 100%;
  border: none;
  transition: var(--transition);
}

.map-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
}

/* ===== About Seal Watermark ===== */
.about-seal-watermark {
  position: absolute;
  right: -60px;
  top: 50%;
  transform: translateY(-50%);
  width: 480px;
  height: 480px;
  object-fit: contain;
  opacity: 0.045;
  pointer-events: none;
  user-select: none;
  filter: brightness(10);
}

/* ===== Footer ===== */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 4rem 0 0;
  position: relative;
}

footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}

.footer-logo-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.footer-seal {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(76,170,197,0.35));
  transition: var(--transition);
}

.footer-seal:hover {
  transform: scale(1.06) rotate(3deg);
  filter: drop-shadow(0 6px 18px rgba(76,170,197,0.5));
}

.footer-wordmark {
  /* White version PNG — visible on dark footer background */
  height: 44px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
  filter: brightness(1) drop-shadow(0 1px 3px rgba(0,0,0,0.3));
  transition: var(--transition);
}

.footer-wordmark:hover { opacity: 1; }

.footer-brand h5 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
  padding-bottom: 0;
}

.footer-brand h5::after { display: none; }

.footer-desc {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.55);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.footer-cert-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0.3rem 0.75rem;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--border-radius-pill);
  font-size: 0.72rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.375rem;
  margin-right: 0.375rem;
}

footer h5 {
  color: white;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  position: relative;
  padding-bottom: 0.75rem;
}

footer h5::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-pill);
}

footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

footer ul li { margin-bottom: 0.5rem; }

footer a {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  transition: var(--transition-fast);
}

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

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  margin-bottom: 0.625rem;
}

.footer-contact-item i {
  color: var(--primary-light);
  font-size: 0.9375rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.footer-bottom-bar {
  background: rgba(0,0,0,0.25);
  padding: 1.125rem 0;
  margin-top: 2.5rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.35);
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.35);
  font-size: 0.8rem;
}

.footer-legal-links a:hover { color: rgba(255,255,255,0.65); }

footer hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin: 2rem 0 0;
}

/* ===== WhatsApp FAB ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.625rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: var(--transition);
  text-decoration: none;
}

.whatsapp-fab:hover {
  background: #1DAA51;
  transform: translateY(-4px) scale(1.06);
  box-shadow: 0 8px 32px rgba(37,211,102,0.6);
  color: white;
}

/* ===== Scroll-to-Top ===== */
.scroll-to-top {
  position: fixed;
  bottom: 92px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  color: white;
  border: none;
  border-radius: 50%;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1000;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  line-height: 1;
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== Animation System ===== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity  0.7s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.stagger-1 { transition-delay: 0.08s; }
.animate-on-scroll.stagger-2 { transition-delay: 0.16s; }
.animate-on-scroll.stagger-3 { transition-delay: 0.24s; }
.animate-on-scroll.stagger-4 { transition-delay: 0.32s; }

.fade-in-element {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

.fade-in-on-load {
  animation: fadeInUp 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

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

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

/* ===== Responsive ===== */
@media (max-width: 992px) {
  .navbar-collapse {
    background: rgba(23, 73, 114, 0.98);
    backdrop-filter: blur(20px);
    padding: 0.875rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    margin-top: 0.5rem;
    border: 1px solid rgba(255,255,255,0.08);
  }

  .carousel-caption {
    max-width: 88%;
    padding: 1.75rem;
  }

  .stat-sep { display: none; }
}

@media (max-width: 768px) {
  html { scroll-padding-top: 72px; }

  .navbar-logo { height: 42px; }
  .brand-text  { font-size: 0.9375rem; }
  .brand-subtext { font-size: 0.6rem; }
  .footer-wordmark { height: 36px; }
  .footer-seal { width: 60px; height: 60px; }
  .about-seal-watermark { width: 320px; height: 320px; right: -40px; }

  .carousel-inner .carousel-item img {
    height: 60vh;
    min-height: 360px;
  }

  .carousel-caption {
    bottom: 6%;
    left: 5%;
    max-width: 85%;
  }

  .carousel-caption p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  #servicios, #requisitos { padding: 4rem 0; }
  #sobre-nosotros { padding: 4rem 0; }

  .region-list { columns: 1; }

  .insurance-grid {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
    gap: 0.75rem;
  }

  .trust-bar-inner { gap: 1.25rem; }
  .trust-divider { display: none; }

  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
}

@media (max-width: 576px) {
  .carousel-inner .carousel-item img {
    height: 50vh;
    min-height: 300px;
  }

  .carousel-caption {
    bottom: 4%;
    left: 4%;
    max-width: 90%;
  }

  .carousel-caption h2 {
    font-size: 1.2rem;
    margin-bottom: 0.375rem;
  }

  .hero-cta { display: none; }

  .whatsapp-fab { bottom: 16px; right: 16px; width: 50px; height: 50px; }
  .scroll-to-top { bottom: 78px; right: 16px; width: 38px; height: 38px; font-size: 1rem; }

  .about-card-inner { padding: 1.75rem; }
}
