/* =========================================================
   PAWMED
   SERVICIOS — DISEÑO PROFESIONAL (versión corregida)
   Mismo ancho de contenido y fondo decorado que citas.css
   ========================================================= */

:root {
    --azul: #4EA8F0;
    --azul-oscuro: #102B4E;
    --azul-texto: #183653;
    --celeste: #65AEE9;
    --celeste-oscuro: #1E7BC4;

    --menta: #63D2BE;
    --menta-fuerte: #68C6B5;
    --menta-clara: #75CDBB;

    --fondo: #ffffff;

    --azul-suave: #EEF8FE;
    --azul-suave-2: #EDF7FE;
    --celeste-suave: #E4F4FC;
    --menta-suave: #EDF8F7;
    --gris-suave: #F8FCFE;

    --texto: #102B4E;
    --texto-suave: #71869A;
    --texto-suave-2: #647A90;

    --borde: #E7EFF3;
    --borde-2: #E4EEF4;

    --sombra:
        0 12px 32px rgba(40, 90, 120, 0.09);

    --sombra-hover:
        0 20px 42px rgba(40, 90, 120, 0.14);

    /* Ancho de contenido: igual que citas.css */
    --contenedor: min(1270px, 92%);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    width: 100%;
}

body {
    width: 100%;
    min-height: 100vh;

    font-family: "Poppins", sans-serif;

    /* Mismo fondo degradado que citas */
    background: linear-gradient(
        180deg,
        #ffffff 0%,
        #fbfeff 55%,
        #f5fbfd 100%
    );

    color: var(--texto);

    position: relative;
    overflow-x: hidden;

    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button,
input,
textarea,
select {
    font-family: inherit;
}


/* =========================================================
   FONDO DECORADO: HUELLAS Y MANCHAS (igual que citas)
   ========================================================= */

.fondo-decorado {
    position: fixed;
    inset: 0;

    overflow: hidden;

    pointer-events: none;
    user-select: none;

    z-index: 0;
}

.mancha {
    position: absolute;

    border-radius: 50%;
}

.mancha-1 {
    width: 320px;
    height: 320px;

    top: -90px;
    left: -110px;

    background: radial-gradient(
        circle at 35% 35%,
        rgba(150, 214, 232, 0.20) 0%,
        rgba(150, 214, 232, 0) 70%
    );
}

.mancha-2 {
    width: 260px;
    height: 260px;

    top: 30%;
    right: -120px;

    background: radial-gradient(
        circle at 60% 40%,
        rgba(120, 205, 190, 0.16) 0%,
        rgba(120, 205, 190, 0) 70%
    );
}

.mancha-3 {
    width: 300px;
    height: 300px;

    bottom: -100px;
    right: -90px;

    background: radial-gradient(
        circle at 40% 40%,
        rgba(150, 214, 232, 0.18) 0%,
        rgba(150, 214, 232, 0) 70%
    );
}

.mancha-4 {
    width: 220px;
    height: 220px;

    bottom: 12%;
    left: -100px;

    background: radial-gradient(
        circle at 50% 50%,
        rgba(120, 205, 190, 0.15) 0%,
        rgba(120, 205, 190, 0) 70%
    );
}

.huella-fondo,
.fondo-decorado > i,
[class^="hf-"],
[class*=" hf-"] {
    position: absolute;

    color: #4ea8f0;

    z-index: 0;

    pointer-events: none;
    user-select: none;
}

.hf-1  { top: 6%;   left: 46%;  font-size: 18px; opacity: 0.14; transform: rotate(12deg); }
.hf-2  { top: 4%;   left: 74%;  font-size: 30px; opacity: 0.10; transform: rotate(-18deg); }
.hf-3  { top: 16%;  left: 4%;   font-size: 22px; opacity: 0.16; transform: rotate(20deg); }
.hf-4  { top: 22%;  right: 6%;  font-size: 26px; opacity: 0.12; transform: rotate(-10deg); }
.hf-5  { top: 34%;  left: 58%;  font-size: 14px; opacity: 0.20; transform: rotate(8deg); }
.hf-6  { top: 40%;  left: 24%;  font-size: 34px; opacity: 0.08; transform: rotate(-22deg); }
.hf-7  { top: 48%;  right: 12%; font-size: 16px; opacity: 0.18; transform: rotate(16deg); }
.hf-8  { top: 58%;  left: 8%;   font-size: 20px; opacity: 0.14; transform: rotate(-14deg); }
.hf-9  { top: 64%;  right: 30%; font-size: 24px; opacity: 0.11; transform: rotate(24deg); }
.hf-10 { top: 74%;  left: 44%;  font-size: 15px; opacity: 0.20; transform: rotate(-8deg); }
.hf-11 { top: 80%;  right: 5%;  font-size: 30px; opacity: 0.10; transform: rotate(14deg); }
.hf-12 { top: 88%;  left: 14%;  font-size: 18px; opacity: 0.16; transform: rotate(-20deg); }
.hf-13 { top: 90%;  right: 46%; font-size: 22px; opacity: 0.12; transform: rotate(10deg); }
.hf-14 { top: 12%;  left: 30%;  font-size: 16px; opacity: 0.18; transform: rotate(-16deg); }


/*==================================================
    HEADER
==================================================*/

.header {
    width: 100%;
    height: 70px;

    background: #ffffff;

    border-bottom: 1px solid var(--borde-2);

    box-shadow: 0 2px 12px rgba(50, 130, 170, 0.06);

    position: relative;
    z-index: 100;
}

/* Mismo ancho que el contenido de la página (igual que citas) */
.header-container {
    width: var(--contenedor);
    height: 100%;

    margin: 0 auto;
    padding: 0;

    display: flex;
    align-items: center;
    justify-content: space-between;
}


/* --- Logo --- */

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;

    width: 150px;
    height: 70px;

    flex-shrink: 0;
}

.logo img {
    display: block;

    width: 140px;
    height: 65px;

    object-fit: contain;
    object-position: left center;
}


/* --- Zona derecha --- */

.header-right {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 25px;
}


/* --- Navbar --- */

.navbar {
    display: flex;
    align-items: center;
    gap: 4px;
}

.navbar a {
    padding: 9px 17px;

    border-radius: 9px;

    color: #23384E;

    font-size: 12px;
    font-weight: 500;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.navbar a:hover {
    background: #F0F8FD;
    color: var(--azul);

    transform: translateY(-1px);
}

.navbar .activo {
    background: var(--azul-suave-2);
    color: var(--azul);

    font-weight: 600;
}


/* --- Botón Iniciar sesión / Mi cuenta --- */

.btn-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    padding: 10px 21px;

    border-radius: 30px;

    background: linear-gradient(90deg, var(--menta), var(--azul));

    color: #ffffff;

    font-size: 12px;
    font-weight: 600;

    white-space: nowrap;

    box-shadow: 0 6px 16px rgba(78, 168, 240, 0.20);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.btn-header i {
    font-size: 11px;
}

.btn-header:hover {
    color: #ffffff;

    transform: translateY(-2px);

    box-shadow: 0 9px 22px rgba(78, 168, 240, 0.28);
}

.navbar a:focus-visible,
.btn-header:focus-visible,
.servicio-btn:focus-visible,
.btn-agendar:focus-visible {
    outline: 3px solid rgba(78, 168, 240, 0.40);
    outline-offset: 2px;
}


/* =========================================================
   HERO
   El fondo ahora es transparente para que se vean las
   huellas y manchas del fondo decorado.
   ========================================================= */

.hero {
    position: relative;

    width: 100%;

    min-height: 450px;

    overflow: hidden;

    background: transparent;
}

.hero-inner {
    width: var(--contenedor);

    min-height: 450px;

    margin: 0 auto;

    padding: 28px 0;

    display: grid;

    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    align-items: center;

    gap: 20px;

    position: relative;

    z-index: 2;
}


/* Decoraciones del hero */

.hero-decoration {
    position: absolute;

    border-radius: 50%;

    pointer-events: none;
}

.decor-one {
    width: 420px;
    height: 420px;

    right: -130px;
    top: -170px;

    background: rgba(99, 210, 190, .18);
}

.decor-two {
    width: 300px;
    height: 300px;

    left: -170px;
    bottom: -170px;

    background: rgba(101, 174, 233, .14);
}


/* --- Texto del hero --- */

.hero-content {
    width: 100%;

    max-width: 620px;

    padding-right: 30px;

    position: relative;

    z-index: 5;
}

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 14px 7px 7px;

    margin-bottom: 18px;

    border-radius: 30px;

    background: white;

    color: var(--azul);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.5px;

    box-shadow: 0 8px 20px rgba(45, 130, 150, .07);
}

.tag-icon {
    width: 27px;
    height: 27px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: var(--azul-suave);

    color: var(--azul);

    font-size: 11px;
}

.hero h1 {
    margin-bottom: 20px;

    font-size: clamp(36px, 4.4vw, 56px);
    font-weight: 800;

    line-height: 1.08;
    letter-spacing: -1.8px;

    color: var(--azul-oscuro);
}

.hero h1 span {
    display: inline-block;

    background: linear-gradient(90deg, var(--azul) 0%, var(--menta) 100%);

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;

    color: transparent;
}

.hero-description {
    max-width: 560px;

    margin-bottom: 30px;

    color: var(--texto-suave-2);

    font-size: 15px;

    line-height: 1.8;
}


/* --- Beneficios --- */

.beneficios {
    display: flex;
    gap: 12px;

    flex-wrap: wrap;
}

.beneficio {
    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 14px 9px 10px;

    background: rgba(255, 255, 255, .8);

    border: 1px solid rgba(228, 238, 244, .9);

    border-radius: 15px;
}

.beneficio-icon {
    width: 38px;
    height: 38px;

    border-radius: 12px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, var(--azul-suave), var(--menta-suave));

    color: var(--azul);

    font-size: 14px;
}

.beneficio span {
    font-size: 11.5px;
    font-weight: 600;

    line-height: 1.35;

    color: var(--texto-suave-2);
}


/* =========================================================
   HERO VISUAL
   ========================================================= */

.hero-visual {
    position: relative;

    width: 100%;

    height: 480px;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    overflow: visible;
}

.hero-circle {
    position: absolute;

    border-radius: 50%;
}

.circle-one {
    width: 360px;
    height: 360px;

    right: -60px;

    background: rgba(99, 210, 190, .19);
}

.circle-two {
    width: 280px;
    height: 280px;

    right: 40px;

    background: rgba(255, 255, 255, .72);

    box-shadow: 0 20px 60px rgba(40, 90, 120, .08);
}


/* --- Mascotas decorativas --- */

.pet-card {
    position: absolute;

    width: 150px;
    height: 150px;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(145deg, #ffffff, var(--azul-suave));

    box-shadow: 0 25px 50px rgba(40, 90, 120, .13);
}

.pet-dog {
    right: 220px;

    transform: translateY(-45px);
}

.pet-cat {
    width: 125px;
    height: 125px;

    right: 60px;

    transform: translateY(55px);

    background: linear-gradient(145deg, #ffffff, var(--menta-suave));
}


/* Perro */

.pet-face {
    width: 90px;
    height: 85px;

    background: var(--menta-suave);

    border-radius: 45% 45% 48% 48%;

    position: relative;
}

.ear {
    position: absolute;

    width: 32px;
    height: 40px;

    background: var(--menta-fuerte);

    border-radius: 50%;
}

.ear-left {
    left: -10px;
    top: 4px;

    transform: rotate(-25deg);
}

.ear-right {
    right: -10px;
    top: 4px;

    transform: rotate(25deg);
}

.eye {
    position: absolute;

    width: 8px;
    height: 8px;

    background: var(--azul-oscuro);

    border-radius: 50%;

    top: 36px;
}

.eye-left {
    left: 26px;
}

.eye-right {
    right: 26px;
}

.snout {
    position: absolute;

    left: 50%;
    top: 48px;

    transform: translateX(-50%);

    width: 38px;
    height: 27px;

    background: white;

    border-radius: 50%;
}

.nose {
    position: absolute;

    width: 11px;
    height: 8px;

    background: var(--azul-oscuro);

    border-radius: 50%;

    top: 5px;
    left: 50%;

    transform: translateX(-50%);
}

.mouth {
    position: absolute;

    width: 12px;
    height: 6px;

    border-bottom: 2px solid var(--azul-oscuro);

    border-radius: 0 0 50% 50%;

    left: 50%;
    top: 12px;

    transform: translateX(-50%);
}


/* Gato */

.cat-face {
    width: 75px;
    height: 68px;

    background: var(--menta-suave);

    border-radius: 48%;

    position: relative;
}

.cat-ear {
    position: absolute;

    width: 28px;
    height: 28px;

    background: var(--menta-fuerte);

    top: -7px;

    transform: rotate(45deg);
}

.cat-ear-left {
    left: 4px;
}

.cat-ear-right {
    right: 4px;
}

.cat-eye {
    position: absolute;

    width: 7px;
    height: 7px;

    background: var(--azul-oscuro);

    border-radius: 50%;

    top: 30px;
}

.cat-eye-left {
    left: 21px;
}

.cat-eye-right {
    right: 21px;
}

.cat-nose {
    position: absolute;

    width: 8px;
    height: 6px;

    background: var(--menta-fuerte);

    border-radius: 50%;

    left: 50%;
    top: 40px;

    transform: translateX(-50%);
}


/* --- Patitas del hero --- */

.paw-decoration {
    position: absolute;

    color: var(--azul);

    opacity: .22;

    font-size: 25px;
}

.paw-one {
    top: 20px;
    right: 30px;

    transform: rotate(18deg);
}

.paw-two {
    bottom: 25px;
    left: 20px;

    transform: rotate(-20deg);
}


/* --- Mensaje del hero --- */

.hero-message {
    position: absolute;

    right: 25px;
    bottom: 25px;

    padding: 12px 18px;

    background: white;

    border-radius: 18px;

    box-shadow: var(--sombra);

    font-size: 13px;

    color: var(--texto-suave);

    display: flex;
    align-items: center;
    gap: 4px;
}

.hero-message strong {
    color: var(--azul-oscuro);
}

.hero-message i {
    color: var(--azul);

    margin-left: 5px;
}


/* =========================================================
   CTA — AGENDAR CITA (ahora va arriba de los servicios)
   Se monta ligeramente sobre el borde inferior del hero.
   ========================================================= */

.cta-wrapper {
    position: relative;

    z-index: 5;

    width: var(--contenedor);

    margin: -36px auto 0;

    padding: 0;
}

.cta {
    position: relative;

    overflow: hidden;

    min-height: 170px;

    padding: 34px 44px;

    border-radius: 30px;

    display: flex;
    align-items: center;
    gap: 28px;

    background: linear-gradient(
        110deg,
        var(--azul),
        var(--menta) 60%,
        var(--menta-fuerte)
    );

    box-shadow: 0 22px 48px rgba(78, 168, 240, .24);

    color: white;
}

/* Huella grande en la esquina superior derecha
   (reemplaza el círculo anterior, misma animación al pasar el mouse) */
.cta::before {
    content: "\f1b0";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    position: absolute;

    right: 22px;
    top: -34px;

    font-size: 160px;
    line-height: 1;

    color: rgba(255, 255, 255, .13);

    transform: rotate(18deg);

    transition: transform .4s ease;

    z-index: 1;

    pointer-events: none;
}

.cta:hover::before {
    transform: rotate(18deg) scale(1.3);
}

.cta-icon {
    width: 68px;
    height: 68px;

    min-width: 68px;

    border-radius: 22px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(255, 255, 255, .2);

    font-size: 28px;

    position: relative;

    z-index: 2;
}

.cta-text {
    position: relative;

    z-index: 2;

    flex: 1;
}

.cta-text span {
    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.6px;

    opacity: .88;
}

.cta-text h2 {
    margin: 5px 0 6px;

    font-size: 28px;
    font-weight: 800;

    line-height: 1.2;
    letter-spacing: -.5px;
}

.cta-text p {
    font-size: 14px;

    opacity: .92;
}

.cta-separator {
    width: 1px;

    height: 70px;

    background: rgba(255, 255, 255, .3);

    position: relative;

    z-index: 2;
}

.btn-agendar {
    position: relative;

    z-index: 2;

    display: inline-flex;
    align-items: center;
    gap: 10px;

    padding: 15px 26px;

    border-radius: 999px;

    background: white;

    color: var(--azul);

    font-size: 13.5px;
    font-weight: 800;

    white-space: nowrap;

    box-shadow: 0 8px 20px rgba(0, 0, 0, .10);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.btn-agendar i {
    transition: transform .25s ease;
}

.btn-agendar:hover {
    transform: translateY(-3px);

    box-shadow: 0 13px 26px rgba(0, 0, 0, .14);
}

.btn-agendar:hover .fa-arrow-right {
    transform: translateX(4px);
}

/* Patitas pequeñas del CTA */

.cta-paw {
    position: absolute;

    color: white;

    opacity: .13;

    z-index: 1;

    pointer-events: none;
}

.paw-cta-one {
    left: 44%;
    bottom: 14px;

    font-size: 24px;

    transform: rotate(20deg);
}

.paw-cta-two {
    left: 58%;
    top: 16px;

    font-size: 17px;

    transform: rotate(-15deg);
}


/* =========================================================
   SERVICIOS
   ========================================================= */

.servicios-section {
    position: relative;

    z-index: 1;

    width: var(--contenedor);

    margin: 0 auto;

    padding: 75px 0 90px;
}

.servicios-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 44px;
}

.heading-left {
    display: flex;
    align-items: flex-start;

    gap: 16px;
}

.linea {
    width: 4px;

    height: 72px;

    border-radius: 10px;

    background: linear-gradient(var(--azul), var(--menta));

    flex-shrink: 0;
}

.mini-title {
    display: block;

    margin-bottom: 7px;

    color: var(--azul);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: 1.8px;
}

.heading-left h2 {
    margin-bottom: 8px;

    font-size: 32px;

    line-height: 1.2;
    letter-spacing: -.8px;

    color: var(--azul-oscuro);
}

.heading-left p {
    max-width: 440px;

    color: var(--texto-suave);

    font-size: 14px;

    line-height: 1.7;
}


/* --- Indicador de servicios --- */

.servicios-stat {
    display: flex;
    align-items: center;
    gap: 14px;

    padding: 14px 22px;

    background: white;

    border: 1px solid var(--borde);

    border-radius: 18px;

    box-shadow: 0 7px 22px rgba(50, 130, 170, 0.06);

    flex-shrink: 0;
}

.servicios-stat-num {
    font-size: 30px;
    font-weight: 800;

    line-height: 1;

    background: linear-gradient(135deg, var(--azul), var(--menta));

    -webkit-background-clip: text;
    background-clip: text;

    color: transparent;
}

.servicios-stat-label {
    font-size: 11.5px;
    font-weight: 600;

    line-height: 1.4;

    color: var(--texto-suave);
}


/* --- Grid --- */

.servicios-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 22px;
}


/* --- Tarjetas --- */

.servicio-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    gap: 16px;

    padding: 30px 26px 26px;

    background: white;

    border: 1px solid var(--borde);

    border-top: 3px solid var(--azul);

    border-radius: 22px;

    box-shadow: var(--sombra);

    overflow: hidden;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

/* Huella en la esquina superior derecha
   (reemplaza el círculo; misma animación: crece al pasar el mouse) */
.servicio-card::after {
    content: "\f1b0";

    font-family: "Font Awesome 6 Free";
    font-weight: 900;

    position: absolute;

    right: -10px;
    top: -12px;

    font-size: 88px;
    line-height: 1;

    color: rgba(99, 210, 190, .22);

    transform: rotate(18deg);

    transition: transform .4s ease;

    z-index: 0;

    pointer-events: none;
}

.servicio-card:hover {
    transform: translateY(-7px);

    box-shadow: var(--sombra-hover);

    border-color: var(--celeste-suave);
}

.servicio-card:hover::after {
    transform: rotate(18deg) scale(1.3);
}


/* Alternancia de color por tarjeta */

.servicio-card:nth-child(3n+2) {
    border-top-color: var(--menta);
}

.servicio-card:nth-child(3n+2)::after {
    color: rgba(78, 168, 240, .16);
}

.servicio-card:nth-child(3n+2) .servicio-icon {
    background: linear-gradient(135deg, var(--menta-suave), #DCF3EE);
    color: var(--menta-fuerte);
}

.servicio-card:nth-child(3n+2) .servicio-btn {
    border-color: var(--menta);
    color: var(--menta-fuerte);
}

.servicio-card:nth-child(3n+2) .servicio-btn:hover {
    background: var(--menta-suave);
}

.servicio-card:nth-child(3n) {
    border-top-color: var(--celeste);
}

.servicio-card:nth-child(3n)::after {
    color: rgba(99, 210, 190, .22);
}

.servicio-card:nth-child(3n) .servicio-icon {
    background: linear-gradient(135deg, var(--celeste-suave), #D7ECFB);
    color: var(--celeste-oscuro);
}

.servicio-card:nth-child(3n) .servicio-btn {
    border-color: var(--celeste);
    color: var(--celeste-oscuro);
}

.servicio-card:nth-child(3n) .servicio-btn:hover {
    background: var(--celeste-suave);
}


/* Icono */

.servicio-icon {
    width: 54px;
    height: 54px;

    min-width: 54px;

    border-radius: 16px;

    display: flex;
    align-items: center;
    justify-content: center;

    background: linear-gradient(135deg, var(--azul-suave), var(--menta-suave));

    color: var(--azul);

    font-size: 21px;

    position: relative;

    z-index: 2;

    transition: .3s ease;
}

.servicio-card:hover .servicio-icon {
    transform: scale(1.08) rotate(-4deg);

    background: linear-gradient(135deg, var(--azul), var(--menta));

    color: white;
}


/* Información */

.servicio-info {
    position: relative;

    z-index: 2;

    flex: 1;
}

.servicio-info h3 {
    margin-bottom: 9px;

    font-size: 18px;
    font-weight: 700;

    color: var(--azul-texto);
}

.servicio-info p {
    color: var(--texto-suave);

    font-size: 13px;

    line-height: 1.7;
}


/* Botón de cada servicio */

.servicio-btn {
    position: relative;

    z-index: 2;

    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;

    padding: 12px 16px;

    margin-top: 4px;

    border: 1.5px solid var(--azul);

    border-radius: 13px;

    background: #ffffff;

    color: var(--azul);

    font-size: 13px;
    font-weight: 700;

    transition:
        background .25s ease,
        transform .2s ease;
}

.servicio-btn i {
    font-size: 11px;

    transition: transform .25s ease;
}

.servicio-btn:hover {
    background: var(--azul-suave-2);

    transform: translateY(-2px);
}

.servicio-btn:hover i {
    transform: translateX(4px);
}


/* =========================================================
   FOOTER
   ========================================================= */

.footer {
    position: relative;

    z-index: 1;

    width: 100%;

    min-height: 90px;

    padding: 25px 4%;

    background: rgba(255, 255, 255, .92);

    border-top: 1px solid #EDF2F5;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 30px;

    flex-wrap: wrap;

    color: #91A2B1;

    font-size: 12px;

    text-align: center;
}

.footer span {
    color: var(--texto-suave-2);
}

.footer i {
    color: var(--azul);

    margin-left: 4px;
}


/* =========================================================
   ANIMACIONES
   FIX: antes usaban "both", que dejaba fijo el transform final
   (translateY(0)) y anulaba el hover de las tarjetas y el
   scale() del hero en móvil. Con "backwards" la animación solo
   controla el inicio y después deja actuar al hover/responsive.
   ========================================================= */

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content {
    animation: aparecer .7s ease backwards;
}

.hero-visual {
    animation: aparecer .8s ease .1s backwards;
}

.cta-wrapper {
    animation: aparecer .7s ease .2s backwards;
}

.servicio-card {
    animation: aparecer .5s ease backwards;
}

.servicio-card:nth-child(2) { animation-delay: .05s; }
.servicio-card:nth-child(3) { animation-delay: .1s; }
.servicio-card:nth-child(4) { animation-delay: .15s; }
.servicio-card:nth-child(5) { animation-delay: .2s; }
.servicio-card:nth-child(6) { animation-delay: .25s; }


/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1000px) {

    .header {
        height: auto;
    }

    .header-container {
        min-height: 70px;

        height: auto;

        flex-wrap: wrap;

        padding: 8px 0;
    }

    .navbar {
        order: 3;

        width: 100%;

        padding-top: 5px;

        justify-content: center;
    }

    .hero-inner {
        grid-template-columns: 1fr;

        text-align: center;

        padding: 60px 0 70px;

        gap: 20px;
    }

    .hero-content {
        margin: auto;

        padding-right: 0;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .beneficios {
        justify-content: center;
    }

    /* Caja centrada para que las mascotas no queden pegadas a un lado */
    .hero-visual {
        height: 330px;

        max-width: 460px;

        margin: 0 auto;

        justify-content: center;
    }

    .cta-wrapper {
        margin-top: -30px;
    }

    .cta {
        padding: 30px 32px;

        flex-wrap: wrap;
    }

    .servicios-section {
        padding: 60px 0 70px;
    }

    .servicios-heading {
        align-items: flex-start;

        flex-direction: column;
    }

    .servicios-stat {
        align-self: flex-start;
    }

    .servicios-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 700px) {

    .logo {
        width: auto;
    }

    .logo img {
        width: 85px;
    }

    .header-right {
        gap: 8px;
    }

    .btn-header {
        padding: 8px 14px;

        font-size: 10px;
    }

    .navbar {
        gap: 1px;
    }

    .navbar a {
        padding: 7px 9px;

        font-size: 10px;
    }

    /* FIX: antes aquí el título crecía a 42px en pantallas pequeñas */
    .hero h1 {
        font-size: clamp(32px, 8vw, 42px);

        line-height: 1.1;

        letter-spacing: -1.2px;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-visual {
        transform: scale(.85);
    }

    .cta-wrapper {
        margin-top: 0;
    }

    .cta {
        padding: 28px 22px;

        gap: 17px;
    }

    .cta::before {
        font-size: 120px;

        top: -26px;
    }

    .cta-separator {
        display: none;
    }

    .cta-text {
        min-width: calc(100% - 100px);
    }

    .cta-text h2 {
        font-size: 23px;
    }

    .btn-agendar {
        width: 100%;

        justify-content: center;
    }

    .servicios-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 480px) {

    .header-container {
        width: calc(100% - 30px);
    }

    .navbar a {
        padding: 6px 7px;

        font-size: 9px;
    }

    .btn-header {
        padding: 7px 11px;

        font-size: 9px;
    }

    .hero {
        min-height: auto;
    }

    .hero-inner {
        min-height: auto;

        padding: 45px 0;
    }

    .hero h1 {
        font-size: 33px;
    }

    .beneficios {
        flex-direction: column;

        align-items: stretch;
    }

    .beneficio {
        justify-content: flex-start;
    }

    .hero-visual {
        transform: scale(.72);

        margin: -25px auto;
    }

    .heading-left h2 {
        font-size: 26px;
    }

    .servicios-stat {
        width: 100%;

        justify-content: center;
    }

    .servicio-card {
        padding: 24px 20px 20px;
    }

    .cta-icon {
        width: 52px;
        height: 52px;

        min-width: 52px;
    }

    .cta-text h2 {
        font-size: 20px;
    }

    .footer {
        flex-direction: column;

        gap: 8px;
    }

    .hf-2,
    .hf-4,
    .hf-6,
    .hf-9,
    .hf-11,
    .hf-13 {
        display: none;
    }
}


@media (max-width: 400px) {

    .huella-fondo,
    [class^="hf-"],
    [class*=" hf-"] {
        display: none;
    }
}


/* =========================================================
   ACCESIBILIDAD: respetar "reducir movimiento"
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        transition: none !important;
        animation: none !important;
        scroll-behavior: auto !important;
    }
}