:root {
  --primary: #ff5fa2;
  --primary-dark: #d700a8;
  --secondary: #6b7cff;
  --bg-gradient: linear-gradient(135deg, #3a2cff, #ff5fa2);
  --text-dark: #1a1a1a;
  --text-light: #ffffff;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

.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;
}

body {
  color: var(--text-dark);
  background: #f7f7fb;
}

.white {
  background-color: #fff;
}

/* HERO */
.hero {
  background: var(--bg-gradient);
  color: var(--text-light);
  padding: 120px 20px;
  text-align: left;
}

.hero.index {
  padding: 120px 20px;
  background: url("img/Hero.jpg") no-repeat center center/cover;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
}

.hero-image {
  flex: 1;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  z-index: 2;
  animation: float 4s ease-in-out infinite;
}

.hero-image::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 20px;
  background: rgba(0, 0, 0, 0.6);
  filter: blur(15px);
  border-radius: 50%;
  z-index: 1;
  animation: shadowSpread 4s ease-in-out infinite;
}

.hero-content {
  flex: 1;
  padding: 40px 0;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-30px);
  }
}

@keyframes shadowSpread {
  0%,
  100% {
    transform: translateX(-50%) scale(1);
    opacity: 0.8;
  }
  50% {
    transform: translateX(-50%) scale(0.7);
    opacity: 0.4;
  }
}

.hero h1 {
  font-size: 2.7rem;
  margin-bottom: 24px;
  line-height: 1.2;
}

.hero p {
  max-width: 600px;
  margin: 0 0 32px 0;
  line-height: 1.6;
  font-size: 1.125rem;
  opacity: 0.9;
}

.hero p strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: white;
}

.product p strong,
.product-section p strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.2rem;
  color: var(--text-dark);
}

.product-section.dark p strong {
  color: white;
}

.logo-container {
  max-width: 1200px;
  margin: 0 auto 40px;
  padding: 0;
}

.logo {
  width: 5%;
  height: auto;
}

.btn-primary {
  display: inline-block;
  text-decoration: none;
  background: var(--primary-dark);
  border: none;
  color: white;
  padding: 16px 32px;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  transition: all 0.2s;
  margin-top: 24px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255, 95, 162, 0.4);
}

/* FEATURES */
.features {
  background-color: #eeeff9;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  padding: 120px 240px;
  margin: auto;
}

.feature-card,
.feature-card * {
  text-decoration: none !important;
}

.feature-card {
  border-radius: 24px;
  text-align: center;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition:
    transform 0.3s,
    box-shadow 0.3s;
  /* overflow: hidden; Removed to allow badge to overflow */
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

/* Specific Card Styles */
.feature-card.mint-retail {
  background: linear-gradient(180deg, #00d4ff 0%, #0072ff 100%);
}

.feature-card.mint-brand {
  background: linear-gradient(
    180deg,
    #e066ff 0%,
    #7f7cff 100%
  ); /* Pink to Purple */
}

/* Card Content */
.card-content {
  padding: 40px 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  flex-grow: 1;
}

.card-content img {
  height: 60px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1); /* Make icons white */
}

.card-content h2 {
  font-size: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin: 0;
}

.card-content p {
  font-size: 0.95rem;
  line-height: 1.5;
  opacity: 0.95;
}

/* Badge */
.card-badge {
  background-color: #22d3ee;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  position: absolute;
  /* top: -15px; Moved down slightly to not be completely cut off by section padding or look weird */
  top: -18px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* Adjust card content padding if badge is present to avoid overlap */
.feature-card.mint-retail .card-content {
  padding-top: 50px;
}

/* Footer */
.card-footer {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(5px);
  padding: 15px;
  color: white; /* Text is white now */
  font-weight: 700;
  text-transform: uppercase;
  font-size: 1.1rem;
  display: flex;
  flex-direction: row; /* Horizontal layout for Logo + Text */
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 60px;
  border-radius: 0 0 24px 24px;
}

.footer-logo {
  height: 20px; /* Adjust based on SVG aspect ratio */
  width: auto;
}

.card-footer span {
  /* Font styles for 'Retail' and 'BRAND' */
  letter-spacing: 0.5px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.footer-arrow {
  font-size: 2rem;
  line-height: 1;
  font-family: monospace;
  display: block;
  margin-top: auto; /* Push to bottom of card-content */
  opacity: 0.8;
  font-weight: 300;
}

/* Ensure card-content takes available space and pushes arrow down */
.card-content {
  padding: 40px 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  flex-grow: 1;
  justify-content: flex-start; /* Start content from top */
}

/* Remove old specific footer colors since they are now unified style */
.mint-retail .card-footer,
.mint-brand .card-footer {
  color: white;
}

/* PRODUCT */
.product {
  background-color: #fff;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  margin: auto;
  padding: 120px 240px;
  align-items: center;
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px; /* Tighter spacing to the H2 below */
}

.product-logo {
  height: 24px;
  width: auto;
  display: block;
}

.product-brand-text {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -1px;
}

.product h2,
.product-section h2 {
  font-size: 2.4rem;
  line-height: 1.1;
  margin-bottom: 24px;
  margin-top: 0;
  font-weight: 800;
  color: #1a1a1a;
}

.product h2 span {
  color: var(--secondary);
}

.product p,
.product-section p {
  line-height: 1.6;
  color: #555;
  margin-bottom: 24px;
}

.product ul {
  list-style: none;
}

.product li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.product li::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  background-color: var(--primary);
  -webkit-mask: url("img/circle-check.svg") no-repeat center / contain;
  mask: url("img/circle-check.svg") no-repeat center / contain;
  flex-shrink: 0;
}

.product-image img {
  width: 100%;
}

/* NEW PRODUCT SECTIONS */
.product-section {
  background-color: #f8f5fc;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 120px;
  max-width: 1200px;
  margin: auto;
  padding: 120px 20px;
  align-items: center;
}

/* Reverse Layout (Image Left) */
.product-section.reverse {
  direction: rtl; /* Simple way to swap columns for grid */
}

.product-section.reverse > * {
  direction: ltr; /* Reset text direction for children */
}

/* Dark Theme */
.product-section.dark {
  background-color: #1a1e26; /* Dark navy/charcoal */
  color: white;
  max-width: 100%; /* Full width background */
  padding-left: max(20px, calc(50% - 600px + 20px)); /* Keep content centered */
  padding-right: max(20px, calc(50% - 600px + 20px));
}

.product-section.dark h2 {
  color: white;
  text-transform: uppercase;
  font-size: 2.5rem;
  letter-spacing: -0.5px;
}

.product-section.dark p {
  color: rgba(255, 255, 255, 0.8);
}

.product-section ul {
  list-style: none;
  padding-left: 0;
}

.product-section li {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  align-items: flex-start;
}

.product-section li::before {
  content: "";
  display: inline-block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background-color: var(--primary);
  -webkit-mask: url("img/circle-check.svg") no-repeat center / contain;
  mask: url("img/circle-check.svg") no-repeat center / contain;
}

.product-section.dark li::before {
  background-color: white; /* White checkmarks for dark mode */
}

/* Section Label */
.section-label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #666;
}

.dark .section-label {
  color: rgba(255, 255, 255, 0.6);
}

/* Button Outline */
.btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 24px;
  border: 2px solid var(--primary-dark);
  color: var(--primary-dark);
  transition: all 0.2s;
}

.btn-outline:hover {
  background: var(--primary-dark);
  color: white;
}

.dark .btn-outline {
  background: white;
  color: var(--primary-dark);
  border-color: 2px solid var(--primary-dark);
}

.dark .btn-outline:hover {
  /* transform: translateY(-2px); */
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
  border: 1px solid #fff;
  background: transparent;
  color: #fff;
}

/* Image Masks */
.mask-circle img {
  border-radius: 50%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border: 4px solid white; /* Optional border */
}

/* Approximation of Cloud/Organic Shape */
.mask-cloud img {
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* Approximation of Blob/Leaf Shape */
.mask-blob img {
  border-radius: 64% 36% 23% 77% / 55% 56% 44% 45%;
  aspect-ratio: 1/1;
  object-fit: cover;
}

/* Mobile adjustments handled in media queries */

/* CONTACT */
.contact {
  background: #ffffff;
  padding: 120px 20px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Subtle background accent */
.contact::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: radial-gradient(
    circle,
    rgba(255, 95, 162, 0.05) 0%,
    transparent 70%
  );
  z-index: 0;
}

.contact h2 {
  position: relative;
  z-index: 1;
  margin-bottom: 48px;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #0f172a;
}

.contact form {
  position: relative;
  z-index: 1;
  max-width: 520px;
  width: 100%;
  margin: 0 auto;
  display: flex !important;
  flex-direction: column;
  gap: 18px;
  align-items: stretch !important;
  margin-top: 72px;
}

.title-form {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.Subtitle-form {
  text-align: center;
  font-size: 1.1rem;
  line-height: 1.6;
  font-weight: 400;
  color: #475569;
  max-width: 600px;
  margin: 0 auto 16px;
  padding: 0 20px;
}

.form-group {
  width: 100% !important;
  text-align: left;
}

.contact input,
.contact select,
.contact textarea {
  display: block;
  width: 100% !important;
  box-sizing: border-box;
  padding: 18px 24px;
  border-radius: 16px;
  border: 2px solid #f1f5f9;
  font-size: 1.05rem;
  background-color: #f8fafc;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  color: #1e293b;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

.contact input::placeholder,
.contact textarea::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.contact select {
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 20px center;
  background-size: 18px;
  padding-right: 50px;
}

.contact input:hover,
.contact select:hover,
.contact textarea:hover {
  border-color: #e2e8f0;
  background-color: #f1f5f9;
}

.contact input:focus,
.contact select:focus,
.contact textarea:focus {
  outline: none;
  border-color: var(--primary);
  background-color: white;
  box-shadow: 0 0 0 4px rgba(255, 95, 162, 0.1);
  transform: translateY(-2px);
}

.contact textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.6;
}

.contact .btn-primary {
  margin-top: 12px;
  width: 100% !important;
  padding: 20px;
  font-size: 1.15rem;
  letter-spacing: 0.5px;
  background: linear-gradient(135deg, var(--primary-dark) 0%, #ff5fa2 100%);
  box-shadow: 0 10px 25px rgba(255, 95, 162, 0.3);
  border: none;
  border-radius: 16px;
  cursor: pointer;
}

.contact .btn-primary:hover {
  box-shadow: 0 15px 35px rgba(255, 95, 162, 0.45);
  transform: translateY(-4px);
  filter: brightness(1.05);
}

.contact .btn-primary:active {
  transform: translateY(-1px);
}

.form-success {
  color: #155724;
  background-color: #d4edda;
  border: 1px solid #c3e6cb;
  padding: 20px;
  border-radius: 12px;
  margin: 20px 0;
  font-weight: 600;
  font-size: 1.1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

/* RESPONSIVE */
/* Tablet */
@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .product,
  .product-section,
  .contact {
    padding: 80px 20px;
    gap: 40px;
  }

  .features {
    padding: 80px 20px;
  }

  .contact h2 {
    font-size: 2.2rem;
  }

  .title-form {
    font-size: 1.3rem;
  }

  .contact form {
    margin-top: 48px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .product,
  .product-section {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .product-section.reverse {
    direction: ltr;
  }

  .product ul,
  .product-section ul {
    text-align: left;
    display: inline-block;
  }

  .features,
  .contact {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 60px 20px;
  }

  .hero {
    padding: 60px 20px;
    text-align: center;
  }

  .hero-container {
    flex-direction: column;
    gap: 40px;
  }

  .hero-image {
    width: 100%;
    order: -1; /* Laptop on top for mobile */
  }

  .hero-image img {
    max-width: 450px;
  }

  .hero-image::after {
    bottom: -10px;
  }

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

  .product-brand-text {
    font-size: 2rem;
  }

  .product h2,
  .product-section h2 {
    font-size: 2.2rem;
  }

  .hero-content {
    padding: 0;
  }

  .contact h2 {
    font-size: 1.8rem;
    margin-bottom: 32px;
  }

  .title-form {
    font-size: 1.2rem;
    letter-spacing: -0.5px;
  }

  .Subtitle-form {
    font-size: 0.95rem;
    padding: 0;
  }

  .contact form {
    margin-top: 40px;
  }
}

/* FOOTER */
.site-footer {
  background-color: #000000;
  color: white;
  padding: 40px 0;
  position: relative;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-content p {
  margin: 0;
  opacity: 0.8;
  font-size: 0.85rem;
}

.developer a {
  color: var(--text-light);
  text-decoration: none;
  font-weight: 600;
}

.social-links {
  display: flex;
  gap: 15px;
  align-items: center;
}

.social-links a {
  color: white;
  transition: opacity 0.2s;
  opacity: 0.8;
}

.social-links a:hover {
  opacity: 1;
}

.scroll-top-btn {
  position: absolute;
  top: -25px; /* Half outside */
  left: 40px; /* Aligned left */
  background-color: #333;
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.scroll-top-btn:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

/* WhatsApp Button */
.whatsapp-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  transition: transform 0.3s;
  text-decoration: none;
}

.whatsapp-btn:hover {
  transform: scale(1.1);
}

.whatsapp-btn svg {
  fill: white;
  stroke: white; /* Ensure visibility */
  width: 32px;
  height: 32px;
}

/* Mobile Adjustments for Footer */
@media (max-width: 768px) {
  .site-footer {
    padding-top: 60px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }

  .scroll-top-btn {
    left: 50%;
    transform: translateX(-50%);
    top: -25px;
  }

  /* Override hover transform on mobile to keep centered */
  .scroll-top-btn:hover {
    transform: translateX(-50%) translateY(-3px);
  }

  .whatsapp-btn {
    bottom: 25px;
    right: 25px;
    width: 60px; /* Mantener tamaño para mejor touch target */
    height: 60px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  }

  .whatsapp-btn svg {
    width: 35px;
    height: 35px;
  }
  .hero-content {
    padding: 40px 20px;
  }
}

/* Ensure no horizontal overflow */
body,
html {
  overflow-x: hidden;
  width: 100%;
}
