:root {
  --primary: #fde801;
  --primary-dark: #940636;
  --accent: #940636;
  --text: #2a1420;
  --muted: #5a3b49;
  --bg: #ffffff;
  --white: #ffffff;
  --logo-brand-height: 40px;
  --logo-store-height: 44px;
  --logo-social-height: 24px;
  --social-icon-box-size: 42px;
  --radius: 14px;
  --shadow-sm: 0 2px 8px rgba(88, 23, 49, 0.08);
  --shadow-md: 0 8px 24px rgba(88, 23, 49, 0.1);
  --shadow-lg: 0 16px 40px rgba(88, 23, 49, 0.14);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Inter", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}

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

/* ===== NAV ===== */

.nav {
  padding: 0.9rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav.is-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 1px 0 rgba(148, 6, 54, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.logo-img {
  height: var(--logo-brand-height);
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

.logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--primary-dark);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  background: rgba(148, 6, 54, 0.08);
  color: var(--primary-dark);
}

.nav-link--primary {
  background: var(--primary-dark);
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(148, 6, 54, 0.25);
}

.nav-link--primary:hover {
  background: #7d052e;
  color: var(--primary);
}

/* ===== HERO ===== */

.hero {
  background:
    radial-gradient(120% 60% at 0% 100%, rgba(253, 232, 1, 0.3) 0%, transparent 70%),
    radial-gradient(80% 50% at 100% 0%, rgba(148, 6, 54, 0.06) 0%, transparent 60%),
    linear-gradient(160deg, #fffbd1 0%, #fde801 50%, #f7d900 100%);
  padding-bottom: 4rem;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23940636' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.hero-slider {
  margin-top: 1.2rem;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(148, 6, 54, 0.18);
  box-shadow: 0 20px 48px rgba(89, 22, 49, 0.2);
  position: relative;
  z-index: 1;
}

.hero-slider-track {
  display: flex;
  width: 300%;
  animation: hero-slider-cycle 15s infinite;
}

.hero-slider-track img {
  width: 100%;
  height: 320px;
  flex: 0 0 33.333%;
  object-fit: cover;
  display: block;
}

@keyframes hero-slider-cycle {
  0%, 28% { transform: translateX(0); }
  33%, 61% { transform: translateX(-33.333%); }
  66%, 94% { transform: translateX(-66.666%); }
  100% { transform: translateX(0); }
}

.hero-content {
  padding-top: 2.5rem;
  position: relative;
  z-index: 1;
}

.tagline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(148, 6, 54, 0.1);
  color: var(--primary-dark);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.tagline::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary-dark);
  flex-shrink: 0;
}

.hero h1 {
  font-size: clamp(1.8rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero > .container > p {
  max-width: 680px;
  color: #3d2230;
  font-size: 1.05rem;
}

.store-links {
  margin-top: 1.8rem;
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.store-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.store-links a:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.store-links a img {
  height: var(--logo-store-height);
  width: auto;
  max-width: 100%;
  display: block;
  object-fit: contain;
}

/* ===== SECTION ===== */

.section {
  padding: 5rem 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h3 {
  font-size: 2rem;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}

.section-header p {
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto;
}

/* ===== APP GALLERY ===== */

.app-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem;
}

.app-gallery img {
  width: 100%;
  height: 300px;
  max-height: 300px;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #f0dae5;
  background: #fff;
  display: block;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.app-gallery img:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ===== FEATURES ===== */

.features {
  margin-top: 3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid #f0dae5;
  border-radius: var(--radius);
  padding: 1.6rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(148, 6, 54, 0.2);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(148, 6, 54, 0.08);
  color: var(--primary-dark);
  margin-bottom: 0.8rem;
}

.feature-card h4 {
  margin-bottom: 0.4rem;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.feature-card p {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ===== CONTACTO ===== */

.contacto {
  background:
    radial-gradient(60% 40% at 30% 20%, rgba(253, 232, 1, 0.12) 0%, transparent 70%),
    radial-gradient(50% 50% at 80% 80%, rgba(148, 6, 54, 0.04) 0%, transparent 60%),
    linear-gradient(180deg, #fffce0 0%, #fff7c4 100%);
}

.contacto .section-header {
  margin-bottom: 2rem;
}

.contacto-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-info-card {
  background: #fffefb;
  border: 1px solid #efd8e3;
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.contact-info-icon {
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(148, 6, 54, 0.1);
  flex-shrink: 0;
}

.contact-info-body {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.contact-info-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.contact-info-value {
  font-size: 0.95rem;
  color: var(--text);
  word-break: break-word;
  text-decoration: none;
  font-weight: 500;
}

.contact-info-value:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.contact-form {
  max-width: 100%;
  display: grid;
  gap: 1rem;
  background: #fffefb;
  border: 1px solid #efd8e3;
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-field {
  display: grid;
  gap: 0.4rem;
}

.form-field-full {
  grid-column: 1 / -1;
}

.contact-form label {
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
}

.contact-form input,
.contact-form textarea {
  border: 1px solid #dab8c8;
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  font: inherit;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 0;
  border-color: var(--primary-dark);
  box-shadow: 0 0 0 4px rgba(148, 6, 54, 0.14);
  background-color: #fffdf5;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form button {
  margin-top: 0.2rem;
  border: 0;
  border-radius: 10px;
  background: var(--primary-dark);
  color: #fff8c4;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.8rem 1.5rem;
  cursor: pointer;
  justify-self: start;
  box-shadow: 0 6px 16px rgba(102, 12, 47, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.contact-form button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(102, 12, 47, 0.28);
  opacity: 0.97;
}

.contact-form button:active {
  transform: translateY(0);
}

.contact-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.contact-alert {
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.contact-alert.ok {
  background: #e8f7ec;
  color: #1f6f35;
}

.contact-alert.error {
  background: #ffe7ee;
  color: #8f143f;
}

/* ===== FOOTER ===== */

.footer {
  background: var(--primary-dark);
  color: rgba(255, 248, 196, 0.9);
  padding: 0;
}

.footer-main {
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand .logo {
  display: inline-block;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.65;
  color: rgba(255, 248, 196, 0.65);
  max-width: 320px;
}

.footer h4 {
  color: #fff8c4;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.footer-links a {
  color: rgba(255, 248, 196, 0.7);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s ease;
  width: fit-content;
}

.footer-links a:hover {
  color: #fff8c4;
  text-decoration: underline;
}

.footer-social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease, transform 0.2s ease;
}

.footer-social a:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.footer-social a img {
  height: auto;
  width: auto;
  max-height: 18px;
  max-width: 22px;
  display: block;
  object-fit: contain;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer-social a:hover img {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 248, 196, 0.12);
}

.footer-bottom-inner {
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: rgba(255, 248, 196, 0.5);
}

.footer-bottom-inner a {
  color: rgba(255, 248, 196, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-bottom-inner a:hover {
  color: #fff8c4;
  text-decoration: underline;
}

/* ===== RESPONSIVE ===== */

@media (max-width: 820px) {
  .contacto-wrapper {
    grid-template-columns: 1fr;
  }

  .contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }
}

@media (max-width: 640px) {
  :root {
    --logo-brand-height: 34px;
    --logo-store-height: 38px;
    --logo-social-height: 20px;
    --social-icon-box-size: 34px;
  }

  .hero {
    padding-bottom: 2.5rem;
  }

  .hero-slider-track img {
    height: 190px;
  }

  .section {
    padding: 3.5rem 0;
  }

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

  .app-gallery {
    grid-template-columns: 1fr;
  }

  .app-gallery img {
    height: 220px;
    max-height: 220px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-bottom-inner {
    flex-direction: column;
    text-align: center;
  }
}
