*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --primary: #1976D2;
  --primary-dark: #0D47A1;
  --primary-light: #42A5F5;
  --primary-lighter: #BBDEFB;
  --accent: #FF6F00;
  --accent-hover: #E65100;
  --text: #1a1a2e;
  --text-light: #5a5a7a;
  --bg: #ffffff;
  --bg-alt: #f0f4f8;
  --shadow: 0 4px 20px rgba(0,0,0,.08);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12);
  --radius: 16px;
  --radius-sm: 8px;
  --transition: .3s cubic-bezier(.4,0,.2,1);
}
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: var(--transition);
}
nav .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.15rem; color: var(--primary-dark); }
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; gap: 8px; list-style: none; }
.nav-links a {
  padding: 8px 16px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; color: var(--text-light);
  transition: var(--transition);
}
.nav-links a:hover { background: var(--bg-alt); color: var(--primary); }
.nav-cta {
  background: var(--accent); color: #fff !important; padding: 8px 20px !important;
  border-radius: 50px !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--accent-hover) !important; transform: translateY(-1px); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; background: none; border: none; }
.nav-toggle span { width: 26px; height: 2.5px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  background: linear-gradient(135deg, #0D47A1 0%, #1976D2 50%, #42A5F5 100%);
  position: relative; overflow: hidden; padding-top: 68px;
}
.hero::before {
  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='%23ffffff' fill-opacity='.04'%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");
  opacity: .5;
}
.hero .container { position: relative; z-index: 1; text-align: center; padding: 80px 24px; }
.hero h1 {
  color: #fff; font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 20px;
}
.hero h1 span { background: linear-gradient(135deg, #FFB300, #FF6F00); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero p {
  color: rgba(255,255,255,.85); font-size: clamp(1rem, 2vw, 1.2rem);
  max-width: 680px; margin: 0 auto 36px; line-height: 1.7;
}
.hero-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px; border-radius: 50px; font-weight: 600; font-size: .95rem;
  transition: var(--transition); cursor: pointer; border: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(255,111,0,.35); }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.4); }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); transform: translateY(-2px); }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .8rem; display: flex; flex-direction: column; align-items: center; gap: 6px;
  animation: bounce 2s infinite;
}
@keyframes bounce { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(8px)} }

/* ─── SECTIONS ─── */
section { padding: 100px 0; }
.section-tag {
  display: inline-block; padding: 6px 16px; border-radius: 50px;
  background: var(--primary-lighter); color: var(--primary-dark);
  font-size: .8rem; font-weight: 600; letter-spacing: .5px; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.5rem); font-weight: 800;
  margin-bottom: 16px; color: var(--text);
}
.section-sub {
  color: var(--text-light); font-size: 1.05rem; max-width: 600px; line-height: 1.7;
}
.section-title, .section-sub { text-align: center; margin-left: auto; margin-right: auto; }

/* ─── QUÉ HACEMOS ─── */
#que-hacemos { background: var(--bg-alt); }
.service-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-top: 48px; }
.service-card {
  background: #fff; border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow); transition: var(--transition);
  border: 1px solid rgba(0,0,0,.04);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; margin-bottom: 20px;
}
.service-card:nth-child(1) .service-icon { background: var(--primary-lighter); color: var(--primary-dark); }
.service-card:nth-child(2) .service-icon { background: #FFF3E0; color: var(--accent); }
.service-card h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 12px; }
.service-card p { color: var(--text-light); font-size: .95rem; line-height: 1.7; margin-bottom: 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service-tags span {
  padding: 4px 12px; border-radius: 50px; font-size: .8rem;
  background: var(--bg-alt); color: var(--text-light); font-weight: 500;
}

/* ─── COMMERCEOS ─── */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin-top: 48px; }
.feature-card {
  background: var(--bg-alt); border-radius: var(--radius); padding: 28px;
  transition: var(--transition); border: 1px solid transparent;
}
.feature-card:hover { background: #fff; border-color: var(--primary-lighter); transform: translateY(-2px); box-shadow: var(--shadow); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center; font-size: 1.2rem;
  background: var(--primary-lighter); color: var(--primary-dark);
}
.feature-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; }
.feature-card p { color: var(--text-light); font-size: .88rem; line-height: 1.6; }

/* ─── SMARTLABS ─── */
#smartlabels { background: var(--bg-alt); }
.smart-content { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; margin-top: 48px; }
/* Slider */
.slider-container {
  position: relative; border-radius: var(--radius); overflow: hidden;
  background: #000; aspect-ratio: 16/9; box-shadow: var(--shadow-lg);
}
.slider-track { display: flex; height: 100%; transition: transform .5s cubic-bezier(.4,0,.2,1); }
.slider-slide { min-width: 100%; height: 100%; position: relative; }
.slider-slide img, .slider-slide video { width: 100%; height: 100%; object-fit: cover; }
.slider-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.9); color: var(--text);
  cursor: pointer; font-size: 1.2rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition); box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.slider-btn:hover { background: #fff; transform: translateY(-50%) scale(1.1); }
.slider-prev { left: 12px; }
.slider-next { right: 12px; }
.slider-dots { display: flex; justify-content: center; gap: 8px; padding: 12px; }
.slider-dot {
  width: 8px; height: 8px; border-radius: 50%; border: none;
  background: #ccc; cursor: pointer; transition: var(--transition); padding: 0;
}
.slider-dot.active { background: var(--primary); width: 24px; border-radius: 4px; }
/* SmartLabels info */
.smart-info h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 16px; }
.smart-info p { color: var(--text-light); line-height: 1.7; margin-bottom: 24px; }
.smart-steps { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.smart-step {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px; background: #fff; border-radius: var(--radius-sm);
  border: 1px solid rgba(0,0,0,.04);
}
.smart-step-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--primary); color: #fff; font-weight: 700; font-size: .85rem;
}
.smart-step h5 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; }
.smart-step p { font-size: .85rem; margin-bottom: 0; }
.smart-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 50px; background: #E8F5E9;
  color: #2E7D32; font-size: .85rem; font-weight: 600;
}
/* Video explicativo */
.video-explicativo { margin-top: 32px; }
.video-explicativo h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 16px; text-align: center; }
.video-wrapper {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 16/9; background: #000; box-shadow: var(--shadow);
}
.video-wrapper video { width: 100%; height: 100%; object-fit: cover; }
.video-play-overlay {
  position: absolute; inset: 0; z-index: 2;
  background: rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: opacity .4s ease;
}
.video-play-overlay.hidden { opacity: 0; pointer-events: none; }
.video-play-overlay svg {
  width: 72px; height: 72px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.5));
  transition: transform .3s ease;
}
.video-play-overlay:hover svg { transform: scale(1.1); }
/* Form message */
.form-message {
  padding: 14px 18px; border-radius: var(--radius-sm);
  font-size: .9rem; font-weight: 500; display: none;
}
.form-message.success {
  display: block; background: rgba(76,175,80,.2);
  color: #C8E6C9; border: 1px solid rgba(76,175,80,.3);
}
.form-message.error {
  display: block; background: rgba(244,67,54,.2);
  color: #FFCDD2; border: 1px solid rgba(244,67,54,.3);
}
.form-message.loading {
  display: flex; align-items: center; gap: 12px;
  color: rgba(255,255,255,.7);
}
.form-message.loading::before {
  content: ''; width: 18px; height: 18px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff; border-radius: 50%;
  animation: spin .6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── CONTACTO ─── */
#contacto { background: linear-gradient(135deg, #0D47A1, #1976D2); color: #fff; }
#contacto .section-tag { background: rgba(255,255,255,.15); color: #fff; }
#contacto .section-title { color: #fff; }
#contacto .section-sub { color: rgba(255,255,255,.8); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 48px; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex; align-items: center; gap: 16px;
  padding: 20px; background: rgba(255,255,255,.1); border-radius: var(--radius-sm);
  backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.1);
  transition: var(--transition);
}
.contact-item:hover { background: rgba(255,255,255,.15); transform: translateX(4px); }
.contact-item-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem;
  background: rgba(255,255,255,.15); flex-shrink: 0;
}
.contact-item h5 { font-size: .95rem; font-weight: 600; margin-bottom: 2px; }
.contact-item p { font-size: .88rem; opacity: .8; word-break: break-all; }
.contact-item a:hover { text-decoration: underline; }
.contact-form { display: flex; flex-direction: column; gap: 16px; }
.contact-form input, .contact-form textarea {
  padding: 14px 18px; border-radius: var(--radius-sm); border: none;
  font-family: inherit; font-size: .95rem; background: rgba(255,255,255,.12);
  color: #fff; outline: none; transition: var(--transition);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,.5); }
.contact-form input:focus, .contact-form textarea:focus { background: rgba(255,255,255,.2); }
.contact-form textarea { resize: vertical; min-height: 120px; }
.contact-form .btn-primary { align-self: flex-start; }

/* ─── FOOTER ─── */
footer {
  background: #0a0a1a; color: rgba(255,255,255,.6); padding: 32px 0; text-align: center; font-size: .85rem;
}
footer a { color: rgba(255,255,255,.8); }
footer a:hover { color: #fff; }

/* ─── WHATSAPP FLOATING ─── */
.whatsapp-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex;
  align-items: center; justify-content: center; font-size: 1.6rem;
  box-shadow: 0 4px 16px rgba(37,211,102,.4);
  transition: var(--transition); animation: pulse 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.5); }
@keyframes pulse { 0%,100%{box-shadow:0 4px 16px rgba(37,211,102,.4)} 50%{box-shadow:0 4px 28px rgba(37,211,102,.6)} }

/* ─── RESPONSIVE ─── */
@media (max-width: 900px) {
  .service-grid, .smart-content, .contact-grid { grid-template-columns: 1fr; }
  .smart-content .slider-container { order: -1; }
}
@media (max-width: 768px) {
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0; background: #fff;
    flex-direction: column; padding: 16px 24px; gap: 4px;
    border-bottom: 1px solid rgba(0,0,0,.06);
    transform: translateY(-110%); opacity: 0; transition: var(--transition);
    pointer-events: none;
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { padding: 12px 16px; }
  .nav-cta { text-align: center; }
  .nav-toggle { display: flex; }
  section { padding: 64px 0; }
  .hero h1 { font-size: 1.8rem; }
  .service-card { padding: 28px; }
}
@media (max-width: 480px) {
  .hero-buttons .btn { width: 100%; justify-content: center; }
}

/* ─── LIGHTBOX ─── */
.lightbox {
  display: none; position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.92); backdrop-filter: blur(8px);
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-close {
  position: absolute; top: 20px; right: 24px; z-index: 10;
  width: 44px; height: 44px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff;
  font-size: 1.5rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: rgba(255,255,255,.3); transform: scale(1.1); }
.lightbox-content {
  width: 90vw; max-width: 1100px; max-height: 85vh;
  display: flex; align-items: center; justify-content: center;
}
.lightbox-content img, .lightbox-content video {
  width: 100%; height: auto; max-height: 85vh; object-fit: contain;
  border-radius: var(--radius-sm);
}
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 52px; height: 52px; border-radius: 50%; border: none;
  background: rgba(255,255,255,.15); color: #fff;
  cursor: pointer; font-size: 1.6rem; display: flex;
  align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-btn:hover { background: rgba(255,255,255,.3); transform: translateY(-50%) scale(1.1); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,.6); font-size: .85rem;
  background: rgba(0,0,0,.5); padding: 6px 16px; border-radius: 50px;
}
@media (max-width: 768px) {
  .lightbox-btn { width: 40px; height: 40px; font-size: 1.2rem; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-content { width: 96vw; }
}

/* ─── VIDEO MODAL ─── */
.modal-video {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .5s ease;
}
.modal-video.open { opacity: 1; pointer-events: auto; }
.modal-video-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,.88);
}
.modal-video-content {
  position: relative; z-index: 1;
  width: 92vw; max-width: 900px; text-align: center;
}
.modal-video-close {
  position: absolute; top: -44px; right: 0;
  background: rgba(255,255,255,.1); border: none; color: #fff;
  font-size: 1.4rem; width: 40px; height: 40px; border-radius: 50%;
  cursor: pointer; transition: background .3s; z-index: 10;
}
.modal-video-close:hover { background: rgba(255,255,255,.25); }
.modal-video-wrapper {
  border-radius: 20px; overflow: hidden;
  aspect-ratio: 16/9; background: #000;
  box-shadow: 0 20px 80px rgba(0,0,0,.6);
}
.modal-video-wrapper video { width: 100%; height: 100%; object-fit: cover; }
.modal-video-caption {
  color: rgba(255,255,255,.5); font-size: .9rem;
  margin: 0 0 14px 0; letter-spacing: 1px;
  padding-right: 44px;
}
.modal-video-caption strong { color: rgba(255,255,255,.8); }
.modal-video-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.5);
  transition: opacity .5s ease;
}
.modal-video-overlay.hidden { opacity: 0; pointer-events: none; }
.modal-sound-btn {
  background: rgba(255,255,255,.15); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff; font-size: 1.1rem; font-weight: 500;
  padding: 16px 36px; border-radius: 50px;
  cursor: pointer; transition: all .3s ease;
  letter-spacing: .5px;
}
.modal-sound-btn:hover {
  background: rgba(255,255,255,.25);
  border-color: rgba(255,255,255,.4);
  transform: scale(1.05);
}
.modal-expand-btn {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  background: rgba(0,0,0,.5); backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff; padding: 8px 16px; border-radius: 10px;
  cursor: pointer; display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 500; letter-spacing: .3px;
  transition: all .3s ease; opacity: .85;
}
.modal-expand-btn:hover { opacity: 1; background: rgba(0,0,0,.7); transform: scale(1.05); }
.modal-expand-btn svg { width: 16px; height: 16px; fill: currentColor; }
