:root {
    --primary-cyan: #00d9ff;
    --secondary-cyan: #00fff7;
    --dark-bg: #0a0e27;
    --darker-bg: #050814;
    --card-bg: #131836;
    --accent-gold: #ffd700;
    --text-primary: #ffffff;
    --text-secondary: #b8c5d6;
    --gradient-primary: linear-gradient(135deg, #00d9ff 0%, #00fff7 100%);
    --gradient-dark: linear-gradient(135deg, #0a0e27 0%, #1a1f3a 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Rajdhani', sans-serif;
    background: var(--darker-bg);
    color: var(--text-primary);
    overflow-x: hidden;
    position: relative;
}

/* Animated background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: var(--darker-bg);
}

.bg-animation::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(0, 255, 247, 0.05) 0%, transparent 50%);
    animation: bgPulse 15s ease-in-out infinite;
}

@keyframes bgPulse {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-10%, -10%) scale(1.1); }
}

/* Grid pattern overlay */
.grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-image: 
        linear-gradient(rgba(0, 217, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 217, 255, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    opacity: 0.3;
}

/* Header/Navbar */
.navbar {
    background: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 217, 255, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 5px 30px rgba(0, 217, 255, 0.2);
}

.navbar-brand {
    font-family: 'Orbitron', sans-serif;
    font-weight: 900;
    font-size: 1.8rem;
    color: var(--primary-cyan) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-img {
    width: 50px;
    height: 50px;
    filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5));
    animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(0, 217, 255, 0.5)); }
    50% { filter: drop-shadow(0 0 20px rgba(0, 217, 255, 0.8)); }
}

.nav-link {
    color: var(--text-secondary) !important;
    font-weight: 500;
    font-size: 1.1rem;
    margin: 0 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover {
    color: var(--primary-cyan) !important;
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding: 100px 0;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
    animation: fadeInUp 1s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 4.5rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .subtitle {
    font-size: 1.8rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    animation: fadeInUp 1s ease-out 0.4s both;
}

.hero .description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.8;
    max-width: 600px;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Buttons */
.btn-cyber {
    font-family: 'Orbitron', sans-serif;
    font-weight: 700;
    padding: 15px 40px;
    font-size: 1.1rem;
    border: 2px solid var(--primary-cyan);
    background: transparent;
    color: var(--primary-cyan);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    display: inline-block;
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: all 0.3s ease;
    z-index: -1;
}

.btn-cyber:hover {
    color: var(--darker-bg);
    border-color: var(--secondary-cyan);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

.btn-cyber:hover::before {
    left: 0;
}

.btn-cyber-filled {
    background: var(--gradient-primary);
    color: var(--darker-bg);
    border: none;
}

.btn-cyber-filled:hover {
    color: var(--darker-bg);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5);
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.8s both;
}

/* Floating logo animation */
.hero-logo {
    position: absolute;
    right: 10%;
    top: 50%;
    transform: translateY(-50%);
    animation: float 6s ease-in-out infinite;
    opacity: 0.15;
    filter: drop-shadow(0 0 50px rgba(0, 217, 255, 0.3));
    pointer-events: none;
}

.hero-logo img {
    width: 500px;
    height: auto;
}

@keyframes float {
    0%, 100% { transform: translateY(-50%) translateX(0); }
    50% { transform: translateY(-50%) translateX(20px) rotate(5deg); }
}

/* Services Section */
.services {
    padding: 100px 0;
    position: relative;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 3rem;
    font-weight: 900;
    text-align: center;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.3rem;
    margin-bottom: 4rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    padding: 2.5rem;
    transition: all 0.3s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: -1;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--secondary-cyan);
    box-shadow: 0 15px 40px rgba(0, 217, 255, 0.3);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-icon {
    font-size: 3.5rem;
    color: var(--primary-cyan);
    margin-bottom: 1.5rem;
    display: block;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
    text-shadow: 0 0 20px rgba(0, 217, 255, 0.5);
}

.service-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.1rem;
}

/* Stats Section */
.stats {
    background: var(--card-bg);
    padding: 80px 0;
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    border-bottom: 1px solid rgba(0, 217, 255, 0.2);
}

.stat-item {
    text-align: center;
    padding: 2rem;
}

.stat-number {
    font-family: 'Orbitron', sans-serif;
    font-size: 4rem;
    font-weight: 900;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: block;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Technologies Section */
.technologies {
    padding: 100px 0;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-item {
    background: var(--card-bg);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 10px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.tech-item:hover {
    transform: translateY(-5px);
    border-color: var(--primary-cyan);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.2);
}

.tech-item i {
    font-size: 3rem;
    color: var(--primary-cyan);
    margin-bottom: 1rem;
    display: block;
}

.tech-item span {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 1.1rem;
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--card-bg);
}

.contact-info {
    background: var(--dark-bg);
    border: 1px solid rgba(0, 217, 255, 0.2);
    border-radius: 15px;
    padding: 3rem;
    margin-bottom: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 10px;
    border: 1px solid rgba(0, 217, 255, 0.1);
    transition: all 0.3s ease;
}

.contact-item:hover {
    border-color: var(--primary-cyan);
    transform: translateX(10px);
}

.contact-item i {
    font-size: 2rem;
    color: var(--primary-cyan);
    min-width: 40px;
}

.contact-item-content h4 {
    font-family: 'Orbitron', sans-serif;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
    font-size: 1.2rem;
}

.contact-item-content a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.contact-item-content a:hover {
    color: var(--primary-cyan);
}

/* Social Links */
.social-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 3rem;
}

.social-link {
    width: 60px;
    height: 60px;
    border: 2px solid var(--primary-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-cyan);
    font-size: 1.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--gradient-primary);
    color: var(--darker-bg);
    transform: translateY(-5px) rotate(360deg);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.4);
}

/* Footer */
.footer {
    background: var(--darker-bg);
    border-top: 1px solid rgba(0, 217, 255, 0.2);
    padding: 2rem 0;
    text-align: center;
}

.footer p {
    color: var(--text-secondary);
    margin: 0;
    font-size: 1.1rem;
}

.footer-brand {
    font-family: 'Orbitron', sans-serif;
    color: var(--primary-cyan);
    font-weight: 700;
}

/* Scroll to top button */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border: none;
    border-radius: 50%;
    color: var(--darker-bg);
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 217, 255, 0.5);
}

/* Responsive */
@media (max-width: 992px) {
    .navbar-brand {
        font-size: 1.5rem;
        gap: 10px;
    }
    
    .logo-img {
        width: 40px;
        height: 40px;
    }
    
    .nav-link {
        margin: 0.5rem 0;
        font-size: 1rem;
    }
    
    .hero {
        min-height: auto;
        padding: 80px 0;
    }
    
    .hero h1 {
        font-size: 3rem;
    }
    
    .hero .subtitle {
        font-size: 1.5rem;
    }
    
    .hero .description {
        font-size: 1.1rem;
    }
    
    .hero-logo {
        opacity: 0.08;
        right: 5%;
    }
    
    .hero-logo img {
        width: 350px;
    }
    
    .section-title {
        font-size: 2.5rem;
    }
    
    .section-subtitle {
        font-size: 1.1rem;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-label {
        font-size: 1rem;
    }
    
    .service-card {
        padding: 2rem;
    }
    
    .service-icon {
        font-size: 3rem;
    }
    
    .service-card h3 {
        font-size: 1.3rem;
    }
    
    .service-card p {
        font-size: 1rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1.5rem;
    }
    
    .tech-item {
        padding: 1.5rem;
    }
    
    .tech-item i {
        font-size: 2.5rem;
    }
    
    .tech-item span {
        font-size: 1rem;
    }
    
    .contact-info {
        padding: 2rem;
    }
    
    .contact-item {
        padding: 1.2rem;
    }
    
    .social-link {
        width: 55px;
        height: 55px;
        font-size: 1.3rem;
    }
}

@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
        gap: 8px;
        letter-spacing: 1px;
    }
    
    .navbar-brand span {
        display: inline-block;
    }
    
    .logo-img {
        width: 35px;
        height: 35px;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero .subtitle {
        font-size: 1.3rem;
    }
    
    .hero .description {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .hero-logo {
        opacity: 0.05;
        right: 0;
    }
    
    .hero-logo img {
        width: 300px;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-cyber {
        width: 100%;
        text-align: center;
        padding: 14px 30px;
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 3rem;
    }
    
    .services,
    .technologies,
    .contact {
        padding: 60px 0;
    }
    
    .stats {
        padding: 50px 0;
    }
    
    .stat-item {
        padding: 1.5rem 1rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-label {
        font-size: 0.9rem;
    }
    
    .service-card {
        padding: 1.8rem;
        margin-bottom: 1rem;
    }
    
    .service-icon {
        font-size: 2.8rem;
    }
    
    .service-card h3 {
        font-size: 1.2rem;
    }
    
    .service-card p {
        font-size: 0.95rem;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1rem;
    }
    
    .tech-item {
        padding: 1.2rem;
    }
    
    .tech-item i {
        font-size: 2.2rem;
        margin-bottom: 0.8rem;
    }
    
    .tech-item span {
        font-size: 0.9rem;
    }
    
    .contact-info {
        padding: 1.5rem;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
        padding: 1.2rem;
    }
    
    .contact-item:hover {
        transform: translateX(0);
        transform: translateY(-5px);
    }
    
    .contact-item i {
        font-size: 1.8rem;
    }
    
    .contact-item-content h4 {
        font-size: 1.1rem;
    }
    
    .contact-item-content a {
        font-size: 1rem;
    }
    
    .social-links {
        gap: 1rem;
        margin-top: 2rem;
    }
    
    .social-link {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .footer p {
        font-size: 0.9rem;
    }
    
    .scroll-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: 1.3rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 0.85rem;
        gap: 6px;
        letter-spacing: 0.5px;
    }
    
    .logo-img {
        width: 32px;
        height: 32px;
    }
    
    .hero h1 {
        font-size: 2rem;
        line-height: 1.3;
    }
    
    .hero .subtitle {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero .description {
        font-size: 0.95rem;
        line-height: 1.6;
        margin-bottom: 2rem;
    }
    
    .btn-cyber {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .section-subtitle {
        font-size: 0.95rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-label {
        font-size: 0.85rem;
    }
    
    .service-card {
        padding: 1.5rem;
    }
    
    .service-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    
    .service-card h3 {
        font-size: 1.1rem;
        margin-bottom: 0.8rem;
    }
    
    .service-card p {
        font-size: 0.9rem;
        line-height: 1.6;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(85px, 1fr));
        gap: 0.8rem;
    }
    
    .tech-item {
        padding: 1rem;
    }
    
    .tech-item i {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }
    
    .tech-item span {
        font-size: 0.85rem;
    }
    
    .contact-item i {
        font-size: 1.6rem;
    }
    
    .contact-item-content h4 {
        font-size: 1rem;
    }
    
    .contact-item-content a {
        font-size: 0.95rem;
    }
    
    .social-link {
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .footer p {
        font-size: 0.85rem;
        padding: 0 10px;
    }
}

@media (max-width: 400px) {
    .navbar-brand {
        font-size: 0.75rem;
        gap: 5px;
    }
    
    .logo-img {
        width: 28px;
        height: 28px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .hero .subtitle {
        font-size: 1rem;
    }
    
    .hero .description {
        font-size: 0.9rem;
    }
    
    .section-title {
        font-size: 1.6rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.2rem;
    }
    
    .tech-item {
        padding: 0.8rem;
    }
    
    .tech-item i {
        font-size: 1.8rem;
    }
    
    .tech-item span {
        font-size: 0.8rem;
    }
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.slide-in-left {
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 1s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}


/* ================================
   HERO PORTADA CORPORATIVA
================================ */

.hero-cover {
    position: relative;
    min-height: 100vh;
    background: 
        linear-gradient(
            135deg,
            rgba(5,8,20,0.95),
            rgba(10,14,39,0.9)
        ),
        url("../img/cover-tech.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: center;
}

/* Capa oscura encima */
.hero-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(
        circle at top right,
        rgba(0,217,255,0.15),
        transparent 60%
    );
    z-index: 1;
}

/* Contenido encima */
.hero-cover .container {
    position: relative;
    z-index: 2;
}

/* Logo principal */
.hero-brand {
    width: 120px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 20px rgba(0,217,255,0.6));
}

/* Título portada */
.hero-cover h1 {
    font-size: 4rem;
    font-weight: 900;
    margin-bottom: 1rem;
}

/* Subtítulo */
.hero-cover .subtitle {
    font-size: 1.6rem;
    color: var(--secondary-cyan);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

/* Texto */
.hero-cover .description {
    max-width: 550px;
}

/* Responsive portada */

@media (max-width: 768px) {

    .hero-cover h1 {
        font-size: 2.5rem;
    }

    .hero-brand {
        width: 90px;
    }

    .hero-cover {
        background-attachment: scroll;
    }

}

/* HERO COVER */

.hero-cover {
    min-height: 100vh; /* Pantalla completa */
    background: 
        linear-gradient(
            rgba(10, 15, 30, 0.7),
            rgba(10, 15, 30, 0.7)
        ),
        url("../../img/portada.png");

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    display: flex;
    align-items: center;

    position: relative;
    color: white;
}


/* Centrar contenido */

.hero-cover .hero-content {
    max-width: 600px;
}


/* ===========================
   COVER SECTION
=========================== */




/* COVER SIMPLE */

.cover-section {
    width: 100%;
}

.cover-img {

    width: 100%;
    height: 70vh;   /* Altura tipo banner */

    object-fit: cover; /* No se deforma */

    display: block;
}
