/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colores ==========*/
  --first-color: #0a192f;      /* Azul oscuro principal (fondo) */
  --second-color: #172a45;     /* Azul oscuro secundario (tarjetas) */
  --accent-color-1: #64ffda;   /* Neón verde/turquesa */
  --accent-color-2: #00bfff;   /* Neón azul (Deep Sky Blue) */
  --text-color: #ccd6f6;       /* Texto principal (casi blanco) */
  --text-color-light: #8892b0; /* Texto secundario (gris claro) */

  /*========== Tipografía ==========*/
  --body-font: 'Open Sans', sans-serif;
  --title-font: 'Montserrat', sans-serif;
  
  --h1-font-size: 2.5rem;
  --h2-font-size: 2rem;
  --h3-font-size: 1.25rem;
  --normal-font-size: 1rem;
  --small-font-size: 0.875rem;

  /*========== z-index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
}

/*=============== BASE ===============*/
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
  background-color: var(--first-color);
  color: var(--text-color);
}

h1, h2, h3 {
  font-family: var(--title-font);
  color: var(--text-color);
  font-weight: 700;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== LAYOUT ===============*/
.container {
  max-width: 1024px;
  margin-left: 1.5rem;
  margin-right: 1.5rem;
}

.section {
  padding: 4rem 0 2rem;
}

.section__title {
  font-size: var(--h2-font-size);
  text-align: center;
  margin-bottom: 2rem;
  color: var(--accent-color-1);
}

/*=============== HEADER & NAV ===============*/
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: rgba(10, 25, 47, 0.85);
  backdrop-filter: blur(10px);
  z-index: var(--z-fixed);
  transition: background-color 0.4s;
}

.nav {
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__logo {
  color: var(--accent-color-1);
  font-family: var(--title-font);
  font-weight: 700;
  font-size: 1.5rem;
}

.nav__toggle,
.nav__close {
  font-size: 1.5rem;
  color: var(--text-color);
  cursor: pointer;
}

@media screen and (max-width: 767px) {
  .nav__menu {
    position: fixed;
    top: 0;
    right: -100%;
    background-color: var(--second-color);
    width: 70%;
    height: 100%;
    padding: 4rem 2rem 0;
    transition: right 0.4s ease-in-out;
  }
}

.nav__list {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.nav__link {
  color: var(--text-color);
  font-family: var(--title-font);
  transition: color 0.3s;
}

.nav__link:hover {
  color: var(--accent-color-1);
}

.nav__close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
}

/* Show menu */
.show-menu {
  right: 0;
}

/*=============== HERO ===============*/
.hero {
  background: url('../assets/images/hero-background.webp') no-repeat center center/cover;
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(10, 25, 47, 0.7);
  z-index: 1;
}

.hero__container {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero__title {
  font-size: var(--h1-font-size);
  color: #fff;
  margin-bottom: 1rem;
}

.hero__description {
  color: var(--text-color-light);
  max-width: 600px;
  margin: 0 auto 2rem;
}

.button {
  display: inline-block;
  background-color: transparent;
  color: var(--accent-color-1);
  border: 1px solid var(--accent-color-1);
  padding: 1rem 2rem;
  border-radius: 4px;
  font-family: var(--title-font);
  transition: background-color 0.3s, color 0.3s;
}

.button:hover {
  background-color: rgba(100, 255, 218, 0.1);
}

/*=============== SERVICES ===============*/
.services__container {
  display: grid;
  gap: 2rem;
}

.service__card {
  background-color: var(--second-color);
  padding: 2.5rem 1.5rem;
  border-radius: 8px;
  text-align: center;
  border: 1px solid transparent;
  transition: transform 0.3s, border-color 0.3s;
}

.service__card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color-2);
}

.service__icon {
  width: 80px;
  height: 80px;
  margin-bottom: 1.5rem;
}

.service__title {
  font-size: var(--h3-font-size);
  margin-bottom: 1rem;
}

.service__description {
  color: var(--text-color-light);
}

/*=============== WHY US ===============*/
.why-us__container {
    display: grid;
    gap: 2rem;
}

.why-us__item {
    text-align: center;
}

.why-us__icon {
    width: 70px;
    height: 70px;
    margin-bottom: 1rem;
}

.why-us__title {
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
}

.why-us__item p {
    color: var(--text-color-light);
    max-width: 300px;
    margin: 0 auto;
}

/*=============== CONTACT ===============*/
.contact__form {
    max-width: 500px;
    margin: 0 auto;
    display: grid;
    gap: 1.5rem;
}

.form__input {
    width: 100%;
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid var(--text-color-light);
    background-color: var(--second-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
}

.form__input::placeholder {
    color: var(--text-color-light);
}

.form__input:focus {
    outline: none;
    border-color: var(--accent-color-1);
}

.form__message {
    font-size: var(--small-font-size);
    margin-top: 0.5rem;
}

.form__message.success {
    color: var(--accent-color-1);
}

.form__message.error {
    color: #ff6b6b;
}

/*=============== FOOTER ===============*/
.footer {
  background-color: var(--second-color);
  padding: 2rem 0;
  margin-top: 4rem;
}

.footer__container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}

.footer__copyright {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.footer__socials {
  display: flex;
  gap: 1.5rem;
}

.footer__social-link {
  font-size: 1.5rem;
  color: var(--text-color-light);
  transition: color 0.3s, transform 0.3s;
}

.footer__social-link:hover {
  color: var(--accent-color-1);
  transform: translateY(-3px);
}

/*=============== SHOPPING ===============*/
.shopping__container {
  display: grid;
  gap: 2rem;
  padding-top: 1rem;
}

.product__card {
  background-color: var(--second-color);
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid transparent;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product__card:hover {
  transform: translateY(-10px);
  border-color: var(--accent-color-2);
  box-shadow: 0 10px 30px -15px rgba(0, 191, 255, 0.3);
}

.product__image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product__title {
  font-size: var(--h3-font-size);
  color: var(--accent-color-1);
  padding: 1rem 1.5rem 0.5rem;
}

.product__description {
  color: var(--text-color-light);
  padding: 0 1.5rem 1rem;
  font-size: var(--small-font-size);
}

.product__cta {
  display: block;
  padding: 1rem 1.5rem;
  text-align: right;
  font-family: var(--title-font);
  color: var(--accent-color-2);
  font-weight: 600;
}

/* Ajuste para la cuadrícula en pantallas más grandes */
@media screen and (min-width: 768px) {
  .shopping__container {
    grid-template-columns: repeat(3, 1fr);
  }
}

/*=============== MEDIA QUERIES ===============*/
/* For medium devices */
@media screen and (min-width: 768px) {
  :root {
    --h1-font-size: 4rem;
    --h2-font-size: 2.5rem;
  }

  .nav {
    height: calc(var(--header-height) + 1rem);
  }
  .nav__toggle,
  .nav__close {
    display: none;
  }
  .nav__menu {
    width: auto;
  }
  .nav__list {
    flex-direction: row;
    gap: 2.5rem;
  }

  .services__container {
    grid-template-columns: repeat(3, 1fr);
  }

  .why-us__container {
      grid-template-columns: repeat(3, 1fr);
  }

  .footer__container {
      flex-direction: row;
      justify-content: space-between;
  }
}

/* For large devices */
@media screen and (min-width: 1024px) {
  .container {
    margin-left: auto;
    margin-right: auto;
  }
}