/* =========================================================
   Florencia de los Santos · Veterinaria Etóloga
   Réplica del sitio original (Wix) con correcciones
   ========================================================= */

:root {
  --blue: #3a54b4;
  --blue-dark: #2d4396;
  --cream: #fef7ed;
  --gray: #edebeb;
  --white: #ffffff;
  --font: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 980px;
  --header-h: 89px;
}

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

* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}

body {
  font-family: var(--font);
  font-weight: 300;
  color: var(--blue);
  background: var(--white);
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open { overflow: hidden; }

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

a { color: inherit; }

ul { padding-left: 25px; }

.container {
  width: 100%;
  max-width: calc(var(--container) + 40px);
  margin: 0 auto;
  padding: 0 20px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Tipografía compartida ---------- */

.section-title {
  font-size: 62px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

/* ---------- Botones ---------- */

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 146px;
  height: 41px;
  padding: 0 18px;
  border: 2px solid var(--blue);
  box-shadow: 3px 2px 0 var(--blue);
  background: var(--white);
  color: var(--blue);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
}

.btn-outline svg { width: 7px; height: 11px; }

.btn-outline:hover,
.btn-outline:focus-visible {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 0 0 var(--blue);
  transform: translate(2px, 1px);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 142px;
  height: 42px;
  padding: 0 24px;
  background: var(--blue);
  color: var(--white);
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.02em;
  text-decoration: none;
  transition: background 0.2s;
}

.btn-primary:hover,
.btn-primary:focus-visible { background: var(--blue-dark); }

/* =========================================================
   HEADER (en el original estaba vacío)
   ========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--cream);
  transition: box-shadow 0.3s;
}

.site-header.is-scrolled { box-shadow: 0 2px 16px rgba(58, 84, 180, 0.12); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--blue);
  color: var(--white);
}

.brand-mark svg { width: 24px; height: 24px; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong { font-size: 18px; font-weight: 700; }

.brand-text small {
  font-size: 11.5px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 100%;
}

.main-nav a {
  position: relative;
  padding: 6px 0;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}

.main-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}

.main-nav .nav-link:hover::after,
.main-nav .nav-link.is-active::after { transform: scaleX(1); }

.has-sub {
  position: relative;
  display: flex;
  align-items: center;
  height: 100%;
}

.has-sub > .nav-link { display: inline-flex; align-items: center; gap: 6px; }
.has-sub > .nav-link svg { width: 10px; height: 10px; transition: transform 0.2s; }
.has-sub:hover > .nav-link svg { transform: rotate(180deg); }

.submenu {
  position: absolute;
  top: 100%;
  left: 50%;
  min-width: 320px;
  padding: 10px 0;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(58, 84, 180, 0.16);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}

.has-sub:hover .submenu,
.has-sub:focus-within .submenu {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.submenu a {
  display: block;
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 400;
}

.submenu a:hover,
.submenu a.is-active { background: var(--cream); }

.main-nav .btn-nav {
  padding: 11px 20px;
  background: var(--blue);
  color: var(--white);
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.2s;
}

.main-nav .btn-nav:hover { background: var(--blue-dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--blue);
  transition: transform 0.25s, opacity 0.25s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* =========================================================
   HOME · HERO
   ========================================================= */

.hero {
  background: var(--cream);
  padding: 150px 0 170px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 440px) 400px;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 0 37px 0 89px;
}

.hero-title {
  font-size: 45px;
  font-weight: 700;
  line-height: 1.15;
}

.hero-title span { display: block; }
.hero-title span + span { margin-top: 18px; }

.hero-lead {
  margin-top: 48px;
  font-size: 31px;
  font-weight: 300;
  line-height: 1.2;
}

.hero-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  object-position: 45% 50%;
  border-radius: 50%;
  box-shadow: 0 0 0 10px var(--white);
}

/* =========================================================
   HOME · SOBRE MÍ
   ========================================================= */

.about { padding: 120px 0 60px; }

.about-grid {
  display: grid;
  grid-template-columns: 360px 512px;
  justify-content: space-between;
  align-items: start;
  padding: 0 44px 0 58px;
}

.about-photo {
  width: 100%;
  aspect-ratio: 1;
  margin-top: 80px;
  object-fit: cover;
  object-position: 50% 8%;
  border-radius: 50%;
}

.about-body .section-title { text-align: left; }

.rich-text { font-size: 14px; line-height: 1.4; }

.rich-text h3 {
  margin-top: 20px;
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
}

.about-body .section-title + .rich-text { margin-top: 6px; }

.about-cta { margin-top: 36px; }

/* =========================================================
   HOME · SERVICIOS
   ========================================================= */

.services { padding: 60px 0 100px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 228px);
  justify-content: center;
  column-gap: 96px;
  row-gap: 96px;
  margin-top: 94px;
}

.service-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.service-card__img {
  display: block;
  width: 163px;
  height: 163px;
  border-radius: 50%;
  overflow: hidden;
}

.service-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

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

.service-card h3 {
  margin-top: 32px;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.33;
}

.service-card h3 a { text-decoration: none; }

.service-card p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 1.5;
}

.service-card .btn-outline { margin-top: auto; }
.service-card p { margin-bottom: 32px; }

/* =========================================================
   HOME · TESTIMONIOS
   ========================================================= */

.testimonials { padding: 100px 0 50px; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 300px);
  justify-content: center;
  gap: 25px;
  margin-top: 110px;
}

.testimonial {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.testimonial h3 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.17;
}

.testimonial blockquote {
  max-width: 230px;
  margin: 44px 0 40px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.04em;
}

.testimonial figcaption {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
}

/* =========================================================
   CONTACTO (bloque común a todas las páginas)
   ========================================================= */

.contact {
  background: var(--blue);
  color: var(--white);
  padding-top: 70px;
}

.contact .section-title { color: var(--white); }

.contact-info {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 60px;
  padding: 0 50px;
  text-align: center;
}

.contact-info h3 { font-size: 15px; font-weight: 600; }

.contact-info p,
.contact-info a {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0.07em;
  text-decoration: none;
}

.contact-info a:hover { text-decoration: underline; }

.contact-bottom {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
  margin-top: 40px;
}

.contact-dog {
  position: absolute;
  left: 30px;
  bottom: 0;
  width: 288px;
  height: 157px;
  object-fit: cover;
  object-position: top;
  pointer-events: none;
}

.social {
  display: flex;
  gap: 25px;
  list-style: none;
  padding: 0;
}

.social a {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  color: var(--white);
  transition: opacity 0.2s, transform 0.2s;
}

.social a:hover { opacity: 0.8; transform: translateY(-2px); }
.social svg { width: 24px; height: 24px; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--cream);
  padding: 12px 0 10px;
  font-size: 12px;
  letter-spacing: 0.03em;
  text-align: center;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 40px;
  list-style: none;
  padding: 0;
}

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

.site-footer p { margin-top: 5px; }

/* ---------- Botón flotante de chat ---------- */

.chat-float {
  position: fixed;
  right: 20px;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 20px 0 12px;
  border-radius: 6px 6px 0 0;
  background: var(--blue);
  color: var(--white);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.18);
  transition: background 0.2s;
}

.chat-float:hover { background: var(--blue-dark); }

.chat-float img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

/* =========================================================
   PÁGINAS DE SERVICIO
   ========================================================= */

.service-page {
  background: var(--gray);
  padding: 50px 0 60px;
}

.service-page h1 {
  max-width: 860px;
  margin: 0 auto;
  font-size: 56px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.service-content {
  max-width: 640px;
  margin: 36px auto 0;
  font-size: 14px;
  line-height: 1.4;
}

.service-content > * + * { margin-top: 20px; }
.service-content > h2 + *,
.service-content > h3 + * { margin-top: 4px; }

.service-content h2 {
  font-size: 30px;
  font-weight: 600;
  line-height: 1.4;
}

.service-content h3 {
  font-size: 16px;
  font-weight: 600;
}

.service-content .lead { font-size: 16px; }
.service-content .price { font-size: 16px; }

.service-content .note {
  font-style: italic;
  text-decoration: underline;
}

.service-actions {
  margin-top: 34px;
  text-align: center;
}

.service-back {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  letter-spacing: 0.04em;
}

/* =========================================================
   ACERCA DE
   ========================================================= */

.about-page { padding: 60px 0 120px; }

.about-row {
  display: grid;
  grid-template-columns: 410px 365px;
  justify-content: space-between;
  align-items: start;
  margin-top: 110px;
  padding: 0 96px 0 64px;
}

.about-row--reverse {
  grid-template-columns: 385px 410px;
  padding: 0 69px 0 70px;
}

.about-row img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.about-row .photo-top { object-position: 50% 8%; }

.about-text h2 {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
}

.about-text h2:not(:first-child) { margin-top: 36px; }

.about-text p,
.about-text li {
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.about-text h2 + p,
.about-text h2 + ul { margin-top: 18px; }

.about-text p + p { margin-top: 18px; }

.about-page .about-final {
  margin-top: 100px;
  text-align: center;
}

/* =========================================================
   PÁGINAS LEGALES
   ========================================================= */

.legal-page { padding: 50px 0 100px; }

.legal-content {
  max-width: 780px;
  margin: 90px auto 0;
  font-size: 14px;
  line-height: 1.8;
  letter-spacing: 0.03em;
}

.legal-content h2 {
  margin: 40px 0 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: 0;
}

.legal-content h2:first-child { margin-top: 0; }
.legal-content p + p,
.legal-content p + ul,
.legal-content ul + p { margin-top: 16px; }

.legal-updated {
  margin-top: 50px;
  font-style: italic;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1060px) {
  .main-nav { gap: 20px; }
  .brand-text strong { font-size: 16px; }
}

@media (max-width: 960px) {
  :root { --header-h: 72px; }

  .nav-toggle { display: flex; }

  .main-nav {
    position: fixed;
    top: var(--header-h);
    right: 0;
    bottom: 0;
    left: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    height: auto;
    padding: 8px 24px 40px;
    overflow-y: auto;
    background: var(--cream);
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.3s, visibility 0.3s;
  }

  .main-nav.is-open { visibility: visible; transform: none; }

  .main-nav .nav-link {
    display: block;
    padding: 16px 0;
    border-bottom: 1px solid rgba(58, 84, 180, 0.15);
    font-size: 20px;
  }

  .main-nav .nav-link::after { display: none; }
  .has-sub { display: block; height: auto; }
  .has-sub > .nav-link svg { display: none; }

  .submenu {
    position: static;
    min-width: 0;
    padding: 6px 0 10px 14px;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    visibility: inherit;
    transform: none;
  }

  .submenu a { padding: 9px 0; font-size: 15px; }
  .submenu a:hover { background: transparent; text-decoration: underline; }

  .main-nav .btn-nav { margin-top: 28px; padding: 15px 20px; text-align: center; font-size: 17px; }

  /* Home */
  .hero { padding: 70px 0 90px; }
  .hero-grid { grid-template-columns: 1fr; gap: 60px; padding: 0 20px; }
  .hero-media { max-width: 520px; margin: 0 auto; width: 100%; }

  .about-grid { grid-template-columns: 1fr; padding: 0 20px; gap: 40px; }
  .about-photo { max-width: 360px; margin: 0 auto; }

  .services-grid { grid-template-columns: repeat(2, 260px); column-gap: 60px; }
  .testimonials-grid { grid-template-columns: 1fr; gap: 80px; margin-top: 60px; }
  .testimonial blockquote { max-width: 420px; margin: 24px 0; }

  .contact-info { grid-template-columns: repeat(2, 1fr); row-gap: 40px; padding: 0 20px; }

  /* Acerca de */
  .about-row,
  .about-row--reverse { grid-template-columns: 1fr; gap: 40px; padding: 0 20px; margin-top: 60px; }
  .about-row img { max-width: 360px; margin: 0 auto; }
  .about-row--reverse .about-text { order: 2; }
}

@media (max-width: 640px) {
  .section-title { font-size: 40px; }

  .brand-mark { width: 40px; height: 40px; }
  .brand-mark svg { width: 21px; height: 21px; }
  .brand-text strong { font-size: 15px; }
  .brand-text small { font-size: 10.5px; }

  .hero-title { font-size: 32px; }
  .hero-title span + span { margin-top: 10px; }
  .hero-lead { margin-top: 20px; font-size: 22px; }

  .about { padding-top: 70px; }
  .rich-text { font-size: 16px; }
  .rich-text h3 { font-size: 26px; line-height: 1.25; margin-top: 26px; margin-bottom: 6px; }

  .services-grid { grid-template-columns: minmax(0, 300px); row-gap: 80px; margin-top: 60px; }
  .service-card__img { width: 190px; height: 190px; }
  .service-card h3 { font-size: 26px; }

  .testimonial h3 { font-size: 28px; }
  .testimonial blockquote { font-size: 16px; }

  .contact-info { grid-template-columns: 1fr; }
  .contact-info p, .contact-info a { font-size: 16px; }

  .contact-bottom { flex-direction: column; justify-content: flex-start; height: 230px; padding-top: 30px; }
  .contact-dog { left: 50%; transform: translateX(-50%); width: 240px; height: 131px; }

  .footer-links { flex-direction: column; gap: 4px; }
  .site-footer { padding-bottom: 72px; font-size: 13px; }

  .chat-float { right: 12px; height: 46px; padding: 0 14px 0 8px; font-size: 14px; }
  .chat-float img { width: 30px; height: 30px; }

  .service-page h1 { font-size: 34px; line-height: 1.25; }
  .service-content { font-size: 16px; }
  .service-content h2 { font-size: 26px; }
  .service-content .lead,
  .service-content .price { font-size: 17px; }

  .about-text p, .about-text li, .legal-content { font-size: 16px; }
  .legal-content { margin-top: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
