:root {
  /* Fondo y texto base (Oscuridad Distópica) */
  --dark: #0A0210; /* Casi negro con un toque violeta oscuro */
  --dark-2: #1A0726; /* Fondo de contenedores (más oscuro) */
  --text: #E0FCFF; /* Texto claro (cian muy claro) */
  --text-muted: #8A7A99; /* Texto secundario */

  /* Colores de Acento (Neón/Cian Eléctrico) */
  --neon-primary: #00F0FF; /* Cian Eléctrico */
  --neon-secondary: #FF00FF; /* Magenta/Fucsia Brillante */
  --shadow-color: rgba(0, 240, 255, 0.7); /* Sombra para el glow cian */
}

/* Base HTML: Scroll Suave para UX */
html {
    scroll-behavior: smooth;
}

/* Base Global */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Electrolize', sans-serif; 
}

body {
  background-color: var(--dark);
  color: var(--text);
  line-height: 1.6;
}

/* EFECTO DE RUIDO (Noise/Grain Effect) */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/png;base64,iVBORw0KGgoAAAANANSUhEUgAAAAMAAAADCAMAAABs5YmFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAB9QTFRFNDo8P0lLRUxQTE1RTE9S////Mzs+P0RJU09WTE5RTE9S////tGg+EAAAAAt0Uk5T/wAACgoLCwwNDg4QDxERFBYYGhobHB0eHx8gICAiIyUmKCkqKywuLzAxMjM0NTo7PD0+P0BDRktOV1lgoA4XAAAAJUlEQVR42mJgZAACMhAAMyQABhCgAGhOAAHACgYAAQYAbh0AX0f9xQAAAABJRU5ErkJggg==') repeat;
  opacity: 0.05; 
  pointer-events: none; 
  z-index: 100;
}

/* ANIMACIÓN DE LÍNEA DE ESCANEO */
@keyframes scanline {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(100vh);
    }
}

body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0) 50%,
        rgba(0, 240, 255, 0.08) 50%
    );
    background-size: 100% 2px; 
    animation: scanline 15s linear infinite; 
    pointer-events: none;
    z-index: 99;
    mix-blend-mode: overlay; 
}


/* NAVBAR */
.navbar {
  padding: 25px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: rgba(10, 2, 16, 0.8);
  backdrop-filter: blur(10px); 
  border-bottom: 1px solid rgba(0, 240, 255, 0.15); 
  z-index: 10;
  position: relative; 
}

/* LÍNEA DE HOVER DE LA BARRA COMPLETA */
.navbar::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0; 
  width: 0; 
  height: 2px;
  background: var(--neon-primary);
  box-shadow: 0 0 8px var(--shadow-color), 0 0 15px rgba(0, 240, 255, 0.4);
  transition: width 0.4s ease-out; 
}

.navbar:hover::after {
  width: 100%; 
}

/* LOGO (Efecto Neón) */
.logo {
  font-weight: 400; 
  font-size: 1.5rem;
  letter-spacing: 3px; 
  text-transform: uppercase;
  color: var(--neon-primary); 
  text-shadow: 
    0 0 5px var(--neon-primary), 
    0 0 10px var(--neon-primary), 
    0 0 20px var(--shadow-color);
  transition: all 0.3s ease-in-out;
}

.nav-links a {
  color: var(--text);
  text-decoration: none;
  margin-left: 30px;
  font-size: 0.95rem;
  opacity: 0.75;
  transition: color 0.3s ease, opacity 0.3s ease;
  font-family: 'Rajdhani', sans-serif; 
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--neon-primary);
  opacity: 1;
  text-shadow: 0 0 5px var(--shadow-color);
}

/* HERO */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 0 60px;
}

.hero-content h1 {
  font-size: 3.5rem;
  max-width: 750px;
  letter-spacing: 2px;
  color: var(--neon-primary); 
}

.hero-content p {
  margin-top: 20px;
  max-width: 600px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
}

.hero-buttons {
  margin-top: 35px;
}

/* SECTIONS */
.section {
  padding: 100px 60px;
  border-top: 1px dashed rgba(0, 240, 255, 0.1); 
  box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.05); 
}

/* TÍTULOS DE SECCIÓN */
.section h2 {
  font-size: 2.5rem;
  margin-bottom: 25px;
  letter-spacing: 4px; 
  color: var(--neon-primary);
  text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
  
  padding-top: 10px;
  padding-bottom: 10px;
  border-top: 1px solid var(--neon-secondary); 
  border-bottom: 1px solid var(--neon-secondary); 
  display: inline-block;
}

.section p {
  max-width: 700px;
  color: var(--text-muted);
  font-family: 'Rajdhani', sans-serif;
}

/* BUTTONS (Diseño Angular Neón) */
.btn {
  padding: 12px 24px; 
  border-radius: 4px; 
  text-decoration: none;
  margin-right: 15px;
  font-weight: 500;
  display: inline-block;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: all 0.3s ease-in-out;
  font-family: 'Rajdhani', sans-serif;
  font-weight: 700;
}

.btn-primary {
  background: var(--neon-primary);
  color: var(--dark);
  border: 1px solid var(--neon-primary);
}

.btn-secondary {
  border: 1px solid var(--neon-primary);
  color: var(--neon-primary);
  background: transparent;
}

.btn-primary:hover {
  background: var(--neon-secondary);
  color: var(--dark);
  border-color: var(--neon-secondary);
  box-shadow: 0 0 15px var(--neon-secondary); 
}

.btn-secondary:hover {
  background: var(--neon-primary);
  color: var(--dark);
  box-shadow: 0 0 15px var(--shadow-color);
}


/* CARDS (Contenedores con Glow) */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.card {
  background: var(--dark-2);
  padding: 30px;
  border-radius: 8px;
  border: 1px solid rgba(0, 240, 255, 0.1); 
  transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
}

/* --- ENLACES EN LAS TARJETAS --- */
.card .card-link {
    text-decoration: none; /* Elimina el subrayado por defecto */
    color: var(--neon-primary); /* Asegura que el título sea neón por defecto */
    display: block; /* Permite que tome todo el ancho del contenido */
}

/* Aplicar el efecto de brillo neón al hacer hover sobre la tarjeta */
.card:hover .card-link h3 {
    color: var(--neon-secondary); /* Cambia el color del título al hacer hover */
    text-shadow: 0 0 8px var(--neon-secondary);
}

/* CARD ID / MÓDULO DE DECORACIÓN */
.card-id {
    display: block;
    font-family: 'Rajdhani', monospace; 
    color: var(--neon-secondary); 
    font-size: 0.8rem;
    margin-bottom: 15px;
    letter-spacing: 2px;
    font-weight: 600;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 
    0 0 10px var(--shadow-color), 
    0 0 30px var(--shadow-color);
  border-color: var(--neon-primary); 
}

.card h3 {
  margin-bottom: 10px;
  color: var(--neon-primary);
  letter-spacing: 1px;
}

.card p {
    color: var(--text-muted);
    font-family: 'Rajdhani', sans-serif;
}

/* --- LOGO BLACK SMITH AGENCY (CSS Modular) --- */

.card h3 {
    margin-top: 15px; /* Espacio entre el logo y el título */
}

.logo-bsa {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 7px; /* Menor espaciado para que sea más compacto */
    margin-bottom: 20px;
    margin-left: 20px;
    
    /* Pequeña inclinación Ciberpunk */
    transform: perspective(1000px) rotateY(-8deg) scale(0.6); 
    transform-origin: left center;
    transition: transform 0.4s ease-in-out;
}

/* Efecto hover en el contenedor de la tarjeta para animar el logo */
.card:hover .logo-bsa {
    transform: perspective(1000px) rotateY(0deg) scale(0.65);
}

.logo-bsa .logo-block {
    width: 100px; /* Tamaño adaptado para la tarjeta */
    height: 35px;
    border-radius: 8px; /* Menos redondeado */
    position: relative;
    
    background: var(--dark-2);

    /* Borde neón y glow para la estructura */
    border: 1px solid var(--neon-primary);
    box-shadow: 
        0 0 5px var(--shadow-color), /* Glow suave */
        inset 0 0 5px rgba(0, 240, 255, 0.4); /* Glow interno */
    
    transition: all 0.3s ease-in-out;
}

/* --- Variaciones de diseño del Logo BLACK SMITH AGENCY --- */

.logo-bsa .logo-block.top {
    /* La línea superior se desplaza a la derecha */
    transform: translateX(15px);
    border-top-right-radius: 20px; 
    border-bottom-left-radius: 4px; 
}

.logo-bsa .logo-block.middle {
    /* Lo hacemos más brillante al usar el color de acento Magenta */
    background: var(--neon-secondary);
    box-shadow: 0 0 10px var(--neon-secondary), 0 0 20px rgba(255, 0, 255, 0.4);
    border: 1px solid var(--neon-secondary);
}

.logo-bsa .logo-block.bottom {
    /* La línea inferior se desplaza a la izquierda */
    transform: translateX(-10px);
    border-bottom-left-radius: 20px;
    border-top-right-radius: 4px;
}


/* --- LOGO SUNWARD SOFTWARE (Círculo con Triángulo) --- */

.logo-sunward-soft {
    position: relative;
    width: 100px; /* Tamaño base del logo */
    height: 100px;
    margin: 0 auto 20px auto; /* Centrar y añadir espacio inferior */
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.4s ease;
}

/* Efecto hover en el contenedor de la tarjeta para animar el logo */
.card:hover .logo-sunward-soft {
    transform: scale(1.1) rotate(10deg); /* Ligeramente más grande y rotado */
}

.logo-sunward-soft .circle {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: var(--dark-2); /* Fondo del círculo */
    border: 2px solid var(--neon-primary); /* Borde neón */
    box-shadow: 
        0 0 8px var(--shadow-color),
        inset 0 0 8px rgba(0, 240, 255, 0.4);
    position: absolute;
    top: 0;
    left: 0;
}

.logo-sunward-soft .triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent; /* Mitad del ancho del triángulo */
    border-right: 25px solid transparent; /* Mitad del ancho del triángulo */
    border-bottom: 50px solid var(--neon-secondary); /* Color del triángulo (Magenta) */
    position: absolute;
    transform: translateY(5px); /* Ajustar posición vertical */
    filter: drop-shadow(0 0 5px var(--neon-secondary)); /* Glow para el triángulo */
}


/* BDF STYLE LOGO ELIMINADO DE CSS */


/* --- SECCIÓN CEO / PERFIL DEL ARQUITECTO --- */

.ceo-profile {
    display: flex;
    gap: 50px;
    align-items: center;
    padding: 30px;
    background: var(--dark-2);
    border-radius: 12px;
    border: 2px solid var(--neon-secondary); 
    box-shadow: 0 0 15px rgba(255, 0, 255, 0.2);
    margin-top: 40px;
}

.ceo-image-placeholder {
    width: 250px;
    min-width: 250px;
    height: 250px;
    background: var(--dark); 
    border: 1px dashed var(--neon-primary);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative; 
}

/* Estilos para la imagen dentro del placeholder */
.ceo-img {
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
    display: block;
}

.ceo-details h3 {
    color: var(--neon-primary);
    letter-spacing: 1.5px;
    margin-bottom: 15px;
}

.ceo-quote {
    font-style: italic;
    color: var(--neon-secondary); 
    font-size: 1.2rem;
    margin-bottom: 25px;
    padding-left: 20px;
    border-left: 3px solid var(--neon-secondary);
    font-family: 'Rajdhani', sans-serif;
    line-height: 1.4;
}

.ceo-bio {
    color: var(--text-muted);
    margin-bottom: 25px;
    font-family: 'Rajdhani', sans-serif;
}

.ceo-bio strong {
    color: var(--text); 
}

/* CTA */
.cta {
  padding: 100px 60px;
  text-align: center;
  background: radial-gradient(circle, rgba(255, 0, 255, 0.08), transparent 70%); 
}

.cta h2 {
  margin-bottom: 30px;
}

/* FOOTER */
.footer {
  padding: 40px 60px;
  border-top: 1px solid rgba(0, 240, 255, 0.1);
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  font-family: 'Rajdhani', sans-serif;
  font-size: 0.9rem;
}

.footer span {
    color: var(--neon-secondary); 
    letter-spacing: 1px;
}

/* --- BLOQUEO CIBERPUNK PARA EL CEO --- */

.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 2, 16, 0.95); 
    border: 3px solid var(--neon-secondary);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    z-index: 5;
    opacity: 1; 
    transition: opacity 0.5s ease-out;
}

.lock-text {
    font-family: 'Rajdhani', monospace;
    color: var(--neon-secondary);
    font-size: 1rem;
    letter-spacing: 3px;
    text-shadow: 
        1px 1px 0 #FF00FF, 
        -1px -1px 0 #00F0FF; 
}

.ceo-image-placeholder:not(.locked) .lock-overlay {
    opacity: 0;
    pointer-events: none; 
}

/* --- MEDIA QUERIES (Responsividad Completa) --- */
@media (max-width: 1024px) {
    .navbar {
        padding: 20px 30px;
    }
    .hero, .section, .footer {
        padding-left: 30px;
        padding-right: 30px;
    }
    .hero-content h1 {
        font-size: 3.2rem;
    }
    .section h2 {
        font-size: 2.2rem;
    }
    .ceo-profile {
        gap: 30px;
    }
    .ceo-image-placeholder {
        width: 200px;
        min-width: 200px;
        height: 200px;
    }
}

@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        padding: 15px 20px;
    }
    .nav-links {
        margin-top: 15px;
        width: 100%;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .nav-links a {
        margin: 0 10px 10px 10px;
        font-size: 0.9rem;
    }
    .hero, .section, .footer {
        padding-left: 20px;
        padding-right: 20px;
    }
    .hero-content h1 {
        font-size: 2.5rem;
        text-align: center;
        max-width: 100%;
    }
    .hero-content p {
        text-align: center;
        max-width: 100%;
    }
    .hero-buttons {
        text-align: center;
    }
    .btn {
        margin-right: 10px;
        margin-bottom: 10px;
    }

    .section h2 {
        font-size: 1.8rem;
        text-align: center;
        padding-left: 10px;
        padding-right: 10px;
    }
    .section p {
        text-align: center;
        max-width: 100%;
    }
    .cards {
        grid-template-columns: 1fr;
    }

    /* Responsividad de Logos */
    .logo-bsa {
        margin: 0 auto 20px auto;
        transform: scale(0.7);
    }
    .logo-sunward-soft {
        transform: scale(0.7);
    }
    
    /* Responsividad de la sección CEO */
    .ceo-profile {
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }
    .ceo-image-placeholder {
        width: 150px;
        height: 150px;
        min-width: unset;
        border-width: 2px;
    }
    .ceo-details h3, .ceo-quote, .ceo-bio {
        text-align: center;
    }
    .ceo-quote {
        padding-left: 0;
        border-left: none;
        font-size: 1.1rem;
    }
    .ceo-btn {
        display: block;
        margin: 20px auto 0 auto;
    }
    .footer {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    .section h2 {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    .btn {
        padding: 10px 18px;
        font-size: 0.9rem;
    }
}