/* Estado inicial para la animación de entrada */
.hero-content h1, 
.hero-content .hero-sub, 
.hero-content .hero-actions {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

/* Clase que aplicaremos vía JS para activar la animación */
.hero-content.is-visible h1, 
.hero-content.is-visible .hero-sub, 
.hero-content.is-visible .hero-actions {
    opacity: 1;
    transform: translateY(0);
}

/* Retraso escalonado para que los elementos entren uno tras otro */
.hero-content.is-visible .hero-sub { transition-delay: 0.2s; }
.hero-content.is-visible .hero-actions { transition-delay: 0.4s; }

.hero-section {
    background-color: #050505;
    padding: 120px 0;
    position: relative;
    display: flex;
    align-items: center;
    min-height: 80vh;
}

.hero-content h1 {
    font-size: 3.8rem;
    line-height: 1.1;
    font-weight: 900;
    color: #ffffff;
    margin-bottom: 25px;
    letter-spacing: -1.5px;
}

.hero-sub {
    font-size: 1.3rem;
    line-height: 1.5;
    color: #a0a0a0;
    margin-bottom: 40px;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: #00ffcc;
    color: #000;
    padding: 16px 30px;
    font-weight: 800;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-secondary {
    background-color: transparent;
    border: 2px solid #333;
    color: #fff;
    padding: 16px 30px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    transition: 0.3s;
}

.btn-secondary:hover { border-color: #00ffcc; }

/* El resplandor inferior */
.hero-glow {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00ffcc, transparent);
}

/*******************************************************/
/* 1. Estado Inicial (Antes de la animación) */
.stat-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

/* 2. Clase que activa el estado final (vía jQuery) */
.stat-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 3. Estilos de la sección */
.authority-section {
    background-color: #ffffff;
    padding: 80px 20px;
    width: 100%;
}

.authority-section .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 60px;
    color: #050505;
}

.authority-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.authority-section .stat-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 900;
    color: #00ffcc;
    margin-bottom: 10px;
}

.authority-section .stat-item .label {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
    line-height: 1.4;
}

/* 4. Responsive */
@media (max-width: 1024px) {
    .authority-section .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
    .authority-section .stats-grid { grid-template-columns: 1fr; }
}

/********************************************************************/

/* --- Sección About Us --- */
.about-us-section {
    background-color: #050505;
    padding: 100px 20px;
    color: #f0f0f0;
    width: 100%;
}

.about-us-section .container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 60px;
    align-items: center;
}

/* --- Estado Inicial (Animación Scroll) --- */
.about-us-content, .about-us-image-container {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

/* --- Clase de activación para jQuery --- */
.about-us-section.is-visible .about-us-content,
.about-us-section.is-visible .about-us-image-container {
    opacity: 1;
    transform: translateY(0);
}

/* --- Estilos de Contenido --- */
.about-us-content {
    flex: 1;
    min-width: 300px;
}

.about-us-section .section-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 30px;
    color: #ffffff;
    line-height: 1.2;
}

.about-text {
    font-size: 1.2rem;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 20px;
}

.about-text strong {
    color: var(--glow); /* Color insignia GLITCH */
    font-weight: 700;
}

/* --- Estilos de Imagen --- */
.about-us-image-container {
    flex: 1;
    min-width: 400px;
}

.about-us-image-container img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
    border: 1px solid #333;
    display: block;
}

/* --- Responsive (Móvil y Tablet) --- */
@media (max-width: 992px) {
    .about-us-section .container {
        flex-direction: column;
        text-align: center;
        gap: 40px;
    }
    
    .about-us-content {
        order: 1;
    }
    
    .about-us-image-container {
        order: 2;
        min-width: 100%;
    }
}

@media (max-width: 600px) {
    .about-us-section .section-title { font-size: 2rem; }
    .about-text { font-size: 1.1rem; }
}

/* --- Estado Inicial Pro --- */
.about-us-content {
    opacity: 0;
    transform: translateY(50px) skew(-5deg); /* Inclinación inicial */
    filter: blur(10px); /* Desenfoque inicial */
    transition: all 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.about-us-image-container {
    opacity: 0;
    transform: translateY(50px) scale(0.95); /* Zoom inicial */
    filter: blur(10px);
    transition: all 1s cubic-bezier(0.2, 0.8, 0.2, 1);
}


/**********************************************************************/

.warning-section {
    background-color: #ffffff;
    padding: 100px 20px;
    color: #050505;
}

.warning-section .section-title {
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    color: #050505;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: -1px;
}

.warning-section .section-subtitle {
    font-size: 1.3rem;
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px auto;
    color: #666;
    line-height: 1.6;
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1000px;
    margin: 0 auto;
}

.warning-item {
    background: #f9f9f9; /* Un gris muy ligero para que contraste */
    padding: 40px;
    border-radius: 4px;
    border: 1px solid #eee;
    transition: all 0.4s ease;
}

.warning-item:hover {
    background: #050505;
    color: #ffffff;
}

.warning-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    font-weight: 800;
}

.warning-item p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.6;
}

/* Cambio de color al hacer hover para resaltar la autoridad */
.warning-item:hover p, .warning-item:hover h3 {
    color: #ffffff;
}

.warning-item p strong {
    color: #ff4444; /* El toque rojo de "peligro" resalta mucho más en blanco */
}

/* Responsive */
@media (max-width: 768px) {
    .warning-grid { grid-template-columns: 1fr; }
}
/* Estado inicial (ocultas) */
.warning-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); /* Curva suave y rápida */
}

/* Estado final (se añade mediante jQuery) */
.warning-item.fade-in-up {
    opacity: 1;
    transform: translateY(0);
}

/*****************************************************/
.services-section {
    background-color: #050505;
    padding: 100px 20px;
    color: #fff;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 60px auto 0;
}

.service-card {
    background: #111;
    padding: 40px;
    border-radius: 8px;
    border: 1px solid #222;
    transition: all 0.4s ease;
    display: flex;
    flex-direction: column;
}

.service-card:hover {
    border-color: #00ffcc;
    transform: translateY(-10px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #00ffcc;
}

.service-card p {
    font-size: 1rem;
    color: #a0a0a0;
    line-height: 1.6;
    margin-bottom: 25px;
    flex-grow: 1;
}

.btn-service {
    display: inline-block;
    padding: 12px 25px;
    background: transparent;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    text-decoration: none;
    text-align: center;
    border-radius: 4px;
    transition: 0.3s;
    font-weight: 600;
}

.btn-service:hover {
    background: #00ffcc;
    color: #050505;
}

/* Contenedor padre con perspectiva */
.services-grid {
    perspective: 1000px; /* Esto da la profundidad 3D */
}

/* Estado inicial de las tarjetas (escondidas con rotación y escala) */
.service-card {
    opacity: 0;
    transform: rotateX(45deg) translateY(100px) scale(0.8);
    transform-origin: top;
    transition: all 0.8s cubic-bezier(0.23, 1, 0.32, 1); /* El easing más pro de la web */
    filter: blur(15px);
}

/* Clase que activa el jQuery */
.service-card.show-pro {
    opacity: 1;
    transform: rotateX(0deg) translateY(0) scale(1);
    filter: blur(0px);
}

/**********************************************************/
.methodology-section {
    background-color: #ffffff;
    padding: 100px 20px;
    color: #050505;
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 60px;
    position: relative;
}

.step {
    padding: 20px;
    border-top: 4px solid #050505; /* La línea superior marca la secuencia */
    transition: all 0.4s ease;
}

.step:hover {
    border-top-color: #00ffcc;
}

.step-number {
    font-size: 2.5rem;
    font-weight: 900;
    color: #e0e0e0;
    margin-bottom: 20px;
    transition: 0.3s;
}

.step:hover .step-number {
    color: #00ffcc;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.step p {
    font-size: 1rem;
    color: #666;
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 992px) {
    .methodology-steps { grid-template-columns: 1fr; }
}

/* --- Sección FAQ --- */
.faq-section {
    background-color: #ffffff;
    padding: 120px 20px;
    color: #050505;
}

.faq-accordion {
    max-width: 850px;
    margin: 60px auto 0;
    border-top: 1px solid #e0e0e0;
}

/* --- Estado Inicial (Animación Scroll) --- */
.faq-item {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Clase que inyectaremos con jQuery al hacer scroll */
.faq-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Botones de Pregunta --- */
.faq-question {
    width: 100%;
    text-align: left;
    padding: 30px 0;
    font-size: 1.3rem;
    font-weight: 700;
    background: none;
    border: none;
    border-bottom: 1px solid #e0e0e0;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.3s ease;
    color: #050505;
}

.faq-question:hover {
    color: #00ccff; /* Color de acento de tu marca */
}

/* Icono de + (Plus) */
.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    color: #00ccff;
}

/* --- Cuerpo de Respuesta --- */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0, 1, 0, 1);
    background: #fafafa;
    color: #555;
    line-height: 1.7;
    font-size: 1.1rem;
}

.faq-answer p {
    padding: 20px 30px;
}

/* Estilo al estar abierta */
.faq-item.active .faq-answer {
    max-height: 200px; /* Ajusta según el contenido */
    transition: max-height 0.6s ease-in-out;
}

/****************************************************************/
/* Limpieza total de márgenes y alturas forzadas */
.system-reset-visual {
    background-color: #050505;
    color: #ffffff;
    width: 100%;
    /* Quitamos el padding de 100px que estaba creando el espacio muerto */
    padding: 0; 
    display: flex;
    flex-direction: column;
}

.welcome-block {
    padding: 40px 20px; /* Un padding equilibrado */
    text-align: center;
    border-bottom: 1px solid var(--glow);
    height: auto;
}

/* Le dimos tamaño al h3 y peso para que se vea importante */
.welcome-block h3 {
    color: var(--glow);
    font-size: 2.2rem; /* Tamaño grande y agresivo */
    line-height: 1.2;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

/* Ajuste del párrafo inferior */
.welcome-block p {
    font-size: 0.9rem;
    opacity: 0.6;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}