/*
  Veterinaria Huellitas del Paraná — demo site styles
  Built by Web Pop as a portfolio example. Vanilla CSS, no framework.
  Palette: warm terracotta + deep teal + soft mint/peach, deliberately
  different from Web Pop's own black/cream/yellow/lime brand.
*/

/* -------------------- Design tokens -------------------- */
:root {
  color-scheme: light;

  /* Base surfaces */
  --cream: #fbf7f1;
  --cream-deep: #f3ecdf;
  --mint-bg: #e4f1ea;
  --peach-bg: #fbe6d8;
  --white: #ffffff;

  /* Text */
  --ink: #1e3d38;
  --ink-soft: #3b5c55;

  /* Brand */
  --teal: #2f6f62;
  --teal-dark: #1f4a44;
  --coral: #c1502f;
  --coral-dark: #9b3f26;
  --coral-soft: #f6c6ae;
  --gold-soft: #f3d8a6;

  /* Elevation & radius language: soft, organic, no sharp corners */
  --radius-blob: 40% 60% 55% 45% / 45% 40% 60% 55%;
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-pill: 999px;
  --shadow-soft: 0 12px 30px -14px rgba(31, 74, 68, 0.35);
  --shadow-softer: 0 8px 20px -12px rgba(31, 74, 68, 0.25);

  --font-heading: "Baloo 2", "Comfortaa", "Segoe UI Rounded", ui-rounded, system-ui, sans-serif;
  --font-body: "Mulish", "Rubik", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1180px;
}

/* -------------------- Reset & base -------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-heading);
  color: var(--teal-dark);
  line-height: 1.2;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
}

h3 {
  font-size: 1.25rem;
}

p {
  margin: 0 0 1em;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--teal);
  background: var(--mint-bg);
  padding: 0.35em 1em;
  border-radius: var(--radius-pill);
  margin-bottom: 1rem;
}

.section {
  padding: 4.5rem 0;
  position: relative;
}

.section--mint {
  background: var(--mint-bg);
}

.section--peach {
  background: var(--peach-bg);
}

.section-head {
  max-width: 640px;
  margin: 0 auto 3rem;
  text-align: center;
}

.section-head p {
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -60px;
  background: var(--teal-dark);
  color: var(--white);
  padding: 0.75em 1.25em;
  border-radius: var(--radius-md);
  z-index: 1000;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 1rem;
}

/* Focus visibility */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--coral-dark);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -------------------- Buttons -------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.9em 1.7em;
  border-radius: var(--radius-pill);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  line-height: 1.1;
}

.btn svg {
  flex-shrink: 0;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--coral);
  color: var(--white);
  box-shadow: var(--shadow-softer);
}

.btn-primary:hover {
  background: var(--coral-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--teal-dark);
  border-color: var(--teal-dark);
}

.btn-secondary:hover {
  background: var(--teal-dark);
  color: var(--white);
}

.btn-block {
  width: 100%;
  justify-content: center;
}

/* -------------------- Header / nav -------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 1rem 0 0;
}

.nav-shell {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: 1.5rem;
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--white);
  border-radius: var(--radius-pill);
  padding: 0.6rem 0.6rem 0.6rem 1.2rem;
  box-shadow: var(--shadow-soft);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--teal-dark);
  font-size: 1.15rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.4em 0.2em;
  border-bottom: 2px solid transparent;
}

.nav-links a:hover {
  border-bottom-color: var(--coral);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-cta .btn-primary {
  padding: 0.7em 1.3em;
  font-size: 0.92rem;
}

.nav-toggle {
  display: none;
  background: var(--mint-bg);
  border: none;
  border-radius: var(--radius-pill);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  color: var(--teal-dark);
}

.mobile-panel {
  display: none;
  background: var(--white);
  border-radius: var(--radius-lg);
  margin-top: 0.6rem;
  padding: 1rem 1.4rem 1.4rem;
  box-shadow: var(--shadow-soft);
}

.mobile-panel.is-open {
  display: block;
}

.mobile-panel ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.mobile-panel a {
  display: block;
  padding: 0.7em 0.2em;
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--cream-deep);
}

@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-cta .btn-primary span.btn-text-full {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
}

@media (min-width: 861px) {
  .mobile-panel {
    display: none !important;
  }
}

/* -------------------- Hero -------------------- */
.hero {
  padding: 3.5rem 0 6rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}

.hero-copy p.lead {
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 46ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}

.hero-notes {
  margin-top: 2rem;
  display: flex;
  gap: 1.6rem;
  flex-wrap: wrap;
}

.hero-note {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--teal-dark);
  font-family: var(--font-heading);
  font-size: 0.95rem;
}

.hero-note svg {
  width: 26px;
  height: 26px;
  color: var(--coral);
  flex-shrink: 0;
}

.hero-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-blob {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--peach-bg), var(--gold-soft));
  border-radius: var(--radius-blob);
}

.hero-art svg {
  position: relative;
  width: 78%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
}

.wave-divider {
  display: block;
  width: 100%;
  height: auto;
  margin-top: -1px;
}

/* -------------------- Services -------------------- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.75rem;
}

.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 1.6rem 1.8rem;
  text-align: center;
  box-shadow: var(--shadow-softer);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.service-icon-wrap {
  width: 84px;
  height: 84px;
  margin: 0 auto 1.2rem;
  border-radius: var(--radius-blob);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-card:nth-child(6n+1) .service-icon-wrap { background: var(--mint-bg); }
.service-card:nth-child(6n+2) .service-icon-wrap { background: var(--peach-bg); }
.service-card:nth-child(6n+3) .service-icon-wrap { background: var(--gold-soft); }
.service-card:nth-child(6n+4) .service-icon-wrap { background: var(--coral-soft); }
.service-card:nth-child(6n+5) .service-icon-wrap { background: var(--mint-bg); }
.service-card:nth-child(6n+6) .service-icon-wrap { background: var(--peach-bg); }

.service-icon-wrap svg {
  width: 42px;
  height: 42px;
  color: var(--teal-dark);
}

.service-card p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-bottom: 0;
}

/* -------------------- About / team -------------------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}

.about-copy p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.about-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius-blob);
  margin-bottom: 1.5rem;
}

.value-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.value-chips li {
  background: var(--white);
  color: var(--teal-dark);
  font-weight: 700;
  font-family: var(--font-heading);
  font-size: 0.88rem;
  padding: 0.55em 1.1em;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-softer);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}

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

.team-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-blob);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.team-card:nth-child(3n+1) .team-avatar { background: var(--mint-bg); }
.team-card:nth-child(3n+2) .team-avatar { background: var(--peach-bg); }
.team-card:nth-child(3n+3) .team-avatar { background: var(--gold-soft); }

.team-avatar svg {
  width: 46%;
  height: 46%;
  color: var(--teal-dark);
}

.team-card h3 {
  margin-bottom: 0.2em;
  font-size: 1.05rem;
}

.team-role {
  color: var(--coral-dark);
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.4em;
  display: block;
}

.team-card p {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

/* -------------------- Gallery / patients -------------------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.4rem;
}

.gallery-item {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1rem;
  text-align: center;
  box-shadow: var(--shadow-softer);
}

.gallery-avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-blob);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.gallery-item:nth-child(5n+1) .gallery-avatar { background: var(--mint-bg); }
.gallery-item:nth-child(5n+2) .gallery-avatar { background: var(--peach-bg); }
.gallery-item:nth-child(5n+3) .gallery-avatar { background: var(--gold-soft); }
.gallery-item:nth-child(5n+4) .gallery-avatar { background: var(--coral-soft); }
.gallery-item:nth-child(5n+5) .gallery-avatar { background: var(--mint-bg); }

.gallery-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item span {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--teal-dark);
  font-size: 0.95rem;
}

.gallery-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin-top: 2rem;
  font-style: italic;
}

/* -------------------- Turnos -------------------- */
.turnos-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2.5rem;
  align-items: stretch;
}

.turnos-card {
  background: var(--teal-dark);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.4rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.turnos-card h3 {
  color: var(--white);
  margin-bottom: 0.2em;
}

.turnos-card p {
  color: #cfe4de;
  margin-bottom: 0;
}

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

.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.2rem;
  box-shadow: var(--shadow-softer);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-weight: 700;
  font-family: var(--font-heading);
  color: var(--teal-dark);
  font-size: 0.9rem;
  margin-bottom: 0.4em;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8em 1em;
  border-radius: var(--radius-md);
  border: 2px solid var(--cream-deep);
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--teal);
  outline: none;
}

.field textarea {
  resize: vertical;
  min-height: 90px;
}

.form-note {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 0.8rem;
}

.form-status {
  margin-top: 1rem;
  font-weight: 700;
  color: var(--teal-dark);
}

/* -------------------- Location -------------------- */
.location-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.map-placeholder {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(150deg, var(--mint-bg), var(--peach-bg));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.map-placeholder svg {
  width: 70px;
  height: 70px;
  color: var(--coral);
}

.hours-list {
  list-style: none;
  padding: 0;
  margin: 1.4rem 0 0;
}

.hours-list li {
  display: flex;
  justify-content: space-between;
  padding: 0.7em 0;
  border-bottom: 1px dashed var(--cream-deep);
  color: var(--ink-soft);
}

.hours-list li strong {
  color: var(--ink);
}

/* -------------------- Footer -------------------- */
.site-footer {
  background: var(--teal-dark);
  color: #cfe4de;
  padding: 3.5rem 0 2rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  color: var(--white);
  font-size: 1.1rem;
  margin-bottom: 0.8rem;
  text-decoration: none;
}

.footer-brand svg {
  width: 34px;
  height: 34px;
}

.footer-col h4 {
  color: var(--white);
  font-size: 1rem;
  margin-bottom: 0.8em;
}

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

.footer-col li {
  margin-bottom: 0.6em;
}

.footer-col a {
  color: #cfe4de;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-bottom a {
  color: var(--gold-soft);
  font-weight: 700;
  text-decoration: none;
}

.footer-bottom a:hover {
  text-decoration: underline;
}

/* -------------------- Floating WhatsApp button -------------------- */
.float-whatsapp {
  position: fixed;
  right: 1.2rem;
  bottom: 1.2rem;
  z-index: 200;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-soft);
  text-decoration: none;
  transition: transform 0.15s ease;
}

.float-whatsapp:hover {
  transform: scale(1.08);
}

.float-whatsapp svg {
  width: 28px;
  height: 28px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------- Responsive -------------------- */
@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .turnos-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    max-width: 320px;
    margin: 0 auto;
  }

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

@media (max-width: 680px) {
  .section {
    padding: 3.2rem 0;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-row {
    grid-template-columns: 1fr;
  }

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

  .turnos-card .btn-primary {
    align-self: stretch;
    justify-content: center;
  }
}

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

  .nav-bar {
    padding: 0.5rem 0.5rem 0.5rem 0.9rem;
  }
}
