/* ============================================================
   Place for Pet's — Clínica Veterinaria Cd. Juárez
   Mobile-first. Base 375px, breakpoint principal 768px+.
   ============================================================ */

:root {
    /* Brand colors — usar siempre estos */
    --color-teal: #00A3AD;       /* color principal real de la marca */
    --color-teal-dark: #00838C;  /* variante oscura para texto y hovers */
    --color-accent: #B8CB1C;     /* verde acento — usar con moderación, como detalle */
    --color-dark: #1A1A1A;
    --color-deep: #1A1A1A;       /* negro de marca para fondos oscuros — contrasta con el teal del hero */
    --color-deep-soft: #262626;
    --color-white: #FFFFFF;
    --color-surface: #F5F5F5;
    --color-cream: #FBF6EC;      /* cálido, para alternar con el surface neutro */
    --color-ink-soft: rgba(255,255,255,0.7);
    --color-line: rgba(26,26,26,0.1);
    --color-line-light: rgba(255,255,255,0.16);

    /* Type */
    --font-display: 'Anton', 'Arial Narrow', sans-serif;
    --font-body: 'Hanken Grotesk', -apple-system, sans-serif;

    /* Spacing scale (mobile-first, fluid) */
    --space-section: clamp(64px, 12vw, 128px);
    --space-gap: clamp(20px, 5vw, 40px);
    --radius: 14px;

    /* Layout */
    --wrap-max: 1440px;
    --wrap-pad: 20px;
}

@media (min-width: 768px) {
    :root { --wrap-pad: 48px; }
}
@media (min-width: 1440px) {
    :root { --wrap-pad: 64px; }
}

/* ── Reset ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--color-white);
    color: var(--color-dark);
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 400; /* Anton es de un solo peso (negro por naturaleza) */
    line-height: 1.04;
    letter-spacing: 0.005em;
    text-transform: uppercase;
}

.skip-link {
    position: absolute; left: -999px; top: 0;
    background: var(--color-dark); color: var(--color-white);
    padding: 12px 20px; z-index: 2000;
}
.skip-link:focus { left: 12px; top: 12px; }

.wrap {
    max-width: var(--wrap-max);
    margin: 0 auto;
    padding-left: var(--wrap-pad);
    padding-right: var(--wrap-pad);
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.01em;
    padding: 16px 28px;
    border-radius: 999px;
    border: 2px solid transparent;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
    cursor: pointer;
}
.btn--accent {
    background: var(--color-accent);
    color: var(--color-dark);
}
.btn--accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px -8px rgba(184,203,28,0.5);
}
.btn--ghost-light {
    background: transparent;
    color: var(--color-white);
    border-color: var(--color-line-light);
}
.btn--ghost-light:hover {
    border-color: var(--color-white);
    background: rgba(255,255,255,0.08);
}
.btn--block { width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header { position: sticky; top: 0; z-index: 900; }

.bar--info {
    background: var(--color-deep);
    color: var(--color-ink-soft);
    font-size: 0.78rem;
}
.bar--info .wrap {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    padding-top: 9px; padding-bottom: 9px;
    overflow: hidden;
}
.bar--info span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar__phone { color: var(--color-accent); font-weight: 600; white-space: nowrap; }

.navbar {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--color-white);
    padding-top: 14px; padding-bottom: 14px;
    border-bottom: 1px solid var(--color-line);
}
.navbar__brand {
    display: flex; align-items: center; gap: 12px;
    color: var(--color-dark);
}
.navbar__brand img { border-radius: 10px; }
.navbar__brand-tag {
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    line-height: 1.2;
    letter-spacing: 0.01em;
    color: var(--color-teal-dark);
    max-width: 150px;
}

.navbar__toggle {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px;
    background: transparent; border: none; cursor: pointer;
    padding: 0;
}
.navbar__toggle span {
    display: block; width: 24px; height: 2px;
    background: var(--color-dark);
    border-radius: 2px;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.navbar__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.navbar__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.navbar__menu {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-line);
    display: flex; flex-direction: column;
    padding: 8px var(--wrap-pad) 20px;
    gap: 4px;
    transform-origin: top;
    transform: scaleY(0);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.3s;
}
.navbar__menu.is-open {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
}
.navbar__menu li a {
    display: block;
    padding: 12px 4px;
    font-weight: 600;
    font-size: 1rem;
    border-bottom: 1px solid var(--color-line);
}
.navbar__menu li:last-child a { border-bottom: none; }
.navbar__cta {
    display: inline-flex !important; align-items: center; gap: 8px;
    background: var(--color-teal);
    color: var(--color-white) !important;
    border-radius: 999px;
    justify-content: center;
    margin-top: 6px;
    padding: 14px 20px !important;
    border-bottom: none !important;
}

@media (min-width: 768px) {
    .bar--info span:first-child { white-space: normal; }
    .navbar__toggle { display: none; }
    .navbar__menu {
        position: static;
        flex-direction: row;
        align-items: center;
        gap: 32px;
        padding: 0;
        background: transparent;
        border: none;
        transform: none;
        opacity: 1;
        visibility: visible;
    }
    .navbar__menu li a {
        border: none;
        padding: 8px 2px;
        font-size: 0.92rem;
        position: relative;
    }
    .navbar__menu li a:not(.navbar__cta)::after {
        content: '';
        position: absolute; left: 0; bottom: 2px;
        width: 0; height: 2px;
        background: var(--color-teal);
        transition: width 0.3s ease;
    }
    .navbar__menu li a:not(.navbar__cta):hover::after { width: 100%; }
    .navbar__cta { margin-top: 0; padding: 11px 24px !important; }
}

/* ============================================================
   HERO — dark, big bold typography
   ============================================================ */
.hero {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.09) 1px, transparent 0) 0 0 / 26px 26px,
        linear-gradient(155deg, var(--color-teal) 0%, var(--color-teal-dark) 100%);
    color: var(--color-white);
    padding-top: clamp(28px, 6vw, 52px);
    padding-bottom: clamp(56px, 12vw, 104px);
    position: relative;
    overflow: hidden;
}
.hero::after {
    content: '';
    position: absolute;
    right: -18%; top: -28%;
    width: 70vw; height: 70vw;
    max-width: 620px; max-height: 620px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.16) 0%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}
.hero__wrap { position: relative; z-index: 1; max-width: 920px; }
.hero__eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    color: var(--color-accent);
    margin-bottom: 22px;
}
.hero__title {
    font-size: clamp(2.9rem, 11vw, 5.6rem);
    line-height: 0.95;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
}
.hero__title-accent {
    color: var(--color-white);
    background: linear-gradient(transparent 72%, rgba(184,203,28,0.5) 0);
    padding: 0 0.04em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
}
.hero__lead {
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    color: rgba(255,255,255,0.92);
    max-width: 540px;
    margin-bottom: 36px;
    font-weight: 300;
    line-height: 1.8;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* ============================================================
   TRUST BAR — oscuro, prominente (contrasta con el hero teal)
   ============================================================ */
.trust {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0) 0 0 / 24px 24px,
        var(--color-deep);
    color: var(--color-white);
}
.trust__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-top: clamp(36px, 7vw, 56px);
    padding-bottom: clamp(36px, 7vw, 56px);
}
.trust__item {
    display: flex; flex-direction: column; gap: 6px;
    padding: 18px 0;
    border-bottom: 1px solid rgba(255,255,255,0.14);
}
.trust__item:last-child { border-bottom: none; }
.trust__num {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 2.6rem);
    font-weight: 400;
    line-height: 1;
    color: var(--color-white);
}
.trust__stars { color: var(--color-accent); letter-spacing: 0.1em; font-size: 0.95rem; }
.trust__label { font-size: 0.88rem; color: var(--color-ink-soft); font-weight: 600; }
.trust__item--rating .trust__num { color: var(--color-teal); }

@media (min-width: 768px) {
    .trust__grid {
        grid-template-columns: repeat(4, 1fr);
        gap: clamp(24px, 4vw, 48px);
    }
    .trust__item {
        border-bottom: none;
        border-left: 1px solid rgba(255,255,255,0.14);
        padding: 0 0 0 clamp(18px, 2vw, 28px);
    }
    .trust__item:first-child { border-left: none; padding-left: 0; }
}

/* ============================================================
   MARQUEE — banda de servicios en movimiento
   ============================================================ */
.marquee {
    background: var(--color-accent);
    color: var(--color-dark);
    overflow: hidden;
    padding: 14px 0;
    border-top: 3px solid var(--color-dark);
    border-bottom: 3px solid var(--color-dark);
}
.marquee__track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 32s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group {
    display: flex;
    align-items: center;
    gap: 26px;
    padding-right: 26px;
    font-family: var(--font-display);
    text-transform: uppercase;
    font-size: clamp(1rem, 2.6vw, 1.3rem);
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.marquee__group i {
    font-size: 0.8em;
    color: var(--color-teal-dark);
}
@keyframes marquee-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* ============================================================
   SECTION HEAD (shared)
   ============================================================ */
.section-head { max-width: 680px; margin-bottom: clamp(36px, 7vw, 64px); }
.section-head__eyebrow {
    font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--color-teal-dark);
    margin-bottom: 14px;
}
.section-head__eyebrow--light { color: var(--color-teal); }
.section-head__title {
    font-size: clamp(1.75rem, 5.4vw, 2.5rem);
    font-weight: 600;
    color: inherit;
}

/* ============================================================
   SERVICIOS — light surface, editorial cards with hierarchy
   ============================================================ */
.services {
    background:
        radial-gradient(circle at 1px 1px, rgba(26,26,26,0.045) 1px, transparent 0) 0 0 / 24px 24px,
        var(--color-surface);
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}
.services__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}
.svc-card {
    position: relative;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    padding: clamp(24px, 5vw, 36px);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.svc-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    height: 4px; width: 0;
    background: var(--color-teal);
    transition: width 0.4s cubic-bezier(.25,.4,.25,1);
}
.svc-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 50px -20px rgba(26,26,26,0.18);
    border-color: rgba(0,163,173,0.45);
}
.svc-card:hover::before { width: 100%; }
.svc-card--dark::before { background: var(--color-accent); }
.svc-card__index {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--color-teal-dark);
    margin-bottom: 14px;
}
.svc-card__title {
    font-size: clamp(1.15rem, 3.4vw, 1.35rem);
    font-weight: 600;
    margin-bottom: 10px;
}
.svc-card__text {
    font-size: 0.92rem;
    color: rgba(26,26,26,0.66);
    font-weight: 400;
    line-height: 1.75;
}

/* Featured cards — visual hierarchy */
.svc-card--feature {
    grid-column: span 1;
}
.svc-card--feature .svc-card__title { font-size: clamp(1.4rem, 4.4vw, 1.85rem); }
.svc-card--feature .svc-card__text { font-size: 1rem; }
.svc-card--dark {
    background: var(--color-deep);
    color: var(--color-white);
    border-color: var(--color-deep);
}
.svc-card--dark .svc-card__index { color: var(--color-accent); }
.svc-card--dark .svc-card__text { color: var(--color-ink-soft); }
.svc-card--dark:hover { border-color: var(--color-teal); }

@media (min-width: 640px) {
    .services__grid { grid-template-columns: repeat(2, 1fr); }
    .svc-card--feature { grid-column: span 2; }
}
@media (min-width: 1024px) {
    .services__grid { grid-template-columns: repeat(3, 1fr); }
    .svc-card--feature { grid-column: span 1; }
    .svc-card--feature:first-child { grid-row: span 2; }
    .svc-card--feature:first-child .svc-card__title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
}

/* ============================================================
   POR QUÉ NOSOTROS — dark, alternate rhythm
   ============================================================ */
.why {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.06) 1px, transparent 0) 0 0 / 24px 24px,
        var(--color-deep);
    color: var(--color-white);
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
    position: relative;
    overflow: hidden;
}
.why__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(36px, 7vw, 64px);
}
.why__title {
    font-size: clamp(1.75rem, 5.4vw, 2.5rem);
    font-weight: 600;
    margin-bottom: 18px;
}
.why__lead {
    color: var(--color-ink-soft);
    font-weight: 300;
    font-size: 1.02rem;
    line-height: 1.85;
    max-width: 480px;
}
.why__list { display: flex; flex-direction: column; gap: 28px; }
.why__item { display: flex; gap: 18px; align-items: flex-start; }
.why__icon {
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: rgba(0,163,173,0.18);
    color: var(--color-teal);
    font-size: 1.1rem;
    transition: transform 0.3s ease, background 0.3s ease;
}
.why__item:hover .why__icon {
    transform: scale(1.1) rotate(-6deg);
    background: rgba(0,163,173,0.3);
}
.why__item h3 { font-size: 1.08rem; font-weight: 600; margin-bottom: 6px; }
.why__item p { color: var(--color-ink-soft); font-size: 0.9rem; font-weight: 300; line-height: 1.7; }

@media (min-width: 900px) {
    .why__grid { grid-template-columns: 1fr 1fr; align-items: start; }
}

/* ============================================================
   HORARIOS Y CONTACTO — light
   ============================================================ */
.contact {
    background: var(--color-white);
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}
.contact__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(36px, 7vw, 64px);
}
.schedule { display: flex; flex-direction: column; }
.schedule__row {
    display: flex; align-items: baseline; justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--color-line);
    gap: 12px;
}
.schedule__row dt {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.02rem;
}
.schedule__row dd { color: rgba(26,26,26,0.6); font-size: 0.92rem; white-space: nowrap; }
.schedule__row.is-today {
    border-bottom-color: var(--color-teal);
}
.schedule__row.is-today dt,
.schedule__row.is-today dd { color: var(--color-teal-dark); }

.contact__card {
    background: var(--color-surface);
    border-radius: var(--radius);
    padding: clamp(28px, 6vw, 40px);
}
.contact__card h3 {
    font-size: 1.3rem; font-weight: 600; margin-bottom: 22px;
}
.contact__list { display: flex; flex-direction: column; gap: 18px; margin-bottom: 28px; }
.contact__list li { display: flex; gap: 14px; align-items: flex-start; font-size: 0.92rem; }
.contact__list i { color: var(--color-teal-dark); margin-top: 3px; width: 18px; flex-shrink: 0; text-align: center; }
.contact__list a:hover { color: var(--color-teal-dark); }

@media (min-width: 900px) {
    .contact__grid { grid-template-columns: 1.1fr 0.9fr; }
}

/* ============================================================
   TESTIMONIOS — carrusel deslizable (texto va dentro de la imagen)
   ============================================================ */
.testimonials {
    background: var(--color-surface);
    padding-top: var(--space-section);
    padding-bottom: var(--space-section);
}
.testimonials__lead {
    margin-top: 14px;
    font-size: 1rem;
    color: rgba(26,26,26,0.66);
    line-height: 1.7;
    text-transform: none;
}
.testi-carousel { position: relative; }
.testi-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    padding: 6px 2px 20px;
    scrollbar-width: none;
}
.testi-track::-webkit-scrollbar { display: none; }
.testi-card {
    flex: 0 0 auto;
    width: min(82vw, 380px);
    scroll-snap-align: center;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-white);
    box-shadow: 0 22px 50px -26px rgba(26,26,26,0.32);
    transition: transform 0.3s ease;
}
.testi-card img { width: 100%; height: auto; display: block; }

.testi-nav {
    display: none;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: var(--color-white);
    border: 1px solid var(--color-line);
    box-shadow: 0 12px 30px -12px rgba(26,26,26,0.4);
    color: var(--color-teal-dark);
    font-size: 1.1rem;
    cursor: pointer;
    align-items: center; justify-content: center;
    transition: background 0.25s ease, color 0.25s ease, transform 0.2s ease;
}
.testi-nav:hover { background: var(--color-teal); color: var(--color-white); }
.testi-nav:active { transform: translateY(-50%) scale(0.94); }
.testi-nav--prev { left: -8px; }
.testi-nav--next { right: -8px; }

@media (min-width: 768px) {
    .testi-card { width: 360px; }
    .testi-nav { display: flex; }
    .testi-track { padding-left: 56px; padding-right: 56px; }
}

/* ============================================================
   FOOTER — dark
   ============================================================ */
.site-footer {
    background:
        radial-gradient(circle at 1px 1px, rgba(255,255,255,0.05) 1px, transparent 0) 0 0 / 24px 24px,
        var(--color-deep);
    color: var(--color-ink-soft);
    padding-top: 48px;
    padding-bottom: 48px;
}
.site-footer__grid {
    display: flex; flex-direction: column;
    align-items: center; text-align: center;
    gap: 24px;
}
.site-footer__brand {
    display: flex; flex-direction: column; align-items: center; gap: 12px;
    font-size: 0.9rem;
}
.site-footer__brand img { border-radius: 12px; }
.site-footer__social { display: flex; gap: 14px; }
.site-footer__social a {
    width: 40px; height: 40px;
    border-radius: 50%;
    border: 1px solid var(--color-line-light);
    display: flex; align-items: center; justify-content: center;
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}
.site-footer__social a:hover {
    background: var(--color-teal);
    border-color: var(--color-teal);
    transform: translateY(-2px);
}
.site-footer__legal { font-size: 0.78rem; color: rgba(255,255,255,0.4); }

@media (min-width: 768px) {
    .site-footer__grid {
        flex-direction: row; justify-content: space-between; text-align: left;
    }
    .site-footer__brand { flex-direction: row; align-items: center; text-align: left; }
}

/* ============================================================
   WHATSAPP FLOATING CTA
   ============================================================ */
.fab-whatsapp {
    position: fixed;
    bottom: 22px; right: 22px;
    z-index: 800;
    width: 56px; height: 56px;
    border-radius: 50%;
    background: #25D366;
    color: var(--color-white);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 10px 30px -8px rgba(37,211,102,0.6);
    transition: transform 0.25s ease;
}
.fab-whatsapp:hover { transform: scale(1.08); }

/* Hide floating button while footer is in view to avoid overlap on short screens */
@media (max-width: 480px) {
    .fab-whatsapp { bottom: 16px; right: 16px; width: 52px; height: 52px; font-size: 1.4rem; }
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s cubic-bezier(.25,.4,.25,1), transform 0.7s cubic-bezier(.25,.4,.25,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* Escalonado del reveal dentro de cuadrículas */
.trust__item:nth-child(2), .svc-card:nth-child(2), .why__item:nth-child(2) { transition-delay: 0.07s; }
.trust__item:nth-child(3), .svc-card:nth-child(3), .why__item:nth-child(3) { transition-delay: 0.14s; }
.trust__item:nth-child(4), .svc-card:nth-child(4), .why__item:nth-child(4) { transition-delay: 0.21s; }
.svc-card:nth-child(5) { transition-delay: 0.28s; }
.svc-card:nth-child(6) { transition-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}
