:root {
  --primary: #3b82f6;
  --primary-dark: #2563eb;
  --secondary: #fbbf24;
  --text-dark: #ffffff;
  --text-muted: #cccccc;
  --bg-light: #000000;
  --bg-alt: #111111;
  --border: rgba(255, 255, 255, 0.1);
  --white: #1a1a1a;
  --success: #10b981;
  --error: #ef4444;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

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

a:hover,
a:focus {
  text-decoration: underline;
}

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

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--white);
  border-bottom: 1px solid var(--border);
}

.top-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1.5rem;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-dark);
  border-radius: 999px;
  transition: transform 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

.menu-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.logo {
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
}

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

.main-nav {
  display: flex;
  gap: 1.5rem;
}

.main-nav a {
  font-weight: 500;
  color: var(--text-muted);
}

.main-nav a:hover,
.main-nav a:focus {
  color: var(--primary);
}

.cart-button {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  border: none;
  background-color: var(--primary);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s ease;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3);
}

.cart-button:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.cart-button svg {
  width: 24px;
  height: 24px;
}

.cart-count {
  background-color: var(--white);
  color: var(--primary);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  font-weight: 600;
  font-size: 0.85rem;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(17, 24, 39, 0.35);
  z-index: 90;
}

.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(420px, 92vw);
  background-color: var(--white);
  box-shadow: -2px 0 16px rgba(17, 24, 39, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.cart-panel.visible {
  transform: translateX(0);
}

.cart-header,
.cart-footer {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#cart-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  border: none;
  color: var(--text-dark);
  font-size: 1.5rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease;
}

#cart-close:hover,
#cart-close:focus {
  background-color: rgba(255, 255, 255, 0.2);
  outline: none;
}

.cart-footer {
  border-bottom: none;
  border-top: 1px solid var(--border);
  margin-top: auto;
  display: grid;
  gap: 0.75rem;
}

.cart-footer img[alt="stripe"] {
  width: 200px;
  height: auto;
  margin: 0 auto;
}

.cart-summary {
  display: grid;
  gap: 0.5rem;
}

.cart-summary > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-items {
  list-style: none;
  padding: 1.5rem;
  margin: 0;
  display: grid;
  gap: 1rem;
  overflow-y: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: start;
  position: relative;
}

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 0.5rem;
}

.cart-item-details {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 90px;
  gap: 0.75rem;
}

.cart-item-info h4 {
  margin: 0;
  font-size: 1rem;
}

.cart-item-info p {
  margin: 0.25rem 0 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.cart-item-quantity {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.quantity-btn,
.remove-btn {
  border: 1px solid var(--border);
  background-color: transparent;
  border-radius: 0.5rem;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-weight: 600;
  color: var(--text-dark);
}

.remove-btn {
  color: var(--error);
  position: absolute;
  top: 0;
  right: 0;
}

.btn-primary,
.btn-secondary {
  display: inline-block;
  padding: 0.875rem 1.75rem;
  border-radius: 999px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  position: relative;
}

.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--primary-dark);
  box-shadow: 0 10px 20px rgba(31, 111, 235, 0.25);
  transform: translateY(-2px);
}

.btn-primary.loading {
  background-color: var(--primary-dark);
  cursor: not-allowed;
  color: transparent;
}

.btn-primary.loading::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--bg-light);
}

.btn-secondary:hover,
.btn-secondary:focus {
  box-shadow: 0 10px 20px rgba(255, 209, 102, 0.35);
  transform: translateY(-2px);
}

.btn-link {
  font-weight: 600;
  color: var(--primary);
  padding: 0.75rem 1rem;
}

.section {
  padding: 5em 0;
}

.section {
  padding: 5em 0;
}

.section-alt {
  background-color: var(--bg-alt);
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  margin-bottom: 0.75rem;
}

.section-header p {
  color: var(--text-muted);
  margin: 0;
}

.hero {
  background: linear-gradient(135deg, var(--bg-alt) 0%, var(--white) 100%);
  padding: 6rem 0 5rem;
}

.hero-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: center;
  gap: 3rem;
}

.highlight {
  display: inline-block;
  background-color: rgba(31, 111, 235, 0.1);
  color: var(--primary);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero-description {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 2rem;
}

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

.trust-badges {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  color: var(--text-muted);
}

.hero-gallery {
  display: grid;
  gap: 1.5rem;
}

.gallery-card {
  border-radius: 1.5rem;
  background-size: cover;
  background-position: center;
  min-height: 220px;
  position: relative;
  overflow: hidden;
}

.gallery-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(17, 24, 39, 0) 0%,
    rgba(17, 24, 39, 0.45) 100%
  );
}

.gallery-card.primary {
  background-image: url("img/pagina/modelo.png");
  grid-row: span 2;
}

.gallery-card.secondary {
  background-image: url("img/pagina/stock.png");
}

.gallery-card.accent {
  background-image: url("img/pagina/alvmodelo.jpeg");
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.product-card {
  background-color: var(--white);
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 450px;
}

.product-info {
  padding: 1.75rem;
  display: grid;
  gap: 1.25rem;
}

.product-info h3 {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.2;
}

.product-info p {
  margin: 0;
  color: var(--text-muted);
}

.product-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.product-rating {
  color: #ffd700;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.product-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.size-select {
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: 0.5rem;
  background-color: var(--white);
  color: var(--text-dark);
  font: inherit;
  width: 4rem;
}

.product-price {
  font-weight: 700;
  font-size: 1.25rem;
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1.5rem;
}

.feature-list li span {
  display: block;
  color: var(--text-muted);
  margin-top: 0.35rem;
}

.personaliza-preview {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

.preview-card {
  background-color: var(--white);
  padding: 1.75rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
}

.preview-card h3 {
  margin-top: 0;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.benefit-card {
  background-color: var(--white);
  padding: 1.75rem;
  border-radius: 1.25rem;
  box-shadow: 0 18px 36px rgba(17, 24, 39, 0.08);
}

.testimonials {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
}

.testimonial-card blockquote {
  margin: 0 0 1.5rem;
  font-size: 1.05rem;
  line-height: 1.7;
}

.testimonial-card figcaption {
  color: var(--text-muted);
  font-weight: 600;
}

.contact-details {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  gap: 1rem;
}

.contact-details span {
  color: var(--text-muted);
}

.contact-form {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 1.5rem;
  box-shadow: 0 20px 40px rgba(17, 24, 39, 0.08);
  display: grid;
  gap: 1.25rem;
}

.form-field label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  border: 1px solid var(--border);
  font: inherit;
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(31, 111, 235, 0.1);
  outline: none;
}

.form-feedback {
  margin: 0;
  font-weight: 600;
  color: var(--success);
}

.form-feedback.error {
  color: var(--error);
}

.cta {
  background: linear-gradient(
    135deg,
    var(--primary) 0%,
    var(--primary-dark) 100%
  );
  color: var(--white);
  padding: 4rem 0;
}

.cta-content {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.newsletter-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 2fr auto;
  align-items: center;
}

.newsletter-form input {
  padding: 0.85rem 1.2rem;
  border-radius: 999px;
  border: none;
  font: inherit;
}

.site-footer {
  background-color: var(--white);
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.footer-bottom {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 3rem;
  align-items: center;
}

@media (max-width: 768px) {
  .menu-toggle {
    display: flex;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 1rem;
    background-color: var(--white);
    border-radius: 1rem;
    box-shadow: 0 16px 30px rgba(17, 24, 39, 0.12);
    padding: 1.25rem;
    display: grid;
    gap: 1rem;
    min-width: 220px;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .main-nav.open {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
  }

  .hero-actions {
    width: 100%;
  }

  .newsletter-form {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    width: 100vw;
  }
}
