/*DEFINICION DE VARIABLES*/
/* ===== BASE ===== */
body {
    font-family: 'Poppins', sans-serif;
    color: #111;
}

/* ===== ESPACIADO PREMIUM ===== */
section {
    padding: 120px 0;
}

/* ===== HEADER ===== */
header {
    position: sticky;
    top: 0;
    background: var(--primary);
    border-bottom: 2px solid var(--primary-light);
    z-index: 1000;
}

nav a {
    color: var(--white);
    font-weight: 500;
}

nav a:hover {
    color: var(--white);
}

/* ===== HERO ===== */
.hero {
    background: var(--muted);
    min-height: 80vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.hero-texto {
    flex: 1;
    z-index: 10;
}

.hero-texto h1 {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-texto h1 span {
    color: var(--primary);
}

.hero-texto p {
    font-size: 1.2rem;
    color: #666;
    margin: 25px 0;
}

.hero-img {
    flex: 1.5;
    display: flex;
    justify-content: flex-end;
}

.hero-img img {
    width: 110% !important;
    max-width: 700px !important;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    object-fit: contain;
    display: block;
}

/* RESPONSIVE HERO */
@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-img {
        justify-content: center;
        margin-top: 30px;
    }

    .hero-img img {
        width: 100% !important;
        max-width: 400px !important;
    }

    .hero-texto h1 {
        font-size: 2.2rem;
    }
}

/* ===== BOTONES ===== */
.btn {
    padding: 12px 22px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
}

.btn-primary {
    background: var(--primary);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-outline {
    border: 1px solid #ddd;
    color: #333;
    margin-left: 10px;
}

.btn-outline:hover {
    border-color: black;
}

/* ===== SERVICIOS ===== */
.servicios {
    background: var(--muted);
}

/* LAYOUT PRINCIPAL: 3 COLUMNAS */
.servicios-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Imagen del perro doctor (columna 1) */
.servicios-img img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
}

/* Lista de servicios (columna 2) */
.servicios-grid {
    max-width: 100%;
}

.servicio-item {
    display: flex;
    gap: 15px;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.servicio-icono {
    font-size: 24px;
    color: var(--primary);
}

.servicio-item h3 {
    margin: 0;
    font-size: 1.1rem;
}

.servicio-item p {
    margin: 5px 0 0;
    color: #666;
    font-size: 0.95rem;
}

/* Slider de imágenes (columna 3) */
.servicios-slider {
    position: relative;
    background: transparent;
    border-radius: 24px;
    padding: 20px;
    /*box-shadow: var(--shadow-soft);*/
    overflow: hidden;
}

.slider-container {
    overflow: hidden;
    border-radius: 16px;
}

.slider-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slider-slide {
    min-width: 100%;
    text-align: center;
    padding: 20px;
}

.slider-slide img {
    width: 100%;
    max-width: 280px;
    height: 200px;
    object-fit: cover;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    animation: floatImage 3s ease-in-out infinite;
}

.slider-slide img:hover {
    transform: scale(1.02);
}

.slider-slide p {
    margin-top: 15px;
    font-weight: 600;
    color: var(--primary);
    font-size: 1.1rem;
}

/* Botones de navegación */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--primary);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    z-index: 10;
}

.slider-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-50%) scale(1.05);
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

/* Dots (indicadores) */
.slider-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ddd;
    cursor: pointer;
    transition: all 0.3s;
}

.dot.active {
    background: var(--primary);
    width: 25px;
    border-radius: 10px;
}

/* Animación de flotación */
@keyframes floatImage {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

/* ===== PRODUCTOS ===== */
.productos {
    background: var(--white);
    border-top: 4px solid var(--primary);
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.producto-card {
    border: 1px solid #eee;
    border-radius: 12px;
    overflow: hidden;
    transition: 0.3s;
}

.producto-card:hover {
    transform: translateY(-5px);
}

.producto-imagen {
    position: relative;
    height: 200px;
}

.producto-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.producto-info {
    padding: 15px;
}

.producto-precio {
    font-weight: bold;
    margin: 10px 0;
}

.stock {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--primary);
    color: white;
    padding: 5px 10px;
    font-size: 0.7rem;
    border-radius: 20px;
}

/* ===== UBICACION ===== */
.ubicacion {
    background: #fafafa;
}

.ubicacion-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.ubicacion-info h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.ubicacion-info p {
    color: #555;
    margin-bottom: 10px;
}

.ubicacion-mapa {
    width: 100%;
    height: 400px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #eee;
}

/* ===== CONFIANZA BANNER ===== */
.confianza-banner {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.confianza-flex {
    display: grid;
    grid-template-columns: 1fr 1.2fr 1fr;
    align-items: center;
    gap: 40px;
}

.confianza-content {
    text-align: center;
    color: white;
}

.confianza-content h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.confianza-content h2 span {
    color: #fff;
    font-weight: 700;
}

.confianza-content p {
    margin-bottom: 25px;
    opacity: 0.9;
}

.confianza-imgs {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.img {
    width: 100%;
    border-radius: 20px;
    object-fit: cover;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: 0.4s;
}

.img:hover {
    transform: scale(1.05) translateY(-5px);
}

.img-1 { height: 140px; transform: translateX(-20px); }
.img-2 { height: 200px; }
.img-3 { height: 160px; transform: translateX(-10px); }
.img-4 { height: 160px; transform: translateX(10px); }
.img-5 { height: 200px; }
.img-6 { height: 140px; transform: translateX(20px); }

/* ===== HEADER FLEX ===== */
.header-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* ===== HAMBURGUESA ===== */
.menu-toggle {
    display: none;
    font-size: 26px;
    cursor: pointer;
    color: white;
    background: black;
    padding: 8px 12px;
    border-radius: 6px;
    transition: 0.3s;
}

.menu-toggle:hover {
    background: #333;
}

/* ===== NAV DESKTOP ===== */
nav {
    display: flex;
    gap: 20px;
}

.section-header h2 span {
    color: var(--primary);
}

/* ===== FOOTER ===== */
.main-footer {
    background: #111;
    color: white;
    padding: 60px 0;
}

/* ===== WHATSAPP ===== */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: white;
    border: 2px solid #25d366;
    width: 55px;
    height: 55px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-float img {
    width: 30px;
    height: 30px;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .hero-flex {
        flex-direction: column;
        text-align: center;
    }

    .hero-texto h1 {
        font-size: 2.2rem;
    }
    
    .servicios-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .servicios-img {
        text-align: center;
    }

    .servicios-img img {
        max-width: 250px;
    }
    
    .slider-slide img {
        max-width: 220px;
        height: 160px;
    }
    
    .slider-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .ubicacion-grid {
        grid-template-columns: 1fr;
    }

    .ubicacion-mapa {
        height: 300px;
    }
    
    .menu-toggle {
        display: block;
    }

    nav {
        position: absolute;
        top: 70px;
        right: 0;
        background: white;
        width: 220px;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        display: none;
    }

    nav.active {
        display: flex;
    }

    nav a {
        padding: 10px 0;
        width: 100%;
        color: #333;
    }
}