@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&family=Lora:ital,wght@0,400..700;1,400..700&display=swap');

:root {
    --bg-color: #050811;
    --card-bg: rgba(13, 20, 35, 0.65);
    --card-border: rgba(255, 255, 255, 0.08);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --accent-gold: #f59e0b;
    --accent-gold-glow: rgba(245, 158, 11, 0.35);
    --accent-cyan: #06b6d4;
    --accent-blue: #3b82f6;
    --accent-green: #10b981;
    --font-title: 'Playfair Display', serif;
    --font-body: 'Lora', serif;
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
    position: relative;
}

/* Cosmic background effects */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    z-index: -2;
    pointer-events: none;
}

/* Background Stars */
.starfield {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    opacity: 0.6;
}

.star {
    position: absolute;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.8), 0 0 15px rgba(245, 158, 11, 0.4);
    animation: twinkle-star 4s infinite ease-in-out;
}

@keyframes twinkle-star {
    0%, 100% { 
        opacity: 0.25; 
        transform: scale(0.7); 
        box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.3); 
        box-shadow: 0 0 15px rgba(255, 255, 255, 1), 0 0 25px rgba(245, 158, 11, 0.8);
    }
}

/* Shooting Stars emanating from logo */
.shooting-star {
    position: absolute;
    height: 2px;
    background: linear-gradient(-45deg, #ffffff 0%, var(--accent-gold) 50%, transparent 100%);
    border-radius: 999px;
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.9)) drop-shadow(0 0 12px var(--accent-gold));
    pointer-events: none;
    z-index: -1;
    transform: rotate(35deg);
    transform-origin: left center;
}

@keyframes shoot-animation {
    0% {
        width: 0px;
        transform: rotate(var(--angle, 35deg)) translateX(0);
        opacity: 1;
    }
    10% {
        width: 280px;
        opacity: 1;
    }
    100% {
        width: 0px;
        transform: rotate(var(--angle, 35deg)) translateX(var(--distance, 4000px));
        opacity: 0;
    }
}

/* Header & Navigation */
header {
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    background: rgba(5, 8, 17, 0.7);
}

.logo-container {
    display: flex;
    align-items: center;
    position: relative;
    width: 150px;
    height: 46px;
    border-radius: 23px;
    background: transparent; /* Completely transparent, no rounded background rectangle visible */
    border: none;
    overflow: visible;
}

.logo-border-svg {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 160px;
    height: 56px;
    pointer-events: none;
    z-index: 10;
    overflow: visible;
}

.logo-border-rect {
    fill: none;
    stroke: url(#logo-trail-grad);
    stroke-width: 2.5px;
    stroke-dasharray: 430;
    stroke-dashoffset: 430;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4)) drop-shadow(0 0 6px var(--accent-gold));
    animation: logo-border-trail-anim 10s ease-in-out infinite;
}

@keyframes logo-border-trail-anim {
    0% {
        stroke-dashoffset: 430;
        opacity: 1;
    }
    55% {
        /* Star has finished orbit, trail is fully drawn / positioned */
        stroke-dashoffset: 0;
        opacity: 1;
    }
    /* Twinkling/shimmering fade out phase */
    58% { opacity: 0.9; }
    61% { opacity: 0.4; }
    64% { opacity: 0.95; }
    67% { opacity: 0.3; }
    70% { opacity: 0.85; }
    73% { opacity: 0.2; }
    76% { opacity: 0.7; }
    79% { opacity: 0.1; }
    82% { opacity: 0.5; }
    85% { opacity: 0; }
    100% {
        stroke-dashoffset: 430;
        opacity: 0;
    }
}

.logo-star-wrapper {
    position: absolute;
    width: 32px;
    height: 40px;
    /* Center the star (16, 20) on the path. We offset by half of width (16) and height (20) */
    top: -20px;
    left: -16px;
    offset-path: path("M 39 28 L 5 28 A 23 23 0 0 1 28 5 L 132 5 A 23 23 0 0 1 155 28 A 23 23 0 0 1 132 51 L 28 51 A 23 23 0 0 1 5 28 L 39 28");
    offset-rotate: 0deg;
    animation: star-orbit-path-anim 10s ease-in-out infinite;
    z-index: 11;
    pointer-events: none;
}

@keyframes star-orbit-path-anim {
    0% {
        offset-distance: 0%;
    }
    55%, 100% {
        offset-distance: 100%;
    }
}

.logo-star {
    width: 100%;
    height: 100%;
    transform-origin: 16px 20px; /* Rotate precisely around the star's center point */
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.7)) drop-shadow(0 0 12px var(--accent-gold));
    animation: star-spin-shimmer-anim 10s ease-in-out infinite;
}

@keyframes star-spin-shimmer-anim {
    0% {
        transform: rotate(0deg) scale(0.9);
    }
    55% {
        transform: rotate(1080deg) scale(0.9); /* Spins 3 full turns along the path */
    }
    /* Rest & Twinkle shimmer phase */
    65% {
        transform: rotate(1080deg) scale(1.25);
    }
    75% {
        transform: rotate(1080deg) scale(0.8);
    }
    85% {
        transform: rotate(1080deg) scale(1.25);
    }
    100% {
        transform: rotate(1080deg) scale(0.9);
    }
}

.logo-text {
    margin-left: 48px;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1.5px;
    background: linear-gradient(135deg, #ffffff 30%, var(--accent-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

nav a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px var(--accent-gold-glow);
}

.cta-btn {
    background: linear-gradient(135deg, var(--accent-gold) 0%, #d97706 100%);
    color: #050811;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    font-family: var(--font-title);
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px var(--accent-gold-glow);
}

.star-back span {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    font-family: var(--font-title);
    letter-spacing: 1px;
}

.star-back img {
    width: 65%;
    height: 65%;
    object-fit: contain;
    border-radius: 4px;
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Hero Section */
.hero {
    min-height: 48vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem 1.5rem;
    position: relative;
}

.otomi-concept {
    font-family: var(--font-title);
    font-weight: 600;
    color: var(--accent-gold);
    font-size: 1.1rem;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    border: 1px solid rgba(245, 158, 11, 0.3);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: rgba(245, 158, 11, 0.05);
    backdrop-filter: blur(5px);
    display: inline-block;
    animation: fade-in-up 1s ease-out;
}

.hero h1 {
    font-family: var(--font-title);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.15;
    max-width: 900px;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #ffffff, #e2e8f0, var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fade-in-up 1.2s ease-out;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin-bottom: 2.5rem;
    animation: fade-in-up 1.4s ease-out;
}

/* Sections General */
section {
    padding: 6rem 5%;
}

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

.section-title h2 {
    font-family: var(--font-title);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

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

.modules-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    max-width: 1300px;
    margin: 0 auto;
}

.modules-grid.grid-3 {
    grid-template-columns: repeat(3, 1fr);
    max-width: 1100px;
}

@media (max-width: 1024px) {
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .modules-grid.grid-3 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .modules-grid {
        grid-template-columns: 1fr;
    }
    .modules-grid.grid-3 {
        grid-template-columns: 1fr;
    }
}

.module-card {
    background-color: rgba(5, 8, 17, 0.2); /* Much lighter base so the image pops */
    background-position: center;
    background-size: cover;
    /* Removed blend mode so the image retains full color and strength */
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Base overlay gradient for all cards so text is readable */
.module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark at the bottom for text readability, fully transparent at the top for image pop */
    background: linear-gradient(to top, rgba(5,8,17, 0.95) 10%, rgba(5,8,17, 0.6) 50%, rgba(5,8,17, 0.1) 100%);
    z-index: -1;
    pointer-events: none;
}

/* 3D Flip Additions */
.module-card.flip-card {
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
    perspective: 1500px;
    min-height: 500px; /* Prevent collapsing since children are absolute */
}
.module-card.flip-card::before {
    display: none;
}

.gestoria-card {
    position: relative;
    overflow: hidden;
    padding: 2.5rem 2rem;
    display: flex;
    flex-direction: column;
    text-align: center;
    /* Transparent background to let cosmos and videos show through */
    background: transparent;
    border-radius: 24px; /* Unify with top modules */
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.card-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    pointer-events: none;
}

.gestoria-card > *:not(.card-video-bg) {
    position: relative;
    z-index: 1;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

.module-card.flip-card:hover .card-inner,
.module-card.flip-card.is-flipped .card-inner {
    transform: translateY(-15px) rotateY(180deg) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8), 0 0 30px rgba(59, 130, 246, 0.15);
}

.card-front, .card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 16px;
    border: 1px solid var(--card-border);
    overflow: hidden;
}

.card-front {
    background-color: rgba(5, 8, 17, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 2rem;
}

.card-front::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-position: center;
    background-size: cover;
    border-radius: inherit;
    z-index: -2;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.card-front::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Stronger gradient at bottom for text contrast */
    background: linear-gradient(to top, rgba(5,8,17, 0.98) 0%, rgba(5,8,17, 0.8) 35%, rgba(5,8,17, 0) 100%);
    border-radius: inherit;
    z-index: -1;
    pointer-events: none;
}

.card-front h3 {
    font-family: var(--font-title);
    font-size: 1.65rem;
    font-weight: 800;
    margin-top: auto;
    margin-bottom: 0;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,1), 0 2px 4px rgba(0,0,0,0.8);
    transform: translateZ(40px);
}

/* 3D Icons */
.flip-card .module-icon {
    display: none !important;
}

.module-icon.icon-3d {
    width: 64px;
    height: 64px;
    margin-top: 1rem;
    margin-bottom: auto;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(50px);
    transition: transform 0.4s var(--transition-bounce);
}

.module-icon.icon-3d svg {
    width: 32px;
    height: 32px;
    filter: drop-shadow(0px 4px 8px rgba(0,0,0,0.5));
}

/* Specific glows for each icon matching the new background palette */
.icon-ticket { box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 25px rgba(6, 182, 212, 0.4), inset 0 0 10px rgba(6, 182, 212, 0.2); color: #22d3ee; }
.icon-quotes { box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 25px rgba(251, 191, 36, 0.4), inset 0 0 10px rgba(251, 191, 36, 0.2); color: #fbbf24; }
.icon-notifications { box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 25px rgba(16, 185, 129, 0.4), inset 0 0 10px rgba(16, 185, 129, 0.2); color: #34d399; }
.icon-ai { box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 25px rgba(45, 212, 191, 0.4), inset 0 0 10px rgba(45, 212, 191, 0.2); color: #5eead4; }

.card-back {
    background: transparent;
    transform: rotateY(180deg);
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.watermark-star-back {
    display: none;
}
.watermark-star-back svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.6));
}

.card-back h3 {
    font-family: var(--font-title);
    font-size: 1.3rem;
    margin-bottom: 1rem;
    z-index: 1;
    text-align: center;
}
.card-back p {
    color: #f8fafc;
    font-size: 0.95rem;
    line-height: 1.6;
    text-align: center;
    z-index: 1;
    display: block;
    margin: auto 0;
}
.card-back .module-tag {
    z-index: 1;
    margin-top: auto;
}

@keyframes imageBreath {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 1; }
}

@keyframes imageBreathGestoria {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.55; }
}

/* Background Image Classes with asynchronous breathing image */
.module-card.bg-ticket .card-front::before { background-image: url('assets/cards/bg_ticket.png'); animation: imageBreath 4.2s infinite ease-in-out; }
.module-card.bg-quotes .card-front::before { background-image: url('assets/cards/bg_quotes.png'); animation: imageBreath 5.5s infinite ease-in-out 1.2s; }
.module-card.bg-alerts .card-front::before { background-image: url('assets/cards/bg_alerts.png'); animation: imageBreath 4.8s infinite ease-in-out 2.5s; }
.module-card.bg-ai .card-front::before { background-image: url('assets/cards/bg_ai.png'); animation: imageBreath 6.1s infinite ease-in-out 0.6s; }

/* Gestoria & Security Background Images with breathing effect */
.module-card.bg-security .card-front::before { background-image: url('assets/cards/bg_gestoria_security.png'); animation: imageBreathGestoria 5.8s infinite ease-in-out; }
.module-card.bg-web .card-front::before { background-image: url('assets/cards/bg_gestoria_web.png'); animation: imageBreathGestoria 4.9s infinite ease-in-out 1.2s; }
.module-card.bg-social .card-front::before { background-image: url('assets/cards/bg_gestoria_social.png'); animation: imageBreathGestoria 5.5s infinite ease-in-out 2.5s; }
.module-card.bg-consulting .card-front::before { background-image: url('assets/cards/bg_gestoria_consulting.png'); animation: imageBreathGestoria 6.3s infinite ease-in-out 0.8s; }

.module-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(59, 130, 246, 0.05);
}

/* Security Banner Compact */
.module-card.flip-card.security-banner {
    position: relative;
    max-width: 1200px;
    margin: 2rem auto 3rem;
    height: 240px; /* Adjusted height for perfect balance */
    min-height: 240px !important; /* Override the 500px min-height from flip-card base */
}

.security-banner .card-back {
    padding: 1rem 2rem;
}

.security-content h3 {
    font-family: var(--font-title);
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    /* Purple Text Gradient - Whiter and more subtle */
    background: linear-gradient(135deg, #ffffff 0%, #d8b4fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.security-terms-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.term-item {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.term-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.icon-3d-small {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateZ(10px);
    flex-shrink: 0;
}

.icon-3d-small svg {
    width: 16px;
    height: 16px;
    filter: drop-shadow(0px 2px 4px rgba(0,0,0,0.5));
}

.term-item h4 {
    font-family: var(--font-title);
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0;
}

.term-item p {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.4;
}

/* Gestoria Cards specific overrides */
.gestoria-card {
    display: flex;
    flex-direction: column;
}

/* New 3D icons for Gestoria */
.icon-web { box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 25px rgba(245, 158, 11, 0.4), inset 0 0 10px rgba(245, 158, 11, 0.2); color: #fbbf24; }
.icon-social { box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 25px rgba(6, 182, 212, 0.4), inset 0 0 10px rgba(6, 182, 212, 0.2); color: #22d3ee; }
.icon-consulting { box-shadow: 0 15px 35px rgba(0,0,0,0.5), 0 0 25px rgba(16, 185, 129, 0.4), inset 0 0 10px rgba(16, 185, 129, 0.2); color: #34d399; }

@media (max-width: 768px) {
    .security-banner {
        padding: 1.5rem;
        margin: 2rem 1rem 3rem;
    }
}

.module-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.icon-sales { background: rgba(59, 130, 246, 0.15); color: var(--accent-blue); }
.icon-quotes { background: rgba(6, 182, 212, 0.15); color: var(--accent-cyan); }
.icon-notifications { background: rgba(245, 158, 11, 0.15); color: var(--accent-gold); }
.icon-chatbot { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }

.module-card h3 {
    font-family: var(--font-title);
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.module-card p {
    color: #e2e8f0; /* Brighter white than text-secondary */
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.module-tag {
    align-self: center; /* Centered as requested */
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    text-align: center; /* Center the text inside the pill */
    padding: 0.25rem 0.75rem;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--card-border);
}

/* Simulator Section */
.simulator-container {
    max-width: 1000px;
    margin: 0 auto;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(20px);
}

.simulator-controls {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.selector-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--card-border);
    color: var(--text-secondary);
    padding: 0.8rem 1.6rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-title);
    font-weight: 600;
    transition: var(--transition-smooth);
}

.selector-btn:hover, .selector-btn.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border-color: var(--accent-gold);
    box-shadow: 0 0 15px var(--accent-gold-glow);
}

.simulator-showcase {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

@media (max-width: 768px) {
    .simulator-showcase {
        grid-template-columns: 1fr;
    }
}

.showcase-info h3 {
    font-family: var(--font-title);
    font-size: 2rem;
    margin-bottom: 1rem;
}

.showcase-info p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.included-modules {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.included-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 0.8rem 1.2rem;
    border-radius: 8px;
    border-left: 3px solid var(--accent-gold);
}

.included-item span {
    font-weight: 600;
}

/* 3 Phones Triangle Layout */
.mockups-triangle {
    position: relative;
    width: 100%;
    height: 600px; /* Increased height to fit the triangle */
}

/* WhatsApp Phone Simulation */
.phone-mockup {
    background: #0b141a;
    border: 8px solid #2d3748;
    border-radius: 36px;
    height: 400px; /* Reduced from 480px to fit multiple */
    width: 240px; /* Reduced from 300px */
    position: absolute;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
    transform-origin: center;
}

/* Positions for the 3 phones */
.phone-ml {
    top: 0;
    left: 0;
    transform: scale(0.8) rotate(-5deg);
    z-index: 1;
}

.phone-tk {
    top: 0;
    right: 0;
    transform: scale(0.8) rotate(5deg);
    z-index: 2;
}

.phone-pos {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scale(1);
    z-index: 3;
    height: 450px;
    width: 260px;
}

.phone-header {
    background: #075e54;
    padding: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.phone-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #000;
    font-size: 0.8rem;
}

.phone-chat-info h4 {
    font-size: 0.85rem;
    color: #fff;
    white-space: nowrap;
}

.phone-chat-info span {
    font-size: 0.65rem;
    color: #a0aec0;
}

.phone-body {
    background: url('https://user-images.githubusercontent.com/15075759/28719144-86dc0f70-73b1-11e7-911d-60d70fcded21.png');
    height: calc(100% - 55px);
    padding: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    overflow-y: auto;
}

.message {
    max-width: 85%;
    padding: 0.5rem 0.8rem;
    border-radius: 10px;
    font-size: 0.8rem;
    line-height: 1.4;
    animation: message-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.message.incoming {
    background: #202c33;
    color: #e9edef;
    align-self: flex-start;
    border-top-left-radius: 0;
}

.message.outgoing {
    background: #005c4b;
    color: #e9edef;
    align-self: flex-end;
    border-top-right-radius: 0;
}

/* Custom styling for ML message bubbles */
.phone-ml .message.incoming { background: #3b82f6; color: #fff; }
.phone-ml .message.outgoing { background: #e5e7eb; color: #1f2937; }

/* Custom styling for TikTok message bubbles */
.phone-tk .message.incoming { background: #333; color: #fff; }
.phone-tk .message.outgoing { background: #fe2c55; color: #fff; }

@keyframes message-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Spin animations */
@keyframes spin-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Footer */
footer {
    border-top: 1px solid var(--card-border);
    padding: 3rem 5%;
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.9rem;
    background: rgba(5, 8, 17, 0.9);
}

.footer-concept {
    font-style: italic;
    color: var(--accent-gold);
    margin-bottom: 1.5rem;
    font-family: var(--font-title);
}

.legal-disclaimer {
    max-width: 800px;
    margin: 1.5rem auto 0;
    font-size: 0.95rem;
    color: var(--text-primary);
    line-height: 1.6;
    text-align: center;
}

.legal-disclaimer > strong {
    color: var(--accent-gold);
}

.legal-small {
    display: block;
    margin-top: 1.2rem;
    font-size: 0.65rem;
    color: var(--text-secondary);
    opacity: 0.55;
    line-height: 1.4;
    text-align: justify;
    text-align-last: center;
}

.legal-link {
    display: inline-block;
    margin-left: 0.5rem;
    color: var(--text-secondary);
    text-decoration: underline;
    font-weight: 500;
    transition: var(--transition-smooth);
}

.legal-link:hover {
    color: var(--accent-gold);
}

/* Social icons next to logo in Header */
.social-icons-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border-left: 1px solid var(--card-border);
    padding-left: 0.8rem;
    margin-left: 0.5rem;
}

.social-icon-link {
    color: var(--text-secondary);
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: var(--transition-smooth);
}

.social-icon-link:hover {
    transform: scale(1.15);
}

.social-icon-link.facebook:hover { color: #1877f2; filter: drop-shadow(0 0 8px rgba(24, 119, 242, 0.5)); }
.social-icon-link.tiktok:hover { color: #00f2fe; filter: drop-shadow(-1.5px -1.5px 0 #fe0979) drop-shadow(1.5px 1.5px 0 #00f2fe); }
.social-icon-link.whatsapp:hover { color: #25d366; filter: drop-shadow(0 0 8px rgba(37, 211, 102, 0.5)); }
.social-icon-link.instagram:hover svg { fill: url(#instagrad); }
.social-icon-link.instagram:hover { filter: drop-shadow(0 0 8px rgba(225, 48, 108, 0.5)); }
.social-icon-link.youtube:hover { color: #ff0000; filter: drop-shadow(0 0 8px rgba(255, 0, 0, 0.5)); }
.social-icon-link.youtube:hover .yt-play { fill: #ffffff; }

/* Integration Stars (Constellation) */
.constellation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.integration-star {
    position: absolute;
    width: 60px;
    height: 60px;
    perspective: 1000px;
    cursor: pointer;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.star-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    transform-style: preserve-3d;
}

/* Hover or active click triggers rotation */
.integration-star:hover .star-inner,
.integration-star.active .star-inner {
    transform: rotateY(180deg);
}

.star-front, .star-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Front: Small glowing 4-pointed star (matching brand identity, but smaller) */
.star-front {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    top: 0;
    left: 0;
    transition: var(--transition-smooth);
}

.star-front svg {
    width: 16px; /* Cute, tiny 4-pointed star */
    height: 16px;
    fill: #ffffff;
    filter: drop-shadow(0 0 3px #ffffff) drop-shadow(0 0 8px var(--glow-color));
    transition: var(--transition-smooth);
}

.integration-star:hover .star-front svg {
    filter: drop-shadow(0 0 5px #ffffff) drop-shadow(0 0 15px var(--glow-color));
}

/* Back: Full brand logo card */
.star-back {
    background: rgba(13, 20, 35, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transform: rotateY(180deg);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(8px);
    font-weight: 800;
}

.star-back svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    stroke-width: 2;
}

.star-back span {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 0.95rem;
    color: #ffffff;
    letter-spacing: 0.5px;
}

/* Brand Card Custom Colors on Reveal */
.shopify .star-back { background: rgba(150, 191, 72, 0.15); }
.mybusiness .star-back { background: rgba(245, 158, 11, 0.15); }
.eleventa .star-back { background: rgba(6, 182, 212, 0.15); }
.woocommerce .star-back { background: rgba(150, 88, 138, 0.15); }
.softrestaurant .star-back { background: rgba(239, 68, 68, 0.15); }
.aspel .star-back { background: rgba(59, 130, 246, 0.15); }
.mercadolibre .star-back { background: rgba(255, 241, 89, 0.15); }
.mercadolibre .star-back span { color: #ffffff; }

/* 360 Trace SVG */
.trace-svg {
    position: absolute;
    top: 50%; left: 50%;
    width: 60px !important; 
    height: 60px !important;
    pointer-events: none;
    transform: translate(-50%, -50%) rotate(-90deg);
    opacity: 0;
}

/* Impact Animations */
.integration-star.impact-active {
    animation: impact-spin 1.5s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes impact-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.integration-star.impact-active-social {
    animation: impact-spin 3.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.integration-star.impact-active .star-inner,
.integration-star.impact-active-social .star-inner {
    transform: rotateY(180deg) scale(1.15);
}

.integration-star.impact-active .trace-svg,
.integration-star.impact-active-social .trace-svg {
    opacity: 1;
}

.integration-star.impact-active .trace-svg circle {
    stroke-dashoffset: 182.2;
    animation: trace-circle 1.5s linear forwards;
}

.integration-star.impact-active-social .trace-svg circle {
    stroke-dashoffset: 182.2;
    animation: trace-circle 3.5s linear forwards;
}

@keyframes trace-circle {
    0% { stroke-dashoffset: 182.2; }
    100% { stroke-dashoffset: 0; }
}

.integration-star.impact-flash .star-inner {
    animation: impact-collapse-flash 0.6s ease-out forwards;
}

@keyframes impact-collapse-flash {
    0% {
        transform: rotateY(180deg) scale(1.15);
        filter: drop-shadow(0 0 5px var(--glow-color));
    }
    40% {
        /* Flips back exactly halfway */
        transform: rotateY(90deg) scale(1.3);
        filter: drop-shadow(0 0 20px var(--glow-color)) brightness(1.5);
    }
    70% {
        transform: rotateY(0deg) scale(1.1);
        filter: drop-shadow(0 0 35px var(--glow-color)) brightness(2);
    }
    100% {
        transform: rotateY(0deg) scale(1);
        filter: drop-shadow(0 0 0px var(--glow-color));
    }
}

/* Positions and Floating Animations */
/* --- POS & E-Commerce Stars (Hero) --- */
.integration-star.shopify {
    top: 15%;
    left: 10%;
    --glow-color: rgba(150, 191, 72, 0.7);
    animation: float-star-1 7s ease-in-out infinite;
}
.integration-star.mybusiness {
    top: 12%;
    right: 12%;
    --glow-color: rgba(245, 158, 11, 0.7);
    animation: float-star-2 8s ease-in-out infinite;
}
.integration-star.sicar {
    top: 50%;
    right: 5%;
    --glow-color: rgba(249, 115, 22, 0.7);
    animation: float-star-1 7.2s ease-in-out infinite;
}
.integration-star.eleventa {
    top: 65%;
    right: 8%;
    --glow-color: rgba(6, 182, 212, 0.7);
    animation: float-star-3 6.5s ease-in-out infinite;
}
.integration-star.woocommerce {
    top: 70%;
    left: 15%;
    --glow-color: rgba(150, 88, 138, 0.7);
    animation: float-star-1 9s ease-in-out infinite reverse;
}
.integration-star.softrestaurant {
    top: 45%;
    left: 4%;
    --glow-color: rgba(239, 68, 68, 0.7);
    animation: float-star-2 7.5s ease-in-out infinite;
}
.integration-star.aspel {
    top: 35%;
    right: 18%;
    --glow-color: rgba(59, 130, 246, 0.7);
    animation: float-star-3 8.5s ease-in-out infinite reverse;
}
.integration-star.mercadolibre {
    top: 85%;
    right: 25%;
    --glow-color: rgba(255, 241, 89, 0.7);
    animation: float-star-1 7s ease-in-out infinite;
}

/* --- Social Media Stars (Concepto Section) --- */
.social-constellation-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
}

.integration-star.whatsapp {
    top: 25%;
    left: 8%;
    --glow-color: rgba(37, 211, 102, 0.7);
    animation: float-star-1 7.5s ease-in-out infinite;
}
.whatsapp .star-back { background: rgba(37, 211, 102, 0.15); }

.integration-star.facebook {
    top: 20%;
    right: 8%;
    --glow-color: rgba(24, 119, 242, 0.7);
    animation: float-star-2 6s ease-in-out infinite;
}
.facebook .star-back { background: rgba(24, 119, 242, 0.15); }

.integration-star.instagram {
    top: 70%;
    left: 6%;
    --glow-color: rgba(225, 48, 108, 0.7);
    animation: float-star-3 8s ease-in-out infinite reverse;
}
.instagram .star-back { background: rgba(225, 48, 108, 0.15); }

.integration-star.tiktok {
    top: 65%;
    right: 6%;
    --glow-color: rgba(0, 242, 254, 0.7);
    animation: float-star-1 7s ease-in-out infinite;
}
.tiktok .star-back { background: rgba(0, 242, 254, 0.15); }

.integration-star.youtube {
    top: 88%;
    right: 10%;
    --glow-color: rgba(255, 0, 0, 0.7);
    animation: float-star-2 7.1s ease-in-out infinite;
}
.youtube .star-back { background: rgba(255, 0, 0, 0.15); }

/* Faro Text Gradient Wave on Impact */
.faro-impact-active h2, .faro-impact-active p, .faro-impact-active strong, .faro-impact-active em {
    background-size: 300% 100% !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    color: transparent !important;
    animation: wave-sweep 3.5s linear forwards !important;
}

.whatsapp-glow h2, .whatsapp-glow p, .whatsapp-glow strong, .whatsapp-glow em { 
    background-image: linear-gradient(120deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 42%, #25D366 50%, rgba(255,255,255,0.7) 58%, rgba(255,255,255,0.7) 100%) !important;
    filter: drop-shadow(0 0 5px rgba(37, 211, 102, 0.4));
}
.facebook-glow h2, .facebook-glow p, .facebook-glow strong, .facebook-glow em { 
    background-image: linear-gradient(120deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 42%, #1877F2 50%, rgba(255,255,255,0.7) 58%, rgba(255,255,255,0.7) 100%) !important;
    filter: drop-shadow(0 0 5px rgba(24, 119, 242, 0.4));
}
.instagram-glow h2, .instagram-glow p, .instagram-glow strong, .instagram-glow em { 
    background-image: linear-gradient(120deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 40%, #F56040 46%, #E1306C 50%, #833AB4 54%, rgba(255,255,255,0.7) 60%, rgba(255,255,255,0.7) 100%) !important;
    filter: drop-shadow(0 0 5px rgba(225, 48, 108, 0.4));
}
.tiktok-glow h2, .tiktok-glow p, .tiktok-glow strong, .tiktok-glow em { 
    background-image: linear-gradient(120deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 42%, #00f2fe 48%, #ff0050 52%, rgba(255,255,255,0.7) 58%, rgba(255,255,255,0.7) 100%) !important;
    filter: drop-shadow(0 0 5px rgba(0, 242, 254, 0.4));
}
.youtube-glow h2, .youtube-glow p, .youtube-glow strong, .youtube-glow em { 
    background-image: linear-gradient(120deg, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0.7) 42%, #FF0000 50%, rgba(255,255,255,0.7) 58%, rgba(255,255,255,0.7) 100%) !important;
    filter: drop-shadow(0 0 5px rgba(255, 0, 0, 0.4));
}

@keyframes wave-sweep {
    0% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Tooltip */
.star-tooltip {
    position: absolute;
    bottom: -32px;
    background: rgba(5, 8, 17, 0.95);
    border: 1px solid var(--card-border);
    color: var(--text-primary);
    padding: 3px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-smooth);
    font-family: var(--font-body);
    z-index: 10;
}

.integration-star:hover .star-tooltip {
    opacity: 1;
    bottom: -36px;
}

/* Float Animations */
@keyframes float-star-1 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
@keyframes float-star-2 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-16px); }
}
@keyframes float-star-3 {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

/* Responsive integrations layout for mobile */
@media (max-width: 900px) {
    .hero {
        min-height: auto;
        padding-bottom: 2rem;
    }
    .constellation-container {
        position: static;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        margin-top: 2rem;
        pointer-events: auto;
        width: 100%;
        height: auto;
    }
    .integration-star {
        position: static !important;
        animation: none !important;
        width: 50px;
        height: 50px;
    }
    .star-inner {
        transform: rotateY(180deg); /* Always show the brand face on mobile directly */
    }
    .star-front {
        display: none !important; /* Hide dot on mobile to keep brands clear */
    }
}

/* ========================================================
   DYNAMIC DEVICE MORPHING (POS Bottom Center)
   ======================================================== */
.device-morph {
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    border-radius: 36px;
    background: #0b141a;
}
.device-screen-wrapper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 28px; /* Inner radius matching the border */
    transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Base structural elements, hidden by default */
.monitor-stand, .monitor-base, .printer-slot, .laptop-base {
    position: absolute;
    opacity: 0;
    transition: opacity 0.4s, transform 0.6s;
    pointer-events: none;
}

/* 1. MONITOR (Abarrotes) */
.phone-pos.is-monitor {
    width: 320px;
    height: 240px;
    border-radius: 12px;
    border: 12px solid #1f2937; /* Darker border for monitor */
    bottom: 40px; /* Lift up for stand */
}
.phone-pos.is-monitor .device-screen-wrapper {
    border-radius: 4px;
}
.phone-pos.is-monitor .monitor-stand {
    opacity: 1;
    width: 30px;
    height: 40px;
    background: #4b5563;
    bottom: -40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}
.phone-pos.is-monitor .monitor-base {
    opacity: 1;
    width: 100px;
    height: 10px;
    background: #374151;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 4px 4px 0 0;
}

/* 2. PRINTER (Restaurante) */
.phone-pos.is-printer {
    width: 220px;
    height: 160px; /* Only the base of the printer */
    border-radius: 10px 10px 0 0;
    border: none;
    background: #374151;
    bottom: 0;
    box-shadow: inset 0 20px 20px rgba(0,0,0,0.5), 0 10px 30px rgba(0,0,0,0.8);
    overflow: visible; /* Let the ticket "print" out of it */
}
.phone-pos.is-printer .device-screen-wrapper {
    /* The screen wrapper becomes the "Ticket Paper" */
    background: #fffdf8;
    height: 0; /* Starts inside */
    bottom: 60px;
    position: absolute;
    width: 85%;
    left: 7.5%;
    border-radius: 0;
    border: 1px dashed #d1d5db;
    overflow: hidden;
    animation: print-ticket 10s forwards;
    /* Reset header for ticket look */
}
.phone-pos.is-printer .phone-header {
    background: transparent;
    border-bottom: 2px dashed #9ca3af;
    color: #111827;
}
.phone-pos.is-printer .phone-avatar { display: none; }
.phone-pos.is-printer .phone-chat-info h4 { color: #111827; font-family: monospace; font-size: 1rem; text-align: center; }
.phone-pos.is-printer .phone-chat-info span { color: #4b5563; font-family: monospace; text-align: center; display: block; }
.phone-pos.is-printer .phone-body {
    background: transparent;
    padding: 1rem;
    font-family: monospace;
    color: #111827;
}
.phone-pos.is-printer .message {
    background: transparent !important;
    color: #111827 !important;
    border: none !important;
    border-bottom: 1px dotted #ccc !important;
    border-radius: 0;
    max-width: 100%;
    font-size: 0.8rem;
    padding: 0.2rem 0;
    animation: none; /* Disable slide-in, it just appears on paper */
}
.phone-pos.is-printer .printer-slot {
    opacity: 1;
    width: 90%;
    height: 12px;
    background: #111827;
    border-radius: 10px;
    bottom: 50px;
    left: 5%;
    position: absolute;
    box-shadow: inset 0 4px 6px rgba(0,0,0,0.8);
}
@keyframes print-ticket {
    0% { height: 0; transform: translateY(0); }
    10% { height: 100px; transform: translateY(-100px); }
    30% { height: 150px; transform: translateY(-150px); }
    60% { height: 250px; transform: translateY(-250px); }
    90% { height: 350px; transform: translateY(-350px); }
    100% { height: 400px; transform: translateY(-400px); opacity: 0; }
}

/* 3. LAPTOP (Ecommerce) */
.phone-pos.is-laptop {
    width: 360px;
    height: 220px;
    border-radius: 12px 12px 0 0;
    border: 8px solid #111827;
    border-bottom: 4px solid #374151;
    bottom: 30px;
}
.phone-pos.is-laptop .device-screen-wrapper {
    border-radius: 4px 4px 0 0;
}
.phone-pos.is-laptop .laptop-base {
    opacity: 1;
    width: 440px;
    height: 20px;
    background: #d1d5db; /* Silver base */
    bottom: -24px;
    left: 50%;
    transform: translateX(-50%) perspective(500px) rotateX(30deg);
    border-radius: 4px 4px 10px 10px;
    box-shadow: inset 0 5px 15px rgba(0,0,0,0.2), 0 10px 20px rgba(0,0,0,0.5);
    z-index: 10;
}

/* ========================================================
   THE CLOUD ANIMATION
   ======================================================== */
.cloud-center {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    width: 100px;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent-gold);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}
.cloud-center.active {
    opacity: 1;
}
.cloud-icon {
    filter: drop-shadow(0 0 15px var(--accent-gold));
    animation: float-cloud 3s ease-in-out infinite;
}
@keyframes float-cloud {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.cloud-data-particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #00f2fe;
    border-radius: 50%;
    box-shadow: 0 0 15px #00f2fe, 0 0 30px #00f2fe;
    opacity: 0;
}
.cloud-data-particle.animate-to-cloud {
    animation: move-to-cloud 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
.cloud-data-particle.animate-from-cloud {
    animation: move-from-cloud 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}
@keyframes move-to-cloud {
    0% { transform: translate(-100px, -150px); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(0, 0); opacity: 0; }
}
@keyframes move-from-cloud {
    0% { transform: translate(0, 0); opacity: 0; }
    20% { opacity: 1; }
    100% { transform: translate(0, 200px); opacity: 0; }
}

/* Word-by-Word Illumination Animation */
#experience-text strong {
    color: inherit;
    font-weight: 700;
}

.ill-word {
    display: inline-block;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.ill-word.active {
    animation: word-light 1.5s forwards;
}

@keyframes word-light {
    0% {
        color: #ffffff;
        text-shadow: 0 0 12px #ffffff, 0 0 25px #00f2fe;
        transform: scale(1.05);
    }
    100% {
        color: #d97706; /* Dorado */
        text-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
        transform: scale(1);
    }
}

.ill-word.flash {
    animation: word-flash 2.5s forwards;
}

@keyframes word-flash {
    0% {
        color: #d97706;
        text-shadow: 0 0 8px rgba(217, 119, 6, 0.4);
    }
    15% {
        color: #ffffff;
        text-shadow: 0 0 15px #ffffff, 0 0 30px #ffd700;
    }
    100% {
        color: var(--text-secondary);
        text-shadow: none;
    }
}

/* ========================================================
   RESPONSIVE OVERRIDES & MOBILE OPTIMIZATIONS
   ======================================================== */
@media (max-width: 900px) {
    .mockups-triangle {
        height: 480px;
    }
    .phone-mockup {
        width: 190px;
        height: 320px;
        border-radius: 20px;
        border-width: 6px;
    }
    .phone-ml {
        transform: scale(0.85) rotate(-5deg);
    }
    .phone-tk {
        transform: scale(0.85) rotate(5deg);
    }
    .phone-pos {
        width: 210px;
        height: 360px;
        border-radius: 24px;
        border-width: 6px;
    }
}

@media (max-width: 768px) {
    .module-card.flip-card.security-banner {
        margin: 2rem 1rem 3rem;
        height: 380px;
        min-height: 380px !important;
    }
    .security-banner .card-front,
    .security-banner .card-back {
        padding: 1.5rem;
    }
    .security-terms-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    .term-item p {
        font-size: 0.75rem;
    }
}

@media (max-width: 580px) {
    .mockups-triangle {
        height: 360px;
    }
    .phone-mockup {
        width: 140px;
        height: 240px;
        border-width: 4px;
        border-radius: 16px;
    }
    .phone-ml {
        left: -10px;
        transform: scale(0.8) rotate(-5deg);
    }
    .phone-tk {
        right: -10px;
        transform: scale(0.8) rotate(5deg);
    }
    .phone-pos {
        width: 160px;
        height: 280px;
        border-width: 4px;
        border-radius: 20px;
    }
    .phone-header {
        padding: 0.4rem;
        gap: 0.4rem;
    }
    .phone-avatar {
        width: 18px;
        height: 18px;
        font-size: 0.6rem;
    }
    .phone-chat-info h4 {
        font-size: 0.7rem;
    }
    .phone-chat-info span {
        font-size: 0.5rem;
    }
    .phone-body {
        padding: 0.4rem;
        gap: 0.4rem;
        height: calc(100% - 35px);
    }
    .message {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }
    .module-card.flip-card.security-banner {
        height: 540px;
        min-height: 540px !important;
    }
    .security-terms-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
}
