/* === MULTICLOUD FORTECH SECURITY - Professional Redesign === */
:root {
    --primary: #050a14;
    --primary-mid: #0a1628;
    --primary-light: #0f1f3a;
    --accent: #3b82f6;
    --accent-bright: #60a5fa;
    --accent-dark: #1d4ed8;
    --accent-glow: rgba(59, 130, 246, 0.25);
    --accent-purple: #8b5cf6;
    --accent-cyan: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --text: #e2e8f0;
    --text-bright: #f8fafc;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --surface: #111b2e;
    --surface-light: #1a2940;
    --border: rgba(59, 130, 246, 0.15);
    --border-light: rgba(148, 163, 184, 0.1);
    --white: #ffffff;
    --gradient-brand: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 50%, #06b6d4 100%);
    --gradient-dark: linear-gradient(180deg, #050a14 0%, #0a1628 100%);
    --radius: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow: 0 4px 20px rgba(0,0,0,0.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);
    --shadow-glow: 0 0 40px rgba(59, 130, 246, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--primary);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* === PARTICLES CANVAS === */
#particles-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.4;
}

/* === HEADER === */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 10, 20, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--white);
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.nav__logo-icon { font-size: 1.8rem; color: var(--accent); flex-shrink: 0; }

/* WAVE TEXT - Efecto corporativo elegante */
.nav__logo-wave {
    flex: 1;
    overflow: hidden;
    height: 48px;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent, white 8%, white 92%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, white 8%, white 92%, transparent);
}

.wave-track {
    display: flex;
    align-items: center;
    white-space: nowrap;
    animation: waveScroll 14s linear infinite;
}

.wave-track .wave-char {
    display: inline-block;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    line-height: 1;
    will-change: opacity, text-shadow;
    color: var(--text-muted);
    transition: none;
}

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

.nav__logo-wave:hover .wave-track {
    animation-play-state: paused;
}

.nav__menu { display: flex; list-style: none; gap: 4px; }

.nav__link {
    color: var(--text-muted);
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
}

.nav__link:hover { color: var(--white); background: var(--surface-light); }

.nav__link--cta {
    background: var(--gradient-brand);
    color: var(--white);
    font-weight: 600;
}

.nav__link--cta:hover { opacity: 0.9; color: var(--white); }

.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.nav__toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: var(--transition);
}

/* === HERO - BRAND ANIMATION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 120px 0 80px;
    overflow: hidden;
}

.hero__bg-gradient {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(59,130,246,0.12) 0%, transparent 60%),
                radial-gradient(ellipse 60% 40% at 30% 80%, rgba(139,92,246,0.08) 0%, transparent 50%),
                radial-gradient(ellipse 50% 50% at 80% 60%, rgba(6,182,212,0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hero__grid-lines {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(59,130,246,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59,130,246,0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    pointer-events: none;
}

/* Imagen fundador en hero - superior derecha */
.hero__founder-img {
    position: absolute;
    top: 80px;
    right: 0;
    width: 420px;
    height: 500px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
    mask-image: linear-gradient(to left, white 40%, transparent 95%),
                linear-gradient(to top, transparent 0%, white 20%);
    -webkit-mask-image: linear-gradient(to left, white 40%, transparent 95%),
                        linear-gradient(to top, transparent 0%, white 20%);
    mask-composite: intersect;
    -webkit-mask-composite: destination-in;
    opacity: 0.35;
}

.hero__founder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top right;
    filter: brightness(0.9) contrast(1.1) saturate(0.8);
}

.hero__content {
    position: relative;
    text-align: center;
    z-index: 1;
}

/* BRAND NAME - BIG & ANIMATED */
.hero__brand {
    margin-bottom: 32px;
    perspective: 1000px;
}

.hero__brand-line {
    overflow: hidden;
}

.hero__word {
    display: inline-block;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
    font-weight: 700;
    letter-spacing: -0.03em;
    position: relative;
    animation: wordReveal 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    opacity: 0;
    transform: translateY(100%);
}

.hero__word--glow {
    font-size: clamp(3rem, 8vw, 6rem);
    color: var(--text-bright);
    text-shadow: 0 0 40px rgba(59,130,246,0.3), 0 0 80px rgba(59,130,246,0.1);
    animation-delay: 0.2s;
}

.hero__word--accent {
    font-size: clamp(4rem, 12vw, 9rem);
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 30px rgba(59,130,246,0.4));
    animation-delay: 0.5s;
    line-height: 1;
}

.hero__word--outline {
    font-size: clamp(3rem, 8vw, 6rem);
    color: transparent;
    -webkit-text-stroke: 2px var(--accent-bright);
    text-shadow: 0 0 40px rgba(59,130,246,0.2);
    animation-delay: 0.8s;
}

@keyframes wordReveal {
    0% { opacity: 0; transform: translateY(100%) rotateX(-10deg); }
    100% { opacity: 1; transform: translateY(0) rotateX(0deg); }
}

/* Hover animation on brand */
.hero__word--accent {
    transition: transform 0.4s ease, filter 0.4s ease;
}

.hero__word--accent:hover {
    transform: scale(1.03);
    filter: drop-shadow(0 0 50px rgba(59,130,246,0.6));
}

.hero__tagline {
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    color: var(--accent-bright);
    font-weight: 500;
    margin-bottom: 16px;
    letter-spacing: 0.02em;
    animation: fadeIn 1s 1.2s forwards;
    opacity: 0;
}

.hero__subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 40px;
    line-height: 1.7;
    animation: fadeIn 1s 1.4s forwards;
    opacity: 0;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

.hero__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
    animation: fadeIn 1s 1.6s forwards;
    opacity: 0;
}

.hero__tech-stack {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1s 1.8s forwards;
    opacity: 0;
}

.tech-badge {
    padding: 10px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: var(--transition);
    cursor: default;
}

.tech-badge:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

.tech-badge__icon {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-bright);
    letter-spacing: 0.1em;
}

/* Scroll Indicator */
.hero__scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--border);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.hero__scroll-indicator span {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 4px;
    animation: scrollBounce 2s infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(12px); opacity: 0.3; }
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.btn--primary {
    background: var(--gradient-brand);
    color: var(--white);
}

.btn--glow {
    box-shadow: 0 4px 20px var(--accent-glow);
}

.btn--glow:hover {
    box-shadow: 0 8px 40px rgba(59,130,246,0.4);
    transform: translateY(-2px);
}

.btn--glass {
    background: rgba(59,130,246,0.08);
    color: var(--accent-bright);
    border: 1px solid var(--border);
    backdrop-filter: blur(10px);
}

.btn--glass:hover {
    background: rgba(59,130,246,0.15);
    border-color: var(--accent);
}

.btn--full { width: 100%; justify-content: center; }

/* === WHY US === */
.why-us {
    padding: 100px 0;
    position: relative;
    z-index: 1;
}

.why-us__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.why-us__badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(59,130,246,0.1);
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.why-us__title {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
}

.text-gradient {
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-us__desc {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.8;
}

/* === SECTIONS === */
.section__title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.section__title--left { text-align: left; }
.section__subtitle { text-align: center; color: var(--text-muted); font-size: 1.1rem; margin-bottom: 60px; }

/* === SERVICES - TWO COLUMNS === */
.services {
    padding: 120px 0;
    background: var(--primary-mid);
    position: relative;
    z-index: 1;
}

.services__two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.service-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    transition: var(--transition);
}

.service-block:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}

.service-block__header {
    margin-bottom: 32px;
}

.service-block__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,130,246,0.1);
    border-radius: 16px;
    margin-bottom: 16px;
    color: var(--accent);
}

.service-block__header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}

.service-block__tag {
    font-size: 0.85rem;
    color: var(--accent-bright);
    font-weight: 500;
    font-style: italic;
}

.service-block__items { display: flex; flex-direction: column; gap: 24px; }

.service-item {
    padding: 20px;
    background: rgba(59,130,246,0.03);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    transition: var(--transition);
}

.service-item:hover {
    background: rgba(59,130,246,0.06);
    border-color: var(--border);
}

.service-item h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.service-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* === PLATFORMS === */
.platforms {
    padding: 120px 0;
    background: var(--primary);
    position: relative;
    z-index: 1;
}

.platforms__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.platform-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 28px;
    text-align: center;
    transition: var(--transition-slow);
    position: relative;
    overflow: hidden;
}

.platform-card__glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.platform-card--aws .platform-card__glow { background: radial-gradient(circle, rgba(255,153,0,0.06) 0%, transparent 60%); }
.platform-card--azure .platform-card__glow { background: radial-gradient(circle, rgba(0,164,239,0.06) 0%, transparent 60%); }
.platform-card--gcp .platform-card__glow { background: radial-gradient(circle, rgba(66,133,244,0.06) 0%, transparent 60%); }

.platform-card:hover .platform-card__glow { opacity: 1; }

.platform-card:hover {
    border-color: var(--accent);
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
}

.platform-card__logo { margin-bottom: 20px; }

.platform-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.platform-card p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.6;
}

.platform-card__tags { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }

.platform-card__tags span {
    padding: 4px 10px;
    background: rgba(59,130,246,0.08);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-bright);
}

/* === IMPACT === */
.impact {
    padding: 120px 0;
    background: var(--primary-mid);
    position: relative;
    z-index: 1;
}

.impact__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 60px;
}

.impact-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 40px 28px;
    transition: var(--transition);
}

.impact-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-glow);
}

.impact-card__number {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.impact-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.impact-card p {
    color: var(--text-muted);
    font-size: 0.92rem;
    line-height: 1.7;
}

/* === ABOUT === */
.about {
    padding: 120px 0;
    background: var(--primary);
    position: relative;
    z-index: 1;
}

.about__content {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    align-items: start;
}

.about__text p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 1.05rem;
    line-height: 1.7;
}

.about__stats { display: flex; gap: 40px; margin-top: 32px; }

.stat { text-align: center; }
.stat__number { display: block; font-size: 2.4rem; font-weight: 800; color: var(--accent); font-family: 'Space Grotesk', sans-serif; }
.stat__label { font-size: 0.85rem; color: var(--text-muted); }

.about__card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.about__card:hover { border-color: var(--accent); }

.about__card h4 { font-size: 1.1rem; margin-bottom: 12px; color: var(--accent-bright); }
.about__card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

/* Foto del fundador */
.about__photo {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: var(--shadow-lg);
}

.about__photo img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    object-position: top center;
    display: block;
    filter: brightness(0.95) contrast(1.05);
    transition: var(--transition);
}

.about__photo:hover img {
    filter: brightness(1) contrast(1.1);
    transform: scale(1.02);
}

.about__photo-border {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(59,130,246,0.3);
    border-radius: var(--radius-xl);
    pointer-events: none;
}

.about__photo::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, var(--primary) 0%, transparent 100%);
    pointer-events: none;
}

/* === CONTACT === */
.contact {
    padding: 120px 0;
    background: var(--primary-light);
    position: relative;
    z-index: 1;
}

.contact__grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
}

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.form__group { margin-bottom: 16px; }

.form__group input,
.form__group select,
.form__group textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--primary);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.92rem;
    font-family: inherit;
    transition: var(--transition);
}

.form__group input:focus,
.form__group select:focus,
.form__group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form__group textarea { resize: vertical; }
.form__group select option { background: var(--primary); }

.contact__info { display: flex; flex-direction: column; gap: 28px; padding-top: 16px; }

.contact__item { display: flex; align-items: center; gap: 16px; }

.contact__icon {
    font-size: 1.4rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(59,130,246,0.1);
    border-radius: 12px;
    color: var(--accent);
}

.contact__item h4 { font-size: 0.9rem; color: var(--text); margin-bottom: 2px; }
.contact__item p { color: var(--text-muted); font-size: 0.92rem; }

/* === FOOTER === */
.footer {
    padding: 40px 0;
    background: var(--primary);
    border-top: 1px solid var(--border);
    position: relative;
    z-index: 1;
}

.footer__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer__brand { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; }
.footer__copy { color: var(--text-dim); font-size: 0.82rem; }
.footer__platforms { color: var(--text-dim); font-size: 0.82rem; }
.footer__platforms span { color: var(--accent); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .services__two-col { grid-template-columns: 1fr; }
    .platforms__grid { grid-template-columns: 1fr 1fr; }
    .impact__grid { grid-template-columns: 1fr; }
}

@media (max-width: 968px) {
    .about__content { grid-template-columns: 1fr; gap: 40px; }
    .contact__grid { grid-template-columns: 1fr; gap: 40px; }
    .section__title--left { text-align: center; }
}

@media (max-width: 768px) {
    .nav__menu {
        position: fixed;
        top: 72px;
        left: 0;
        width: 100%;
        background: rgba(5,10,20,0.98);
        backdrop-filter: blur(20px);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: 24px;
        gap: 8px;
        transform: translateY(-100%);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition);
    }
    .nav__menu.active { transform: translateY(0); opacity: 1; visibility: visible; }
    .nav__toggle { display: flex; }

    .hero { padding: 100px 0 60px; }
    .hero__word--glow { font-size: 2.2rem; }
    .hero__word--accent { font-size: 3.5rem; }
    .hero__word--outline { font-size: 2.2rem; }
    .hero__founder-img { display: none; }

    .services, .platforms, .about, .contact, .impact { padding: 80px 0; }
    .platforms__grid { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .about__stats { gap: 20px; }
    .footer__content { flex-direction: column; text-align: center; }
}
