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

body {
  font-family: 'Segoe UI', sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f9f9f9;
}

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

img {
  max-width: 100%;
  display: block;
}

/* Focus visible */
a:focus,
button:focus,
input:focus,
textarea:focus {
  outline: 2px solid #e74c3c;
  outline-offset: 2px;
}

/* ========================
   SKIP-LINK
======================== */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: #e74c3c;
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  z-index: 9999;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0.5rem;
}

/* ========================
   NAVBAR
======================== */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: transparent;
  z-index: 1000;
  padding: 0.3rem 2rem;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  max-width: 75rem;
  margin: auto;
  position: relative;
}

.logo {
  height: 180px;
}

.navbar ul {
  display: flex;
  list-style: none;
  gap: 1.5rem;
}

.navbar ul li a {
  color: white;
  font-weight: 500;
  transition: color 0.3s;
}

.navbar.scrolled ul li a {
  color: #333;
}

/* Redes sociales */
.navbar-social {
  display: flex;
  gap: 0.8rem;
}

.navbar-social a img {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.navbar-social a:hover img {
  transform: scale(1.15);
}

/* ========================
   MENÚ HAMBURGUESA
======================== */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.hamburger {
  display: block;
  width: 25px;
  height: 3px;
  background: #fff;
  position: relative;
  transition: background 0.3s;
}

.hamburger::before,
.hamburger::after {
  content: '';
  position: absolute;
  width: 25px;
  height: 3px;
  background: #fff;
  transition: transform 0.3s;
}

.hamburger::before {
  top: -8px;
}

.hamburger::after {
  top: 8px;
}

.menu-toggle.active .hamburger {
  background: transparent;
}

.menu-toggle.active .hamburger::before {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active .hamburger::after {
  transform: rotate(-45deg) translate(7px, -6px);
}

.navbar.scrolled .hamburger,
.navbar.scrolled .hamburger::before,
.navbar.scrolled .hamburger::after {
  background: #333;
}

/* ========================
   HERO
======================== */
.hero {
  background: url('../img/hero.webp') no-repeat center center/cover;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2rem;
  color: white;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  margin-bottom: 1.5rem;
}

.btn-primary {
  background-color: #e74c3c;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1rem;
  transition: background 0.3s ease;
  display: inline-block;
}

.btn-primary:hover {
  background-color: #c0392b;
}

/* ========================
   PRODUCTOS
======================== */
.productos {
  padding: 4rem 2rem;
  background: #fff;
  text-align: center;
}

.productos h2 {
  font-size: 2rem;
  margin-bottom: 2rem;
}

.product-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
  max-width: 75rem;
  margin: auto;
  align-items: stretch;
}

.product-card {
  background: #fff;
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 1.5rem;
  max-width: 350px;
  flex: 1 1 300px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  transition: transform 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  border-radius: 8px;
  margin-bottom: 1rem;
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.product-card p {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.75rem;
  flex-grow: 1;
}

.features {
  text-align: left;
  margin-bottom: 1.5rem;
}

.product-card .btn-primary {
  background-color: #e67e22;
  margin-top: auto;
  width: 100%;
}

.product-card .btn-primary:hover {
  background-color: #cf711c;
}

/* ========================
   SOBRE NOSOTROS
======================== */
.nosotros {
  padding: 4rem 2rem;
  background-color: #f4f4f4;
}

.nosotros-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
  max-width: 75rem;
  margin: auto;
}

.nosotros-content img {
  flex: 1 1 300px;
  border-radius: 10px;
}

.nosotros-content div {
  flex: 2;
}

.nosotros-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.nosotros-content ul {
  margin: 1rem 0;
  padding-left: 1.2rem;
}

.nosotros-content ul li {
  margin-bottom: 0.5rem;
  color: #444;
  list-style: none;
  position: relative;
  padding-left: 1.2rem;
}

.nosotros-content ul li::before {
  content: "•";
  color: #e67e22;
  font-weight: bold;
  position: absolute;
  left: 0;
}

/* ========================
   FOOTER
======================== */
.footer {
  background: #333;
  color: #fff;
  padding: 2rem;
  text-align: center;
  margin-top: auto;
}

.footer a {
  color: #ffd700;
}

.social-links {
  margin: 1rem 0;
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.social-links a img {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

.social-links a:hover img {
  transform: scale(1.15);
}

/* ========================
   RESPONSIVE - MÓVIL
======================== */
@media (max-width: 768px) {
  .navbar {
    padding: 0.5rem 1rem;
  }

  .navbar .container {
    padding: 0;
  }

  .logo {
    height: 50px;
    width: auto;
  }

  .menu-toggle {
    display: block;
  }

  .navbar-social {
    display: none;
  }

  nav#nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transform: translateY(-150%);
    transition: transform 0.3s ease;
    z-index: 999;
  }

  nav#nav-menu.active {
    transform: translateY(0);
  }

  nav#nav-menu ul {
    flex-direction: column;
    padding: 2rem;
    gap: 1.5rem;
  }

  nav#nav-menu ul li a {
    color: #333;
    font-size: 1.1rem;
  }

  .hero h1 {
    font-size: 1.8rem;
  }

  .product-card {
    flex: 1 1 100%;
    max-width: 100%;
  }

  .nosotros-content {
    flex-direction: column;
    text-align: center;
  }
}