:root {
    --azul: #1d4ed8;
    --azul-claro: #3b82f6;
    --azul-oscuro: #0f172a;
    --celeste: #eef4ff;
    --gris-claro: #f8fafc;
    --texto: #1e293b;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

#servicios,
#testimonios,
#contacto {
    scroll-margin-top: 4.5rem;
}

body {
    margin: 0;
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--texto);
    background: var(--celeste);
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--texto);
    text-decoration: none;
}

.navbar-links a {
    margin-left: 1.5rem;
    text-decoration: none;
    color: var(--texto);
    font-weight: 500;
}

.hero {
    background: linear-gradient(rgba(15, 23, 42, 0.75), rgba(15, 23, 42, 0.75)),
        url("../img/hero.jpg");
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.hero p {
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.btn-primary {
    display: inline-block;
    background: var(--azul);
    color: #fff;
    padding: 0.75rem 1.75rem;
    border-radius: 0.375rem;
    text-decoration: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
}

.servicios,
.testimonios,
.contacto {
    padding: 4rem 1.5rem;
}

.servicios > h2,
.servicios > .servicios-grid,
.testimonios > h2 {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.servicios h2,
.testimonios h2,
.contacto h2 {
    text-align: center;
    margin-bottom: 2.5rem;
    font-size: 2rem;
    color: var(--azul-oscuro);
}

.servicios {
    background: #fff;
}

.testimonios {
    background: var(--celeste);
}

.contacto {
    background: linear-gradient(135deg, var(--azul-oscuro), var(--azul));
    color: #fff;
}

.contacto h2 {
    color: #fff;
}

.contacto-form-wrap h2 {
    text-align: left;
    margin-bottom: 1.5rem;
}

.servicios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}

.servicio-card {
    background: var(--celeste);
    border-top: 3px solid var(--azul);
    border-radius: 0.5rem;
    padding: 2rem 1.5rem;
    text-align: center;
}

.servicio-card i {
    font-size: 2.5rem;
    color: var(--azul);
    margin-bottom: 1rem;
}

.servicio-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

.servicio-card h3 {
    margin: 0.5rem 0;
}

.testimonios {
    background: var(--gris-claro);
}

.slider {
    display: flex;
    align-items: center;
    gap: 1rem;
    max-width: 1100px;
    margin: 0 auto;
}

.slider-viewport {
    overflow: hidden;
    flex: 1;
}

.slider-track {
    display: flex;
    transition: transform 0.4s ease;
}

.slider-item {
    padding: 0 0.75rem;
    box-sizing: border-box;
}

.slider-btn {
    flex: 0 0 auto;
    background: var(--azul);
    color: #fff;
    border: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1rem;
}

.testimonio-card {
    background: #fff;
    border-radius: 0.5rem;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.testimonio-comentario {
    font-style: italic;
}

.testimonio-autor span {
    color: #64748b;
    margin-left: 0.5rem;
}

.contacto-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    max-width: 1100px;
    margin: 0 auto;
}

.contacto-mascota {
    text-align: center;
}

.contacto-mascota img {
    max-width: 280px;
    width: 100%;
}

.contacto-mascota-frase {
    margin-top: 1rem;
    font-style: italic;
    color: #e2e8f0;
}

.contacto-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    max-width: 500px;
    margin: 0 auto;
}

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

.form-control {
    padding: 0.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.375rem;
    font-size: 1rem;
    width: 100%;
}

.alert {
    text-align: center;
    padding: 0.75rem;
    border-radius: 0.375rem;
}

.alert-success {
    background: #dcfce7;
    color: #166534;
}

.contacto .btn-primary {
    background: #fff;
    color: var(--azul);
}

.footer {
    text-align: center;
    padding: 1.5rem;
    background: var(--azul-oscuro);
    color: #fff;
}

@media (max-width: 600px) {
    .hero h1 {
        font-size: 1.8rem;
    }

    .navbar {
        flex-direction: column;
        gap: 0.5rem;
    }

    .navbar-links a {
        margin-left: 0;
        margin-right: 1rem;
    }
}
