/* ======================================================
   RESET GENERAL
====================================================== */

@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: 'Nunito', sans-serif;
    background: #f8fbff;
    color: #2d3748;
    line-height: 1.7;
}

/* ======================================================
   BASE GENERAL
====================================================== */

section {
    width: 100%;
    padding: 80px 20px;
}

h1, h2, h3 {
    text-align: center;
    line-height: 1.4;
    color: #1565C0;
}

h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

p {
    font-size: 1rem;
}

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

a {
    text-decoration: none;
}

/* ======================================================
   MENÚ
====================================================== */

.main-menu {
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 30px rgba(0,0,0,.05);
    padding: 18px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    position: sticky;
    top: 0;
    z-index: 999;
}

/* 🔥 LOGO TEXTO MEJORADO */
.menu-logo-text {
    font-size: 2rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: 1px;

color: #0A84FF;
    transition: .2s;
}

.menu-logo-text:hover {
    transform: scale(1.05);
}

.menu-logo-text:hover {
    transform: scale(1.05);
}

.menu-items {
    display: flex;
    gap: 28px;
    list-style: none;
    flex-wrap: wrap;
    justify-content: center;
}

.menu-items a {
    color: #1565C0;
    font-weight: 800;
    font-size: .98rem;
    transition: .2s;
    position: relative;
}

.menu-items a:hover {
    color: #0D47A1;
}

.menu-items a::after {
    content: "";
    width: 0;
    height: 2px;
    background: #1565C0;
    position: absolute;
    left: 0;
    bottom: -6px;
    transition: .2s;
}

.menu-items a:hover::after {
    width: 100%;
}

/* ======================================================
   HERO
====================================================== */

.hero {
    background: linear-gradient(135deg, #1E88E5, #1565C0);
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero img {
    max-width: 190px;
    margin: 0 auto 25px;
}

.hero h1 {
    color: white;
    font-size: 2.2rem;
    max-width: 900px;
    margin: auto;
    font-weight: 800;
}

/* ======================================================
   PRODUCTOS
====================================================== */

.producto {
    width: 100%;
    max-width: 500px;
    background: white;
    border-radius: 24px;
    padding: 35px;
    box-shadow: 0 15px 40px rgba(0,0,0,.05);
    text-align: center;
}

/* 🔥 BOTÓN AMARILLO */
.btn-comprar {
    width: 100%;
    border: none;
    background: #FFD600;
    color: #333;
    padding: 16px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

.btn-comprar:hover {
    background: #FFC400;
    transform: translateY(-2px);
}

/* ======================================================
   GANADOR
====================================================== */

.ganador h3 {
    font-size: 2.2rem;
    font-weight: 800;
    margin: 15px 0 25px;
    color: #0D47A1;
}

.ganador-mascota {
    width: 280px;
    border-radius: 22px;
    box-shadow: 0 15px 35px rgba(0,0,0,.06);
}

/* ======================================================
   BOTONES GENERALES
====================================================== */

.btn {
    display: inline-block;
    background: #1565C0;
    color: white;
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 800;
    transition: .2s;
}

.btn:hover {
    background: #0D47A1;
    transform: translateY(-2px);
}

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

@media (max-width: 768px) {

    .main-menu {
        justify-content: center;
        padding: 20px;
    }

    .menu-logo-text {
        font-size: 1.5rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .ganador h3 {
        font-size: 1.6rem;
    }
}

/* =========================================
   CONTROL DE CANTIDAD
========================================= */

.cantidad-control {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 10px 0 20px;
}

.cantidad-control input {
    width: 70px;
    padding: 10px;
    text-align: center;
    border-radius: 10px;
    border: 1px solid #dbeafe;
    font-weight: 800;
    font-size: 1rem;
    transition: .2s;
}

/* 🔥 animación rebote */
.input-animado {
    transform: scale(1.15);
}

.cantidad-control button {
    background: #1565C0;
    color: white;
    border: none;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: .2s;
}

.cantidad-control button:hover {
    background: #0D47A1;
    transform: scale(1.1);
}

/* =========================================
   TOTAL DINÁMICO
========================================= */

.precio-total {
    font-size: 1.4rem;
    font-weight: 800;
    color: #2d3748;
    margin-bottom: 20px;
}

/* =========================================
   BOTÓN COMPRAR MEJORADO
========================================= */

.btn-comprar {
    width: 100%;
    border: none;
    background: #FFD600;
    color: #333;
    padding: 16px;
    border-radius: 14px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

.btn-comprar:hover {
    background: #FFC400;
    transform: translateY(-2px) scale(1.02);
}

.instagram {
    text-align: center;
    padding: 40px 20px;
}

.instagram-card {
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    max-width: 400px;
    margin: auto;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.instagram-card img {
    width: 100px;
    margin-bottom: 15px;
}

.instagram-card p {
    font-size: 16px;
    margin-bottom: 20px;
}

.btn-instagram {
    display: inline-block;
    background: #E1306C;
    color: #fff;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

.btn-instagram:hover {
    background: #c72b60;
}

.video-funcionamiento {
    text-align: center;
    padding: 60px 20px;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: 30px auto;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 15px;
}

/* =========================================
   CARRUSEL MASCOTAS
========================================= */

.registrados-carrusel{
    display:flex;
    gap:20px;
    overflow-x:auto;
    padding:10px 5px 20px;
    scroll-snap-type:x mandatory;
}

.registrados-carrusel::-webkit-scrollbar{
    height:6px;
}

.registrados-carrusel::-webkit-scrollbar-thumb{
    background:#444;
    border-radius:20px;
}

/* CARD */

.registrado-item{
    min-width:220px;
    background:rgba(255,255,255,0.05);
    border:1px solid rgba(255,255,255,0.08);
    backdrop-filter:blur(12px);

    border-radius:28px;
    padding:16px;

    text-align:center;

    transition:
    transform .35s ease,
    box-shadow .35s ease,
    border-color .35s ease;

    scroll-snap-align:center;

    position:relative;
    overflow:hidden;
}

/* Glow */

.registrado-item::before{
    content:'';
    position:absolute;
    inset:0;

    background:
    radial-gradient(circle at top,
    rgba(0,191,255,.18),
    transparent 70%);

    opacity:0;
    transition:.4s;
}

/* Hover Desktop */

.registrado-item:hover{
    transform:translateY(-8px) scale(1.02);

    border-color:rgba(0,191,255,.35);

    box-shadow:
    0 10px 40px rgba(0,191,255,.15);
}

.registrado-item:hover::before{
    opacity:1;
}

/* Touch Mobile */

.registrado-item:active{
    transform:scale(.97);
}

/* IMG */

.registrado-item img{
    width:100%;
    height:220px;
    object-fit:cover;

    border-radius:20px;

    transition:
    transform .45s ease,
    filter .45s ease;
}

.registrado-item:hover img{
    transform:scale(1.06);
    filter:brightness(1.05);
}

/* Nombre */

.registrado-item p{
    margin-top:14px;
    font-size:1rem;
    font-weight:600;
    color:white;
}

/* Placeholder */

.foto-placeholder{
    width:100%;
    height:220px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:20px;

    background:#111;

    font-size:4rem;
}

/* MOBILE */

@media(max-width:768px){

    .registrado-item{
        min-width:180px;
    }

    .registrado-item img{
        height:180px;
    }

}