*{
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
}

:root {
    --blanco: aliceblue;
    --negro: black;
    --bg-header: #ffffff;
    --bg-body: #f8f8f8;
    --text-main: #111827;
    --text-muted: #6b7280;
    --azul-principal: #48e;
    --icon-color: #ffffff;
    --card-bg: #ffffff;
    --shadow-color: rgba(255, 255, 255, 0.945);
}

body.dark-mode {
    --bg-header: #0f172a;
    --bg-body: #020617;
    --text-main: #f8f8f8;
    --text-muted: #9ca3af;
    --shadow-color: rgba(0,0,0,0.10);
    --card-bg: #020617;
}

html, body {
  height: 100%;
}

body{
    display: flex;
    flex-direction: column;
    background-color: var(--bg-body);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
}

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 100px;
    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);
    padding: 10px;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.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;
    background-color: var(--bg-header);
    box-shadow: 0px 0px 5px rgba(0, 0, 0,0.1);
}

.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);
}

.barra-busqueda-2{
    display: none;
}

.dark-desktop {
    display: block;
}

.dark-mobile {
    display: none;
}

/*/////////// TESTIMONIOS ///////////*/
main{
    flex: 1;
}

.testimonios {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Header */
.testimonios-header {
  text-align: center;
  margin: 40px 0;
}

.testimonios-header h1 {
  font-size: 2.4rem;
  margin-bottom: 10px;
}

.testimonios-header p {
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* Grid tipo masonry: columnas fluidas, cada imagen conserva su alto natural */
.testimonios-grid {
    columns: 280px 4;
    column-gap: 20px;
    padding: 20px;
}

.testimonio-item {
    display: block;
    width: 100%;
    break-inside: avoid;
    margin-bottom: 20px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.testimonio-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.testimonios-grid img {
    width: 100%;
    height: auto;
    display: block;
    border: solid 8px var(--bg-header);
}

/* Lightbox */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 2000;
}

.lightbox-overlay.activo {
    opacity: 1;
    pointer-events: all;
}

.lightbox-overlay img {
    max-width: 100%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.lightbox-cerrar {
    position: absolute;
    top: 20px;
    right: 25px;
    background: rgba(255,255,255,0.15);
    border: none;
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
}

.lightbox-cerrar:hover {
    background: rgba(255,255,255,0.3);
}

/* CTA */
.testimonios-cta {
  margin: 70px 0;
  text-align: center;
}

.testimonios-cta h2 {
  margin-bottom: 20px;
}

.btn {
  background: #1e88e5;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  background: #1565c0;
}
   

/*/////////// FOOTER ///////////*/
/*/////////// 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: 968px) { 
.container-barra {
    padding: 15px 20px;
}
/*/////////// HEADER ///////////*/
.barra-busqueda-2{
    display: none;
}

.barra-busqueda{
    display: flex;
    align-items: center;
    border-radius: 10px;
    width: 300px;
    overflow: hidden;
    box-shadow: 0px 5px 10px rgba(0, 0, 0,0.10);
}

#buscador-producto {
    border: none;
    outline: none;
    padding: 10px 15px;
    flex: 1;
    font-size: 14px;
}

.barra-busqueda button {
    background-color: var(--azul-principal);
    border: none;
    color: white;
    padding: 10px 16px;
    cursor: pointer;
}

.barra-busqueda button i{
    font-size: 16px;
}

.barra-busqueda button:hover {
    background-color: #2c7bc0;
}

.nav{
    display: flex;
    justify-content: center;
    padding: 12px;
   
}

.nav-list{
    display: flex;
    list-style: none;
    gap: 30px
}

.nav-list a{
    text-decoration: none;
    font-size: 16px;
}

.nav-list a:hover{
    color: var(--azul-principal);
}

/*/////////// TESTIMONIOS ///////////*/

.testimonios {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0px 20px;
}

/* Header */
.testimonios-header {
  text-align: center;
}

.testimonios-header h1 {
  font-size: 2.1rem;
  margin-bottom: 10px;
}

.testimonios-header p {
  max-width: 400px;
  margin: 0 auto;
}


/* CTA */
.testimonios-cta {
  margin-top: 70px;
  text-align: center;
}

.testimonios-cta h2 {
  margin-bottom: 20px;
}

.btn {
  background: #1e88e5;
  color: #fff;
  padding: 12px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  background: #1565c0;
}

.footer-contenido {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
}

.footer-marca {
    grid-column: 1 / -1;
}
}

@media (max-width: 579px) {

.container-barra {
    padding: 12px 15px !important;
}

.logo h1 {
    font-size: 20px !important;
}


/*/////////// HEADER ///////////*/  
.container-barra {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0px 5px 9px rgba(0, 0, 0,0.1);
}

.acciones-header {
    position: absolute;
}

.barra-busqueda-2{
    display: flex;
    border-radius: 10px;
    width: 100%;
    overflow: hidden;
    box-shadow: 0px 5px 10px rgba(0, 0, 0,0.10);
}

#buscador-producto-2 {
    border: none;
    outline: none;
    padding: 10px 15px;
    flex: 1;
    font-size: 14px;
}

.barra-busqueda-2 button {
    background-color: var(--azul-principal);
    border: none;
    color: white;
    padding: 10px 14px;
    cursor: pointer;
}

.barra-busqueda-2 button i{
    font-size: 14px;
}

.barra-busqueda-2 button:hover {
    background-color: #2c7bc0;
}

.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);
}

.dark-desktop {
        display: none;
    }

    .dark-mobile {
        display: block;
        margin-top: 15px;
    }

    .dark-mobile button {
        width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 8px;
    }

/*/////////// TESTIMONIOS ///////////*/

.testimonios {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 10px 20px;
}

/* Header */
.testimonios-header {
  text-align: center;
  margin-top: 80px;
}

.testimonios-header h1 {
  font-size: 1.7rem;
}

.testimonios-header p {
  margin: 0 auto;
}

/* Grid */
.testimonios-grid {
    columns: 2;
    column-gap: 12px;
    padding: 10px;
}

.testimonio-item {
    margin-bottom: 12px;
}

.testimonios-grid img {
    border-width: 5px;
}

/* CTA */
.testimonios-cta {
  margin-top: 70px;
  text-align: center;
}

.testimonios-cta h2 {
  margin-bottom: 35px;
  font-size: 20px;
}

.btn {
  background: #1e88e5;
  color: #fff;
  padding: 12px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

.btn:hover {
  background: #1565c0;
}

.footer-contenido {
    grid-template-columns: 1fr;
    padding: 0 20px 30px;
    gap: 28px;
}

footer.site-footer {
    padding-top: 35px;
}

}