:root{--bg:#f5f7fa;--card:#ffffff;--muted:#6b7280;--accent:#0b3b6f;--accent-2:#0f5aa6;--text:#0f172a;--radius:12px}
*{box-sizing:border-box}
html,body{height:100%}
body{margin:0;font-family:'Plus Jakarta Sans',system-ui,Segoe UI,Roboto,Arial,sans-serif;background:var(--bg);color:var(--text);-webkit-font-smoothing:antialiased}
.container{max-width:1100px;margin:0 auto;padding:0 20px}

/* Header */
.site-header{background:#fff;border-bottom:1px solid rgba(15,23,42,0.06);position:sticky;top:0;z-index:40}
.header-inner{display:flex;align-items:center;justify-content:space-between;padding:18px 0}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none;color:var(--text)}
.brand-mark{width:48px;height:48px;border-radius:10px;background:linear-gradient(180deg,var(--accent),var(--accent-2));display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:20px}
.brand-name{display:block;font-weight:800;letter-spacing:0.06em}
.brand-tag{display:block;color:var(--muted);font-size:13px}

.nav{display:flex;gap:18px;align-items:center}
.nav a{color:var(--muted);text-decoration:none;padding:6px 8px;font-weight:600}
.nav a.cta{background:var(--accent);color:#fff;padding:10px 14px;border-radius:10px}

/* Hero */
.hero{padding:56px 0;background:linear-gradient(180deg,#ffffff, #f3f6fb)}
.hero-inner{display:grid;grid-template-columns:1fr 420px;gap:36px;align-items:center}
.hero-title{font-size:34px;margin:0 0 12px;font-weight:800;color:var(--accent)}
.hero-sub{margin:0 0 20px;color:var(--muted);max-width:640px}
.hero-actions{display:flex;gap:12px}
.btn{display:inline-flex;align-items:center;gap:10px;border-radius:10px;padding:12px 16px;font-weight:700;text-decoration:none;border:1px solid transparent}
.btn-primary{background:var(--accent);color:#fff}
.btn-outline{background:transparent;color:var(--accent);border-color:rgba(11,59,111,0.08)}
.glass{background:linear-gradient(180deg,rgba(255,255,255,0.9),rgba(255,255,255,0.95));border-radius:16px;box-shadow:0 10px 30px rgba(15,23,42,0.06);padding:28px;display:flex;align-items:center;justify-content:center}
.product-img{max-width:260px;height:auto;display:block}

/* Sections */
.section{padding:56px 0}
.section-light{background:#ffffff}
.section-dark{background:#0b3b6f;color:#fff}
.section-header{text-align:center;margin-bottom:32px}
.section-header h2{margin:0;font-size:22px;font-weight:800;color:var(--accent)}
.muted{color:var(--muted)}

.grid{display:grid;gap:18px}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}

.card{background:var(--card);border-radius:var(--radius);padding:20px;border:1px solid rgba(15,23,42,0.04);box-shadow:0 6px 20px rgba(11,59,111,0.04)}
.service h3{margin:0 0 8px;font-size:16px}
.product .thumb{width:100%;height:120px;object-fit:contain;background:#f8fafc;border-radius:10px;margin-bottom:12px}

/* Contact */
.contact-grid{display:grid;grid-template-columns:1fr 480px;gap:28px;align-items:start}
.contact-card{padding:28px}
.contact-list{list-style:none;padding:0;margin:12px 0 0;color:var(--muted)}
.form-card label{display:block;margin-bottom:12px;font-size:14px}
.form-card input,.form-card textarea{width:100%;padding:12px;border:1px solid rgba(15,23,42,0.06);border-radius:10px;font-size:14px;margin-top:6px}
.form-actions{display:flex;gap:12px;margin-top:10px}

/* Footer */
.site-footer{padding:18px 0;background:#fff;border-top:1px solid rgba(15,23,42,0.04)}
.footer-inner{display:flex;justify-content:space-between;align-items:center}
.footer-inner a{color:var(--muted);text-decoration:none;margin-left:12px}

/* Responsive */
@media (max-width:980px){.hero-inner{grid-template-columns:1fr}.contact-grid{grid-template-columns:1fr}.grid-3{grid-template-columns:1fr 1fr}.grid-4{grid-template-columns:1fr 1fr}}
@media (max-width:560px){.nav{display:none}.brand-tag{display:none}.hero-title{font-size:26px}}
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700;800&display=swap');

/* Design Tokens */
:root {
  /* Colors */
  --color-primary: #e11d48;
  --color-primary-hover: #be123c;
  --color-secondary: #0f172a;
  --color-secondary-hover: #1e293b;
  --color-accent: #fb7185;
  --color-text-primary: #0f172a;
  --color-text-secondary: rgba(15, 23, 42, 0.68);
  --color-text-muted: rgba(15, 23, 42, 0.45);
  --color-text-light: rgba(255, 255, 255, 0.92);
  --color-surface: #ffffff;
  --color-surface-secondary: #f8fafc;
  --color-surface-tertiary: #f1f5f9;
  --color-border: rgba(15, 23, 42, 0.08);
  --color-border-hover: rgba(15, 23, 42, 0.12);
  --color-border-light: rgba(255, 255, 255, 0.05);
  
  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-3xl: 32px;
  
  /* Shadows */
  --shadow-sm: 0 1px 0 rgba(15, 23, 42, 0.03);
  --shadow-md: 0 4px 12px rgba(2, 6, 23, 0.06);
  --shadow-lg: 0 8px 24px rgba(2, 6, 23, 0.08);
  --shadow-xl: 0 14px 32px rgba(2, 6, 23, 0.08);
  --shadow-2xl: 0 20px 48px rgba(2, 6, 23, 0.12);
  --shadow-button: 0 8px 24px rgba(225, 29, 72, 0.15);
  --shadow-button-hover: 0 12px 32px rgba(225, 29, 72, 0.25);
  
  /* Spacing */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;
  
  /* Typography */
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 15px;
  --font-size-lg: 16px;
  --font-size-xl: 18px;
  --font-size-2xl: 20px;
  --font-size-3xl: 24px;
  --font-size-4xl: 28px;
  --font-size-5xl: 32px;
  
  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.4;
  --line-height-normal: 1.55;
  --line-height-relaxed: 1.7;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height-normal);
    color: var(--color-text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

img {
    max-width: 100%;
    height: auto;
}

.hero-bg {
    background: radial-gradient(circle at 0% 0%, var(--color-secondary) 0%, #0f172a 100%);
}

.text-huge {
    background: linear-gradient(to bottom right, #ffffff 40%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: var(--line-height-tight);
}

.glass-card {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-border-light);
}

#mobile-menu {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    color: var(--color-text-light);
    opacity: 0.95;
    transition: color 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.menu-link:hover {
    color: var(--color-accent);
    transform: translateX(-2px);
    opacity: 1;
}

.menu-link:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 6px;
    border-radius: var(--radius-sm);
}

/* Card Components */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-border-hover);
}

.card-interactive {
  cursor: pointer;
}

.card-interactive:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.card-product {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-align: center;
}

.card-product-image {
  aspect-ratio: 1;
  background: var(--color-surface-secondary);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 180ms ease;
}

.card-product:hover .card-product-image {
  transform: scale(1.05);
}

.card-product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease;
}

.card-product:hover .card-product-image img {
  transform: scale(1.1);
}

.card-product-title {
  font-size: var(--font-size-lg);
  font-weight: 800;
  margin-bottom: 4px;
  color: var(--color-text-primary);
}

.card-product-subtitle {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-lg);
}

.card-product-footer {
  margin-top: auto;
}

/* Enhanced Service Cards */
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-2xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  height: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-xl);
  border-color: var(--color-border-hover);
}

.service-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: rgba(225, 29, 72, 0.08);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
  flex-shrink: 0;
  transition: all 300ms ease;
  position: relative;
  overflow: hidden;
}

.service-icon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.1), rgba(251, 113, 133, 0.05));
  opacity: 0;
  transition: opacity 300ms ease;
}

.service-card:hover .service-icon::before {
  opacity: 1;
}

.service-icon--gradient {
  background: linear-gradient(135deg, var(--color-primary), var(--color-accent));
  color: var(--color-surface);
  box-shadow: 0 8px 24px rgba(225, 29, 72, 0.25);
}

.service-icon--gradient::before {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
}

.service-card:hover .service-icon {
  transform: scale(1.05);
  box-shadow: 0 12px 32px rgba(225, 29, 72, 0.15);
}

.service-card:hover .service-icon--gradient {
  box-shadow: 0 16px 40px rgba(225, 29, 72, 0.35);
}

.service-title {
  font-weight: 800;
  color: var(--color-text-primary);
  font-size: var(--font-size-xl);
  margin: 0 0 6px;
  line-height: var(--line-height-snug);
}

.service-text {
  color: var(--color-text-secondary);
  font-weight: 500;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-normal);
  flex-grow: 1;
}

.service-card--accent {
  border-color: rgba(225, 29, 72, 0.22);
  background: linear-gradient(180deg, rgba(255, 241, 242, 0.85), var(--color-surface));
}

.service-card--accent .service-icon {
  background: var(--color-primary);
  color: var(--color-surface);
}

.service-card--accent:hover {
  border-color: rgba(225, 29, 72, 0.35);
}

/* Typography Utilities */
.text-display {
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  font-weight: 800;
  line-height: var(--line-height-tight);
  letter-spacing: -0.02em;
}

.text-heading-1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: var(--line-height-tight);
  letter-spacing: -0.01em;
}

.text-heading-2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: var(--line-height-snug);
}

.text-heading-3 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  line-height: var(--line-height-snug);
}

.text-heading-4 {
  font-size: var(--font-size-2xl);
  font-weight: 600;
  line-height: var(--line-height-snug);
}

.text-body {
  font-size: var(--font-size-base);
  font-weight: 400;
  line-height: var(--line-height-normal);
}

.text-body-large {
  font-size: var(--font-size-lg);
  font-weight: 400;
  line-height: var(--line-height-normal);
}

.text-small {
  font-size: var(--font-size-sm);
  font-weight: 500;
  line-height: var(--line-height-snug);
}

.text-caption {
  font-size: var(--font-size-xs);
  font-weight: 600;
  line-height: var(--line-height-normal);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Button Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: var(--font-size-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 180ms ease;
  position: relative;
  overflow: hidden;
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-surface);
  box-shadow: var(--shadow-button);
}

.btn-primary:hover {
  background: var(--color-primary-hover);
  box-shadow: var(--shadow-button-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--color-surface);
  color: var(--color-text-primary);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--color-surface-secondary);
  border-color: var(--color-border-hover);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  color: var(--color-text-light);
  border: 1px solid var(--color-border-light);
  backdrop-filter: blur(10px);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  transform: translateY(-1px);
}

.btn-large {
  padding: 16px 32px;
  font-size: var(--font-size-base);
}

.btn-small {
  padding: 8px 16px;
  font-size: var(--font-size-xs);
}

.btn-full {
  width: 100%;
}

/* Floating action button */
.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%; /* make it a perfect circle */
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: var(--shadow-2xl);
  z-index: 70;
  transition: all 180ms ease;
  overflow: hidden;
  box-sizing: border-box;
  padding: 6px; /* internal spacing so SVG doesn't touch edges */
}

.fab:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-2xl);
}

.fab:active {
  transform: scale(0.98);
}

.fab-whatsapp {
  background: #25d366;
  color: white;
}

.fab-whatsapp:hover {
  background: #25d366;
}

/* Ensure icons inside the FAB fit and don't overflow */
.fab img,
.fab svg {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

/* Nudge and scale inline SVG if its artwork isn't centered inside its viewBox */
.fab svg {
  transform-origin: center center;
  transform: translate(6%, 6%) scale(0.85);
}

/* Optional small white badge placed inside the FAB (use .badge element) */
.fab .badge {
  position: absolute;
  top: 6px;
  left: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(2,6,23,0.12);
}

/* FontAwesome icon sizing & centering inside the FAB */
.fab i,
.fab .fa-whatsapp {
  font-size: 20px; /* slightly smaller to ensure full visibility */
  line-height: 1;
  display: block;
  width: auto;
  height: auto;
  color: inherit;
  margin: 0;
  position: relative;
  transform: none !important;
}

/* Extra safeguard: if FontAwesome injects pseudo-elements, keep them scaled */
.fab i::before,
.fab .fa-whatsapp::before {
  font-size: 20px !important;
}

/* Keep FAB on top when hovered so it doesn't get overlapped */
.fab:hover {
  z-index: 9999;
}

/* Section Components */
.section {
  padding: var(--spacing-2xl) 0;
}

.section-large {
  padding: var(--spacing-3xl) 0;
}

.section-compact {
  padding: var(--spacing-xl) 0;
}

.section-dark {
  background: var(--color-secondary);
  color: var(--color-text-light);
}

.section-light {
  background: var(--color-surface-secondary);
}

.section-muted {
  background: var(--color-surface-tertiary);
}

.section-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

@media (min-width: 640px) {
  .section-container {
    padding: 0 var(--spacing-xl);
  }
}

/* Section Headers */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-header-left {
  text-align: left;
  margin-bottom: var(--spacing-2xl);
}

.section-title {
  font-weight: 800;
  color: var(--color-text-primary);
  margin-bottom: var(--spacing-md);
}

.section-subtitle {
  color: var(--color-text-secondary);
  font-weight: 500;
  max-width: 600px;
  margin: 0 auto;
}

.section-accent {
  width: 64px;
  height: 4px;
  background: var(--color-primary);
  margin: var(--spacing-md) auto 0;
  border-radius: 2px;
}

.section-accent-left {
  margin: var(--spacing-md) 0 0;
}

/* Grid Utilities */
.grid-auto-fit {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.grid-auto-fill {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--spacing-lg);
}

/* Form Components */
.form-group {
  margin-bottom: var(--spacing-lg);
}

.form-input {
  width: 100%;
  padding: 16px;
  background: var(--color-surface-secondary);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: 500;
  color: var(--color-text-primary);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(225, 29, 72, 0.1);
}

.form-input::placeholder {
  color: var(--color-text-muted);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* Contact Section Specific */
.contact-card {
  background: var(--color-surface);
  border-radius: var(--radius-3xl);
  padding: var(--spacing-xl);
  box-shadow: var(--shadow-2xl);
  overflow: hidden;
  position: relative;
}

.contact-info-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

.contact-icon-primary {
  background: rgba(225, 29, 72, 0.1);
  color: var(--color-primary);
}

.contact-icon-secondary {
  background: var(--color-surface-secondary);
  color: var(--color-text-primary);
}

.contact-text {
  font-weight: 700;
  color: var(--color-text-primary);
}

.fab-whatsapp:hover {
  background: #128c7e;
}

/* Color utilities for text */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-light { color: var(--color-text-light); }
.text-accent { color: var(--color-accent); }

/* Product Modal Styles */
.product-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.product-modal.active {
    display: flex;
}

.product-modal-content {
    background: white;
    border-radius: 1.5rem;
    max-width: 42rem;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

/* Ensure modals are hidden by default and only shown when active */
#producto1, #producto2, #producto3, #producto4 {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

#producto1:not(.hidden), #producto2:not(.hidden), #producto3:not(.hidden), #producto4:not(.hidden) {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

@keyframes gradient {
    0%, 100% {
        background-size: 200% 200%;
        background-position: left center;
    }
    50% {
        background-size: 200% 200%;
        background-position: right center;
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.animate-gradient {
    animation: gradient 3s ease infinite;
}

.floating {
    animation: float 5s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    #mobile-menu {
        transition: none;
    }

    .floating {
        animation: none;
    }
}
