/* Root Variables */
:root {
  /* Colors */
  --color-dark: #0a0a0a;
  --color-light: #ffffff;
  --color-primary: #0044ee;
  --color-accent: #ff4a00;
  --color-gray: #cccccc;
  --color-gray-light: #f5f5f5;
  --color-gray-medium: #666666;

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 2rem;
  --space-xl: 3rem;
  --space-2xl: 4rem;
  --space-section: 6rem;
  --space-section-desktop: 10rem;
  --space-gap: 2rem;
  --space-gap-desktop: 3rem;
  --space-card: 2.5rem;

  /* Typography */
  --font-family: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.5rem;
  --font-size-xl: 2rem;
  --font-size-2xl: 2.5rem;
  --font-size-3xl: 3rem;
  --font-size-4xl: 4rem;
  --line-height: 1.6;

  /* Shadow */
  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 5px 5px rgba(0, 0, 0, 0.5);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

/* Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  line-height: var(--line-height);
  color: var(--color-dark);
  background-color: var(--color-light);
}

img {
  object-fit: cover;
  max-width: 100%;
  height: auto;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  border: none;
  background: none;
}

input {
  font-family: inherit;
  font-size: inherit;
}

/* Utilities */
.skip-link {
  transition: all 0.5s;
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 100;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  color: var(--color-light);
  background: var(--color-primary);
}

.skip-link:focus {
  top: var(--space-sm);
}

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

:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 1px;
}

/* HEADER / NAVBAR */
header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--color-light);
  box-shadow: var(--shadow-sm);
}

#menu-toggle {
  pointer-events: none;
  position: fixed;
  opacity: 0;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-sm) var(--space-md);
}

.navbar-logo img {
  width: 40px;
  height: 40px;
}

.navbar-menu {
  display: flex;
  gap: var(--space-xs);
}

.navbar-menu a {
  transition: color 0.5s;
  font-size: var(--font-size-xs);
  padding: var(--space-xs);
}

.navbar-menu a:hover {
  color: var(--color-primary);
}

.btn {
  transition: all 0.5s;
  font-weight: 600;
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-gray);
  background: transparent;
}

.btn:hover {
  color: var(--color-light);
  background: var(--color-primary);
}

/* Main - Sections */
main {
  width: 100%;
}

.contenedor {
  padding: var(--space-section) var(--space-md);
}

/* Home */
.home {
  position: relative;
}

.home-links {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-sm);
  padding: var(--space-sm);
}

.home-links a:first-child {
  font-weight: bold;
  color: var(--color-accent);
}

.home h1 {
  text-align: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: var(--font-size-xl);
  color: var(--color-accent);
}

/* Container Text */
.container-text {
  margin: 0 auto;
}

.container-text h2 {
  text-align: justify;
  font-weight: bold;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-md);
}

.container-text p {
  text-align: justify;
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-xl);
}

/* imágenes */
.img1,
.img2 {
  width: 100%;
  max-width: 180px;
  padding: var(--space-sm);
  border-radius: var(--radius-sm);
}

.img1 img,
.img2 img {
  width: 100%;
  max-width: 180px;
  border-radius: var(--radius-md);
}

/* Products Grid */
.products-grid {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

/* Preview Video */
.preview-video {
  text-align: center;
}

.preview-video img {
  border-radius: var(--radius-md);
}

.preview-video p {
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
}

/* Team */
.team-grid {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.team-grid .img1 {
  background: none;
}

.team-grid .img2 {
  padding: var(--space-sm);
  background-color: rgba(0, 68, 238, 0.08);
  box-shadow: var(--shadow-sm);
}

.team-grid .img2 img {
  max-width: 250px;
  margin: 0 auto;
}

/* Creativity */
.creativity-img {
  max-width: 300px;
  width: 100%;
  margin: 0 auto;
}

.creativity-img img {
  width: 100%;
  border-radius: var(--radius-md);
}

/* Image Grid */
.img-grid {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(0, 68, 238, 0.08);
  box-shadow: var(--shadow-sm);
}

.img-grid .img {
  width: 100%;
  max-width: 250px;
  background: none;
}
.img-grid .img2 img {
  max-width: 250px;
}

/* Dos paneles */
.panel {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(255, 74, 0, 0.08);
  box-shadow: var(--shadow-sm);
}

.panel img {
  max-width: 250px;
  margin: 0 auto;
  border-radius: var(--radius-md);
}

.panel-text {
  padding: var(--space-sm);
}

.panel-text h3 {
  text-align: justify;
  font-size: var(--font-size-base);
  margin-bottom: var(--space-sm);
}

.panel-text a {
  transition: all 0.5s;
  font-size: var(--font-size-sm);
  color: var(--color-accent);
}

.panel-text a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

/* Footer */
.footer {
  margin-top: var(--space-sm);
  padding: var(--space-lg) var(--space-md);
  border-top: 1px solid var(--color-gray);
}

.footer .titulo h2 {
  font-size: var(--font-size-lg);
}

.footer-sup,
.footer-inf {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  padding-top: var(--space-md);
}

.container-community,
.container-education,
.container-newsletter {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.container-community h3,
.container-education h3,
.container-newsletter h3 {
  font-size: var(--font-size-base);
  margin-top: var(--space-sm);
}

.container-newsletter p {
  text-align: justify;
  font-size: var(--font-size-sm);
}

.container-community li,
.container-education li {
  margin-bottom: var(--space-xs);
}

.container-community a,
.container-education a,
.container-newsletter a {
  transition: all 0.5s;
  font-size: var(--font-size-sm);
}

.container-community a:hover,
.container-education a:hover,
.container-newsletter a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

.lang {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.lang button {
  transition: all 0.5s;
  font-size: var(--font-size-sm);
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-gray);
  border-radius: var(--radius-sm);
  background: transparent;
}

.lang button:hover {
  color: var(--color-light);
  background: var(--color-primary);
}

.newsletter {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.newsletter input {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--color-gray);
  border-radius: var(--radius-sm);
  font-size: var(--font-size-sm);
}

.newsletter input:focus {
  outline: none;
  box-shadow: var(--shadow-sm);
}

.newsletter button {
  transition: all 0.5s;
  width: 100%;
  font-weight: 100;
  padding: var(--space-xs) var(--space-sm);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-light);
  background: var(--color-accent);
}

.newsletter button:hover {
  background: var(--color-primary);
}

.footer-inf .legal-links ul {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-inf .legal-links li a {
  transition: all 0.5s;
  font-size: var(--font-size-sm);
}

.footer-inf .legal-links li a:hover {
  text-decoration: underline;
  color: var(--color-primary);
}

.footer-inf .copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  font-size: var(--font-size-sm);
  margin-top: var(--space-sm);
}

/* MENU HAMBURGUESA (CSS ONLY) */
@media (max-width: 767px) {
  .navbar > label[for="menu-toggle"] {
    cursor: pointer;
  }

  .navbar > label[for="menu-toggle"]::before {
    content: "☰";
    font-size: var(--font-size-lg);
  }

  .navbar-menu {
    display: none;
    flex-direction: column;
    text-align: center;
    width: 100%;
    gap: 0;
    margin-top: var(--space-xs);
  }

  .navbar-menu li {
    width: 100%;
  }

  .navbar-menu a {
    display: block;
    font-size: var(--font-size-sm);
    padding: var(--space-sm);
  }

  .navbar-menu .account {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin: var(--space-lg) 0;
  }

  #menu-toggle:checked ~ .navbar-menu {
    display: flex;
  }
}

/* Responsive - Tablet (768px) */
@media (min-width: 768px) {
  header {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  label[for="menu-toggle"] {
    display: none;
  }

  #menu-toggle {
    display: none;
  }

  .navbar-menu {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-xs);
    margin-right: var(--space-sm);
  }

  .menu-links,
  .account {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-xs);
  }

  .navbar-menu a {
    font-size: var(--font-size-sm);
  }

  .account .btn {
    font-size: var(--font-size-sm);
  }

  /* Container Text */
  .container-text {
    width: 80%;
  }

  .home img {
    width: 100%;
  }

  .home h1 {
    font-size: var(--font-size-3xl);
  }

  /* Products Grid */
  .products-grid {
    justify-content: center;
  }

  /* Team Grid */
  .team-grid {
    justify-content: center;
  }

  .team-grid .img2 {
    padding: var(--space-card);
    box-shadow: var(--shadow-md);
  }

  .team-grid .img1,
  .team-grid .img2 {
    max-width: 300px;
  }

  /* Image Grid */
  .img-grid {
    justify-content: center;
    width: 80%;
    margin: 0 auto;
    padding: var(--space-card);
    box-shadow: var(--shadow-md);
  }

  /* Panels */
  .panel {
    flex-direction: row;
    width: 80%;
    margin: 0 auto;
    gap: var(--space-lg);
    padding: 0;
    box-shadow: var(--shadow-md);
  }

  .panel img {
    margin: 0;
    border-radius: var(--space-md) 0 0 var(--space-md);
  }

  .panel-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    margin: 0 auto;
  }

  /* Footer */
  .footer {
    padding: var(--space-lg);
  }

  .footer-sup {
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-lg);
  }

  .footer-inf {
    padding-top: var(--space-lg);
  }

  .container-community,
  .container-education {
    flex: 1;
  }

  .lang button {
    width: fit-content;
    padding: var(--space-sm) var(--space-md);
  }

  .newsletter input {
    padding: var(--space-md) var(--space-md);
  }

  .newsletter input:focus {
    box-shadow: var(--shadow-md);
  }

  .newsletter button {
    padding: var(--space-sm) var(--space-md);
  }

  .footer-inf .legal-links ul {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
    gap: var(--space-lg);
  }
}

/* Responsive - Desktop (1024px) */
@media (min-width: 1024px) {
  .navbar {
    padding: var(--space-md) var(--space-lg);
  }

  .navbar-menu {
    gap: var(--space-lg);
    margin-right: var(--space-md);
  }

  /* Section  */
  section,
  .contenedor {
    padding: var(--space-section-desktop) var(--space-lg);
  }

  /* Home */
  .home {
    padding: var(--space-md);
  }

  .home h1 {
    font-size: var(--font-size-4xl);
  }

  /* Container Text */
  .container-text {
    width: 70%;
  }

  .container-text h2 {
    font-size: var(--font-size-lg);
  }

  .container-text p {
    font-size: var(--font-size-base);
  }

  /* Creativity */
  .creativity-img {
    max-width: 400px;
  }

  /* Image Grid */
  .img-grid {
    justify-content: space-evenly;
    width: 70%;
  }

  /* Panels */
  .panel {
    width: 70%;
  }

  /* Footer */
  .footer {
    padding: var(--space-xl);
  }

  .footer-sup {
    gap: var(--space-lg);
  }

  .container-community,
  .container-education,
  .container-newsletter {
    justify-content: center;
    gap: var(--space-md);
  }

  .container-newsletter {
    width: 350px;
  }

  .container-newsletter p {
    width: 100%;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
