:root {
  --body-bg-color: #fff;
  --body-text-color: #000;
  --logo-image: url('/img/logo-light.png');

  --nav-bg-color: rgba(233, 228, 228, 0.8);
  --nav-text-color: #000;
  --menu-text-color: #000;
  --menu-hover-bg: rgba(0, 0, 0, 0.1);
  --menu-bg-color: #fff;
  --menu-shadow: rgba(255, 255, 255, 0.3);
  --ul-bg-color: linear-gradient(135deg, rgba(236, 236, 236, 0.93) 0%, #eee 100%);
  --footer-bg-color: #dedede;
  --fooer-text-color: #000;

}

@media (prefers-color-scheme: dark) {
  :root {
    --body-bg-color: #333;
    --body-text-color: #fff;
    --logo-image: url('/img/logo-dark.png');

    --nav-text-color: #fff;
    --nav-bg-color: rgba(0, 0, 0, 0.6);
    --menu-hover-bg: rgba(255, 255, 255, 0.1);
    --menu-text-color: #fff;
    --menu-bg-color: #fff;
    --menu-shadow: rgba(0, 0, 0, 0.3);
    --ul-bg-color: linear-gradient(135deg, rgba(55, 55, 55, 0.93) 0%, #000 100%);
    --footer-bg-color: #111;
    --fooer-text-color: #fff;
  }
}

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

/* Disable Blue Highlight when Touch/Press object with Cursor:Pointer */
* {
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: 'Arial', sans-serif;
  scroll-behavior: smooth;
}

/* Navbar */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  /*background-color: #111;*/
  color: var(--nav-text-color);
  /*box-shadow: 0 0 10px var(--menu-shadow);*/
  background-color: var(--nav-bg-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 50px;
  font-size: 13px;
  z-index: 100;
}

/* efecto vidrio menu */
@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  nav {
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}

nav .logo {
  font-size: 1.5em;
  font-weight: bold;
}

nav .logo {
  width: 75px;
  height: 25px;
  background-size: contain;
  background-repeat: no-repeat;
  background-image: var(--logo-image);
}

/* UL limpio */
nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  /* escritorio → horizontal */
  gap: 25px;
}

/* LI ocupa lo necesario (escritorio) */
nav ul li {
  flex: 0 0 auto;
}

/* A ocupa ancho completo en mobile y queda clickable en desktop */
nav ul li a {
  display: flex;
  /* ícono + texto alineados */
  align-items: center;
  gap: 10px;
  /* espacio entre ícono y texto */
  padding: 10px 15px;
  text-decoration: none;
  color: var(--menu-text-color);
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

nav ul li a:hover {
  background-color: var(--menu-hover-bg);
}

nav ul li a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  /* evita que el ícono se achique en responsive */
  color: currentColor;
  /* hereda el color del texto */
}

/* --- Mobile --- */
@media (max-width: 768px) {
  nav ul {
    flex-direction: column;
    /* en mobile se apilan */
    gap: 0;
    /* sin espacios entre ellos */
  }

  nav ul li {
    width: 100%;
    /* cada li ocupa todo el ancho */
  }

  nav ul li a {
    width: 100%;
    /* cada enlace ocupa todo el ancho */
    border-radius: 0;
    /* estilo barra lateral */
  }
}





/* Secciones */
section {
  height: 100vh;
  display: flex;
  flex-direction: column;
  /* 👈 título arriba, grid abajo */
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

#home {
  a-background: linear-gradient(135deg, #ffffff 0%, #eeeeee 100%);
  background: linear-gradient(135deg, #f9fafb, #e5e7eb);
  color: #000;
  @media (prefers-color-scheme: dark) {
    a-background: linear-gradient(135deg, #333 0%, #555 100%);
    background: linear-gradient(135deg, #333, #444);
    color: #fff;
  }
}


#about {
  background: linear-gradient(135deg, #df0e6f 0%, #ad25fc 100%);
  color: #fff;
}

#products {
  /*background: linear-gradient(135deg, #666 0%, #313131 100%);*/
  color: #fff;
  background: #485563;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #29323c, #485563);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #29323c, #485563); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}

#services {
  background-color: #8f15e0;
  color: #fff;
}

#contact {
  background-color: #333;
  /*background: linear-gradient(135deg, #42b981 0%, #2db676 100%);*/
  color: #fff;
  
  background: #136a8a;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #267871, #136a8a);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #267871, #136a8a); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}

.css5 {
  background: #485563;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #29323c, #485563);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #29323c, #485563); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}
.css4 {
  background: #43cea2;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #185a9d, #43cea2);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #185a9d, #43cea2); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}
.css3 {
  background: #6441A5;  /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #2a0845, #6441A5);  /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #2a0845, #6441A5); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.css2 {
  background: #136a8a;  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, #267871, #136a8a);  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, #267871, #136a8a); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

}
.css1 {
  /* https://grabient.com/HQVgTAjANMCcAcsYBZZLiA7DTA2bwkAzDAAwQgwSbJViW7DymkwjK5TLC4dA?style=linearSwatches&steps=5&angle=135 */
    background: linear-gradient(135deg, rgba(208, 65, 94, 1.000) 0.000%, rgba(208, 65, 94, 1.000) 20.000%, rgba(214, 87, 103, 1.000) 20.000%, rgba(214, 87, 103, 1.000) 40.000%, rgba(219, 121, 113, 1.000) 40.000%, rgba(219, 121, 113, 1.000) 60.000%, rgba(224, 165, 124, 1.000) 60.000%, rgba(224, 165, 124, 1.000) 80.000%, rgba(230, 216, 134, 1.000) 80.000% 100.000%)
}



.link {
  color: #fac673;
  text-decoration: underline;
  font-weight: bold;
}

/* mobile */
@media screen and (max-width:768px) {

  .link {
    padding: 10px 10px;
    line-height: 1.2;
    /* opcional, mejora legibilidad */
  }
}


section h1 {
  font-size: 3em;
  margin-bottom: 20px;
}

section p {
  font-size: 1.2em;
  max-width: 700px;
}

.row {
  display: flex;
  gap: 12px;
  align-items: center
}

.btn {
  height: 50px;
  display: inline-flex;
  /* IMPORTANT: flex container */
  align-items: center;
  /* centra verticalmente todo el contenido */
  gap: 10px;
  padding: 0 20px;
  /* vertical control por height, horizontal por padding */
  background: #e61d0e;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1;
  /* evita que el texto aumente la altura útil */
  white-space: nowrap;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06);
  transition: background 0.2s;
}

.btn:hover {
  background-color: #e7463a;
}

/* Icon wrapper (works tanto para <svg> inline como para <img>) */
.btn .icon {
  display: inline-flex;
  /* keep it a flex for perfect centering */
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  line-height: 0;
  /* evita espacio vertical dentro */
}

.btn img {
  display: block;
  /* elimina el gap por baseline */
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.btn .text {
  display: inline-block;
  vertical-align: middle
}


/* pequeña variante */
.btn.small {
  height: 44px;
  font-size: .95rem;
  padding: 0 14px
}

/* box de aplicaciones */
.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 900px;
  /* opcional, para que no se estire de más */
  margin-top: 20px;
  /*border: #d35400 1px solid;*/
  justify-content: center;
  margin-bottom: 20px;

}

.app-card {
  width: 200px;   /* en vez de width fijo */
  margin: 0 auto;     /* centrado dentro de su celda */
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;

}

.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.42);
}

/* box de redes sociales */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  width: 100%;
  max-width: 900px;
  /* opcional, para que no se estire de más */
  margin-top: 20px;
  /*border: #d35400 1px solid;*/
  justify-content: center;
  margin-bottom: 15px;

}

.social-card {
  width: 190px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  cursor: pointer;

}

.social-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.42);
}

.social-logo {
  width: 46px;
  height: 46px;
  margin-bottom: 5px;
}

.social-title {
  font-size: 1.0rem;
  font-weight: 600;
  color: #333;
}

@media (prefers-color-scheme: dark) {
  .social-card {
    background: #444;
    color: #fff;
  }

  .social-title {
    color: #fff;
  }
}


/* boton */
.app-logo {
  width: 64px;
  height: 64px;
  margin-bottom: 12px;
}

.app-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
}

@media (prefers-color-scheme: dark) {
  .app-card {
    background: #444;
    color: #fff;
  }

  .app-title {
    color: #fff;
  }
}

/* hover */
.btn:hover {
  filter: brightness(.98)
}

footer {
  background-color: var(--footer-bg-color);
  color: var(--fooer-text-color);
  font-size: 13px;
  text-align: center;
  padding: 20px;
}

/* Responsive */

@media(max-width:1080px) {
  section {
    height: none;
    min-height: 800px;
  }
}

@media(max-width:768px) {
  nav {
    padding: 15px 20px;
  }

  nav ul {
    position: absolute;
    top: 100%;
    right: 0;
    flex-direction: column;
    width: 300px;
    height: 100vh;
    gap: 20px;
    padding: 20px;
    background: var(--ul-bg-color);
    transition: transform 0.3s;
    transform: translateX(100%);
    /* escondido */
  }

  nav ul.show {
    transform: translateX(0);
    /* visible */
  }

}

.imagen {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  position: relative; /* necesario para posicionar la imagen */
}

.imagen img {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 105%;       /* ancho 110% */
  height: 105%;      /* altura 110% */
  transform: translate(-50%, -50%); /* centra la imagen */
  object-fit: cover;  /* rellena todo, recorta si es necesario */
}


/* contact */
section ul {
  display: flex;
  /* activa flex */
  flex-direction: row;
  /* los hijos en fila */
  gap: 20px;
  /* espacio entre ítems */
  list-style: none;
  /* quita los bullets */
  padding: 0;
  margin: 0;
}

/* mobile */
@media screen and (max-width:768px) {
  section#contact ul {
    display: flex;
    flex-direction: column;
    /* apilados verticalmente */
    gap: 16px;
    /* espacio entre ítems */
    list-style: none;
    padding: 0;
    margin: 0;
  }
}

#contact ul2 {
  display: flex;
  flex-direction: column;
  /* apilados verticalmente */
  gap: 16px;
  /* espacio entre ítems */
  list-style: none;
  padding: 0;
  margin: 0;
}

#contact ul1 {
  list-style: none;
  /* quita los puntos */
  padding: 0;
  /* quita el padding por defecto del ul */
  margin: 0;
  /* quita el margen por defecto */
}

#contact li {
  margin-bottom: 12px;
  /* opcional: espacio entre ítems */
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}






/* Navbar footer */
nav-footer {
  list-style: none;
  display: flex;
  gap: 25px;
  padding: 10px 5px;
  background-color: var(--footer-bg-color);
}

nav-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  /* escritorio → horizontal */
  gap: 25px;
}

/* LI ocupa lo necesario (escritorio) */
nav-footer ul li {
  flex: 0 0 auto;
}

/* A ocupa ancho completo en mobile y queda clickable en desktop */
nav-footer ul li a {
  display: flex;
  /* ícono + texto alineados */
  align-items: center;
  gap: 10px;
  /* espacio entre ícono y texto */
  padding: 10px 15px;
  text-decoration: none;
  color: var(--menu-text-color);
  border-radius: 6px;
  transition: background-color 0.3s, color 0.3s;
}

nav-footer ul li a:hover {
  background-color: var(--menu-hover-bg);
}

nav-footer ul li a svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  /* evita que el ícono se achique en responsive */
  color: currentColor;
  /* hereda el color del texto */
}


/* --- Mobile --- */
@media (max-width: 768px) {
  nav-footer ul {
    flex-direction: column;
    /* en mobile se apilan */
    gap: 0;
    /* sin espacios entre ellos */
  }

  nav-footer ul li {
    width: 100%;
    /* cada li ocupa todo el ancho */
  }

  nav-footer ul li a {
    width: 100%;
    /* cada enlace ocupa todo el ancho */
    border-radius: 0;
    /* estilo barra lateral */
  }
}


/* Navbar social */
nav-social {
  list-style: none;
  display: flex;
  gap: 15px;
  padding: 5px 0px;
  background-color: var(--footer-bg-color);
  justify-content: center; /* centra horizontalmente */
  align-items: center;     /* centra verticalmente */
}

nav-social img {
  width: 25px;
  height: 25px;
}

nav-social a img:hover {
  transform: scale(1.1);
  transition: transform 0.2s;
}























/* boton hamburguesa */
.hamburger {
  display: none;
  width: 26px;
}

@media(max-width:768px) {
  .hamburger {
    display: flex;
  }
}

.hamburger .btn2 {
  width: 26px;
  cursor: pointer;
}

.hamburger span {
  display: block;
  width: 100%;
  height: 3px;
  background-color: var(--nav-text-color);
  transition: all .3s;
  position: relative;
}

.hamburger span+span {
  margin-top: 6px;
}

.active span:nth-child(1) {
  animation: ease .7s top forwards;
}

.not-active span:nth-child(1) {
  animation: ease .7s top-2 forwards;
}

.active span:nth-child(2) {
  animation: ease .7s scaled forwards;
}

.not-active span:nth-child(2) {
  animation: ease .7s scaled-2 forwards;
}

.active span:nth-child(3) {
  animation: ease .7s bottom forwards;
}

.not-active span:nth-child(3) {
  animation: ease .7s bottom-2 forwards;
}

@keyframes top {
  0% {
    top: 0;
    transform: rotate(0);
  }

  50% {
    top: 9px;
    transform: rotate(0);
  }

  100% {
    top: 9px;
    transform: rotate(45deg);
  }
}

@keyframes top-2 {
  0% {
    top: 9px;
    transform: rotate(45deg);
  }

  50% {
    top: 9px;
    transform: rotate(0deg);
  }

  100% {
    top: 0;
    transform: rotate(0deg);
  }
}

@keyframes bottom {
  0% {
    bottom: 0;
    transform: rotate(0);
  }

  50% {
    bottom: 9px;
    transform: rotate(0);
  }

  100% {
    bottom: 9px;
    transform: rotate(135deg);
  }
}

@keyframes bottom-2 {
  0% {
    bottom: 9px;
    transform: rotate(135deg);
  }

  50% {
    bottom: 9px;
    transform: rotate(0);
  }

  100% {
    bottom: 0;
    transform: rotate(0);
  }
}

@keyframes scaled {
  50% {
    transform: scale(0);
  }

  100% {
    transform: scale(0);
  }
}

@keyframes scaled-2 {
  0% {
    transform: scale(0);
  }

  50% {
    transform: scale(0);
  }

  100% {
    transform: scale(1);
  }
}