/* =============================================
   PET CAMP — Main Stylesheet
   ============================================= */

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

/* ─── CSS Custom Properties ─────────────────── */
:root {
  --green-dark: #1B4332;
  --green-primary: #2D6A4F;
  --green-mid: #40916C;
  --green-light: #74C69D;
  --green-pale: #D8F3DC;
  --orange: #F4A261;
  --orange-dark: #E76F51;
  --white: #FFFFFF;
  --off-white: #F8FDF9;
  --gray-light: #EEF2EF;
  --gray: #8A9A8E;
  --dark: #1A1F1B;
  --text: #2C3E2D;

  --font: 'Poppins', sans-serif;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, .08);
  --shadow-md: 0 6px 24px rgba(0, 0, 0, .12);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, .18);
  --radius: 14px;
  --radius-lg: 24px;
  --transition: .35s cubic-bezier(.4, 0, .2, 1);
  --nav-h: 76px;
}

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

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

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ─── Typography ─────────────────────────────── */
h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  color: var(--gray);
  line-height: 1.75;
}

/* ─── Section Utilities ──────────────────────── */
.section {
  padding: 90px 0;
}

.section--dark {
  background: var(--green-dark);
  color: var(--white);
}

.section--pale {
  background: var(--off-white);
}

.section--gray {
  background: var(--gray-light);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-block;
  background: var(--green-pale);
  color: var(--green-primary);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 14px;
}

.section-label--orange {
  background: rgba(244, 162, 97, .18);
  color: var(--orange-dark);
}

.section-title {
  margin-bottom: 16px;
}

.section-sub {
  max-width: 560px;
  margin: 0 auto 54px;
  text-align: center;
}

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

/* ─── Buttons ────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-primary {
  background: var(--green-primary);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(45, 106, 79, .35);
}

.btn-primary:hover {
  background: var(--green-mid);
  box-shadow: 0 8px 28px rgba(45, 106, 79, .45);
  transform: translateY(-2px);
}

.btn-orange {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(244, 162, 97, .4);
}

.btn-orange:hover {
  background: var(--orange-dark);
  box-shadow: 0 8px 28px rgba(231, 111, 81, .45);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .6);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--green-primary);
}

.btn-whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 18px rgba(37, 211, 102, .4);
  font-size: 1rem;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  box-shadow: 0 8px 28px rgba(37, 211, 102, .5);
  transform: translateY(-2px);
}

/* ─── Navbar ─────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(27, 67, 50, .92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(116, 198, 157, .15);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(27, 67, 50, .98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, .25);
}

.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo img {
  height: 48px;
  width: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.nav-logo-text span:first-child {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -.01em;
}

.nav-logo-text span:last-child {
  font-size: .65rem;
  font-weight: 500;
  color: var(--green-light);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  border-radius: 8px;
  color: rgba(255, 255, 255, .85);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255, 255, 255, .1);
}

/* Dropdown */
.dropdown {
  position: relative;
  padding-bottom: 20px;
  margin-bottom: -20px;
}

.dropdown-menu {
  opacity: 0;
  visibility: hidden;
  position: absolute;
  top: calc(100% - 5px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  min-width: 200px;
  z-index: 100;
  border: 1px solid rgba(0, 0, 0, .06);
  transition: opacity .3s ease, transform .3s ease, visibility .3s;
  transition-delay: .1s;
  /* Retraso al cerrar para que no sea brusco */
}

.dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition-delay: 0s;
  /* Aparece instantáneo al entrar */
}

/* Puente invisible para que el mouse no "pierda" el menú al bajar */
.dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  height: 20px;
  display: block;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  color: var(--text);
  font-size: .9rem;
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-item:hover {
  background: var(--green-pale);
  color: var(--green-primary);
}

.dropdown-item .icon {
  font-size: 1.1rem;
}

.dropdown-arrow {
  font-size: .7rem;
  transition: var(--transition);
}

.dropdown:hover .dropdown-arrow {
  transform: rotate(180deg);
}

.nav-cta {
  margin-left: 10px;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ─── Hero ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--nav-h);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: url('../img/hero.png');
  background-size: cover;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg,
      rgba(27, 67, 50, .85) 0%,
      rgba(27, 67, 50, .55) 50%,
      rgba(27, 67, 50, .3) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--white);
  max-width: 820px;
  padding: 40px 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .25);
  border-radius: 100px;
  padding: 8px 20px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--green-pale);
  margin-bottom: 24px;
  animation: fadeUp .7s ease both;
}

.hero-badge::before {
  content: '🐾';
  font-size: 1rem;
}

.hero h1 {
  color: var(--white);
  font-weight: 900;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .3);
  animation: fadeUp .7s .15s ease both;
}

.hero h1 span {
  color: var(--orange);
}

.hero p {
  color: rgba(255, 255, 255, .85);
  font-size: 1.15rem;
  max-width: 580px;
  margin: 20px auto 36px;
  animation: fadeUp .7s .3s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeUp .7s .45s ease both;
}

.hero-stats {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 48px;
  z-index: 1;
  animation: fadeUp .7s .6s ease both;
}

.hero-stat {
  text-align: center;
  color: var(--white);
}

.hero-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
  line-height: 1;
}

.hero-stat-label {
  font-size: .75rem;
  color: rgba(255, 255, 255, .75);
  margin-top: 4px;
}

/* ─── Services Section ───────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.service-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, .05);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

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

.service-card-img {
  height: 240px;
  overflow: hidden;
}

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

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

.service-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.service-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: var(--green-pale);
  color: var(--green-primary);
}

.service-card-icon--orange {
  background: rgba(244, 162, 97, .15);
  color: var(--orange);
}

.service-card h3 {
  margin-bottom: 10px;
  color: var(--dark);
  font-size: 1.2rem;
}

.service-card p {
  flex: 1;
  margin-bottom: 22px;
}

.service-card .btn {
  align-self: flex-start;
}

/* ─── Why Choose Us ──────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
}

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

.feature-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(116, 198, 157, .15);
  border: 2px solid rgba(116, 198, 157, .3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 18px;
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  background: var(--green-primary);
  border-color: var(--green-primary);
  transform: scale(1.1) rotate(-3deg);
}

.feature-item h3 {
  color: var(--white);
  margin-bottom: 8px;
}

.feature-item p {
  color: rgba(255, 255, 255, .65);
  font-size: .92rem;
}

/* ─── Locations ──────────────────────────────── */
.locations-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(480px, 1fr));
  gap: 32px;
}

.location-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, .06);
  transition: var(--transition);
}

.location-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.location-map {
  height: 280px;
}

.location-map iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-info {
  padding: 28px;
}

.location-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green-pale);
  color: var(--green-primary);
  font-size: .75rem;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.location-info h3 {
  color: var(--dark);
  margin-bottom: 8px;
  font-size: 1.3rem;
}

.location-info p {
  margin-bottom: 20px;
}

.location-detail {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .88rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 500;
}

.location-detail span:first-child {
  font-size: 1rem;
}

.location-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* ─── CTA Banner ─────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, var(--green-primary), var(--green-dark));
  position: relative;
  overflow: hidden;
}

.cta-banner::before {
  content: '🐾';
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12rem;
  opacity: .05;
  user-select: none;
}

.cta-inner {
  text-align: center;
  padding: 80px 24px;
}

.cta-inner h2 {
  color: var(--white);
  margin-bottom: 14px;
}

.cta-inner p {
  color: rgba(255, 255, 255, .75);
  max-width: 500px;
  margin: 0 auto 36px;
  font-size: 1.05rem;
}

.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Footer ─────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255, 255, 255, .7);
  padding: 64px 0 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 320px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo img {
  height: 44px;
  width: 44px;
  border-radius: 50%;
  object-fit: cover;
}

.footer-logo-text span:first-child {
  display: block;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
}

.footer-logo-text span:last-child {
  font-size: .6rem;
  font-weight: 500;
  color: var(--green-light);
  letter-spacing: .06em;
  text-transform: uppercase;
}

.footer-brand p {
  font-size: .9rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: .95rem;
  font-weight: 700;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col ul li a {
  font-size: .88rem;
  color: rgba(255, 255, 255, .6);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.footer-col ul li a:hover {
  color: var(--green-light);
  padding-left: 4px;
}

.footer-col ul li a::before {
  content: '→';
  font-size: .75rem;
}

.footer-divider {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, .08);
  margin-bottom: 24px;
}

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

.footer-bottom p {
  font-size: .82rem;
}

.footer-heart {
  color: #e25c6a;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.footer-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  transition: var(--transition);
  color: rgba(255, 255, 255, .7);
}

.footer-social:hover {
  background: var(--green-primary);
  color: var(--white);
  border-color: var(--green-primary);
  transform: translateY(-3px);
}

/* ─── Page Hero (inner pages) ────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--green-dark), var(--green-primary));
  padding: 130px 0 70px;
  text-align: center;
  color: var(--white);
}

.page-hero h1 {
  color: var(--white);
  margin-bottom: 12px;
}

.page-hero p {
  color: rgba(255, 255, 255, .75);
  max-width: 540px;
  margin: 0 auto;
  font-size: 1.05rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: .82rem;
  color: rgba(255, 255, 255, .6);
  margin-bottom: 20px;
}

.breadcrumb a {
  color: var(--green-light);
}

.breadcrumb a:hover {
  color: var(--white);
}

.breadcrumb-sep {
  color: rgba(255, 255, 255, .3);
}

/* ─── Service Detail Page ────────────────────── */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.detail-grid.reverse {
  direction: rtl;
}

.detail-grid.reverse>* {
  direction: ltr;
}

.detail-img-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  height: 420px;
}

.detail-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.detail-content .section-label {
  display: inline-block;
  margin-bottom: 12px;
}

.detail-content h2 {
  margin-bottom: 16px;
}

.detail-content p {
  margin-bottom: 24px;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 28px;
}

.detail-list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .93rem;
  font-weight: 500;
  color: var(--text);
}

.detail-list-item::before {
  content: '✓';
  width: 22px;
  height: 22px;
  background: var(--green-pale);
  color: var(--green-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ─── Animations ─────────────────────────────── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

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

@keyframes fadeDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Scroll-reveal */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── WhatsApp Float Button ──────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.7rem;
  box-shadow: 0 6px 24px rgba(37, 211, 102, .5);
  transition: var(--transition);
  animation: float 3s ease-in-out infinite;
}

.whatsapp-float:hover {
  transform: scale(1.12);
  box-shadow: 0 10px 32px rgba(37, 211, 102, .65);
}

@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

.whatsapp-float:hover {
  animation: none;
}

/* ─── Responsive ─────────────────────────────── */
@media (max-width: 1024px) {
  .locations-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-grid.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-h: 68px;
  }

  .nav-menu,
  .nav-cta {
    display: none;
  }

  .hamburger {
    display: flex;
  }

  /* Mobile menu */
  .nav-menu.open {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: fixed;
    inset: var(--nav-h) 0 0 0;
    background: var(--green-dark);
    padding: 24px;
    gap: 4px;
    overflow-y: auto;
  }

  .nav-menu.open .nav-cta {
    display: flex;
    margin-left: 0;
    margin-top: 16px;
  }

  .dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, .06);
    border: none;
    border-radius: 10px;
    padding: 6px;
    margin-top: 4px;
  }

  .dropdown-item {
    color: rgba(255, 255, 255, .8);
  }

  .dropdown-item:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--white);
  }

  .hero-stats {
    gap: 24px;
  }

  .hero-stat-num {
    font-size: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid .footer-brand {
    max-width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .locations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    flex-direction: column;
    gap: 16px;
    bottom: 24px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-actions {
    flex-direction: column;
    align-items: center;
  }
}