@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&family=Share+Tech+Mono&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  text-decoration: none;
  list-style: none;
}

body {
  background-color: #ffffff;
  font-family: "Poppins", sans-serif;
  color: #000000;
  /* Asegura que no haya scroll horizontal por la animación */
  overflow-x: hidden; 
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------------------------------- */
/* 1. Animación de Bienvenida (Java Console) */
/* ---------------------------------- */
.welcome-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #1a1a1a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 1s ease-out, visibility 1s ease-out;
}

.main-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 1s ease-in;
    /* Para que el contenido principal aparezca una vez que la pantalla de bienvenida se desvanezca */
}

.console-text {
    font-family: 'Share Tech Mono', monospace; /* Fuente de consola */
    font-size: 2.5em;
    color: #00ff00; /* Color verde de consola */
    white-space: pre; /* Mantiene el formato del código */
    overflow: hidden; /* Oculta el texto que no se ha "escrito" */
    border-right: .15em solid #00ff00;
    animation: 
        typing 3s steps(60, end), /* 28 caracteres en System.out.println("Bienvenidos a Malware Inc."); */
        blink-caret .75s step-end infinite;
}

@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}

@keyframes blink-caret {
    from, to { border-color: transparent }
    50% { border-color: #00ff00 }
}

/* ---------------------------------- */
/* 2. Estilos del Menú y Header */
/* ---------------------------------- */
header {
    background-color: #ffffff; /* Asegura un fondo blanco para el header */
    padding-top: 20px;
}

.menu {
  position: relative; /* Cambiado de absolute a relative para que el header fluya */
  top: initial;
  left: initial;
  right: initial;
  display: flex;
  justify-content: center;
  z-index: 1000;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between; /* Ajuste para mejor distribución */
  width: 100%;
}

.menu-1 {
  margin-right: 20px; /* Reducción de margen para mejor ajuste */
}

.menu-2 {
  margin-left: 20px; /* Reducción de margen para mejor ajuste */
  display: flex;
  align-items: center;
}

.logo-1 {
  width: 0;
}

.logo-2 {
  width: 150px;
}

.menu .navbar ul li {
  position: relative;
  float: left;
}

.menu .navbar ul li a {
  font-size: 16px;
  padding: 20px;
  color: #000000;
  background-color: #FFFFFF;
  display: block;
  font-weight: 500;
}

.menu .navbar ul li a:hover {
  color: #b60000;
}

#menu {
  display: none;
}

.menu-icono {
  width: 25px;
}

.menu label {
  cursor: pointer;
  display: none;
}

/* ---------------------------------- */
/* 3. Animación del Icono (boton1.png) */
/* ---------------------------------- */
.animated-icon-container {
    padding: 0 40px;
}

.animated-icon {
    width: 60px; /* Tamaño del icono */
    height: 60px;
    transition: transform 0.3s ease;
    /* Animación: Rotación continua y un efecto de "flotación" */
    animation: rotateAndScale 5s infinite linear, float 3s ease-in-out infinite alternate;
}

@keyframes rotateAndScale {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.05); }
    100% { transform: rotate(360deg) scale(1); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-8px); }
}

/* ---------------------------------- */
/* 4. Estilos de la Sección Hero/Principal (Adaptado de product-section) */
/* ---------------------------------- */
.hero-section {
    padding: 100px 0;
    /* Eliminación de la línea de división */
    background: linear-gradient(135deg, #fb8b24 0%, #e36414 50%, #9a031e 100%);
    margin-top: 20px; /* Espacio debajo del header */
    border-radius: 25px; /* Bordes suaves */
    text-align: center;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3); /* Sombra para resaltar */
}

.hero-section .section-header h2 {
    font-size: 48px;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero-content {
    justify-content: center;
}

.full-width-text {
    width: 80%; /* Centra el texto */
    margin: 0 auto;
}

.hero-section .content-text h3 {
    font-size: 30px;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-section .content-text p {
    font-size: 20px;
    color: #FFFFFF;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* Botón principal */
.primary-btn {
    display: inline-block;
    padding: 15px 40px;
    border: 2px solid #FFFFFF;
    color: #FFFFFF;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 30px;
    transition: all 0.3s ease;
    background: transparent;
}

.primary-btn:hover {
    background: #FFFFFF;
    color: #e36414;
    transform: translateY(-5px) scale(1.05);
}

/* Se eliminan los estilos para product-section:nth-of-type(2) y (3) */
/* Se eliminan los estilos de .image-gradientX y .content-image */

/* ---------------------------------- */
/* 5. Estilos de la Sección Redes Sociales Mejorada */
/* ---------------------------------- */
.social-media-pro {
    padding: 80px 0;
    text-align: center;
}

.social-media-pro .section-header h2 {
    font-size: 36px;
    color: #000000;
    font-weight: 700;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.social-links-pro {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.social-link-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 18px;
    font-weight: 600;
    color: #000000;
    background: #f0f0f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.social-link-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor; /* El color del icono sigue el color del texto */
}

/* Estilos de Hover Específicos */
.social-link-item.facebook {
    border: 2px solid #1877F2;
}
.social-link-item.facebook:hover {
    background: #1877F2;
    color: #FFFFFF;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(24, 119, 242, 0.5);
}

.social-link-item.youtube {
    border: 2px solid #FF0000;
}
.social-link-item.youtube:hover {
    background: #FF0000;
    color: #FFFFFF;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 0, 0, 0.5);
}

.social-link-item.github {
    border: 2px solid #333333;
}
.social-link-item.github:hover {
    background: #333333;
    color: #FFFFFF;
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(51, 51, 51, 0.5);
}

/* Eliminación de las clases viejas de redes sociales */
/* .social-section, .social-group1, .social-group2, .social-link.facebook, .social-link.youtube { display: none; } */


/* ---------------------------------- */
/* 6. Estilos del Footer */
/* ---------------------------------- */
.footer {
  padding: 80px 0 40px;
  display: flex;
  justify-content: space-between;
  /* Línea de división eliminada */
  margin-top: 50px;
}

.links h4 {
  color: #000000;
  text-transform: uppercase;
  margin-bottom: 25px;
  font-size: 18px;
}

.links ul li {
  margin-bottom: 10px;
}

.links ul li a {
  color: #000000;
  font-size: 14px;
  transition: color 0.3s ease;
}

.links ul li a:hover {
  color: #b60000;
}

/* ---------------------------------- */
/* 7. Responsive Design */
/* ---------------------------------- */
@media (max-width: 991px) {
    header {
        padding-top: 0;
    }
    
  .menu {
    padding: 20px;
    justify-content: space-between;
  }
  
  .menu-2 {
    display: none;
  }
  
  .logo-1 {
    width: 100px;
  }
  
  .logo-2 {
    width: 0px;
  }

  .menu label {
    display: initial;
  }

  .menu .navbar {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #ffffff; /* Fondo blanco para menú desplegable */
    display: none;
    flex-direction: column;
    padding: 10px 0;
  }
  
  .menu .navbar ul {
      width: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-right: 0;
  }

  .menu .navbar ul li {
    float: none;
    width: 100%;
    text-align: center;
  }
  
  .menu .navbar ul li a {
      color: #000000; /* Texto negro para menú móvil */
  }

  #menu:checked ~ .navbar {
    display: flex;
  }
  
  .animated-icon-container {
      padding: 10px 0;
  }

  .hero-section {
    padding: 60px 0;
  }

  .hero-section .section-header h2 {
    font-size: 36px;
  }

  .hero-section .content-text h3 {
    font-size: 24px;
  }

  .social-links-pro {
      flex-direction: column;
      gap: 20px;
      padding: 0 20px;
  }
  
  .social-link-item {
      justify-content: center;
  }

  .footer {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .links {
    margin-bottom: 10px;
  }
}

@media (max-width: 768px) {
  .console-text {
      font-size: 1.5em; /* Reducción del tamaño de la fuente para la animación en móvil */
  }

  .hero-section .section-header h2 {
    font-size: 28px;
  }
  
  .hero-section .content-text h3 {
    font-size: 20px;
  }
  
  .hero-section .content-text p {
    font-size: 16px;
  }
  
  .primary-btn {
    padding: 10px 25px;
    font-size: 14px;
  }
  
  .social-media-pro .section-header h2 {
      font-size: 28px;
  }
}

/* ---------------------------------- */
/* 9. Estilos de la Sección de Proceso (Metodología) */
/* ---------------------------------- */
.process-section {
    padding: 80px 0;
    text-align: center;
    background-color: #f0f0f0; /* Fondo gris claro */
    border-radius: 25px;
    margin: 40px auto;
}

.process-section .section-header h2 {
    font-size: 36px;
    color: #000000;
    font-weight: 700;
    margin-bottom: 50px;
    text-transform: uppercase;
}

.process-steps {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
    position: relative;
}

/* Línea de tiempo / Conexión entre pasos (solo en escritorio) */
.process-steps::before {
    content: '';
    position: absolute;
    top: 50px;
    left: 10%;
    right: 10%;
    height: 3px;
    background-color: #b60000;
    z-index: 1;
}

.step-item {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    width: 22%; /* 4 items en fila */
    min-width: 200px;
    text-align: center;
    position: relative;
    z-index: 5; /* Asegura que el contenido esté sobre la línea */
    transition: transform 0.3s ease;
}

.step-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.step-icon {
    font-size: 2.5em;
    margin-bottom: 15px;
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto 15px;
    background-color: #b60000;
    border-radius: 50%;
    color: #ffffff;
    box-shadow: 0 0 0 5px #f0f0f0; /* Color de fondo para tapar la línea */
}

.step-item h3 {
    font-size: 18px;
    color: #b60000;
    margin-bottom: 10px;
    font-weight: 600;
}

.step-item p {
    font-size: 14px;
    color: #333333;
    line-height: 1.4;
}

/* Responsive para la nueva sección de Proceso */
@media (max-width: 991px) {
    .process-steps {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    
    .process-steps::before {
        left: 50%;
        top: 20px;
        bottom: 20px;
        width: 3px;
        height: auto;
        transform: translateX(-50%);
    }

    .step-item {
        width: 80%;
        min-width: unset;
        text-align: left;
        padding-left: 80px;
    }
    
    .step-icon {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        top: -10px; /* Ajuste para la línea vertical */
    }
    
    .step-item h3, .step-item p {
        text-align: left;
    }
}

.articles-section {
    padding: 80px 0;
    text-align: center;
    background-color: #FC8330;
}

.articles-section .section-header h2 {
    font-size: 40px;
    color: #fffefe;
    font-weight: 800;
    margin-bottom: 50px;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.article-card {
    background-color: #ffffff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.article-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.article-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.article-info {
    padding: 25px;
    text-align: left;
}

.article-info h3 {
    font-size: 22px;
    color: #b60000;
    margin-bottom: 10px;
    font-weight: 700;
}

.article-info p {
    font-size: 15px;
    color: #555555;
    margin-bottom: 20px;
    line-height: 1.4;
}

.read-more {
    font-size: 14px;
    color: #fb8b24; /* Color de acento naranja */
    font-weight: 600;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.read-more:hover {
    color: #e36414;
}

/* Responsive para la nueva sección de Artículos */
@media (max-width: 768px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .articles-section .section-header h2 {
        font-size: 32px;
    }
}

.events-section {
    padding: 80px 0;
    text-align: center;
    background-color: #282828;
    margin-bottom: 50px;
}

.events-section .section-header h2 {
    font-size: 48px;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 40px;
    text-transform: uppercase;
}

.event-image-full {
    display: flex;
    justify-content: center;
    padding: 0 20px;
}

.event-image-full .event-image {
    max-width: 550px; /* Limita el ancho de la imagen para que no sea enorme */
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain; /* Asegura que la imagen completa sea visible */
}

/* Responsive para la Sección de Eventos */
@media (max-width: 991px) {
    .events-section .section-header h2 {
        font-size: 36px;
    }
}

@media (max-width: 768px) {
    .events-section {
        padding: 40px 0;
    }
    .events-section .section-header h2 {
        font-size: 28px;
    }
}

/* ---------------------------------- */
/* Barra de Anuncio Estilizada */
/* ---------------------------------- */
.announcement-bar {
    background: linear-gradient(90deg, #b60000 0%, #e36414 100%);
    color: #ffffff;
    padding: 12px 0;
    text-align: center;
    font-size: 15px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    animation: slideDown 0.8s ease-out forwards;
}

.announcement-bar p {
    margin: 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.announcement-bar strong {
    font-weight: 700;
    text-transform: uppercase;
    margin-right: 5px;
}

.announcement-bar span {
    background: rgba(255, 255, 255, 0.2);
    padding: 2px 8px;
    border-radius: 5px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Animación de entrada */
@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Ajuste para móviles */
@media (max-width: 768px) {
    .announcement-bar {
        font-size: 13px;
        padding: 10px 15px;
    }
}

/* ---------------------------------- */
/* Carrusel Full Width Personalizado */
/* ---------------------------------- */
.projects-carousel-full {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    background: #000;
}

.slider-container-full {
    position: relative;
    width: 100%;
    height: 550px;
}

.slide {
    display: none;
    width: 100%;
    height: 100%;
    animation: fadeEffect 0.8s;
}

.slide.active { display: block; }

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Etiquetas con efecto Glassmorphism */
.slide-caption {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    padding: 30px;
    border-radius: 20px;
    backdrop-filter: blur(10px); /* Efecto de desenfoque */
    border: 1px solid rgba(255,255,255,0.2);
    width: 80%;
    max-width: 600px;
    text-align: center;
}

/* Colores DroidSpec: Azul y Blanco */
.caption-blue {
    background: rgba(0, 51, 153, 0.6);
}
.caption-blue h3 { color: #ffffff; font-size: 28px; }
.caption-blue p { color: #e0f2ff; }

/* Colores AR.js: Morado y Blanco */
.caption-purple {
    background: rgba(75, 0, 130, 0.6);
}
.caption-purple h3 { color: #ffffff; font-size: 28px; }
.caption-purple p { color: #f3e5f5; }

/* Estilo por defecto (Biblia) */
.slide-caption:not(.caption-blue):not(.caption-purple) {
    background: rgba(182, 0, 0, 0.6);
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    color: white;
    border: none;
    padding: 20px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 24px;
    margin: 0 20px;
    transition: 0.3s;
}

.prev:hover, .next:hover { background: #b60000; }
.next { right: 0; }

@keyframes fadeEffect {
    from { opacity: 0.4; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    .slider-container-full { height: 400px; }
    .slide-caption { width: 90%; bottom: 20px; }
}