/* Premium Design System for Liwko Design */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-dark: #050a15;
    --navy-deep: #0a192f;
    --accent-blue: #00e5ff;
    --accent-cyan: #00a8ff;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.1);
    --text-main: #e6f1ff;
    --text-dim: #8892b0;
    --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--navy-deep);
    border: 3px solid var(--bg-dark);
    border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent-blue);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Outfit', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 1; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

@keyframes glow {
    0% { box-shadow: 0 0 5px rgba(0, 229, 255, 0.2); }
    50% { box-shadow: 0 0 30px rgba(0, 229, 255, 0.5); }
    100% { box-shadow: 0 0 5px rgba(0, 229, 255, 0.2); }
}

.reveal { opacity: 1; /* Safety override */
    opacity: 1;
    transform: translateY(40px);
    transition: var(--transition);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Effects */
.services-grid > .reveal:nth-child(1) { transition-delay: 0.1s; }
.services-grid > .reveal:nth-child(2) { transition-delay: 0.2s; }
.services-grid > .reveal:nth-child(3) { transition-delay: 0.3s; }

/* Glassmorphism Components */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition);
    position: relative;
    z-index: 1;
}

.glass-panel::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at top right, rgba(0, 229, 255, 0.05), transparent);
    border-radius: 20px;
    z-index: -1;
    opacity: 1;
    transition: var(--transition);
}

.glass-panel:hover {
    border-color: var(--accent-blue);
    transform: translateY(-8px) scale(1.02);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.glass-panel:hover::before {
    opacity: 1;
}

/* Layout */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 2rem 10%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.logo {
    display: flex;
    align-items: center;
    cursor: pointer;
}

nav ul {
    display: flex;
    list-style: none;
    gap: 3rem;
}

nav a {
    text-decoration: none;
    color: var(--text-dim);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    position: relative;
}

nav a::after {
    content: '';
    position: absolute;
    bottom: -5px; left: 0;
    width: 0; height: 2px;
    background: var(--accent-blue);
    transition: var(--transition);
}

nav a:hover {
    color: #fff;
}

nav a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 10%;
    background: linear-gradient(rgba(5, 10, 21, 0.4), rgba(5, 10, 21, 0.8)), 
                url('assets/hero.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 100%; height: 200px;
    background: linear-gradient(transparent, var(--bg-dark));
}

.hero h1 {
    font-size: clamp(2.8rem, 8vw, 6.0rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.05;
    letter-spacing: -3px;
}

.hero p {
    font-size: 1.4rem;
    color: var(--text-dim);
    max-width: 700px;
    margin: 0 auto 3rem;
    font-weight: 300;
}

.btn-primary { z-index: 9999 !important; position: relative !important; pointer-events: auto !important; z-index: 9999 !important; position: relative !important; pointer-events: auto !important;
    background: var(--accent-blue);
    color: var(--bg-dark);
    padding: 1.2rem 3rem;
    border-radius: 100px;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block;
    animation: glow 3s infinite;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(0, 229, 255, 0.3);
}

.btn-primary:active {
    transform: scale(0.95);
}

.btn-primary:hover {
    transform: scale(1.05) translateY(-3px);
    background: #fff;
    box-shadow: 0 15px 40px rgba(255, 255, 255, 0.2);
}

/* Sections */
.services {
    padding: 10rem 10%;
}

.section-title {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
}

.section-title p {
    color: var(--text-dim);
    font-size: 1.2rem;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 3rem;
}

/* Contact Form */
.contact-form {
    max-width: 700px;
    margin: 4rem auto 0;
    text-align: left;
}

.form-group {
    margin-bottom: 2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.8rem;
    color: var(--accent-blue);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 1.2rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 15px;
    color: white;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus, 
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.1);
}

.btn-submit {
    width: 100%;
    padding: 1.5rem;
    background: var(--accent-blue);
    color: var(--bg-dark);
    border: none;
    border-radius: 15px;
    font-weight: 800;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-submit:hover {
    background: white;
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(255, 255, 255, 0.1);
}

/* Floating WhatsApp */
.whatsapp-float { z-index: 9999 !important; position: fixed !important; pointer-events: auto !important; z-index: 9999 !important; position: fixed !important; pointer-events: auto !important;
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25d366;
    color: white;
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 15px 35px rgba(37, 211, 102, 0.4);
    z-index: 1001;
    text-decoration: none;
    transition: var(--transition);
    animation: float 4s ease-in-out infinite;
}

.whatsapp-float:hover {
    transform: scale(1.15) rotate(10deg);
    box-shadow: 0 20px 45px rgba(37, 211, 102, 0.6);
}

footer {
    padding: 6rem 10%;
    background: var(--navy-deep);
    text-align: center;
    border-top: 1px solid var(--glass-border);
}

footer p {
    color: var(--text-dim);
    font-size: 0.9rem;
}

/* Responsiveness */
@media (max-width: 1024px) {
    header { padding: 1.5rem 5%; }
    nav ul { gap: 1.5rem; }
    .hero h1 { font-size: 4.5rem; }
}

@media (max-width: 768px) {
    header {
        padding: 1rem 5%;
        background: rgba(5, 10, 21, 0.9);
        backdrop-filter: blur(10px);
        justify-content: center;
    }
    nav { display: none; }
    .hero h1 { font-size: 3.5rem; }
    .hero p { font-size: 1.1rem; }
    .services, .hero, #autor, #contacto {
        padding: 6rem 5%;
    }
    .glass-panel {
        flex-direction: column;
        text-align: center !important;
        gap: 2rem !important;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
    .whatsapp-float { z-index: 9999 !important; position: fixed !important; pointer-events: auto !important; z-index: 9999 !important; position: fixed !important; pointer-events: auto !important;
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
        font-size: 26px;
    }
}

/* Animated Icon Boxes (Process Section) */
.icon-anim-box {
    width: 100px;
    height: 100px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--accent-blue);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.icon-anim-box i {
    animation: float 3s ease-in-out infinite;
    z-index: 2;
}

.icon-anim-box::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.15), transparent);
    animation: rotate 10s linear infinite;
    z-index: 1;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.icon-anim-box:hover {
    border-color: var(--accent-blue);
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.3);
}

/* MacBook Mockup CSS */
.mockup-macbook {
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
    perspective: 1000px;
}

.macbook-screen {
    background: #000;
    border: 12px solid #1a1a1a;
    border-radius: 20px 20px 0 0;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.macbook-screen::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 6px;
    height: 6px;
    background: #333;
    border-radius: 50%;
}

.macbook-base {
    height: 15px;
    background: #333;
    border-radius: 0 0 20px 20px;
    position: relative;
    width: 105%;
    left: -2.5%;
}

.macbook-base::after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 6px;
    background: #111;
    border-radius: 0 0 10px 10px;
}

/* iPhone Mockup CSS */
.mockup-iphone {
    background: #111;
    border: 8px solid #1a1a1a;
    border-radius: 30px;
    aspect-ratio: 9 / 19.5;
    overflow: hidden;
    position: relative;
    box-shadow: 0 30px 60px rgba(0,0,0,0.6);
}

.iphone-screen {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.iphone-button {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background: #333;
    border-radius: 10px;
}

/* Delicate Animated Background */
.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: var(--bg-dark);
}

.blob {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(0, 229, 255, 0.3), transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: move 25s infinite alternate ease-in-out;
}

.blob:nth-child(2) {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(80, 0, 255, 0.25), transparent 70%);
    animation-duration: 35s;
    animation-delay: -5s;
    left: 40%;
    top: 20%;
}

.blob:nth-child(3) {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(0, 168, 255, 0.2), transparent 70%);
    animation-duration: 30s;
    animation-delay: -10s;
    right: 10%;
    bottom: 10%;
}

@keyframes move {
    from { transform: translate(-10%, -10%) rotate(0deg); }
    to { transform: translate(20%, 20%) rotate(360deg); }
}

/* Tech Badge (Technology Stack Bar) */
.tech-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    opacity: 0.65;
    transition: var(--transition);
    cursor: default;
}

.tech-badge:hover {
    opacity: 1;
    transform: translateY(-4px);
    filter: drop-shadow(0 0 8px rgba(0, 229, 255, 0.5));
}

.tech-badge span {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--text-dim);
    text-transform: uppercase;
}

.tech-badge:hover span {
    color: var(--accent-blue);
}

/* ===== Service Cards con imagen de fondo ===== */
.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid var(--glass-border);
    transition: var(--transition);
    min-height: 260px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.service-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                filter 0.6s ease;
    filter: brightness(0.35) saturate(0.6);
    z-index: 0;
}

/* Overlay degradado sobre la imagen */
.service-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(5, 10, 21, 0.92) 0%,
        rgba(5, 10, 21, 0.55) 50%,
        rgba(0, 229, 255, 0.08) 100%
    );
    z-index: 1;
    transition: var(--transition);
}

/* Contenido (icono + texto) */
.service-card-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

/* Hover: zoom suave en la imagen y overlay más transparente */
.service-card:hover .service-card-bg {
    transform: scale(1.08);
    filter: brightness(0.5) saturate(0.8);
}

.service-card:hover .service-card-overlay {
    background: linear-gradient(
        to top,
        rgba(5, 10, 21, 0.88) 0%,
        rgba(5, 10, 21, 0.4) 50%,
        rgba(0, 229, 255, 0.14) 100%
    );
}

.service-card:hover {
    border-color: var(--accent-blue);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5),
                0 0 0 1px rgba(0, 229, 255, 0.2);
    transform: translateY(-8px);
}



