/* --------VARIABLES------- */

:root {
    /* ------COLORES------ */
    --fondo-color: #126aa9;
    --button-color: #126aa9;
    --h3-color-secundario: #0d4a73;
    --titulo-color: #ffffff;
    --parrafo-color: #e6e6e6;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: sans-serif;
}

img {
    width: 100%;
    height: auto;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
}

h1,h2 {
    color: var(--titulo-color);
}

/* --------------------------HEADER------- */

header {
    width: 100%;
    background-color: #111111e8;
    color: white;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    width: 90px;
}

.nav-icons {
    display: flex;
    gap: 20px;
    align-items: center;
}

.nav-toggle {
    font-size: 1.8rem;
    cursor: pointer;
}

#menu-toggle {
    display: none;
}

.nav-links i:hover {
    color: var(--fondo-color);
}



.cart-icon {
    font-size: 1.5rem;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 20px;
}

.nav-links a:hover {
    color: var(--fondo-color);
}

.nav-links li a {
    color: white;
    text-decoration: none;
    font-weight: bold;
}

/* ------------------------- */
.item-carrito {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    border-bottom: 1px solid #555;
    padding-bottom: 5px;
}

.img-carrito {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 10px;
}

.item-carrito i {
    cursor: pointer;
    color: red;
}


/* --------- */

.nav-icons {
    position: relative;
}

#contador-carrito {
    position: absolute;
    top: -5px;
    right: -5px;
    background: red;
    color: white;
    border-radius: 50%;
    padding: 0px 4px;
    font-size: 12px;
    display: none;
}

/* ------ESTO ESTA DENTRO DEL CARRITO */
.contenedor-total-pago {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    gap: 10px;
    font-size: 20px;
    font-weight: bold;
}


.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    border-bottom: 1px solid #444;
    padding-bottom: 10px;
}

.cart-item-img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 10px;
    border-radius: 5px;
}

.cart-item-info h4 {
    font-size: 14px;
    margin: 0 0 5px;
    color: #fff;
}

.cart-item-info p {
    font-size: 13px;
    margin: 0;
    color: #ccc;
}

  /* === DISEÑO DEL PANEL DEL CARRITO === */
.cart-panel {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    background: #222222;
    color: white;
    padding: 20px;
    transition: right 0.3s ease-in-out;
    z-index: 1100;
} /* AQUI TERMINA EL DISEÑO DEL PANEL DEL CARRITO*/


/* ----------ESTILO DEL DISEÑO DEL BOTON PAGAN */


.btn-pagar {
    margin-top: 30px;
    padding: 12px 25px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    background-color:red ;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
    
.btn-pagar:hover {
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.47), 0 0 20px rgba(255, 255, 255, 0.395);
    transform: scale(1.05);
}
/* ---------------------AQUI TERMINA EL DISEÑO DE PAGAR */

.nav-icons i:hover {
    color: var(--fondo-color);
}

.cart-panel.show {
    right: 0;
}

.cart-panel h2 {
    margin-bottom: 20px;
}

.cart-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 1.5rem;
    cursor: pointer;
}

.cart-panel i:hover {
    color: var(--fondo-color);
}

.nav-links i{
    display: none;
}

/* --------------SECCION BANNER----- */
.banner {
    width: 100%;
    height: 620px; 
    background-color: rgb(0, 0, 0);
    position: relative;
    overflow: hidden;
}

.video-banner {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-color: rgb(0, 0, 0);
}

.capa-oscura {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.299);
    z-index: 0;
}


.banner-texto {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 40%;
    color: white;
    text-align: left;
    top: 35%;
    z-index: 1;
    margin-left: 200px;
}

.banner-texto h2 {
    font-size: 40px;
    margin-bottom: 15px;
}

.banner-texto p {
    color: var(--parrafo-color);
    font-size: 20px;
    margin-bottom: 30px;
    padding: 0 65px 0 0;
    line-height: 27px;
}

.banner-button {
    display: flex;
    align-items: center;
}

.banner-button a {
    background-color: var(--button-color);
    border: none;
    color: var(--titulo-color);
    font-weight: bold;
    font-size: 17px;
    padding-left: 15px;
    cursor: pointer;
}

.banner-button a:hover {
    background-color:var(--titulo-color) ;
    color: var(--fondo-color);
}

.banner-button i {
    margin-left: 10px;
    font-weight: bold;
    padding: 10px;
    background-color: var(--h3-color-secundario);
    font-size: 20px;
}

.banner-button button:hover {
    background-color: var(--titulo-color);
    color: var(--fondo-color);
}


/* -------------SECCION PERROS--------- */

.mascota-perros {
    position: relative;
    background-color: #000000;
}

.perros-texto {
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 30%;
    text-align: left;
    top: 35%;
    margin-left: 220px;
}


.capa-oscura-perros {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgb(0, 0, 0) 0%, /* MAS OSCURO */
        rgba(0, 0, 0, 0.08) 30%,/* INTERMEDIO */
        rgba(0, 0, 0, 0.0) 70%   /* CLARO */
    );
    z-index: 0;
}


.perros-texto h2 {
    font-size: 46px;
    margin-bottom: 15px;
}

.perros-texto p {
    color: var(--parrafo-color);
    padding-right: 75px;
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 27px;
}


/* -------------SECCION GATOS----- */
.mascota-gato{
    position: relative;
    box-shadow: 2px 2px 8px 4px rgba(0, 0, 0, 0.432);
    background-color: #000000be;
}

.gato-texto{
    display: flex;
    flex-direction: column;
    position: absolute;
    width: 30%;
    top: 35%;
    right: 65px;
    z-index: 1;
    margin-left: 160px;
}


.capa-oscura-gatos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgb(0, 0, 0) 0%, /* MAS OSCURO */
        rgba(0, 0, 0, 0.199) 30%,/* INTERMEDIO */
        rgba(0, 0, 0, 0.297) 70%   /* CLARO */
    );
    z-index: 0;
}


.gato-texto h2 {
    font-size: 46px;
    margin-bottom: 15px;
}

.gato-texto p {
    color: var(--parrafo-color);
    padding-right: 75px;
    font-size: 20px;
    margin-bottom: 30px;
    line-height: 27px;
}


/* -------------SECCION NOVEDADES------- */
.seccion-novedades {
    background-color: #075c94;
}

.titulo-novedades {
    text-align: center;
    font-size: clamp(20px, 2.5vw, 38px);
    padding: 30px 0;
}

.carrusel-noticias {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #075c94;
    padding: 0 0 20px 0;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
    width: 100%;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease;

}


.carousel-item {
    flex: 0 0 100%;
    box-sizing: border-box;
    padding: 10px;
    text-align: center;
    color: #fff;
}

.carousel-item img {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.carousel-item p {
    margin-top: 10px;
    font-weight: bold;
    font-size: 16px;
}

/* -----BOTONES---- */
.btn-prev, .btn-next {
    background-color: #fff;
    border: none;
    font-size: 24px;
    color: #075c94;
    padding: 10px;
    cursor: pointer;
    z-index: 1;
}

.btn-prev {
    margin-right: 10px;
    margin-top: -50px;
}

.btn-next {
    margin-left: 10px;
    margin-top: -50px;
}

.carousel-item {
    flex: 0 0 33.3333%;
}



/* -------------SECCION MARCAS */
.nuestras-marcas {
    height: auto;
    background-color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    border-bottom: 25px solid #075c94;
}

.marcas-titulo h3 {
    margin-top: 65px;
    font-size: 48px;
    color: #075c94;
    text-align: center;
}

.marcas-carousel {
    width: 100%;
    max-width: 1200px;
    overflow: hidden;
    margin-top: -20px;
    padding: 20px 0;
}

.marcas-container {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.marcas-items {
    min-width: calc(100% / 6); /* 6 imágenes visibles */
    display: flex;
    justify-content: center;
    align-items: center;
}

.marcas-items img {
    max-width: 160px;
    height: auto;
    padding: 10px;
    filter: drop-shadow(2px 7px 5px #00000063);
    transition: transform 0.3s ease;
}

.marcas-items img:hover {
    transform: scale(1.1);
}

.borde {
    width: 100%;
    height: 25px;
    background-color: var(--fondo-color);
    
}

/* ---------------FOOTER----------- */
.footer {
    display: flex;
    align-items: center;
    justify-content: space-evenly;
    height: 170px;
    background-color: var(--h3-color-secundario);
}

.derechos-logo {
    display: flex;
    align-items: center;
    color: #fff;
    font-size: 12px;
    gap: 140px;
}

.footer-logo img{
    max-width: 120px;

}

.footer-logo img:hover {
    transform: scale(1.1);
    transition: transform 0.3s ease;
}

.ul-redes {
    display: flex;
    gap: 10px;
}

.ul-redes i {
    color: #fff;
    font-size: 25px;
    border: 2px solid #fff;
    padding: 8px;
}

.ul-redes i:hover {
    background-color: #fff;
    color: #044774;
}



/* ------------------------ TABLET (pantallas medianas) ------------------------ */
@media screen and (max-width: 1024px) {
    .banner-texto{
        width: 70%;
        margin-left: 60px;
    }

    .perros-texto {
        width: 40%;
        top: 25%;
        margin-left: 60px;
    }

    .gato-texto {
        right: 0px;
        width: 40%;
        top: 25%;
        margin-left: 150px;
    }

    .novedades-contenedor {
        max-width: 700px;

    }

    .carousel-item {
        flex: 0 0 50%;
      }

    .marcas-items img {
        max-width: 120px;
    }

    .derechos-logo {
        gap: 60px;
    }

    /* SECCION NOVEDADES APARECERA CON JAVASCRIPT */


}


/* --------CELULAR (pantallas pequeñas) ------------------------ */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    /* ---DISEÑO DEL MENU DESPEGABLE EN CELULARES--- */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 50vh;
        width: 50%;
        background-color: #111;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        transition: right 0.3s ease-in-out;
    }

    /* ----ESTE .SHOW ES SOLO PARA JAVASCRIP SI EN NAV-LINKS TENEMOS RIGTH:-100% CON EL NUEVO VALOR DE .SHOW HACEMOS QUE SE DESLICE*/
    .nav-links.show {
        right: 0;
    
    }

    .nav-links li {
        margin: 20px 0;
    }

    .close-menu {
        position: absolute;
        top: 20px;
        right: 30px;
        font-size: 2rem;
        cursor: pointer;
    }

    .nav-links i{
        display: block;
    }

    #menu-toggle {
        display: block;
    }

    .nav-links li:hover {
        transform: scale(1.2);
        transition: transform 0.3s ease;
    }

    /* -------SECCION BANNER */
    .banner {
        height: 420px; 
    }

    .banner-texto {
        width: 70%;
        top: 32%;
        margin-left: 25px;
    }

    .banner-texto h2 {
        font-size: 25px;
        margin-bottom: 5px;
    }

    .banner-texto p {
        font-size: 16px;
        line-height: 25px;
    } 

    /* ---------SECCION PERROS--- */
    .perros-texto {
        width: 50%;
        top: 28%;
        margin-left: 25px;
    }

    .perros-texto h2, .gato-texto h2{
        font-size: 38px;
        margin-bottom: 5px;
        font-weight: bold;
    }

    .perros-texto p, .gato-texto p {
        font-size: 17px;
        margin-bottom: 15px;
        font-weight: bold;
        padding: 0;
    }

    .banner-button a {
        font-size: 15px;
        padding-left: 10px;
    }

    .banner-button i {
        font-size: 15px;
    }

    /* -------SECCION PERROS */
    .mascota-perros {
        height: 350px;
    }

    .mascota-fondo-perros img{
        height: 350px;
    }

    /* ------SECCION GATOS */
    .mascota-gato {
        height: 350px;
        
    }

    .mascota-fondo-gatos img{
        height: 350px;
    }

    .gato-texto {
        width: 50%;
        top: 30%;
    }

    /* -------SECCION NOVEDADES */
    .novedades-contenedor {
        max-width: 420px;
    }

    .novedades-cards {
        max-width: 90%;
    }



    .carousel-item {
        flex: 0 0 100%;
      }

    /* --------SECCION NUESTRAS MARCAS */
    .nuestras-marcas {
        height: 40vh;
    }

    .marcas-titulo h3{
        font-size: 35px;
        margin-top: 30px;
    }

    .marcas-container {
        padding: 15px 0;
        margin-top: -10px;
        gap: 0px;
    }

    .marcas-items img {
        padding: 0 8px 0 5px;
    }



    /* -----SECCION FOOTER */
    .footer {
        flex-direction: column;
        height: auto;
        padding: 20px 0;
        gap: 20px;
    }

    .derechos-logo {
        flex-direction: column;
        gap: 20px;
        font-size: 10px;
        text-align: center;
    }

    .ul-redes {
        justify-content: center;
    }

    .ul-redes i {
        font-size: 18px;
    }
}






