/* Restablecimiento global de estilos */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
  background-color: #ffffff;
  color: #1f1f1f;
  overflow-x: hidden;
  width: 100%;
}

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

/* Envoltorio y barra de navegación */
.nav-wrapper {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  display: flex;
  justify-content: center;
  padding: 0;
  transition: padding 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  background: transparent;
}

.nav-wrapper.scrolled {
  padding: 12px 24px;
}

.navbar {
  width: 100%;
  height: 64px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-radius: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-wrapper.scrolled .navbar {
  max-width: 1280px;
  border-radius: 32px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.google-logo {
  width: 24px;
  height: 24px;
  cursor: pointer;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 16px;
}

.nav-links a {
  text-decoration: none;
  color: #3c4043;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #1a73e8;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-icon-btn {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  color: #3c4043;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  gap: 6px;
}

.nav-icon-btn.mysql-btn {
  text-decoration: none;
}

.nav-icon-btn.mysql-btn span {
  font-size: 13px;
  font-weight: 500;
}

.btn-sign-in {
  background-color: #1a73e8;
  color: #ffffff;
  border: none;
  padding: 8px 20px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-sign-in:hover {
  background-color: #1557b0;
}

.cart-badge {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: #1a73e8;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  padding: 0 4px;
}

.nav-spacer {
  height: 64px;
}

/* Secciones y botones */
.section-container {
  width: 100%;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.section-title {
  font-size: 32px;
  font-weight: 500;
  margin-bottom: 36px;
  text-align: center;
}

.btn-outline {
  background: transparent;
  border: 1px solid #3c4043;
  color: #1f1f1f;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 32px;
  transition: all 0.2s;
}

.btn-outline:hover {
  background-color: rgba(0, 0, 0, 0.05);
}

/* Rejillas de contenido */
.grid-3 {
  width: 100%;
  max-width: 1380px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}

.grid-2 {
  width: 100%;
  max-width: 1380px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.promo-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.promo-card h3 {
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 8px;
}

.promo-card p {
  font-size: 14px;
  color: #5f6368;
  margin-bottom: 12px;
  line-height: 1.4;
}

.why-buy-grid {
  width: 100%;
  max-width: 1380px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 80px;
}

.why-card .btn-outline {
  margin-top: auto;
  margin-bottom: 0;
}

/* Componentes varios */
.badge-new {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #e8f0fe;
  color: #1a73e8;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 12px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #dadce0;
  cursor: pointer;
}

.dot.active {
  background-color: #1f1f1f;
}

.footnotes {
  width: 100%;
  max-width: 1200px;
  font-size: 11px;
  color: #70757a;
  line-height: 1.6;
  margin-bottom: 60px;
  padding: 0 20px;
}

.icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* Formulario */
.contenedor-form {
  max-width: 400px;
  margin: 60px auto;
  padding: 40px;
  border: 1px solid #e8eaed;
  border-radius: 16px;
}

.contenedor-form h2 {
  margin-bottom: 20px;
  font-weight: 500;
}

.contenedor-form input,
.contenedor-form select {
  width: 100%;
  padding: 12px;
  margin-bottom: 14px;
  border: 1px solid #dadce0;
  border-radius: 8px;
  font-size: 14px;
}

.contenedor-form button {
  width: 100%;
  background: #1a73e8;
  color: #ffffff;
  border: none;
  padding: 12px;
  border-radius: 8px;
  font-size: 15px;
  cursor: pointer;
}

.contenedor-form button:hover {
  background: #1558b3;
}

.error-msg {
  background: #fce8e6;
  color: #c5221f;
  padding: 10px 14px;
  border-radius: 8px;
  margin-bottom: 14px;
  font-size: 14px;
}

/* Panel de administración */
.admin-wrap {
  max-width: 1100px;
  margin: 40px auto;
  padding: 0 20px;
}

.admin-wrap h2 {
  margin: 30px 0 12px;
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

table th,
table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid #e8eaed;
}

table th {
  background: #f8f9fa;
  font-weight: 600;
}

.logout-btn {
  background: #ea4335;
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 14px;
}

/* Pie de página */
footer {
  width: 100%;
  background-color: #ffffff;
  border-top: 1px solid #dadce0;
  padding: 60px 24px 24px 24px;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-size: 22px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 40px;
}

.footer-links-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 60px;
}

.footer-col h5 {
  font-size: 14px;
  font-weight: 500;
  color: #202124;
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  text-decoration: none;
  color: #5f6368;
  font-size: 13px;
}

.footer-col a:hover {
  color: #1a73e8;
}

.footer-bottom {
  border-top: 1px solid #dadce0;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #5f6368;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-bottom-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.country-selector {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #202124;
  font-weight: 500;
}

.social-links {
  display: flex;
  gap: 16px;
}

.social-links a {
  color: #5f6368;
  text-decoration: none;
  font-size: 16px;
}

/* Estilos responsivos */
@media (max-width: 900px) {
  .grid-3,
  .grid-2,
  .categories-grid,
  .why-buy-grid,
  .footer-links-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .carousel-card-product {
    flex: 0 0 calc(50% - 10px);
  }

  .carousel-card-article {
    flex: 0 0 85%;
  }

  .feature-banner {
    grid-template-columns: 1fr;
  }

  .nav-links {
    display: none;
  }
}