  :root {
    --primary: #1e3a8a;       
    --primary-light: #3b82f6; 
    --accent: #0d9488;        
    --bg-light: #f1f5f9;      
    --bg-white: #ffffff;
    --text-dark: #0f172a;     
    --text-body: #475569;     
    --border: #e2e8f0;
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  }

  * { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  
  body {
    font-family: 'Inter', sans-serif;
    color: var(--text-body);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
  }

  h1, h2, h3, h4, .logo-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
  }

  .container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
  a { text-decoration: none; transition: all 0.3s ease; }
  ul { list-style: none; }

  /* Animaciones Scroll */
  .reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.5, 0, 0, 1); }
  .reveal.active { opacity: 1; transform: translateY(0); }
  .delay-1 { transition-delay: 0.1s; }
  .delay-2 { transition-delay: 0.2s; }
  .delay-3 { transition-delay: 0.3s; }

  /* Botones */
  .btn {
    display: inline-block; padding: 16px 32px; font-family: 'Montserrat', sans-serif;
    font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: 1px;
    border-radius: 50px; cursor: pointer; position: relative; overflow: hidden;
    z-index: 1; transition: all 0.4s ease; border: none;
  }
  .btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: var(--bg-white); box-shadow: 0 10px 20px rgba(30, 58, 138, 0.3);
  }
  .btn-primary::before {
    content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, var(--accent), var(--primary-light));
    z-index: -1; transition: opacity 0.4s ease; opacity: 0;
  }
  .btn-primary:hover::before { opacity: 1; }
  .btn-primary:hover { transform: translateY(-3px); box-shadow: 0 15px 25px rgba(13, 148, 136, 0.4); }

  /* Header */
  header {
    position: fixed; width: 100%; top: 0; z-index: 1000;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm); transition: all 0.3s ease;
  }
  .navbar { display: flex; justify-content: space-between; align-items: center; height: 90px; }
  .logo { display: flex; align-items: center; gap: 12px; }
  .logo svg { color: var(--primary); width: 36px; height: 36px; }
  .logo-text { font-weight: 900; font-size: 26px; letter-spacing: -1px; }
  .logo-text span { color: var(--accent); }
  
  .nav-menu { display: flex; gap: 30px; }
  .nav-menu a {
    font-family: 'Montserrat', sans-serif; font-weight: 600; font-size: 14px;
    color: var(--text-dark); position: relative;
  }
  .nav-menu a::after {
    content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0;
    background: var(--accent); transition: width 0.3s ease;
  }
  .nav-menu a:hover::after { width: 100%; }
  .nav-menu a:hover { color: var(--primary); }
  
  @media (max-width: 900px) { .nav-menu { display: none; } }

  /* Hero */
  .hero {
    position: relative; min-height: 100vh; display: flex; align-items: center;
    padding-top: 90px; overflow: hidden;
    background: linear-gradient(-45deg, #0f172a, #1e3a8a, #0f172a, #0d9488);
    background-size: 400% 400%; animation: gradientBG 15s ease infinite;
    color: var(--bg-white);
  }
  @keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  .floating-shape {
    position: absolute; border-radius: 50%; background: rgba(255, 255, 255, 0.05);
    animation: float 8s ease-in-out infinite; pointer-events: none;
  }
  .shape-1 { width: 300px; height: 300px; top: -50px; left: -50px; animation-delay: 0s; }
  .shape-2 { width: 500px; height: 500px; bottom: -100px; right: -100px; animation-delay: 2s; }
  @keyframes float {
    0% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(10deg); }
    100% { transform: translateY(0) rotate(0deg); }
  }

  .hero-content {
    position: relative; z-index: 10; text-align: center; max-width: 800px; margin: 0 auto;
  }
  .hero-badge {
    display: inline-block; padding: 8px 16px; background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 50px;
    font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 700;
    letter-spacing: 2px; text-transform: uppercase; margin-bottom: 24px;
    backdrop-filter: blur(5px);
  }
  .hero h1 { font-size: clamp(40px, 6vw, 72px); color: var(--bg-white); margin-bottom: 24px; line-height: 1.1; }
  .hero p { font-size: clamp(16px, 2vw, 20px); color: rgba(255, 255, 255, 0.8); margin-bottom: 40px; font-weight: 300; }

  /* Servicios */
  .services { padding: 120px 0; background: var(--bg-light); }
  .section-title { text-align: center; margin-bottom: 60px; }
  .section-title h2 { font-size: 40px; margin-bottom: 16px; }
  .section-title p { color: var(--text-body); max-width: 600px; margin: 0 auto; font-size: 18px; }

  .services-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 30px;
  }
  
  .service-card {
    background: var(--bg-white); border-radius: 20px; 
    box-shadow: var(--shadow-sm); transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative; overflow: hidden; border: 1px solid var(--border);
    display: flex; flex-direction: column;
  }
  
  .service-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); border-color: var(--primary-light); }
  
  .service-img-container { width: 100%; height: 220px; overflow: hidden; position: relative; }
  .service-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
  .service-card:hover .service-img { transform: scale(1.08); }
  
  .service-content { padding: 40px 30px 30px; position: relative; flex-grow: 1; }

  .service-icon {
    position: absolute; top: -30px; right: 30px;
    width: 60px; height: 60px; background: var(--primary); color: var(--bg-white);
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 15px rgba(30, 58, 138, 0.3); transition: all 0.4s ease; border: 4px solid var(--bg-white);
  }
  
  .service-card:hover .service-icon { background: var(--accent); transform: rotateY(180deg); }
  
  .service-card h3 { font-size: 22px; margin-bottom: 12px; }
  .service-card p { margin-bottom: 20px; font-size: 14px; }
  .service-features li {
    display: flex; align-items: center; gap: 10px; margin-bottom: 10px; font-size: 14px; font-weight: 500;
  }
  .service-features li svg { color: var(--accent); }

  /* About & Tech */
  .about { padding: 120px 0; background: var(--bg-white); }
  .about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
  @media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
  
  .dr-badge {
    display: inline-block; color: var(--primary); font-family: 'Montserrat'; font-weight: 800;
    font-size: 14px; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 16px;
  }
  .about h2 { font-size: 40px; margin-bottom: 24px; }
  .about p { font-size: 18px; margin-bottom: 30px; }
  
  .tech-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .tech-card {
    background: var(--bg-light); padding: 24px; border-radius: 16px; border-left: 4px solid var(--accent);
    transition: transform 0.3s;
  }
  .tech-card:hover { transform: translateX(10px); }
  .tech-card h4 { font-size: 18px; margin-bottom: 8px; }

  /* Contacto */
  .contact { padding: 120px 0; background: var(--text-dark); color: var(--bg-white); position: relative; }
  .contact-wrapper {
    background: var(--bg-white); border-radius: 24px; padding: 60px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.5); color: var(--text-dark);
    display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px;
    margin-top: -60px; 
  }
  @media (max-width: 900px) { .contact-wrapper { grid-template-columns: 1fr; padding: 40px 20px; } }
  
  .contact-info h3 { font-size: 32px; margin-bottom: 24px; }
  .info-item { display: flex; gap: 16px; margin-bottom: 24px; }
  .info-icon {
    width: 50px; height: 50px; background: rgba(37, 99, 235, 0.1); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; color: var(--primary);
    flex-shrink: 0;
  }
  .info-item h4 { font-size: 16px; margin-bottom: 4px; }
  .info-item p { margin: 0; font-size: 15px; }

  /* Formulario */
  .form-group { position: relative; margin-bottom: 30px; }
  .form-input {
    width: 100%; padding: 15px 0; border: none; border-bottom: 2px solid var(--border);
    background: transparent; font-family: 'Inter'; font-size: 16px; color: var(--text-dark);
    transition: all 0.3s;
  }
  .form-input:focus { outline: none; border-bottom-color: var(--primary); }
  .form-label {
    position: absolute; top: 15px; left: 0; color: var(--text-body);
    transition: all 0.3s ease; pointer-events: none; font-weight: 500;
  }
  .form-input:focus ~ .form-label, .form-input:valid ~ .form-label {
    top: -10px; font-size: 12px; color: var(--primary); font-weight: 700; text-transform: uppercase;
  }
  .grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
  @media (max-width: 600px) { .grid-2 { grid-template-columns: 1fr; } }
  
  footer { background: #070b14; color: rgba(255,255,255,0.6); padding: 60px 0 30px; text-align: center; }
  footer .logo-text { color: var(--bg-white); margin-bottom: 20px; display: inline-block; }
  footer p { font-size: 14px; }