*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

:root {
    --blanco: aliceblue;
    --negro: black;
    --bg-header: #ffffff;
    --bg-body: #f5f5f5;
    --text-main: #111827;
    --text-muted: #6b7280;
    --azul-principal: #48e;
    --icon-color: #ffffff;
    --card-bg: #ffffff;
}

body.dark-mode {
    --bg-header: #0f172a;
    --bg-body: #020617;
    --text-main: #e5e7eb;
    --text-muted: #9ca3af;
    --icon-color: #facc15;
    --card-bg: #020617;
}

html, body{
    height: 100%;
}

body{
    display: flex;
    flex-direction: column;
    background-color: var(--bg-body);
}

header{
    box-shadow: 0px -5px 25px rgba(0,0,0,0.15);
}

.container-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 50px;
    background-color: var(--bg-header);
    transition: background-color 0.3s ease;
}

.logo h1 {
    font-size: 28px;
    color: var(--azul-principal);
}



/*/////////// HEADER ///////////*/

.dark-toggle {
    background-color: var(--azul-principal);
    color: var(--text-main);
    padding: 10px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 600;
}

.carrito-btn{
    background-color: var(--azul-principal);
    padding: 10px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-size: 16px;
    color: var(--text-main);
    font-weight: 600;
}

.carrito-btn:hover {
    background-color: #2563eb; 
    transform: scale(1.05);
}


.dark-toggle:hover {
    background-color: #2563eb; 
    transform: scale(1.05);
}


.dark-toggle i {
    color: var(--blanco);
    font-size: 22px;
}

body.dark-mode .dark-toggle i {
    color: var(--blanco);
}

.nav{
    display: flex;
    justify-content: center;
    padding: 12px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0,0.1);
    background-color: var(--bg-header);
}

.nav-list{
    display: flex;
    list-style: none;
    gap: 90px
}

.nav-list a{
    color: var(--text-main);
    text-decoration: none;
    font-size: 18px;
}

.nav-list a:hover{
    color: var(--azul-principal);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 26px;
    cursor: pointer;
    color: var(--text-main);
}

.dark-desktop {
    display: block;
}

.dark-mobile {
    display: none;
}

/*/////////// PRODUCTO ///////////*/
main{
    flex: 1;
    align-items: center;
}

.producto {
    max-width: 1100px;
    margin: 50px auto;
    padding: 30px;
    background-color: var(--bg-header);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}


.producto img {
    width: 100%;
    object-fit: contain;
    padding: 10px 20px;
    border-radius: 30px;
    background-color: var(--bg-header);
    box-shadow: 0 0px 20px rgba(0,0,0,0.2);
}


.producto-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.producto-info h1 {
    font-size: 28px;
    color: var(--text-main);
}

.producto-info p {
    line-height: 1.6;
}


.producto-info p:nth-of-type(1) {
    font-size: 26px;
    font-weight: bold;
    color: var(--azul-principal);
}


.selector-cantidad {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}

.selector-cantidad button {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    border: 1px solid #ddd;
    background: var(--bg-header);
    color: var(--text-main);
    font-size: 18px;
    cursor: pointer;
}

.selector-cantidad button:hover {
    background: var(--azul-principal);
    color: #fff;
    border-color: var(--azul-principal);
}

.selector-cantidad span {
    font-size: 18px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
    color: var(--text-main);
}

.btn-agregar-carrito {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .7rem;
    width: 50%;
    margin: 10px 0;
    padding: 15px;
    border-radius: 12px;
    background: var(--azul-principal);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: .25s;
}

.btn-agregar-carrito:hover {
    background: #2c7bc0;
    transform: translateY(-2px);
}

.selector-cantidad button:disabled,
.btn-agregar-carrito:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.aviso-stock {
    font-size: 14px;
    font-weight: 600;
    margin-top: 4px;
}

.aviso-stock.sin-stock {
    color: #e0433f;
}

.aviso-stock.stock-bajo {
    color: #f59e0b;
}


.btn-whatsapp{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:.7rem;
    width:50%;
    margin: 10px 0;
    padding:15px;
    border-radius:12px;
    background:#25D366;
    color:#fff;
    text-decoration:none;
    font-weight:700;
    font-size:1rem;
    transition:.25s;
}

.btn-whatsapp:hover{
    background:#1ebe5d;
    transform:translateY(-2px);
}

.btn-whatsapp i{
    font-size:1.3rem;
}

#producto-descripcion {
    font-size: 18px;
    color: var(--text-muted);
}


.producto-info button {
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.producto-info button:hover {
    background: #0056b3;
}

.especificaciones {
  margin-top: 30px;
  color: var(--text-main);
}

.especificaciones ul {
  list-style: none;
  padding: 0;
}

.especificaciones li {
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
  font-size: 14px;
}


/*/////////// FOOTER ///////////*/
footer.site-footer {
    background-color: #14141c;
    color: #d1d5db;
    padding-top: 50px;
}

.footer-contenido {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 40px;
    padding: 0 30px 40px;
}

.footer-marca h2 {
    color: #fff;
    font-size: 24px;
    margin-bottom: 12px;
}

.footer-marca h2 span {
    color: #4488ee;
}

.footer-marca p {
    font-size: 14px;
    line-height: 1.6;
    color: #9ca3af;
    max-width: 320px;
    margin-bottom: 20px;
}

.footer-redes {
    display: flex;
    gap: 12px;
}

.footer-redes a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    color: #fff;
    border-radius: 50%;
    text-decoration: none;
    font-size: 16px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.footer-redes a:hover {
    background: #4488ee;
    transform: translateY(-2px);
}

.footer-columna h3 {
    color: #fff;
    font-size: 15px;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.footer-columna ul {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-columna a,
.footer-columna span {
    color: #9ca3af;
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-columna a:hover {
    color: #4488ee;
}

.footer-columna i {
    width: 16px;
    color: #4488ee;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 18px 30px;
    text-align: center;
}

.footer-bottom p {
    font-size: 13px;
    color: #6b7280;
    letter-spacing: 0.02em;
}



/*/////////// RESPONSIVE ///////////*/

@media (max-width: 768px) { 
.container-barra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    background-color: var(--bg-header);
}

.logo h1 {
    font-size: 24px;
}

/*/////////// HEADER ///////////*/
.nav{
    display: flex;
    justify-content: center;
    padding: 12px;
}

.nav-list{
    display: flex;
    list-style: none;
    gap: 30px
}

.nav-list a{
    color: var(--text-main);
    text-decoration: none;
    font-size: 16px;
}

.nav-list a:hover{
    color: var(--azul-principal);
}

/*/////////// PRODUCTO ///////////*/

.producto {
    max-width: 1100px;
    margin: 30px auto;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}


.producto img {
    width: 100%;
    object-fit: contain;
    border-radius: 30px;
    padding: 0px;
}


.producto-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.producto-info h1 {
    font-size: 28px;
}

.producto-info p {
    line-height: 1.6;
}


.producto-info p:nth-of-type(1) {
    font-size: 26px;
    font-weight: bold;
}


.producto-acciones{
    display: flex;
    flex-direction: column;
    align-items: center;
}

#producto-descripcion {
    font-size: 15px;
}

.selector-cantidad {
    justify-content: center;
}

.producto-info button {
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.producto-info button:hover {
    background: #0056b3;
}

.footer-contenido {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
}

.footer-marca {
    grid-column: 1 / -1;
}

}

@media (max-width: 500px) {
/*/////////// HEADER ///////////*/

.banner {
    padding-top: 62px !important;
  }

.container-barra {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 5px 10px rgba(0, 0, 0,0.2);
}

.menu-toggle {
  display: block;
  z-index: 1001;
}
.container-barra .barra-busqueda {
  display: none;
}
.nav {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 320px;
  height: 100vh;
  padding: 60px 20px;
  display: flex;
  flex-direction: column;
  justify-content: start;
  gap: 30px;
  box-shadow: -5px 0 15px rgba(0,0,0,0.15);
  transition: right 0.3s ease;
  z-index: 1000;
}

.nav.active {
  right: 0;
}

.nav .barra-busqueda {
  display: flex;
  width: 100%;
}

.nav-list {
  flex-direction: column;
  gap: 25px;
  list-style: none;
  padding: 0;
}

.nav-list a {
  font-size: 15px;
  color: var(--text-main);
  text-decoration: none;
}

.nav-list a:hover {
  color: var(--azul-principal);
}

.acciones-header {
    position: absolute;
}

 .dark-desktop {
        display: none;
    }

    .dark-mobile {
        display: block;
    }

    .dark-mobile button {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

/*/////////// PRODUCTO ///////////*/

.producto {
    max-width: 1100px;
    margin: 80px auto;
    padding: 25px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
}


.producto img {
    width: 100%;
    object-fit: contain;
    border-radius: 30px;
    padding: 0px;
}


.producto-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.producto-info h1 {
    font-size: 28px;
}

.producto-info p {
    line-height: 1.6;
}

.btn-whatsapp{
    width:100%;
}

.btn-agregar-carrito {
    width: 100%;
}

.selector-cantidad {
    justify-content: center;
}

.producto-info p:nth-of-type(1) {
    font-size: 26px;
    font-weight: bold;
}


#producto-descripcion {
    font-size: 15px;
}


.producto-info button {
    padding: 14px;
    border: none;
    border-radius: 8px;
    background: #007bff;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.producto-info button:hover {
    background: #0056b3;
}

.footer-contenido {
    grid-template-columns: 1fr;
    padding: 0 20px 30px;
    gap: 28px;
}

footer.site-footer {
    padding-top: 35px;
}


}