/* =============================================
   PELOS Y PATAS — Clínica Veterinaria
   Style.css — Mobile-first, CSS custom properties
   ============================================= */

/* --- FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,700;0,800;1,700&family=DM+Sans:wght@300;400;500;600&display=swap');

/* --- VARIABLES --- */
:root {
  --green:       #3A8FA3;
  --green-light: #5BB8CE;
  --green-pale:  #DFF2F7;
  --amber:       #E8623A;
  --amber-light: #FDE8E1;
  --cream:       #FAFAF8;
  --dark:        #1A2A30;
  --dark-mid:    #243540;
  --gray:        #627480;
  --gray-light:  #EBF3F6;
  --white:       #FFFFFF;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 32px;
  --radius-xl: 48px;

  --shadow-sm: 0 2px 8px rgba(58,143,163,.10);
  --shadow-md: 0 8px 32px rgba(58,143,163,.14);
  --shadow-lg: 0 20px 60px rgba(58,143,163,.18);

  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* --- TYPOGRAPHY SCALE --- */
.h1 { font-family: var(--font-display); font-size: clamp(1.75rem, 4vw, 2.8rem); line-height: 1.12; font-weight: 800; }
.h2 { font-family: var(--font-display); font-size: clamp(1.6rem, 3.5vw, 2.6rem); line-height: 1.2; font-weight: 700; }
.h3 { font-family: var(--font-display); font-size: clamp(1.15rem, 2.2vw, 1.5rem); line-height: 1.3; font-weight: 700; }
.lead { font-size: clamp(.88rem, 1.6vw, 1rem); font-weight: 300; line-height: 1.65; color: var(--gray); }
.label { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--amber); }

/* --- LAYOUT HELPERS --- */
.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 1.25rem; }
.section { padding: 5rem 0; }
.section--alt { background: var(--green-pale); }
.section--dark { background: var(--dark); color: var(--white); }
.text-center { text-align: center; }
.gap-xs { gap: .5rem; }
.gap-sm { gap: 1rem; }
.gap-md { gap: 1.75rem; }
.gap-lg { gap: 2.5rem; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .85rem 1.75rem;
  border-radius: 100px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: .95rem;
  transition: var(--transition);
  white-space: nowrap;
}
.btn--primary {
  background: var(--green);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(58,143,163,.35);
}
.btn--primary:hover { background: var(--dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(58,143,163,.45); }
.btn--whatsapp {
  background: #25D366;
  color: var(--white);
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}
.btn--whatsapp:hover { background: #1da851; transform: translateY(-2px); }
.btn--outline {
  border: 2px solid var(--green);
  color: var(--green);
  background: transparent;
}
.btn--outline:hover { background: var(--green); color: var(--white); }
.btn--ghost {
  color: var(--green);
  font-weight: 500;
  padding-inline: .25rem;
}
.btn--ghost:hover { color: var(--dark); }
.btn--sm { padding: .6rem 1.25rem; font-size: .875rem; }

/* =============================================
   NAVBAR
   ============================================= */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250,250,247,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45,106,79,.08);
  transition: box-shadow var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar__logo {
  display: flex;
  align-items: center;
  gap: .65rem;
}
.navbar__logo-icon {
  width: 40px; height: 40px;
  background: var(--green);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.navbar__logo-text { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; line-height: 1.15; color: var(--dark); }
.navbar__logo-text span { display: block; font-size: .65rem; font-family: var(--font-body); font-weight: 400; letter-spacing: .08em; color: var(--gray); text-transform: uppercase; }
.navbar__links {
  display: none;
  align-items: center;
  gap: 2rem;
}
.navbar__links a { font-weight: 500; font-size: .9rem; color: var(--dark-mid); transition: color var(--transition); }
.navbar__links a:hover { color: var(--green); }
.navbar__actions { display: flex; align-items: center; gap: .75rem; }
.navbar__cta { display: none; }
.navbar__burger {
  width: 42px; height: 42px;
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 5px;
  background: var(--gray-light);
  transition: background var(--transition);
}
.navbar__burger:hover { background: var(--green-pale); }
.navbar__burger span {
  display: block;
  width: 20px; height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: var(--transition);
}
.navbar__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__burger.open span:nth-child(2) { opacity: 0; }
.navbar__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 68px; left: 0; right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-light);
  z-index: 99;
  padding: 1.5rem 1.25rem 2rem;
  flex-direction: column;
  gap: .25rem;
  box-shadow: var(--shadow-lg);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { display: block; padding: .85rem 1rem; border-radius: var(--radius-sm); font-weight: 500; color: var(--dark); transition: background var(--transition); }
.mobile-menu a:hover { background: var(--gray-light); }
.mobile-menu .mobile-menu__cta { margin-top: 1rem; text-align: center; }

/* =============================================
   HERO
   ============================================= */
.hero {
  height: 100svh;
  min-height: 560px;
  padding-top: 68px;
  display: flex;
  align-items: center;
  background: var(--cream);
  overflow: hidden;
  position: relative;
}
/* Hide image on mobile so hero fits above fold */
@media (max-width: 1023px) {
  .hero__visual { display: none; }
  .hero__grid { padding: 0; }
}
/* Decorative blob */
.hero::before {
  content: '';
  position: absolute;
  top: -10%; right: -8%;
  width: min(560px, 80vw);
  height: min(560px, 80vw);
  background: radial-gradient(circle, var(--green-pale) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -5%; left: -6%;
  width: min(340px, 60vw);
  height: min(340px, 60vw);
  background: radial-gradient(circle, var(--amber-light) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: center;
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1rem 0 1rem;
}
.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--green-pale);
  border: 1px solid var(--green-light);
  color: var(--green);
  padding: .4rem 1rem;
  border-radius: 100px;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  margin-bottom: .5rem;
}
.hero__title { margin-bottom: .65rem; }
.hero__title em { font-style: italic; color: var(--green); }
.hero__subtitle { margin-bottom: 1.1rem; max-width: 480px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1.1rem; }
.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
}
.hero__trust-item {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-size: .83rem;
  font-weight: 500;
  color: var(--gray);
}
.hero__trust-item svg { flex-shrink: 0; }
.hero__visual { position: relative; }
.hero__img-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--green-pale);
}
.hero__img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.hero__img-placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem;
  background: linear-gradient(135deg, var(--green-pale), var(--amber-light));
  color: var(--green);
}
.hero__img-placeholder svg { opacity: .5; }
.hero__img-placeholder p { font-size: .8rem; font-weight: 500; opacity: .6; }
/* Floating card on hero image */
.hero__float-card {
  position: absolute;
  bottom: -1.25rem; left: -1.25rem;
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: .75rem;
  min-width: 180px;
}
.hero__float-icon {
  width: 42px; height: 42px;
  background: var(--green-pale);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hero__float-card strong { font-size: .9rem; display: block; line-height: 1.2; }
.hero__float-card span { font-size: .75rem; color: var(--gray); }

/* =============================================
   TRUST BAR
   ============================================= */
.trust-bar {
  background: var(--dark);
  padding: 1.5rem 0;
}
.trust-bar__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2.5rem;
}
.trust-bar__item {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--white);
  font-size: .85rem;
  font-weight: 500;
}
.trust-bar__item svg { color: var(--green-light); flex-shrink: 0; }

/* =============================================
   SERVICES
   ============================================= */
.services__header { margin-bottom: 3rem; }
.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  border: 1px solid var(--gray-light);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.service-card:hover {
  border-color: var(--green-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.service-card__icon {
  width: 52px; height: 52px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--green);
}
.service-card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.service-card__desc { font-size: .9rem; color: var(--gray); line-height: 1.6; flex: 1; }
.service-card__link { color: var(--green); font-size: .85rem; font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; transition: gap var(--transition); }
.service-card:hover .service-card__link { gap: .6rem; }

/* =============================================
   WHY US
   ============================================= */
.why__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin-top: 3rem;
}
.why-card {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.why-card__icon {
  width: 56px; height: 56px;
  border-radius: var(--radius-sm);
  background: var(--white);
  border: 2px solid var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--green);
}
.why-card__title { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; margin-bottom: .35rem; }
.why-card__text { font-size: .9rem; color: var(--gray); }

/* =============================================
   GALLERY
   ============================================= */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  margin-top: 2.5rem;
}
.gallery__item {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--green-pale);
  aspect-ratio: 1;
  position: relative;
}
.gallery__item--wide { grid-column: span 2; aspect-ratio: 16/7; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery__item:hover img { transform: scale(1.04); }
.gallery__placeholder {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: .6rem;
  color: var(--green);
  font-size: .78rem; font-weight: 500; opacity: .6;
}

/* =============================================
   TESTIMONIALS
   ============================================= */
.testimonials { background: var(--green-pale); }
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.testi-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.testi-card__stars { color: var(--amber); font-size: 1rem; margin-bottom: .75rem; letter-spacing: .1em; }
.testi-card__text { font-size: .95rem; line-height: 1.7; color: var(--dark-mid); margin-bottom: 1.25rem; font-style: italic; }
.testi-card__author { display: flex; align-items: center; gap: .75rem; }
.testi-card__avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: var(--green);
  flex-shrink: 0;
}
.testi-card__name { font-weight: 600; font-size: .9rem; }
.testi-card__pet { font-size: .78rem; color: var(--gray); }

/* =============================================
   CTA BANNER
   ============================================= */
.cta-banner {
  background: var(--green);
  border-radius: var(--radius-lg);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--white);
  position: relative;
  overflow: hidden;
  margin: 0 1.25rem;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; right: -10%;
  width: 400px; height: 400px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.cta-banner__label { color: var(--green-pale); margin-bottom: 1rem; }
.cta-banner__title { font-family: var(--font-display); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 800; margin-bottom: .75rem; color: var(--white); }
.cta-banner__sub { color: rgba(255,255,255,.8); max-width: 480px; margin-inline: auto; margin-bottom: 2rem; }
.cta-banner__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; }
.btn--cta-white { background: var(--white); color: var(--green); font-weight: 700; }
.btn--cta-white:hover { background: var(--green-pale); }
.btn--cta-outline { border: 2px solid rgba(255,255,255,.4); color: var(--white); }
.btn--cta-outline:hover { border-color: var(--white); background: rgba(255,255,255,.1); }

/* =============================================
   LOCATION
   ============================================= */
.location__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-top: 3rem;
  align-items: start;
}
.location__info { display: flex; flex-direction: column; gap: 1.5rem; }
.location__item { display: flex; gap: 1rem; align-items: flex-start; }
.location__item-icon {
  width: 44px; height: 44px;
  background: var(--green-pale);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); flex-shrink: 0;
}
.location__item-title { font-weight: 600; font-size: .9rem; margin-bottom: .2rem; }
.location__item-text { font-size: .88rem; color: var(--gray); line-height: 1.6; }
.location__map {
  border-radius: var(--radius-md);
  overflow: hidden;
  height: 280px;
  background: var(--green-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: .88rem;
  flex-direction: column;
  gap: .5rem;
}
.location__map iframe { width: 100%; height: 100%; border: none; }

/* =============================================
   CONTACT FORM
   ============================================= */
.contact { background: var(--dark); color: var(--white); }
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: start;
}
.contact__info p { color: rgba(255,255,255,.7); margin-top: .75rem; }
.contact__info .label { color: var(--green-light); }
.contact__form { display: flex; flex-direction: column; gap: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .83rem; font-weight: 600; color: rgba(255,255,255,.8); }
.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-sm);
  padding: .85rem 1rem;
  color: var(--white);
  font-family: var(--font-body);
  font-size: .9rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,.35); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--green-light); }
.form-group select option { background: var(--dark); color: var(--white); }
.form-group textarea { resize: vertical; min-height: 110px; }
.form-submit { margin-top: .5rem; }

/* =============================================
   FOOTER
   ============================================= */
footer {
  background: var(--dark);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 3rem 0 1.5rem;
  color: rgba(255,255,255,.65);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}
.footer__brand { max-width: 280px; }
.footer__brand p { font-size: .88rem; margin-top: .75rem; line-height: 1.7; }
.footer__col-title { font-family: var(--font-display); font-size: 1rem; color: var(--white); margin-bottom: 1rem; }
.footer__links { display: flex; flex-direction: column; gap: .5rem; }
.footer__links a { font-size: .88rem; transition: color var(--transition); }
.footer__links a:hover { color: var(--green-light); }
.footer__contact-item { display: flex; align-items: center; gap: .6rem; font-size: .88rem; margin-bottom: .6rem; }
.footer__social { display: flex; gap: .75rem; margin-top: 1rem; }
.footer__social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7);
  transition: var(--transition);
}
.footer__social a:hover { background: var(--green); color: var(--white); }
.footer__bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  font-size: .8rem;
  text-align: center;
}

/* =============================================
   WHATSAPP FLOAT BUTTON
   ============================================= */
.whatsapp-float {
  position: fixed;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 200;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  box-shadow: 0 4px 24px rgba(37,211,102,.5);
  transition: var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
.whatsapp-float__pulse {
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  background: #25D366;
  animation: pulse 2.5s ease-out infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.7); opacity: 0; }
}

/* =============================================
   RESPONSIVE — TABLET 640px+
   ============================================= */
@media (min-width: 640px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .why__grid { grid-template-columns: repeat(2, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .gallery__grid { grid-template-columns: repeat(3, 1fr); }
  .gallery__item--wide { grid-column: span 2; aspect-ratio: 16/9; }
}

/* =============================================
   RESPONSIVE — DESKTOP 1024px+
   ============================================= */
@media (min-width: 1024px) {
  .navbar__links { display: flex; }
  .navbar__cta { display: inline-flex; }
  .navbar__burger { display: none; }

  .hero__grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; padding: 1rem 0; }
  .hero__img-wrap { aspect-ratio: 4/3; }
  .hero__float-card { left: -2rem; bottom: -1.5rem; }

  .services__grid { grid-template-columns: repeat(3, 1fr); }
  .why__grid { grid-template-columns: repeat(3, 1fr); }
  .testimonials__grid { grid-template-columns: repeat(3, 1fr); }
  .location__grid { grid-template-columns: 1fr 1fr; }
  .location__map { height: 380px; }
  .contact__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .footer__bottom { flex-direction: row; justify-content: space-between; text-align: left; }
  .cta-banner { padding: 4rem 3rem; margin: 0; }
}

/* =============================================
   SECTION SPACING OVERRIDE FOR HERO TOP
   ============================================= */
.section-cta { padding: 4rem 0; }

/* Scroll reveal animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp .6s ease both; }
.fade-up--d1 { animation-delay: .1s; }
.fade-up--d2 { animation-delay: .2s; }
.fade-up--d3 { animation-delay: .3s; }