@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700;800&family=Open+Sans:wght@400;600&display=swap');

:root {
  --bg-dark: #0a0a0a;
  --bg-card: #141414;
  --text-white: #ffffff;
  --text-gray: #b3b3b3;
  --accent-gold: #b08d38;
  --accent-blue: #0044cc;
  --border-color: #333;
}

* { margin: 0; padding: 0; box-sizing: border-box; scroll-behavior: smooth; }

body {
  background-color: var(--bg-dark);
  color: var(--text-white);
  font-family: 'Open Sans', sans-serif;
  line-height: 1.6;
}

h1, h2, h3, h4 { 
    font-family: 'Montserrat', sans-serif; 
    font-weight: 800; 
    text-transform: uppercase; 
    letter-spacing: -0.5px; 
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 80px 0; }
.text-center { text-align: center; }
.gold-text { color: var(--accent-gold); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-family: 'Montserrat', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
  border: none;
  cursor: pointer;
}
.btn-primary { 
    background-color: var(--accent-blue); 
    color: white; 
    box-shadow: 0 4px 15px rgba(0, 68, 204, 0.4); 
}
.btn-primary:hover { 
    background-color: #003399; 
    transform: translateY(-3px); 
}

/* Navbar */
.navbar { 
    position: fixed; top: 0; width: 100%; 
    background: rgba(10, 10, 10, 0.95); backdrop-filter: blur(10px); 
    padding: 15px 0; z-index: 1000; border-bottom: 1px solid var(--border-color); 
}
.nav-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 12px; font-size: 1.5rem; font-weight: 800; }
.nav-links { display: flex; gap: 20px; }
.nav-links a { color: var(--text-gray); text-decoration: none; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--accent-gold); }

/* Hero */
.hero { 
    min-height: 100vh; display: flex; align-items: center; justify-content: center; 
    background: radial-gradient(circle at center, #1a1a1a 0%, #000 100%); 
    padding-top: 60px; 
}
.hero h1 {
    font-size: clamp(2.5rem, 5vw, 4.5rem); line-height: 1.1; margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text;
    background-clip: text; /* <--- Agrega esta línea estándar */
    -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.2rem; color: var(--text-gray); max-width: 600px; margin: 0 auto 40px; }

/* Grids & Cards */
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 30px; margin-top: 50px; }
.solution-card { 
  background: var(--bg-card); padding: 30px; border-radius: 15px; text-align: center; 
  border: 3px solid var(--border-color); transition: 0.3s; 
}
.solution-card:hover { border-color: var(--accent-gold); transform: translateY(-5px); }
.icon { font-size: 3rem; margin-bottom: 20px; color: var(--accent-gold); display: block; }

/* Team */
.testi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 40px; }
.testi-card { 
  background: #0a0a0a; padding: 30px; border-radius: 15px; 
  border: 3px solid var(--border-color); display: flex; gap: 20px; transition: 0.3s;
}
.testi-card:hover { border-color: var(--accent-gold); transform: translateY(-5px); }
.testi-img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 2px solid var(--accent-gold); flex-shrink: 0; }
.role-text { font-size: 0.8rem; color: #777; display: block; margin-bottom: 10px; }

/* FAQ Accordion */
.faq-container { max-width: 800px; }
.accordion-title {
    width: 100%; background: none; border: none; padding: 20px 0;
    display: flex; justify-content: space-between; align-items: center;
    color: var(--text-gray); font-size: 1.1rem; font-weight: 600;
    cursor: pointer; border-bottom: 1px solid var(--border-color);
    transition: color 0.3s;
}
.accordion-title:hover, .accordion-title.active { color: var(--accent-gold); }
.accordion-content {
    max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out;
    color: #999; padding: 0 10px;
}
.accordion-content p { padding: 20px 0; }
.accordion-title i { transition: transform 0.3s; }
.accordion-title.active i { transform: rotate(180deg); }

/* Footer */
.footer { padding: 40px 0; background: black; text-align: center; border-top: 1px solid var(--border-color); color: var(--text-gray); }

/* =========================================
   ANIMACIONES DE SCROLL (REVEAL)
   ========================================= */
.reveal {
    opacity: 0;
    transition: all 0.9s cubic-bezier(0.17, 0.55, 0.55, 1);
}

/* Direcciones iniciales */
.reveal.fade-up { transform: translateY(50px); }
.reveal.fade-down { transform: translateY(-50px); }
.reveal.fade-left { transform: translateX(-50px); }
.reveal.fade-right { transform: translateX(50px); }

/* Estado activo (cuando entran a la pantalla) */
.reveal.active {
    opacity: 1;
    transform: translate(0);
}

/* Retrasos escalonados para las tarjetas */
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }

.accordion-content {
    max-height: 0px; /* Inicia cerrado */
    overflow: hidden; /* Oculta el texto que desborda */
    transition: max-height 0.3s ease-out; /* Controla la suavidad de la animación */
}

@media (max-width: 768px) {
  .nav-links { display: none; }
}