/* ===================================================
   MÉNDEZ JR. — LANDING PAGE MAYOREO
   Design System & Full Styles
   =================================================== */

/* --- Google Fonts loaded via <link> in HTML for performance --- */

/* --- CSS Custom Properties --- */
:root {
  --rojo: #C8102E;
  --rojo-hover: #A00D24;
  --rojo-light: rgba(200, 16, 46, 0.12);
  --negro: #1A1A1A;
  --negro-light: #2A2A2A;
  --blanco: #FFFFFF;
  --dorado: #D4A853;
  --dorado-light: #E8C97A;
  --gris-bg: #F5F5F5;
  --gris-text: #6B7280;
  --gris-border: #E5E7EB;
  --whatsapp: #25D366;
  --whatsapp-hover: #1DA851;

  --font-script: 'Lobster', cursive;
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.18);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.22);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--negro);
  background: var(--blanco);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

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

/* --- Section Titles --- */
.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--rojo);
  margin-bottom: 12px;
}

.section-tag::before {
  content: '';
  width: 32px;
  height: 3px;
  background: var(--rojo);
  border-radius: 2px;
}

.section-title {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  color: var(--negro);
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--gris-text);
  max-width: 600px;
  line-height: 1.7;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.fade-in-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.fade-in-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger delay for children */
.stagger-1 {
  transition-delay: 0.1s;
}

.stagger-2 {
  transition-delay: 0.2s;
}

.stagger-3 {
  transition-delay: 0.3s;
}

.stagger-4 {
  transition-delay: 0.4s;
}

.stagger-5 {
  transition-delay: 0.5s;
}

.stagger-6 {
  transition-delay: 0.6s;
}

/* ===================================================
   HEADER / NAVIGATION
   =================================================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 16px 0;
  transition: background 0.4s ease, box-shadow 0.4s ease, padding 0.4s ease;
}

.header.scrolled {
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
  padding: 10px 0;
}

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

.header-logo img {
  height: 52px;
  width: 52px;
  object-fit: contain;
  border-radius: 50%;
  filter: drop-shadow(0 1px 6px rgba(0, 0, 0, 0.3));
  transition: height 0.4s ease, width 0.4s ease;
}

.header.scrolled .header-logo img {
  height: 40px;
  width: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--blanco);
  opacity: 0.85;
  letter-spacing: 0.3px;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--rojo);
  transition: width 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
  color: var(--blanco);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-cta {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--blanco) !important;
  background: var(--rojo);
  padding: 10px 24px;
  border-radius: 50px;
  opacity: 1 !important;
  letter-spacing: 0.5px;
}

.nav-cta::after {
  display: none !important;
}

.nav-cta:hover {
  background: var(--rojo-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
}

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.menu-toggle span {
  width: 26px;
  height: 2.5px;
  background: var(--blanco);
  border-radius: 2px;
  transition: var(--transition);
}

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

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

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

/* ===================================================
   HERO SECTION
   =================================================== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--negro);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.3);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(135deg,
      rgba(26, 26, 26, 0.88) 0%,
      rgba(26, 26, 26, 0.55) 50%,
      rgba(200, 16, 46, 0.18) 100%);
}

.hero .container {
  position: relative;
  z-index: 3;
  padding-top: 120px;
  padding-bottom: 80px;
}

.hero-content {
  max-width: 720px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(200, 16, 46, 0.2);
  border: 1px solid rgba(200, 16, 46, 0.4);
  padding: 8px 18px;
  border-radius: 50px;
  color: var(--blanco);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  background: var(--rojo);
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.4);
  }
}

/* Hero Logo Image */
.hero-logo {
  display: block;
  width: clamp(280px, 45vw, 520px);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 16px rgba(200, 16, 46, 0.25));
  margin-bottom: 8px;
}

.hero-tagline {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--dorado);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 8px;
}

.hero-tagline .emoji {
  font-style: normal;
  letter-spacing: 0;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 560px;
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blanco);
  background: var(--rojo);
  padding: 16px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  letter-spacing: 0.3px;
}

.btn-primary:hover {
  background: var(--rojo-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 16, 46, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 1rem;
  color: var(--blanco);
  background: transparent;
  padding: 16px 36px;
  border-radius: 50px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: var(--transition);
}

.btn-secondary:hover {
  border-color: var(--blanco);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat .stat-number {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 2rem;
  color: var(--dorado);
  line-height: 1;
}

.hero-stat .stat-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 4px;
}

/* ===================================================
   PRODUCTOS SECTION — DUO HIGHLIGHT
   =================================================== */
.productos {
  padding: 100px 0;
  background: var(--blanco);
  content-visibility: auto;
  contain-intrinsic-size: auto 1200px;
}

.productos-duo {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.producto-highlight {
  background: var(--blanco);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--gris-border);
  transition: var(--transition);
}

.producto-highlight:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.producto-highlight-img {
  position: relative;
  height: 320px;
  overflow: hidden;
}

.producto-highlight-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.producto-highlight:hover .producto-highlight-img img {
  transform: scale(1.06);
}

.producto-highlight-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 6px 16px;
  border-radius: 50px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.producto-highlight-body {
  padding: 32px;
}

.producto-nombre-script {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: 2rem;
  color: var(--rojo);
  margin-bottom: 6px;
  line-height: 1.2;
}

.producto-uso {
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gris-text);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.producto-uso strong {
  color: var(--negro);
}

.producto-desc {
  font-size: 0.95rem;
  color: var(--gris-text);
  line-height: 1.7;
  margin-bottom: 24px;
}

/* --- Pricing Table --- */
.precio-tabla {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--gris-border);
  margin-bottom: 16px;
}

.precio-header {
  display: flex;
  justify-content: space-between;
  padding: 12px 20px;
  background: var(--negro);
  color: var(--blanco);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.precio-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  font-size: 0.95rem;
  border-bottom: 1px solid var(--gris-border);
  transition: background 0.2s ease;
}

.precio-row:last-child {
  border-bottom: none;
}

.precio-row:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}

.precio-row:hover {
  background: var(--rojo-light);
}

.precio-row .precio {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--rojo);
}

.precio-row.destacado {
  background: linear-gradient(135deg, rgba(200, 16, 46, 0.08) 0%, rgba(212, 168, 83, 0.08) 100%);
  position: relative;
}

.precio-row.destacado .precio {
  color: var(--rojo);
  font-size: 1.2rem;
}

.precio-row.destacado::after {
  content: '🔥';
  margin-left: 8px;
  font-size: 0.9rem;
}

.precio-nota {
  font-size: 0.82rem;
  color: var(--gris-text);
  font-style: italic;
  margin-bottom: 20px;
}

.btn-cotizar {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blanco);
  background: var(--rojo);
  padding: 14px 28px;
  border-radius: 50px;
  transition: var(--transition);
  letter-spacing: 0.3px;
  width: 100%;
  justify-content: center;
}

.btn-cotizar:hover {
  background: var(--rojo-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

/* ===================================================
   POR QUÉ SECTION  
   =================================================== */
.porque {
  padding: 100px 0;
  background: var(--negro);
  position: relative;
  overflow: hidden;
  content-visibility: auto;
  contain-intrinsic-size: auto 900px;
}

.porque::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.12) 0%, transparent 70%);
  border-radius: 50%;
}

.porque .section-tag {
  color: var(--dorado);
}

.porque .section-tag::before {
  background: var(--dorado);
}

.porque .section-title {
  color: var(--blanco);
}

.porque .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.porque-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.porque-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.porque-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--rojo), var(--dorado));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.porque-card:hover::before {
  transform: scaleX(1);
}

.porque-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-4px);
}

.porque-icon {
  width: 52px;
  height: 52px;
  background: var(--rojo-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.5rem;
}

.porque-card h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--blanco);
  margin-bottom: 10px;
}

.porque-card p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.7;
}

/* ===================================================
   CLIENTES SECTION
   =================================================== */
.clientes {
  padding: 100px 0;
  background: var(--gris-bg);
  content-visibility: auto;
  contain-intrinsic-size: auto 600px;
}

.clientes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
}

.cliente-card {
  background: var(--blanco);
  border-radius: var(--radius-lg);
  padding: 40px 20px;
  text-align: center;
  border: 1px solid var(--gris-border);
  transition: var(--transition);
}

.cliente-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--rojo);
}

.cliente-icon {
  width: 64px;
  height: 64px;
  background: var(--rojo-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
  transition: var(--transition);
}

.cliente-card:hover .cliente-icon {
  background: var(--rojo);
  transform: scale(1.1);
}

.cliente-card:hover .cliente-icon svg {
  stroke: var(--blanco);
}

.cliente-card h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--negro);
  margin-bottom: 6px;
}

.cliente-card p {
  font-size: 0.82rem;
  color: var(--gris-text);
  line-height: 1.5;
}

/* ===================================================
   GALERÍA SECTION
   =================================================== */
.galeria {
  padding: 100px 0;
  background: var(--negro);
  content-visibility: auto;
  contain-intrinsic-size: auto 800px;
}

.galeria .section-tag {
  color: var(--dorado);
}

.galeria .section-tag::before {
  background: var(--dorado);
}

.galeria .section-title {
  color: var(--blanco);
}

.galeria .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
}

.galeria-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 12px;
}

.galeria-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
}

.galeria-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease, filter 0.5s ease;
}

.galeria-item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.4) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.galeria-item:hover::after {
  opacity: 1;
}

.galeria-item:hover img {
  transform: scale(1.08);
}

.galeria-tall {
  grid-row: span 2;
}

/* ===================================================
   TESTIMONIOS SECTION
   =================================================== */
.testimonios {
  padding: 100px 0;
  background: var(--blanco);
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}

.testimonios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonio-card {
  background: var(--blanco);
  border: 1px solid var(--gris-border);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  transition: var(--transition);
}

.testimonio-card:hover {
  box-shadow: var(--shadow-md);
  border-color: transparent;
  transform: translateY(-4px);
}

.testimonio-quote {
  font-size: 3rem;
  color: var(--rojo);
  font-family: Georgia, serif;
  line-height: 1;
  margin-bottom: 8px;
  opacity: 0.3;
}

.testimonio-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}

.testimonio-stars svg {
  width: 18px;
  height: 18px;
  fill: var(--dorado);
}

.testimonio-text {
  font-size: 0.95rem;
  color: var(--negro);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}

.testimonio-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.testimonio-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--rojo-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--rojo);
  flex-shrink: 0;
}

.testimonio-info strong {
  display: block;
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--negro);
}

.testimonio-info span {
  font-size: 0.82rem;
  color: var(--gris-text);
}

/* ===================================================
   FORMULARIO SECTION
   =================================================== */
.formulario {
  padding: 100px 0;
  background: var(--negro);
  position: relative;
  overflow: hidden;
}

.formulario::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: -200px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(200, 16, 46, 0.1) 0%, transparent 70%);
  border-radius: 50%;
}

.formulario-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.formulario-info {
  position: relative;
  z-index: 1;
}

.formulario-info .section-tag {
  color: var(--dorado);
}

.formulario-info .section-tag::before {
  background: var(--dorado);
}

.formulario-info .section-title {
  color: var(--blanco);
}

.formulario-info .section-subtitle {
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 40px;
}

.formulario-benefits {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-item {
  display: flex;
  align-items: center;
  gap: 14px;
}

.benefit-icon {
  width: 40px;
  height: 40px;
  background: rgba(200, 16, 46, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
}

.benefit-item span {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
}

.form-container {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  padding: 42px;
  backdrop-filter: blur(10px);
  position: relative;
  z-index: 1;
}

.form-container h3 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--blanco);
  margin-bottom: 28px;
  text-align: center;
}

.form-group {
  margin-bottom: 18px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 6px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: var(--blanco);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: rgba(255, 255, 255, 0.35);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--rojo);
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.15);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='%23999'%3E%3Cpath d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  cursor: pointer;
}

.form-group select option {
  background: var(--negro);
  color: var(--blanco);
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.btn-submit {
  width: 100%;
  padding: 16px;
  background: var(--rojo);
  color: var(--blanco);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}

.btn-submit:hover {
  background: var(--rojo-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(200, 16, 46, 0.4);
}

.form-note {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  margin-top: 14px;
}

.form-note svg {
  width: 14px;
  height: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

/* Form Success State */
.form-success {
  display: none;
  text-align: center;
  padding: 40px 20px;
}

.form-success.show {
  display: block;
}

.form-success .success-icon {
  width: 72px;
  height: 72px;
  background: rgba(37, 211, 102, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 2rem;
}

.form-success h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--blanco);
  margin-bottom: 10px;
}

.form-success p {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
}

/* ===================================================
   FOOTER
   =================================================== */
.footer {
  background: #111111;
  padding: 64px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand img {
  height: 56px;
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.7;
  max-width: 320px;
  margin-bottom: 20px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.footer-social a {
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.6);
  transition: var(--transition);
}

.footer-social a:hover {
  background: var(--rojo);
  color: var(--blanco);
  transform: translateY(-3px);
}

.footer-col h4 {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1rem;
  color: var(--blanco);
  margin-bottom: 20px;
}

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

.footer-col ul li a {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-col ul li a:hover {
  color: var(--rojo);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
}

/* ===================================================
   WHATSAPP FLOATING BUTTON
   =================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
}

.whatsapp-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: var(--whatsapp);
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.45);
  transition: var(--transition);
  position: relative;
}

.whatsapp-float a::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.25);
  animation: whatsapp-pulse 2s infinite;
}

@keyframes whatsapp-pulse {
  0% {
    transform: scale(1);
    opacity: 0.5;
  }

  70% {
    transform: scale(1.3);
    opacity: 0;
  }

  100% {
    transform: scale(1.3);
    opacity: 0;
  }
}

.whatsapp-float a:hover {
  background: var(--whatsapp-hover);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.55);
}

.whatsapp-float svg {
  width: 30px;
  height: 30px;
  fill: white;
  position: relative;
  z-index: 1;
}

.whatsapp-tooltip {
  position: absolute;
  right: 72px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--blanco);
  color: var(--negro);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.whatsapp-float a:hover+.whatsapp-tooltip,
.whatsapp-tooltip:hover {
  opacity: 1;
  pointer-events: auto;
}

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

/* Tablet */
@media (max-width: 1024px) {
  .productos-duo {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .porque-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .clientes-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .testimonios-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .galeria-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }

  .formulario-wrapper {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: var(--negro);
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 60px 40px;
    transition: right 0.4s ease;
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.4);
  }

  .nav-links.open {
    right: 0;
  }

  .nav-links a {
    font-size: 1.1rem;
    opacity: 1;
  }

  .menu-toggle {
    display: flex;
  }

  .hero-logo {
    width: min(85%, 380px);
  }

  .hero-stats {
    gap: 28px;
    flex-wrap: wrap;
  }

  .hero-stat .stat-number {
    font-size: 1.5rem;
  }

  .producto-highlight-img {
    height: 240px;
  }

  .producto-highlight-body {
    padding: 24px;
  }

  .producto-nombre-script {
    font-size: 1.6rem;
  }

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

  .clientes-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .cliente-card {
    padding: 28px 16px;
  }

  .galeria-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 180px;
  }

  .galeria-tall {
    grid-row: span 2;
  }

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

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

  .form-container {
    padding: 28px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .section-title {
    font-size: clamp(1.6rem, 5vw, 2.2rem);
  }

  .whatsapp-float a {
    width: 54px;
    height: 54px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .whatsapp-tooltip {
    display: none;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  .hero-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary {
    width: 100%;
    justify-content: center;
  }

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

  .galeria-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 150px;
  }

  .galeria-tall {
    grid-row: span 1;
  }

  /* Disable heavy GPU effects on small mobile */
  .hero-badge {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .form-container {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Reduce motion for users who prefer it & improve mobile perf */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .fade-in,
  .fade-in-left,
  .fade-in-right {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }
}