:root {
  --bg: #0f172a;
  --bg-light: #111827;
  --accent: #22c55e;
  --text: #e5e7eb;
  --muted: #9ca3af;
  --card: var(--bg-light);
  --primary-color:rgba(34, 197, 94, 0.5);
  --secondary-color: orange;
}

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

html {
  box-sizing: border-box;
}
*,
*::before,
*::after {
  box-sizing: inherit;
}


P {
  font-size: 1rem;
}

body {
  font-family: system-ui, sans-serif;
  background: radial-gradient(circle at top, #1f2937 0, #020617 55%);
  color: var(--text);
  line-height: 1.6;
}

/* --- NAVBAR --- */
header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #1f2937;
  background: radial-gradient(circle at bottom right, rgba(34, 197, 94, 0.15), transparent 55%),
                  radial-gradient(circle at top left, rgba(59, 130, 246, 0.18), transparent 50%),
                  var(--bg-light);
}

.logo {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  width: auto;
  max-width: 100%;
  text-shadow: rgb(0,0,0) 3px 3px 3px;
}

.logo span {
  color: var(--accent);
}



nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  font-size: 0.9rem;
}

nav a {
  padding: 0.25rem 0.5rem;
  border-radius: 999px;
  color: white;
  transition: background 0.2s ease;
  text-decoration: none;
}

nav a:hover {
  background: #1f2937;
  color: var(--text);
}

main {
  max-width: 960px;
  margin: 0 auto;
  padding: 2rem 1rem 3rem;
}

/* --- NAV ESCRITORIO --- */

.nav-container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-main .nav-list {
  display: flex;
  gap: 1rem;
  list-style: none;
}

/* --- HAMBURGUESA --- */

.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.menu-toggle {
  display: none;              /* visible solo en móvil */
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background-color: #e5e7eb;  /* gris clarito (ajusta si quieres) */
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* animación a X */
.menu-toggle.active .bar:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active .bar:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- MENÚ MÓVIL --- */
.mobile-menu {
  display: none;
  list-style: none;
  padding: 0.5rem 1rem 0.75rem;
  margin: 0;
  background: #0f172a;
  border-bottom: 1px solid #1f2937;
}

.mobile-menu.open {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-menu a {
  text-decoration: none;
  color: #e5e7eb;
  font-size: 0.95rem;
}


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

/*flags*/

/* Contenedor de banderas, debajo del nav */
.flags {
  width: 100%;
  display: flex;
  justify-content: center;   /* centrado horizontal */
  margin: 0.5rem 0 1rem;     /* separación con nav y hero */
}

/* Contenedor interno de las imágenes */
.flags_item {
  display: flex;
  align-items: center;
  justify-content: center;
}


/* Imágenes de las banderas */
.flags_item img {
  width: 28px;
  height: 20px;
  margin:0 6px;
  cursor: pointer;
  border-radius: 4px;
  border: 1px solid #1f2937;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  /* display: inline-block;    */
}

.flags_item img:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.5);
}

.flags_item img.active {
  border-color: #22c55e;
  box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.7);
}


/* --- HERO --- */
.hero {
  display: grid;
  gap: 2rem;
  padding: 2rem 1.5rem;
  border-radius: 1.5rem;
  background: radial-gradient(circle at top left, rgba(34, 197, 94, 0.15), transparent 55%),
              radial-gradient(circle at bottom right, rgba(59, 130, 246, 0.18), transparent 50%),
              var(--bg-light);
  border: 1px solid #1f2937;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: clamp(1.9rem, 3vw, 2.3rem);
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.badge {
  font-size: 0.75rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.7);
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.btn-primary {
  background: var(--accent);
  color: #022c22;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(34, 197, 94, 0.35);
  transition: transform 0.15s ease;
}

.btn-primary:hover {
  background: #16a34a;
  transform: translateY(-2px);
}

.btn-secondary {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.8);
  color: var(--muted);
}

.btn-secondary:hover {
  background: #111827;
  color: var(--text);
}

.hero-note {
  font-size: 0.8rem;
  color: var(--muted);
}

.hero-aside {
  border-radius: 1rem;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.85);
  padding: 1rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* --- SECCIONES --- */

/*--------------------------------------------------QUE ES GNU LINUX------------------------------------------*/

section {
  margin-bottom: 3rem;
}

section a {
  text-decoration:underline;
  color: var(--primary-color);
}

section a:hover {
  text-decoration: none;
  color: var(--secondary-color);
  transition: 0.5s;
}

section h2 {
  font-size: 1.3rem;
  margin-bottom: 0.75rem;
}

.linux-container {
  border: 1px solid white; border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.linux-container p {
  margin-top: 1rem;
}

.linux-container img {
  display: block;
  cursor: pointer;
  margin: 2rem auto;
  border-radius: 10px;
  width: 70%;
  /* height: 50%; */
}

/*----CREATORS ---------------------------*/

.creators {
  position: inherit;
  margin-bottom: 3rem;
}

.creators h2 {
  text-align: center;
}

.creators .cards {
  display: grid;
  grid-template-columns: repeat(1, 1fr 1fr);
  padding: 1rem;
  margin: auto;
  gap: 2rem;
}

.creators .card {
  display: grid;
  grid-template-rows: repeat(1, auto auto 1fr auto);
  margin-bottom: 2rem;
}

.creators article img {
  display: block;
  width:80%;
  margin: 1rem auto;
  min-width: 175px;
  margin-top: 2rem;
  border-radius: 8px;
}

.brand {
  display: block;
  margin: 0 auto;
  width: 40%;
  min-width: 200px;

}

/*-----------DISTROS----------------------*/


.img-wrap img {
  width: 100%;
  border-radius: 8px;
  display: block;
  margin: 2rem auto 2.5rem;
  cursor: pointer;
  transition: transform 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.img-wrap img:hover {
  transform: scale(1.1);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35);
}

figcaption {
  text-align: center;
  font-size: 0.9rem;
  opacity: 0.85;
}

figure {
  margin-bottom:3rem;
}




/*-----------SERVICIOS--------------------*/


.how-do {
  border-top: 1px solid #1f2937;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: auto;
  padding: 1rem;
  gap: 2rem;
}

.card {
  display: grid;
  grid-template-rows: repeat(1, auto auto auto 1fr 1fr);

  border-radius: 1rem;
  border: 1px solid #1f2937;
  background: var(--card);
  padding: 1rem;
}

.card h3 {
  margin-bottom: 0.35rem;
}

.chip {
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: #020617;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.price {
  color: var(--accent);
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.card ul {
  margin: 1rem 0 1rem;
}

.services .card img {
 /* max-height: 175px; */
 width:100%;
 object-fit: cover;
 display: block;
 margin: 2rem auto;
 border-radius: 8px;
 transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
             box-shadow 0.35s ease;
}

.services .card img:hover {
  transform: scale(1.30); /* suave, como en la foto de Sobre mí */
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.35); /* sombra suave */
}

.section-intro {
  color: var(--muted);
  margin-bottom: 1.25rem;
}

ul {
  padding-left: 1.1rem;
  color: var(--muted);
}


/*---------------COMO FUNCIONA--------------------*/

.steps {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, 1fr);
}

.step-number {
  font-size: 0.8rem;
  color: var(--muted);
}

.step-title {
  font-weight: 600;
}

.whatsapp-link:hover .whatsapp-icon {
  transform: scale(1.1);
  transition: 0.15s ease;
}

/*------------ABOUT--------------*/

.about {
  display: grid;
  gap: 1rem;
  grid-template-columns: 2fr 3fr;
}

.about-photo img {
  border: 2px solid #F2B552;
  border-radius: 50%;
  max-width: 220px;
  transition: transform 0.35s cubic-bezier(0.25, 0.1, 0.25, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease;
}

.about-photo img:hover {
  transform: scale(1.015); /* MÁS suave: antes era 1.03 */
  /*border-color: #ffd68a;
  box-shadow: 0 0 4px rgba(242,181,82,0.45);*/
}

/* --------------------------CONTACTO--------------------- */

.contact-box {
  border-radius: 1rem;
  border: 1px solid #1f2937;
  background: rgba(15, 23, 42, 0.95);
  padding: 1rem;
}

.contact-line {
  margin-bottom: 0.4rem;
}

.small-note {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

.small-note-penguin {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
}

/* ---------------------- FOOTER--------------------------- */

footer {
  border-top: 1px solid #1f2937;
  padding: 1rem;
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  background: #020617;
}


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

/* Móvil / tablets pequeñas */

@media (max-width: 361px) {


  .card img {
    min-height: 125px;
  }

}

@media (max-width: 480px) {

  .steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

}

@media (max-width: 768px) {

  main {
    text-align: center;
  }

  .desktop-menu {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-main{
    display: none;
  }

  .about {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-photo img {
    margin: 0 auto;
  }

  .creators .cards{
    grid-template-columns: repeat(1, 1fr);
  }

  .cards {
    grid-template-columns: auto;
  }
}

/* Escritorio / tablets grandes */

@media (min-width: 769px) {

  /* .menu-toggle {
    display: none;
  } */

  .desktop-menu {
    display: flex;
  }

  .mobile-menu {
    display: none;
  }

  .hero {
    grid-template-columns: 3fr 2fr;
  }
}
