/* ===================================
   TXDXSECURE - Global Styles
   =================================== */

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

:root {
    --primary-color: #00d4ff;
    --secondary-color: #0066ff;
    --dark-bg: #000000;
    --dark-blue: #001a33;
    --darker-blue: #000814;
    --text-primary: #ffffff;
    --text-secondary: #b0b0b0;
    --accent-glow: rgba(0, 212, 255, 0.3);
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ===================================
   NAVIGATION
   =================================== */

nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

nav.scrolled {
    background: rgba(0, 0, 0, 0.95);
    padding: 10px 0;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 50px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 0 10px #ffffff)
          drop-shadow(0 0 30px #ffffff)
          drop-shadow(0 0 60px #ffffff);
    animation: pulseGlow 2s infinite alternate;
    transition: transform 0.3s;
}   

@keyframes pulseGlow {
  from {
    filter: drop-shadow(0 0 10px #ffffff)
            drop-shadow(0 0 30px #ffffff)
            drop-shadow(0 0 60px #ffffff);
  }
  to {
    filter: drop-shadow(0 0 20px #ffffff)
            drop-shadow(0 0 40px #ffffff)
            drop-shadow(0 0 80px #ffffff);
  }
}

.logo img:hover {
    transform: scale(1.05);
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--text-primary);
    transition: all 0.3s;
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

.nav-links a:hover {
    color: var(--primary-color);
}

.nav-links a:hover::after {
    width: 100%;
}

/* ===================================
   HERO SECTION
   =================================== */

.hero {
    height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-blue) 50%, var(--darker-blue) 100%);
    z-index: 1;
}

.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 212, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    z-index: 2;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 1100px;
    padding: 0 20px;
}

.hero h1 {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 30px;
    line-height: 1.1;
    animation: fadeInUp 1s ease;
}

.glitch {
    position: relative;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 22px;
    color: var(--text-secondary);
    margin-bottom: 50px;
    animation: fadeInUp 1s ease 0.2s backwards;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    animation: fadeInUp 1s ease 0.4s backwards;
}

.cta-button {
    display: inline-block;
    padding: 18px 45px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.cta-button.primary {
    background: var(--text-primary);
    color: var(--dark-bg);
}

.cta-button.primary:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 10px 40px var(--accent-glow);
}

.cta-button.secondary {
    background: transparent;
    color: var(--text-primary);
    border-color: var(--text-primary);
}

.cta-button.secondary:hover {
    background: var(--text-primary);
    color: var(--dark-bg);
    transform: translateY(-3px);
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
}

.scroll-indicator span {
    display: block;
    width: 20px;
    height: 30px;
    border: 2px solid var(--text-primary);
    border-radius: 15px;
    position: relative;
}

.scroll-indicator span::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--primary-color);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0%, 100% { opacity: 0; top: 5px; }
    50% { opacity: 1; top: 15px; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   ABOUT SECTION
   =================================== */

.about {
    padding: 120px 0;
    background: var(--dark-bg);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-text .lead {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 30px;
    font-weight: 500;
}

.about-text p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
}

.about-stats {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 30px;
    text-align: center;
    transition: all 0.3s;
}

.stat-card:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateX(10px);
}

.stat-card h3 {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.stat-card p {
    color: var(--text-secondary);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 2px;
}

/* ===================================
   SECTIONS COMMON
   =================================== */

.section-title {
    font-size: 48px;
    text-align: center;
    margin-bottom: 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 60px;
}

/* ===================================
   SERVICES SECTION
   =================================== */

.services {
    padding: 120px 0;
    background: linear-gradient(180deg, var(--dark-bg) 0%, var(--dark-blue) 100%);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.service-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 50px 35px;
    transition: all 0.4s;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 212, 255, 0.1), transparent);
    transition: left 0.5s;
}

.service-card:hover::before {
    left: 100%;
}

.service-card:hover {
    background: rgba(0, 212, 255, 0.05);
    border-color: var(--primary-color);
    transform: translateY(-10px);
}

.service-icon {
    font-size: 52px;
    margin-bottom: 25px;
}

.service-card h3 {
    font-size: 26px;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-card > p {
    color: var(--text-secondary);
    margin-bottom: 25px;
    line-height: 1.7;
}

.service-list {
    list-style: none;
    padding: 0;
}

.service-list li {
    color: var(--text-secondary);
    padding: 8px 0;
    padding-left: 25px;
    position: relative;
    font-size: 14px;
}

.service-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* ===================================
   ENTRY SERVICES SECTION
   =================================== */

.entry-services {
    padding: 120px 0;
    background: var(--dark-bg);
}

.entry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 60px;
}

.entry-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 35px 25px;
    transition: all 0.3s;
    cursor: pointer;
}

.entry-card:hover {
    background: rgba(0, 212, 255, 0.03);
    border-color: var(--primary-color);
    transform: translateY(-5px);
}

.entry-icon {
    width: 100%;
    max-width: 80px;       /* Tamaño máximo del ícono */
    aspect-ratio: 1 / 1;   /* Mantiene proporciones cuadradas */
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.entry-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;    /* Mantiene proporciones sin recortar */
}

/* --- RESPONSIVO --- */
@media (max-width: 768px) {
    .entry-icon {
        max-width: 60px;   /* Reduce el tamaño del icono en pantallas medianas */
    }
}

@media (max-width: 480px) {
    .entry-icon {
        max-width: 50px;   /* Aún más pequeño en móviles */
        margin-bottom: 15px;
    }

    .entry-card h4 {
        font-size: 18px;
    }

    .entry-card p {
        font-size: 13px;
    }
}


.entry-card h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-primary);
}

.entry-card p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* ===================================
   AI SERVICES SECTION
   =================================== */

.ai-services {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--dark-blue) 0%, var(--darker-blue) 100%);
    position: relative;
    overflow: hidden;
}

.ai-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.ai-content {
    z-index: 2;
    position: relative;
}

.ai-title {
    font-size: 80px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    margin-bottom: 20px;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    text-shadow: 2px 2px 4px rgba(221, 211, 211, 0.7);
}
.ai-background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0.5;
}


.ai-subtitle {
    font-size: 32px;
    color: white;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.9);
}

.ai-content p {
    color: var(--light-gray, #ccc);
    font-size: 20px;
    line-height: 1.8;
    margin-bottom: 40px;
    z-index: 2; /* Asegura que el contenido quede por encima del video (z-index: 1) */
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.ai-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}



/* ===================================
   PARTNERS SECTION
   =================================== */

.partners {
    padding: 80px 0;
    background: var(--dark-bg);
    overflow: hidden;
}

.partners-marquee {
    overflow: hidden;
    margin-top: 50px;
}

.partners-track {
    display: flex;
    gap: 60px;
    animation: marquee 30s linear infinite;
}

.partner-logo {
    font-size: 32px;
    color: var(--text-secondary);
    white-space: nowrap;
    transition: color 0.3s;
}

.partner-logo:hover {
    color: var(--primary-color);
}

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ===================================
   CONTACT SECTION
   =================================== */

.contact {
    padding: 120px 0;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--dark-blue) 100%);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    text-align: left;
    margin-bottom: 30px;
}

.contact-info > p {
    color: var(--text-secondary);
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 50px;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 16px;
}

.contact-item .icon {
    font-size: 24px;
}

.contact-item a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.contact-item a:hover {
    color: var(--primary-color);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    padding: 15px 20px;
    font-size: 16px;
    font-family: inherit;
    transition: all 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.08);
}

.contact-form textarea {
    resize: vertical;
    min-height: 150px;
}

.contact-form button {
    align-self: flex-start;
}

/* ===================================
   FOOTER
   =================================== */

footer {
    background: var(--dark-bg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 20px;
}

.footer-logo p {
    color: var(--text-secondary);
    font-size: 14px;
    max-width: 300px;
}

.footer-links h4 {
    margin-bottom: 20px;
    color: var(--primary-color);
    font-size: 16px;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===================================
   RESPONSIVE DESIGN
   =================================== */

@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }

    .nav-container {
        padding: 20px 30px;
    }

    .about-content,
    .ai-showcase,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 90px;
        right: -100%;
        width: 100%;
        max-width: 300px;
        background: rgba(0, 0, 0, 0.98);
        flex-direction: column;
        padding: 40px;
        gap: 30px;
        transition: right 0.3s;
        border-left: 1px solid rgba(255, 255, 255, 0.1);
        height: calc(100vh - 90px);
    }

    .nav-links.active {
        right: 0;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .cta-button {
        width: 100%;
        max-width: 300px;
        text-align: center;
    }

    .section-title {
        font-size: 36px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .entry-grid {
        grid-template-columns: 1fr;
    }

    .ai-title {
        font-size: 48px;
    }

    .ai-visual {
        height: 300px;
    }

    
    .container {
        padding: 0 20px;
    }

    .about,
    .services,
    .entry-services,
    .ai-services,
    .contact {
        padding: 80px 0;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
    }

    .stat-card h3 {
        font-size: 36px;
    }

    .ai-title {
        font-size: 36px;
    }
}

/* ===================================
   ANIMATIONS & UTILITIES
   =================================== */

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 50%;
    opacity: 0.6;
    animation: float 8s infinite ease-in-out;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0);
        opacity: 0;
    }
    50% {
        opacity: 0.6;
    }
    25% {
        transform: translate(100px, -100px);
    }
    75% {
        transform: translate(-100px, -150px);
    }
}

[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

/* ===================================
   WHATSAPP FLOATING BUTTON
   =================================== */


/* Estilo del Contenedor Flotante (el enlace <a>) */
.whatsapp-float {
    /* CLAVE: Lo fija en la ventana, no en la página */
    position: fixed; 
    
    /* Posición: Esquina inferior derecha */
    bottom: 25px; 
    right: 25px; 
    
    /* Forma y color */
    width: 60px; /* Tamaño del botón */
    height: 60px;
    background-color: #25D366; /* Verde de WhatsApp */
    color: #FFF; /* Color del icono/texto */
    border-radius: 50%; /* Lo hace circular */
    
    /* Centrado y alineación */
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Estética y capa */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    z-index: 1000; /* Asegura que esté por encima de todo */
    text-decoration: none; /* Quita el subrayado del enlace */
    transition: transform 0.3s ease-in-out; /* Animación de hover */
}

/* Estilo del Icono (la <i>) */
.whatsapp-float i {
    font-size: 30px; /* Tamaño del icono */
}

/* Efecto al pasar el ratón (opcional) */
.whatsapp-float:hover {
    background-color: #128C7E; /* Verde más oscuro */
    transform: scale(1.1); /* Hace que se agrande un poco */
}

/* Estilo para el logo PNG/SVG (si usaste la Opción 1 en el HTML) */
.whatsapp-logo {
    width: 100%;
    height: auto;
}
