*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --blue: #160AF0;
  --cvi-blue: #0E2976;
  --cvi-steel: #4db8d4;
  --cyan: #22d3ee;
  --dark: #020617;
  --dark2: #0f172a;
  --dark3: #1e293b;
  --white: #ffffff;
  --gray: #94a3b8;
  --gray2: #64748b;
}
html { scroll-behavior: smooth; overflow-x: hidden; }
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: var(--dark); color: var(--white); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; width: 100%; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; background: var(--dark2); border-bottom: 1px solid #1e293b; width: 100%; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 5rem; }
.nav-logo img { height: 2.25rem; width: auto; filter: brightness(0) invert(1); }
.nav-links { display: flex; gap: 2rem; list-style: none; }
.nav-links a { font-size: 0.95rem; font-weight: 500; color: rgba(255,255,255,0.85); transition: color 0.2s; }
.nav-links a:hover { color: var(--white); }
.nav-toggle { display: none; background: none; border: none; color: white; cursor: pointer; }
.nav-mobile { display: none; background: var(--dark2); border-top: 1px solid #1e293b; padding: 1rem 0; width: 100%; }
.nav-mobile a { display: block; padding: 0.65rem 1.5rem; font-size: 0.95rem; color: rgba(255,255,255,0.85); }
.nav-mobile a:hover { color: white; }
section { padding: 6rem 0; width: 100%; overflow-x: hidden; }
.section-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.2em; color: var(--cyan); }
.section-title { margin-top: 1rem; font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 900; letter-spacing: -0.02em; }
.section-desc { margin-top: 1rem; color: var(--gray); max-width: 40rem; line-height: 1.7; font-size: 1.05rem; }
.btn-primary { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--cyan); color: #020617; padding: 1rem 2rem; border-radius: 0.75rem; font-weight: 700; font-size: 0.95rem; transition: all 0.3s ease; border: none; cursor: pointer; text-decoration: none; }
.btn-primary:hover { background: #67e8f9; transform: translateY(-2px); box-shadow: 0 12px 24px rgba(34, 211, 238, 0.25); }
.btn-secondary { display: inline-flex; align-items: center; gap: 0.5rem; border: 1.5px solid rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.08); color: white; padding: 1rem 2rem; border-radius: 0.75rem; font-weight: 600; font-size: 0.95rem; transition: all 0.3s ease; cursor: pointer; text-decoration: none; }
.btn-secondary:hover { border-color: rgba(34, 211, 238, 0.6); background: rgba(34, 211, 238, 0.12); color: var(--cyan); transform: translateY(-2px); }
footer { background: var(--dark2); border-top: 1px solid #1e293b; padding: 3.5rem 0; }
.footer-grid { display: grid; gap: 2.5rem; grid-template-columns: 1.5fr 1fr 1fr; }
.footer-brand p:first-child { font-size: 1.15rem; font-weight: 700; color: white; }
.footer-brand p { margin-top: 0.5rem; font-size: 0.875rem; color: #64748b; line-height: 1.6; }
.footer-col h4 { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.15em; color: #64748b; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col ul a { font-size: 0.875rem; color: #64748b; transition: color 0.2s; }
.footer-col ul a:hover { color: var(--cyan); }
.footer-col p { font-size: 0.875rem; color: #64748b; line-height: 1.6; }
.footer-social { display: flex; gap: 1rem; margin-top: 1rem; }
.footer-social a { font-size: 0.75rem; color: #475569; transition: color 0.2s; }
.footer-social a:hover { color: var(--cyan); }
.footer-bottom { margin-top: 2.5rem; border-top: 1px solid #1e293b; padding-top: 1.5rem; }
.footer-bottom p { font-size: 0.875rem; color: #475569; }
/* HERO SECTION */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-top: 5rem; }
.hero-bg-img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(2, 6, 23, 0.55); z-index: 1; }
.hero-content { position: relative; z-index: 2; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 0.5rem; background: rgba(34, 211, 238, 0.15); border: 1px solid rgba(34, 211, 238, 0.4); border-radius: 9999px; padding: 0.625rem 1.25rem; margin-bottom: 1.5rem; font-size: 0.75rem; font-weight: 700; color: var(--cyan); text-transform: uppercase; letter-spacing: 0.1em; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4rem); font-weight: 900; letter-spacing: -0.02em; margin-bottom: 1.5rem; color: white; }
.hero p { font-size: 1.125rem; color: rgba(255, 255, 255, 0.95); max-width: 50rem; margin: 0 auto 2rem; line-height: 1.8; }
.hero-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* RESPONSIVE GRIDS */
@media (max-width: 1024px) {
  section { padding: 4rem 0; }
  .hero { min-height: 80vh; }
  .hero h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
  .hero p { font-size: 1rem; }
}

@media (max-width: 767px) {
  .container { padding: 0 1rem; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-inner { height: 4rem; }
  .nav-logo img { height: 1.75rem; }
  
  section { padding: 2.5rem 0; }
  
  .hero { min-height: 60vh; margin-top: 4rem; }
  .hero h1 { font-size: clamp(1.75rem, 4vw, 2.5rem); margin-bottom: 1rem; }
  .hero p { font-size: 0.95rem; margin-bottom: 1.5rem; line-height: 1.6; }
  .hero-btns { flex-direction: column; gap: 0.75rem; }
  .hero-btns a { width: 100%; text-align: center; padding: 1rem 1.5rem; }
  
  .eyebrow { padding: 0.5rem 1rem; font-size: 0.65rem; margin-bottom: 1rem; }
  
  .btn-primary, .btn-secondary { padding: 0.875rem 1.5rem; font-size: 0.9rem; width: 100%; }
  
  .footer-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-col { margin-bottom: 1rem; }
  
  .section-title { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 1.5rem; }
  .section-desc { font-size: 0.95rem; margin-bottom: 1.5rem; }
  
  /* Responsive grids for inline styles */
  [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }
  
  [style*="grid-template-columns: repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 0.75rem; }
  
  section { padding: 1.5rem 0; }
  
  .hero { min-height: 50vh; margin-top: 3.5rem; }
  .hero h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 0.75rem; }
  .hero p { font-size: 0.9rem; margin-bottom: 1.25rem; line-height: 1.5; }
  .hero-btns { gap: 0.5rem; }
  .hero-btns a { padding: 0.875rem 1rem; font-size: 0.85rem; }
  
  .eyebrow { padding: 0.4rem 0.75rem; font-size: 0.6rem; margin-bottom: 0.75rem; }
  
  .btn-primary, .btn-secondary { padding: 0.75rem 1.25rem; font-size: 0.85rem; width: 100%; }
  
  .section-title { font-size: clamp(1.25rem, 2.5vw, 1.75rem); margin-bottom: 1rem; }
  .section-desc { font-size: 0.9rem; margin-bottom: 1rem; }
  
  .footer-brand p:first-child { font-size: 1rem; }
  .footer-col h4 { font-size: 0.7rem; }
  .footer-col ul a, .footer-col p { font-size: 0.8rem; }
  
  /* Product cards responsive */
  [style*="padding: 1.75rem"] {
    padding: 1.25rem !important;
  }
  
  [style*="font-size: 1.15rem"] {
    font-size: 1rem !important;
  }
  
  [style*="margin-bottom: 1.25rem"] {
    margin-bottom: 1rem !important;
  }

/* ANIMATIONS */
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:0.4} }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 20px rgba(34,211,238,0.3); } 50% { box-shadow: 0 0 40px rgba(34,211,238,0.6); } }

/* HERO ANIMATIONS */
.hero-content { animation: fadeInUp 0.8s ease-out; }
.hero h1 { animation: slideInLeft 0.8s ease-out 0.2s both; }
.hero p { animation: slideInLeft 0.8s ease-out 0.4s both; }
.hero-btns { animation: slideInLeft 0.8s ease-out 0.6s both; }

/* CARD HOVER ANIMATIONS */
a[href*="productos/cvi"] { animation: fadeInUp 0.6s ease-out; }
a[href*="productos/cvi"]:hover { border-color: rgba(34,211,238,0.5); box-shadow: 0 10px 30px rgba(34,211,238,0.1); }
a[href*="productos/cvi"]:hover h3 { color: var(--cyan); }
a[href*="productos/cvi"]:hover > div > div:first-child { opacity: 1; }
a[href*="productos/cvi"]:hover div[style*="inline-flex"][style*="margin-top: 1.5rem"] { opacity: 1; transform: translateX(0); }

/* BUTTON ANIMATIONS */
.btn-primary { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 32px rgba(34, 211, 238, 0.3); }
.btn-secondary { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-secondary:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(34, 211, 238, 0.15); }

/* EYEBROW ANIMATION */
.eyebrow-dot { animation: pulse 2s infinite; }

/* FADE IN ON SCROLL */
.fade-in { animation: fadeInUp 0.6s ease-out; }


/* MOBILE OPTIMIZATIONS */
@media (max-width: 767px) {
  /* Prevent horizontal overflow */
  * { max-width: 100%; }
  
  /* Improve text readability */
  body { font-size: 15px; }
  
  /* Better spacing for sections */
  section { margin-bottom: 1rem; }
  
  /* Improve card spacing */
  [style*="border-radius: 1rem"] {
    padding: 1.25rem !important;
  }
  
  /* Better list spacing */
  [style*="flex-direction: column"] {
    gap: 0.5rem !important;
  }
}

@media (max-width: 480px) {
  /* Prevent horizontal overflow */
  * { max-width: 100%; }
  
  body { font-size: 14px; }
  
  /* Reduce padding on small screens */
  [style*="padding: 1.5rem"] {
    padding: 1rem !important;
  }
  
  [style*="padding: 2rem"] {
    padding: 1.25rem !important;
  }
  
  /* Better gap for flex items */
  [style*="gap: 1.5rem"] {
    gap: 1rem !important;
  }
  
  [style*="gap: 2rem"] {
    gap: 1.25rem !important;
  }
  
  /* Force single column for all grids */
  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }
}
