/* ===========================================================
   Clínica Veterinaria Asís · Murcia — Pilio Studio
   Paleta cálida y de confianza para nicho veterinario.
   =========================================================== */

:root {
  --teal: #1f6f6b;
  --teal-dark: #16504d;
  --teal-light: #3a938e;
  --sage: #e9f1ee;
  --cream: #f7f4ee;
  --cream-2: #fbf9f5;
  --ink: #1c211f;
  --ink-2: #4d5752;
  --ink-3: #8a948f;
  --gold: #c79a52;
  --white: #ffffff;
  --hair: rgba(28, 33, 31, 0.09);
  --hair-2: rgba(28, 33, 31, 0.14);
  --shadow-sm: 0 1px 2px rgba(20, 40, 38, 0.05), 0 2px 8px rgba(20, 40, 38, 0.04);
  --shadow-md: 0 10px 30px rgba(20, 40, 38, 0.10), 0 2px 8px rgba(20, 40, 38, 0.05);
  --shadow-lg: 0 24px 60px rgba(20, 40, 38, 0.16);
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--cream-2);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
em { font-style: italic; }

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- Reveal base (animado por main.js / GSAP) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ===========================================================
   NAV
   =========================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background 0.4s var(--ease), box-shadow 0.4s var(--ease), padding 0.4s var(--ease);
  padding: 22px 0;
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav:not(.scrolled) .nav-logo {
  color: var(--white);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.nav:not(.scrolled) .nav-logo sup { color: #f3e2c2; }
.nav:not(.scrolled) .nav-links a {
  color: rgba(255, 255, 255, 0.88);
}
.nav:not(.scrolled) .nav-links a:hover { color: var(--white); }
.nav:not(.scrolled) .nav-links a::after { background: var(--white); }
.nav:not(.scrolled) .nav-burger span { background: var(--white); }

.nav.scrolled {
  background: rgba(247, 244, 238, 0.92);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  box-shadow: 0 1px 0 var(--hair);
  padding: 14px 0;
}
.nav-logo {
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--teal-dark);
}
.nav-logo sup { font-size: 0.45em; color: var(--gold); font-weight: 500; }
.nav-links {
  display: flex;
  gap: 34px;
  align-items: center;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-2);
  position: relative;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -6px;
  width: 100%; height: 1.5px;
  background: var(--teal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.nav-links a:hover { color: var(--teal-dark); }
.nav-links a:hover::after { transform: scaleX(1); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(31, 111, 107, 0.28);
}
.btn-primary:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(31, 111, 107, 0.34);
}
.btn-nav {
  background: var(--teal);
  color: var(--white);
  padding: 11px 22px;
}
.btn-nav:hover { background: var(--teal-dark); transform: translateY(-1px); }
.btn-hero-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(4px);
}
.btn-hero-ghost:hover { background: rgba(255, 255, 255, 0.22); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal);
}
.btn-outline:hover { background: var(--teal); color: var(--white); transform: translateY(-2px); }
.btn-large { padding: 16px 32px; font-size: 15.5px; }
.btn-contact-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-contact-outline:hover { background: rgba(255, 255, 255, 0.14); border-color: var(--white); }

/* ---------- Burger + nav móvil ---------- */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-burger span {
  width: 26px; height: 2px;
  background: var(--teal-dark);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  position: fixed;
  top: 0; right: 0;
  width: min(82vw, 340px);
  height: 100vh;
  background: var(--cream);
  box-shadow: var(--shadow-lg);
  padding: 110px 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease);
  z-index: 90;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile a {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--hair);
}
.btn-mobile-cta {
  margin-top: 22px;
  font-family: var(--sans) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  color: var(--white) !important;
  background: var(--teal);
  border-radius: 999px;
  text-align: center;
  padding: 14px 20px !important;
  border-bottom: none !important;
}

/* ===========================================================
   HERO
   =========================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg,
    rgba(10, 34, 32, 0.92) 0%,
    rgba(10, 34, 32, 0.72) 50%,
    rgba(10, 34, 32, 0.32) 100%);
}
.hero-container { position: relative; z-index: 2; }
.hero-text { max-width: 660px; }
.hero-kicker {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  margin-bottom: 22px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}
.hero-title {
  font-family: var(--serif);
  font-size: clamp(46px, 7vw, 86px);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.01em;
  color: var(--white);
  margin-bottom: 22px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45), 0 1px 6px rgba(0, 0, 0, 0.3);
}
.hero-title em { color: #f3e2c2; font-weight: 500; }
.hero-sub {
  font-size: clamp(17px, 2vw, 20px);
  color: rgba(255, 255, 255, 0.96);
  max-width: 480px;
  margin-bottom: 36px;
  font-weight: 400;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}
.hero-trust {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 15px;
}
.hero-stars { color: var(--gold); letter-spacing: 2px; font-size: 17px; }
.hero-rating-num { font-weight: 600; }
.hero-rating-label { color: rgba(255, 255, 255, 0.72); }
.hero-scroll-hint {
  position: absolute;
  left: 50%; bottom: 30px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.7);
  font-size: 22px;
  z-index: 2;
  animation: bounce 2.2s var(--ease) infinite;
}
@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===========================================================
   SECTION genérica
   =========================================================== */
.section { padding: clamp(72px, 11vw, 130px) 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 500;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-title em { color: var(--teal); }

/* ---------- Servicios ---------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 38px 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: var(--sage);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  transition: background 0.4s var(--ease), color 0.4s var(--ease);
}
.service-icon svg { width: 34px; height: 34px; }
.service-card:hover .service-icon { background: var(--teal); color: var(--white); }
.service-card h3 {
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 10px;
}
.service-card p { font-size: 15px; color: var(--ink-2); }

/* ---------- Marquee ---------- */
.marquee-wrap {
  background: var(--teal-dark);
  color: var(--cream);
  padding: 26px 0;
  overflow: hidden;
  white-space: nowrap;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
  font-weight: 500;
  animation: marquee 32s linear infinite;
}
.marquee-track span { opacity: 0.92; }
.marquee-track .dot-sep { color: var(--gold); opacity: 0.7; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Nosotros ---------- */
.section-about { background: var(--cream); }
.about-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.about-img-frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 4 / 5;
}
.about-img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.about-img-frame:hover .about-img { transform: scale(1.05); }
.about-title { margin-bottom: 26px; }
.about-body { font-size: 16.5px; color: var(--ink-2); margin-bottom: 18px; max-width: 520px; }
.about-stats {
  display: flex;
  gap: 48px;
  margin: 34px 0;
}
.about-stat { display: flex; flex-direction: column; }
.stat-num {
  font-family: var(--serif);
  font-size: 52px;
  font-weight: 600;
  line-height: 1;
  color: var(--teal);
}
.stat-label {
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 8px;
}

/* ---------- Photo break ---------- */
.photo-break {
  position: relative;
  height: clamp(320px, 50vw, 520px);
  overflow: hidden;
}
.photo-break-img {
  width: 100%; height: 100%;
  object-fit: cover;
}
.photo-break-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(16, 50, 48, 0.55), rgba(16, 50, 48, 0.25));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}
.photo-break-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 50px);
  font-style: italic;
  font-weight: 500;
  color: var(--white);
  text-align: center;
  max-width: 800px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* ---------- Reseñas ---------- */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 22px 34px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 48px;
}
.rating-number-big {
  font-family: var(--serif);
  font-size: 58px;
  font-weight: 600;
  line-height: 1;
  color: var(--teal);
}
.rating-detail { display: flex; flex-direction: column; gap: 6px; }
.stars-row { font-size: 22px; letter-spacing: 2px; }
.stars-colored { color: var(--gold); }
.stars-half { color: var(--gold); opacity: 0.45; }
.rating-label-text { font-size: 14px; color: var(--ink-2); }
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial {
  background: var(--white);
  border: 1px solid var(--hair);
  border-radius: 20px;
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial-stars { color: var(--gold); letter-spacing: 2px; font-size: 16px; }
.testimonial-text {
  font-size: 16px;
  color: var(--ink-2);
  font-style: italic;
  flex: 1;
}
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.testimonial-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  flex-shrink: 0;
}
.testimonial-info { display: flex; flex-direction: column; line-height: 1.4; }
.testimonial-info strong { font-size: 15px; color: var(--ink); }
.testimonial-info span { font-size: 13px; color: var(--ink-3); }

/* ---------- ¿Por qué Asís? (features) ---------- */
.section-features {
  padding: clamp(72px, 11vw, 130px) 0;
  background: var(--cream);
}
.features-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
  align-items: center;
}
.features-img-frame {
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  aspect-ratio: 5 / 4;
}
.features-img-el { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.features-img-frame:hover .features-img-el { transform: scale(1.05); }
.features-title { margin-bottom: 28px; }
.features-list { list-style: none; margin-bottom: 32px; }
.features-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 17px;
  color: var(--ink);
  padding: 13px 0;
  border-bottom: 1px solid var(--hair);
}
.feat-check {
  width: 26px; height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--sage);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
}

/* ---------- Contacto ---------- */
.section-contact {
  background: var(--teal-dark);
  color: var(--white);
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.contact-kicker { color: #f3e2c2; }
.contact-title { color: var(--white); margin-bottom: 22px; }
.contact-title em { color: #f3e2c2; }
.contact-desc {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.82);
  max-width: 440px;
  font-weight: 300;
}
.contact-info {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 22px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.contact-item { display: flex; align-items: center; gap: 18px; }
.contact-icon {
  width: 50px; height: 50px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.1);
  color: #f3e2c2;
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-icon svg { width: 24px; height: 24px; }
.contact-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}
.contact-value {
  font-size: 19px;
  font-weight: 500;
  color: var(--white);
}
.contact-addr { font-size: 16px; font-weight: 400; line-height: 1.5; }
.contact-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 70px 0 34px;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.footer-logo {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
  color: var(--white);
  display: block;
  margin-bottom: 14px;
}
.footer-brand p { font-size: 14.5px; margin-bottom: 6px; }
.footer-brand a { color: #f3e2c2; font-weight: 500; }
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  font-size: 14.5px;
  transition: color 0.25s var(--ease);
}
.footer-links a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}
.footer-pilio a { color: rgba(255, 255, 255, 0.75); }
.footer-pilio a:hover { color: #f3e2c2; }

/* ===========================================================
   RESPONSIVE
   =========================================================== */
@media (max-width: 980px) {
  .services-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .about-layout, .features-layout, .contact-layout { grid-template-columns: 1fr; gap: 44px; }
  .about-img-col, .features-img { order: -1; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .btn-nav { display: none; }
  .nav-burger { display: flex; }
  .services-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .about-stats { gap: 32px; }
  .hero-actions .btn { flex: 1; }
  .footer-inner { flex-direction: column; gap: 28px; }
  .footer-bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Accesibilidad: reduce motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track, .hero-scroll-hint { animation: none; }
  html { scroll-behavior: auto; }
}
