/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #0F0F0F;
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Variables CSS */
:root {
    --primary-black: #0F0F0F;
    --secondary-black: #1A1A1A;
    --dark-gray: #2A2A2A;
    --light-gray: #6B7280;
    --white: #FFFFFF;
    --off-white: #F8F9FA;
    --accent: #4F46E5;
    --success: #10B981;
    --warning: #F59E0B;
    --error: #EF4444;

    --gradient-primary: linear-gradient(135deg, var(--primary-black), var(--secondary-black));
    --gradient-accent: linear-gradient(135deg, var(--accent), #6366F1);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);

    --border-radius-sm: 0.375rem;
    --border-radius-md: 0.5rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;

    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 15, 15, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.navbar.scrolled {
    background: rgba(15, 15, 15, 0.307);
    border-bottom: 1px solid var(--dark-gray);
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    text-decoration: none;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4F46E5 0%, #7C3AED 100%);
    border-radius: 8px;
    color: var(--white);
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2);
}

.logo-icon svg,
.logo-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
}

.nav-logo:hover .logo-icon {
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--white);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    color: var(--light-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-md);
    transition: var(--transition);
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
    background: var(--secondary-black);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 0.5rem;
}

.bar {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-accent);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-black);
    color: var(--white);
    border: 1px solid var(--dark-gray);
}

.btn-secondary:hover {
    background: var(--dark-gray);
    border-color: var(--light-gray);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
    z-index: 2;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-text {
    animation: fadeInUp 0.8s ease-out;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.accent-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--light-gray);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease-out 0.2s both;
}

.phone-mockup {
    width: 300px;
    height: 600px;
    background: var(--secondary-black);
    border-radius: 2rem;
    padding: 1rem;
    position: relative;
    box-shadow: var(--shadow-xl);
    border: 2px solid var(--dark-gray);
    margin: 0 auto;
    max-width: 90vw;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--primary-black);
    border-radius: 1.5rem;
    overflow: hidden;
    position: relative;
}

.mockup-header {
    padding: 1rem;
    border-bottom: 1px solid var(--dark-gray);
}

.status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    color: var(--light-gray);
}

.indicators {
    display: flex;
    gap: 0.5rem;
}

.app-header {
    display: flex;
    align-items: start;
    justify-content: start;
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--white);
    letter-spacing: -0.02em;
}

.app-header i {
    color: var(--accent);
    font-size: 1.25rem;
}

.mockup-content {
    padding: 1rem;
    height: calc(100% - 120px);
    overflow: hidden;
}

.chat-preview {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    min-height: 300px;
    perspective: 1000px;
}

.message-item {
    display: flex;
    flex-direction: column;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

.message-item.animate-in {
    animation: messageSlideIn 0.5s ease-out forwards;
}

.message-item.animate-out {
    animation: messageDisintegrate 0.8s ease-in forwards;
}

.message-bubble {
    max-width: 80%;
    padding: 0.75rem 1rem 0.5rem 1rem;
    border-radius: 1rem;
    position: relative;
    font-size: 0.875rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
}

.message-bubble.received {
    background: var(--dark-gray);
    color: var(--white);
    align-self: flex-start;
    border-bottom-left-radius: 0.25rem;
}

.message-bubble.sent {
    background: var(--accent);
    color: var(--white);
    align-self: flex-end;
    border-bottom-right-radius: 0.25rem;
}

.message-bubble span:first-child {
    flex: 1;
    word-wrap: break-word;
    margin-bottom: 0.25rem;
}

.message-time {
    display: block;
    font-size: 0.7rem;
    margin-top: 0.5rem;
    text-align: right;
    opacity: 0.8;
    font-weight: 400;
    line-height: 1;
    padding: 0.1rem 0.3rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.1);
    align-self: flex-end;
    width: fit-content;
}

/* Hover effects para mostrar mejor las horas */
.message-bubble:hover .message-time {
    opacity: 1;
    transform: scale(1.05);
    transition: all 0.2s ease;
}

/* Responsive adjustments for message times */
@media (max-width: 768px) {
    .message-time {
        font-size: 0.65rem;
        margin-top: 0.25rem;
        padding: 0.05rem 0.2rem;
    }

    .message-bubble {
        padding: 0.6rem 0.8rem 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
}

/* Estilos específicos para mensajes recibidos */
.message-bubble.received .message-time {
    color: rgba(255, 255, 255, 0.8);
    text-align: left;
    align-self: flex-start;
    background: rgba(0, 0, 0, 0.15);
}

/* Estilos específicos para mensajes enviados */
.message-bubble.sent .message-time {
    color: rgba(255, 255, 255, 0.9);
    text-align: right;
    align-self: flex-end;
    background: rgba(0, 0, 0, 0.2);
}

.message-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    pointer-events: none;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

.particle:nth-child(1) {
    width: 20px;
    height: 20px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    width: 15px;
    height: 15px;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.particle:nth-child(3) {
    width: 25px;
    height: 25px;
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.particle:nth-child(4) {
    width: 12px;
    height: 12px;
    top: 40%;
    right: 30%;
    animation-delay: 1s;
}

.particle:nth-child(5) {
    width: 18px;
    height: 18px;
    bottom: 20%;
    right: 20%;
    animation-delay: 3s;
}

/* Sections */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--light-gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--secondary-black);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: rgba(var(--primary-black), 0.5);
    padding: 2rem;
    border-radius: var(--border-radius-xl);
    border: 1px solid var(--dark-gray);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 1px;
    background: var(--gradient-accent);
    transform: translateY(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.15s;
}

.feature-card .border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-accent);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
}

.feature-card .border-left {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: 1px;
    background: var(--gradient-accent);
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) 0.45s;
}

.feature-card:hover::before {
    transform: translateX(0);
}

.feature-card:hover::after {
    transform: translateY(0);
}

.feature-card:hover .border-bottom {
    transform: translateX(0);
}

.feature-card:hover .border-left {
    transform: translateY(0);
}

.feature-card:hover {
    transform: translateY(-5px);
    border: 2px solid var(--accent);
    box-shadow: var(--shadow-lg);
    transition: transform 0.6s ease 0.6s, border-color 0.6s ease 0.6s, box-shadow 0.6s ease 0.6s;
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--white);
}

.feature-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.feature-description {
    color: var(--light-gray);
    line-height: 1.6;
}

/* How it Works Section */
.how-it-works {
    padding: 80px 0;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.step {
    text-align: center;
    position: relative;
}

.step-number {
    width: 80px;
    height: 80px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
    color: var(--white);
    margin: 0 auto 1.5rem;
}

.step-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--white);
}

.step-description {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Download Section */
.download {
    padding: 80px 0;
    background: var(--secondary-black);
}

.download-content {
    text-align: center;
}

.download-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.download-subtitle {
    font-size: 1.125rem;
    color: var(--light-gray);
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.download-platforms {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-bottom: 2rem;
}

/* Versión Web - Full Width */
.web-platform-section {
    width: 100%;
    margin-bottom: 2rem;
}

.web-platform {
    text-align: center;
}

.web-platform .platform-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    /* max-width: 600px; */
    margin: 0 auto;
}

.web-btn {
    background: var(--gradient-accent);
    border: 2px solid var(--accent);
    position: relative;
    overflow: hidden;
}

.web-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.web-btn:hover::before {
    left: 100%;
}

.web-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(var(--accent-rgb), 0.3);
}

.web-btn .external-icon {
    font-size: 1rem;
    margin-left: auto;
    opacity: 0.7;
}

/* Móvil y Escritorio - Two Columns */
.native-platforms-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.platform-category {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.5rem;
}

.platform-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.platform-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: rgba(var(--primary-black), 0.5);
    border: 1px solid var(--dark-gray);
    border-radius: var(--border-radius-lg);
    text-decoration: none;
    color: var(--white);
    transition: var(--transition);
}

.platform-btn:hover {
    background: var(--dark-gray);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.platform-btn i {
    font-size: 2rem;
    color: var(--accent);
}

.platform-info {
    text-align: left;
}

.platform-name {
    display: block;
    font-weight: 600;
    font-size: 1.125rem;
}

.platform-detail {
    display: block;
    color: var(--light-gray);
    font-size: 0.875rem;
}

.download-note {
    background: var(--primary-black);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--dark-gray);
    max-width: 600px;
    margin: 50px auto;
}

.download-note p {
    color: var(--light-gray);
    margin: 0;
}

.download-note i {
    color: var(--accent);
    margin-right: 0.5rem;
}

.gallery-note {
    background: var(--primary-black);
    padding: 1.5rem;
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--dark-gray);
    max-width: 600px;
    margin: 0 auto;
}

.gallery-note p {
    color: var(--light-gray);
    margin: 0;
}

.gallery-note i {
    color: var(--accent);
    margin-right: 0.5rem;
}

/* About Section */
.about {
    padding: 80px 0;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-description {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.7;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    padding: 1.5rem;
    background: var(--secondary-black);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--dark-gray);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--light-gray);
    font-size: 0.875rem;
    font-weight: 500;
}

.values-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    color: var(--white);
}

.values-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--secondary-black);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--dark-gray);
}

.value-item i {
    font-size: 1.5rem;
    color: var(--accent);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

.value-content h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.5rem;
}

.value-content p {
    color: var(--light-gray);
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: var(--secondary-black);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--primary-black);
    border-radius: var(--border-radius-lg);
    border: 1px solid var(--dark-gray);
}

.contact-item i {
    font-size: 1.5rem;
    color: var(--accent);
    flex-shrink: 0;
}

.contact-details h4 {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--light-gray);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    background: var(--primary-black);
    border: 1px solid var(--dark-gray);
    border-radius: var(--border-radius-md);
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--light-gray);
}

.form-group select {
    cursor: pointer;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    padding: 60px 0 30px;
    background: var(--primary-black);
    border-top: 1px solid var(--dark-gray);
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-logo .logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--gradient-accent);
    border-radius: 5px;
    color: var(--white);
}

.footer-logo .logo-icon svg,
.footer-logo .logo-icon img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.footer-description {
    color: var(--light-gray);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: var(--secondary-black);
    border: 1px solid var(--dark-gray);
    border-radius: 50%;
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.social-link:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

.footer-title {
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-links a {
    color: var(--light-gray);
    text-decoration: none;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--dark-gray);
    color: var(--light-gray);
}

/* Destello central para "Seguro" */
.central-flash {
    position: fixed;
    background: radial-gradient(circle, #00BFFF 0%, #0099FF 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    animation: centralFlashExpand 0.8s ease-out forwards;
}

@keyframes centralFlashExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    30% {
        transform: scale(1.2);
        opacity: 0.9;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Efecto de cristales rotos para "Seguro" */
.crystal-shard {
    position: fixed;
    width: 8px;
    height: 2px;
    background: linear-gradient(45deg, #00BFFF, #0099FF);
    pointer-events: none;
    z-index: 9996;
    animation: crystalShatter 1.8s ease-out forwards;
    transform-origin: center;
}

@keyframes crystalShatter {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    20% {
        transform: scale(1.5) rotate(var(--shard-rotation, 0deg));
        opacity: 0.9;
    }

    100% {
        transform: scale(0.2) rotate(var(--shard-rotation, 0deg)) translateX(var(--shard-x, 0px)) translateY(var(--shard-y, 0px));
        opacity: 0;
    }
}

/* Animaciones para los mensajes */
.message-item {
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

.message-item.animate-in {
    animation: messageSlideIn 0.5s ease-out forwards;
}

.message-item.animate-out {
    animation: messageDisintegrate 0.8s ease-in forwards;
}

@keyframes messageSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.9);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes messageDisintegrate {
    0% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

    50% {
        opacity: 0.3;
        transform: translateY(-10px) scale(1.05);
    }

    100% {
        opacity: 0;
        transform: translateY(-30px) scale(0.8);
        filter: blur(2px);
    }
}

/* Indicador de escritura */
.typing-indicator {
    display: none;
    align-items: center;
    justify-content: flex-start;
    padding: 0.5rem 1rem;
    margin-bottom: 0.5rem;
}

.typing-indicator.active {
    display: flex;
}

.typing-dots {
    background: var(--dark-gray);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.typing-dots span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--light-gray);
    animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dots span:nth-child(1) {
    animation-delay: 0s;
}

.typing-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.typing-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes typingBounce {

    0%,
    60%,
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }

    30% {
        transform: translateY(-10px);
        opacity: 1;
    }
}

/* Efectos especiales para la desintegración */
.message-bubble.disintegrating {
    position: relative;
    overflow: hidden;
}

.message-bubble.disintegrating::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: shimmer 0.5s ease-out;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

/* Animación temática para "Cifrado" - Efecto matriz/encriptación */
.hero-title .accent-text.matrix-effect {
    color: #00ff00 !important;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
    font-family: 'Courier New', monospace;
    animation: matrixGlow 0.1s ease-in-out infinite alternate;
}

@keyframes matrixGlow {
    0% {
        text-shadow: 0 0 5px #00ff00, 0 0 10px #00ff00;
        transform: scale(1);
    }

    100% {
        text-shadow: 0 0 15px #00ff00, 0 0 25px #00ff00, 0 0 35px #00ff00;
        transform: scale(1.02);
    }
}

/* Efecto de caracteres de matriz en background */
.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.matrix-char {
    position: absolute;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    opacity: 0.7;
    animation: matrixFall 2s linear infinite;
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100vh);
        opacity: 1;
    }

    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* Animación temática para "Seguro" - Efecto blindaje/escudo */
.hero-title .accent-text.shield-effect {
    color: #00BFFF !important;
    text-shadow: 0 0 20px #00BFFF, 0 0 40px #00BFFF;
    animation: shieldPulse 0.8s ease-in-out;
    position: relative;
}

@keyframes shieldPulse {
    0% {
        text-shadow: 0 0 5px #00BFFF;
        transform: scale(1);
    }

    25% {
        text-shadow: 0 0 15px #00BFFF, 0 0 25px #00BFFF;
        transform: scale(1.05);
    }

    50% {
        text-shadow: 0 0 25px #00BFFF, 0 0 35px #00BFFF, 0 0 45px #00BFFF;
        transform: scale(1.08);
    }

    75% {
        text-shadow: 0 0 20px #00BFFF, 0 0 30px #00BFFF;
        transform: scale(1.03);
    }

    100% {
        text-shadow: 0 0 10px #00BFFF;
        transform: scale(1);
    }
}

/* Partículas de escudo */
.shield-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #00BFFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    box-shadow: 0 0 10px #00BFFF, 0 0 20px #00BFFF;
    animation: shieldParticleFloat 1.2s ease-out forwards;
}

@keyframes shieldParticleFloat {
    0% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.8;
        transform: scale(1.5);
    }

    100% {
        opacity: 0;
        transform: scale(0.5);
    }
}

/* Efecto de líneas de código para "Cifrado" */
.code-line {
    position: fixed;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    white-space: nowrap;
    pointer-events: none;
    z-index: 9998;
    opacity: 0;
    animation: codeLineSlide 1.5s ease-out forwards;
}

@keyframes codeLineSlide {
    0% {
        opacity: 0;
        transform: translateX(-100px) scale(0.8);
    }

    20% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    80% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }

    100% {
        opacity: 0;
        transform: translateX(100px) scale(0.8);
    }
}

/* Animaciones mejoradas para "Seguro" - Efecto de explosión y destello */
.secure-explosion-effect {
    position: relative;
    display: inline-block;
    animation: secureFlash 0.1s ease-in-out 3, secureShake 0.5s ease-in-out;
}

@keyframes secureFlash {

    0%,
    100% {
        color: inherit;
        text-shadow: none;
    }

    50% {
        color: #00BFFF;
        text-shadow:
            0 0 10px #00BFFF,
            0 0 20px #00BFFF,
            0 0 30px #00BFFF,
            0 0 40px #00BFFF;
    }
}

@keyframes secureShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-2px);
    }

    20% {
        transform: translateX(2px);
    }

    30% {
        transform: translateX(-2px);
    }

    40% {
        transform: translateX(2px);
    }

    50% {
        transform: translateX(-1px);
    }

    60% {
        transform: translateX(1px);
    }

    70% {
        transform: translateX(-1px);
    }

    80% {
        transform: translateX(1px);
    }

    90% {
        transform: translateX(-1px);
    }
}

/* Partículas de explosión para "Seguro" */
.explosion-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #00BFFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: explosionParticle 1.5s ease-out forwards;
    box-shadow: 0 0 6px #00BFFF;
}

@keyframes explosionParticle {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(0) translateX(var(--particle-x, 0px)) translateY(var(--particle-y, 0px));
        opacity: 0;
    }
}

/* Ondas de choque para "Seguro" */
.shockwave {
    position: fixed;
    border: 2px solid #00BFFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: shockwaveExpand 1.2s ease-out forwards;
}

@keyframes shockwaveExpand {
    0% {
        transform: scale(0);
        opacity: 0.8;
        border-color: #00BFFF;
    }

    50% {
        opacity: 0.6;
        border-color: #0099FF;
    }

    100% {
        transform: scale(8);
        opacity: 0;
        border-color: #0066CC;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-black);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .download-platforms {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

    .platform-buttons {
        gap: 0.75rem;
    }

    .platform-btn {
        padding: 0.75rem 1rem;
    }

    .platform-btn i {
        font-size: 1.5rem;
    }
}

/* Responsive breakpoints mejorados para el mockup del teléfono */

/* Tablets grandes (1024px y menos) */
@media (max-width: 1024px) {
    .phone-mockup {
        width: 280px;
        height: 560px;
        padding: 0.9rem;
    }

    .mockup-header {
        padding: 0.8rem;
    }

    .app-header {
        font-size: 1rem;
    }

    .status-bar {
        font-size: 0.8rem;
    }

    .message-bubble {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .message-time {
        font-size: 0.65rem;
    }
}

/* Tablets (768px y menos) */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
        padding: 0.8rem;
        border-radius: 1.5rem;
    }

    .phone-screen {
        border-radius: 1.2rem;
    }

    .mockup-header {
        padding: 0.7rem;
    }

    .app-header {
        font-size: 0.9rem;
    }

    .mockup-content {
        padding: 0.8rem;
        height: calc(100% - 110px);
    }

    .message-bubble {
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
        max-width: 85%;
    }

    .message-time {
        font-size: 0.6rem;
        margin-top: 0.3rem;
    }

    .status-bar {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
}

/* Móviles grandes (480px y menos) */
@media (max-width: 480px) {
    .phone-mockup {
        width: 240px;
        height: 480px;
        padding: 0.7rem;
        border-radius: 1.3rem;
    }

    .phone-screen {
        border-radius: 1rem;
    }

    .mockup-header {
        padding: 0.6rem;
    }

    .app-header {
        font-size: 0.85rem;
    }

    .mockup-content {
        padding: 0.7rem;
        height: calc(100% - 100px);
    }

    .message-bubble {
        font-size: 0.7rem;
        padding: 0.45rem 0.6rem;
        max-width: 90%;
        border-radius: 0.8rem;
    }

    .message-time {
        font-size: 0.55rem;
        margin-top: 0.25rem;
        padding: 0.05rem 0.2rem;
    }

    .status-bar {
        font-size: 0.7rem;
        margin-bottom: 0.7rem;
    }

    .status-bar .indicators {
        gap: 0.3rem;
    }
}

/* Móviles pequeños (360px y menos) */
@media (max-width: 360px) {
    .phone-mockup {
        width: 220px;
        height: 440px;
        padding: 0.6rem;
        border-radius: 1.2rem;
    }

    .phone-screen {
        border-radius: 0.9rem;
    }

    .mockup-header {
        padding: 0.5rem;
    }

    .app-header {
        font-size: 0.8rem;
    }

    .mockup-content {
        padding: 0.6rem;
        height: calc(100% - 90px);
    }

    .message-bubble {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
        max-width: 95%;
        border-radius: 0.7rem;
    }

    .message-time {
        font-size: 0.5rem;
        margin-top: 0.2rem;
        padding: 0.03rem 0.15rem;
    }

    .status-bar {
        font-size: 0.65rem;
        margin-bottom: 0.6rem;
    }

    .status-bar .time {
        font-weight: 600;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 320px) {
    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 0.5rem;
        border-radius: 1rem;
    }

    .mockup-header {
        padding: 0.4rem;
    }

    .app-header {
        font-size: 0.75rem;
    }

    .mockup-content {
        padding: 0.5rem;
        height: calc(100% - 80px);
    }

    .message-bubble {
        font-size: 0.6rem;
        padding: 0.35rem 0.45rem;
        border-radius: 0.6rem;
    }

    .message-time {
        font-size: 0.45rem;
        margin-top: 0.15rem;
    }

    .status-bar {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
    }
}

/* Mejoras para el efecto de blindaje existente */
.shield-effect {
    position: relative;
    animation: shieldActivate 1.2s ease-in-out;
}

@keyframes shieldActivate {
    0% {
        color: inherit;
        text-shadow: none;
    }

    20% {
        color: #00FFFF;
        text-shadow:
            0 0 5px #00FFFF,
            0 0 10px #00FFFF,
            0 0 15px #00FFFF;
    }

    40% {
        color: #0080FF;
        text-shadow:
            0 0 8px #0080FF,
            0 0 16px #0080FF,
            0 0 24px #0080FF;
    }

    60% {
        color: #00BFFF;
        text-shadow:
            0 0 10px #00BFFF,
            0 0 20px #00BFFF,
            0 0 30px #00BFFF;
    }

    80% {
        color: #0066CC;
        text-shadow:
            0 0 12px #0066CC,
            0 0 24px #0066CC,
            0 0 36px #0066CC;
    }

    100% {
        color: inherit;
        text-shadow: none;
    }
}

/* Partículas de escudo mejoradas */
.shield-particle {
    position: fixed;
    width: 3px;
    height: 3px;
    background: #00FFFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9995;
    animation: shieldParticleEnhanced 1.5s ease-out forwards;
    box-shadow: 0 0 4px #00FFFF;
}

@keyframes shieldParticleEnhanced {
    0% {
        transform: scale(1);
        opacity: 1;
        background: #00FFFF;
    }

    25% {
        transform: scale(1.3);
        opacity: 0.9;
        background: #0080FF;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.7;
        background: #00BFFF;
    }

    75% {
        transform: scale(0.8);
        opacity: 0.4;
        background: #0066CC;
    }

    100% {
        transform: scale(0) translateX(var(--shield-x, 0px)) translateY(var(--shield-y, 0px));
        opacity: 0;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-black);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .download-platforms {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

    .platform-buttons {
        gap: 0.75rem;
    }

    .platform-btn {
        padding: 0.75rem 1rem;
    }

    .platform-btn i {
        font-size: 1.5rem;
    }
}

/* Responsive breakpoints mejorados para el mockup del teléfono */

/* Tablets grandes (1024px y menos) */
@media (max-width: 1024px) {
    .phone-mockup {
        width: 280px;
        height: 560px;
        padding: 0.9rem;
    }

    .mockup-header {
        padding: 0.8rem;
    }

    .app-header {
        font-size: 1rem;
    }

    .status-bar {
        font-size: 0.8rem;
    }

    .message-bubble {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .message-time {
        font-size: 0.65rem;
    }
}

/* Tablets (768px y menos) */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
        padding: 0.8rem;
        border-radius: 1.5rem;
    }

    .phone-screen {
        border-radius: 1.2rem;
    }

    .mockup-header {
        padding: 0.7rem;
    }

    .app-header {
        font-size: 0.9rem;
    }

    .mockup-content {
        padding: 0.8rem;
        height: calc(100% - 110px);
    }

    .message-bubble {
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
        max-width: 85%;
    }

    .message-time {
        font-size: 0.6rem;
        margin-top: 0.3rem;
    }

    .status-bar {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
}

/* Móviles grandes (480px y menos) */
@media (max-width: 480px) {
    .phone-mockup {
        width: 240px;
        height: 480px;
        padding: 0.7rem;
        border-radius: 1.3rem;
    }

    .phone-screen {
        border-radius: 1rem;
    }

    .mockup-header {
        padding: 0.6rem;
    }

    .app-header {
        font-size: 0.85rem;
    }

    .mockup-content {
        padding: 0.7rem;
        height: calc(100% - 100px);
    }

    .message-bubble {
        font-size: 0.7rem;
        padding: 0.45rem 0.6rem;
        max-width: 90%;
        border-radius: 0.8rem;
    }

    .message-time {
        font-size: 0.55rem;
        margin-top: 0.25rem;
        padding: 0.05rem 0.2rem;
    }

    .status-bar {
        font-size: 0.7rem;
        margin-bottom: 0.7rem;
    }

    .status-bar .indicators {
        gap: 0.3rem;
    }
}

/* Móviles pequeños (360px y menos) */
@media (max-width: 360px) {
    .phone-mockup {
        width: 220px;
        height: 440px;
        padding: 0.6rem;
        border-radius: 1.2rem;
    }

    .phone-screen {
        border-radius: 0.9rem;
    }

    .mockup-header {
        padding: 0.5rem;
    }

    .app-header {
        font-size: 0.8rem;
    }

    .mockup-content {
        padding: 0.6rem;
        height: calc(100% - 90px);
    }

    .message-bubble {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
        max-width: 95%;
        border-radius: 0.7rem;
    }

    .message-time {
        font-size: 0.5rem;
        margin-top: 0.2rem;
        padding: 0.03rem 0.15rem;
    }

    .status-bar {
        font-size: 0.65rem;
        margin-bottom: 0.6rem;
    }

    .status-bar .time {
        font-weight: 600;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 320px) {
    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 0.5rem;
        border-radius: 1rem;
    }

    .mockup-header {
        padding: 0.4rem;
    }

    .app-header {
        font-size: 0.75rem;
    }

    .mockup-content {
        padding: 0.5rem;
        height: calc(100% - 80px);
    }

    .message-bubble {
        font-size: 0.6rem;
        padding: 0.35rem 0.45rem;
        border-radius: 0.6rem;
    }

    .message-time {
        font-size: 0.45rem;
        margin-top: 0.15rem;
    }

    .status-bar {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
    }
}

/* Animaciones para fragmentación de texto (Efímero) */
.text-fragment-container {
    position: relative;
    display: inline-block;
}

.text-fragment {
    position: absolute;
    display: inline-block;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
}

.text-cracking .text-fragment {
    animation: fragmentExplosion 1s ease-out forwards;
}

@keyframes fragmentExplosion {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.1) rotate(var(--random-rotation, 0deg));
        opacity: 0.8;
    }

    100% {
        transform: scale(0.3) translateX(var(--random-x, 0px)) translateY(var(--random-y, 0px)) rotate(var(--random-rotation, 0deg));
        opacity: 0;
    }
}

/* Variaciones de fragmentos para más aleatoriedad */
.fragment-1 {
    --random-x: -80px;
    --random-y: -60px;
    --random-rotation: -45deg;
}

.fragment-2 {
    --random-x: 90px;
    --random-y: -40px;
    --random-rotation: 30deg;
}

.fragment-3 {
    --random-x: -60px;
    --random-y: 70px;
    --random-rotation: -60deg;
}

.fragment-4 {
    --random-x: 110px;
    --random-y: 50px;
    --random-rotation: 90deg;
}

.fragment-5 {
    --random-x: -40px;
    --random-y: -90px;
    --random-rotation: -30deg;
}

.fragment-6 {
    --random-x: 70px;
    --random-y: 80px;
    --random-rotation: 120deg;
}

/* Animaciones mejoradas para "Seguro" - Efecto de explosión y destello */
.secure-explosion-effect {
    position: relative;
    display: inline-block;
    animation: secureFlash 0.1s ease-in-out 3, secureShake 0.5s ease-in-out;
}

@keyframes secureFlash {

    0%,
    100% {
        color: inherit;
        text-shadow: none;
    }

    50% {
        color: #00BFFF;
        text-shadow:
            0 0 10px #00BFFF,
            0 0 20px #00BFFF,
            0 0 30px #00BFFF,
            0 0 40px #00BFFF;
    }
}

@keyframes secureShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-2px);
    }

    20% {
        transform: translateX(2px);
    }

    30% {
        transform: translateX(-2px);
    }

    40% {
        transform: translateX(2px);
    }

    50% {
        transform: translateX(-1px);
    }

    60% {
        transform: translateX(1px);
    }

    70% {
        transform: translateX(-1px);
    }

    80% {
        transform: translateX(1px);
    }

    90% {
        transform: translateX(-1px);
    }
}

/* Partículas de explosión para "Seguro" */
.explosion-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #00BFFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: explosionParticle 1.5s ease-out forwards;
    box-shadow: 0 0 6px #00BFFF;
}

@keyframes explosionParticle {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(0) translateX(var(--particle-x, 0px)) translateY(var(--particle-y, 0px));
        opacity: 0;
    }
}

/* Ondas de choque para "Seguro" */
.shockwave {
    position: fixed;
    border: 2px solid #00BFFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: shockwaveExpand 1.2s ease-out forwards;
}

@keyframes shockwaveExpand {
    0% {
        transform: scale(0);
        opacity: 0.8;
        border-color: #00BFFF;
    }

    50% {
        opacity: 0.6;
        border-color: #0099FF;
    }

    100% {
        transform: scale(8);
        opacity: 0;
        border-color: #0066CC;
    }
}

/* Destello central para "Seguro" */
.central-flash {
    position: fixed;
    background: radial-gradient(circle, #00BFFF 0%, #0099FF 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    animation: centralFlashExpand 0.8s ease-out forwards;
}

@keyframes centralFlashExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    30% {
        transform: scale(1.2);
        opacity: 0.9;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Efecto de cristales rotos para "Seguro" */
.crystal-shard {
    position: fixed;
    width: 8px;
    height: 2px;
    background: linear-gradient(45deg, #00BFFF, #0099FF);
    pointer-events: none;
    z-index: 9996;
    animation: crystalShatter 1.8s ease-out forwards;
    transform-origin: center;
}

@keyframes crystalShatter {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    20% {
        transform: scale(1.5) rotate(var(--shard-rotation, 0deg));
        opacity: 0.9;
    }

    100% {
        transform: scale(0.2) rotate(var(--shard-rotation, 0deg)) translateX(var(--shard-x, 0px)) translateY(var(--shard-y, 0px));
        opacity: 0;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-black);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .download-platforms {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

    .platform-buttons {
        gap: 0.75rem;
    }

    .platform-btn {
        padding: 0.75rem 1rem;
    }

    .platform-btn i {
        font-size: 1.5rem;
    }
}

/* Responsive breakpoints mejorados para el mockup del teléfono */

/* Tablets grandes (1024px y menos) */
@media (max-width: 1024px) {
    .phone-mockup {
        width: 280px;
        height: 560px;
        padding: 0.9rem;
    }

    .mockup-header {
        padding: 0.8rem;
    }

    .app-header {
        font-size: 1rem;
    }

    .status-bar {
        font-size: 0.8rem;
    }

    .message-bubble {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .message-time {
        font-size: 0.65rem;
    }
}

/* Tablets (768px y menos) */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
        padding: 0.8rem;
        border-radius: 1.5rem;
    }

    .phone-screen {
        border-radius: 1.2rem;
    }

    .mockup-header {
        padding: 0.7rem;
    }

    .app-header {
        font-size: 0.9rem;
    }

    .mockup-content {
        padding: 0.8rem;
        height: calc(100% - 110px);
    }

    .message-bubble {
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
        max-width: 85%;
    }

    .message-time {
        font-size: 0.6rem;
        margin-top: 0.3rem;
    }

    .status-bar {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
}

/* Móviles grandes (480px y menos) */
@media (max-width: 480px) {
    .phone-mockup {
        width: 240px;
        height: 480px;
        padding: 0.7rem;
        border-radius: 1.3rem;
    }

    .phone-screen {
        border-radius: 1rem;
    }

    .mockup-header {
        padding: 0.6rem;
    }

    .app-header {
        font-size: 0.85rem;
    }

    .mockup-content {
        padding: 0.7rem;
        height: calc(100% - 100px);
    }

    .message-bubble {
        font-size: 0.7rem;
        padding: 0.45rem 0.6rem;
        max-width: 90%;
        border-radius: 0.8rem;
    }

    .message-time {
        font-size: 0.55rem;
        margin-top: 0.25rem;
        padding: 0.05rem 0.2rem;
    }

    .status-bar {
        font-size: 0.7rem;
        margin-bottom: 0.7rem;
    }

    .status-bar .indicators {
        gap: 0.3rem;
    }
}

/* Móviles pequeños (360px y menos) */
@media (max-width: 360px) {
    .phone-mockup {
        width: 220px;
        height: 440px;
        padding: 0.6rem;
        border-radius: 1.2rem;
    }

    .phone-screen {
        border-radius: 0.9rem;
    }

    .mockup-header {
        padding: 0.5rem;
    }

    .app-header {
        font-size: 0.8rem;
    }

    .mockup-content {
        padding: 0.6rem;
        height: calc(100% - 90px);
    }

    .message-bubble {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
        max-width: 95%;
        border-radius: 0.7rem;
    }

    .message-time {
        font-size: 0.5rem;
        margin-top: 0.2rem;
        padding: 0.03rem 0.15rem;
    }

    .status-bar {
        font-size: 0.65rem;
        margin-bottom: 0.6rem;
    }

    .status-bar .time {
        font-weight: 600;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 320px) {
    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 0.5rem;
        border-radius: 1rem;
    }

    .mockup-header {
        padding: 0.4rem;
    }

    .app-header {
        font-size: 0.75rem;
    }

    .mockup-content {
        padding: 0.5rem;
        height: calc(100% - 80px);
    }

    .message-bubble {
        font-size: 0.6rem;
        padding: 0.35rem 0.45rem;
        border-radius: 0.6rem;
    }

    .message-time {
        font-size: 0.45rem;
        margin-top: 0.15rem;
    }

    .status-bar {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
    }
}

/* Animaciones para fragmentación de texto (Efímero) */
.text-fragment-container {
    position: relative;
    display: inline-block;
}

.text-fragment {
    position: absolute;
    display: inline-block;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
}

.text-cracking .text-fragment {
    animation: fragmentExplosion 1s ease-out forwards;
}

@keyframes fragmentExplosion {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.1) rotate(var(--random-rotation, 0deg));
        opacity: 0.8;
    }

    100% {
        transform: scale(0.3) translateX(var(--random-x, 0px)) translateY(var(--random-y, 0px)) rotate(var(--random-rotation, 0deg));
        opacity: 0;
    }
}

/* Variaciones de fragmentos para más aleatoriedad */
.fragment-1 {
    --random-x: -80px;
    --random-y: -60px;
    --random-rotation: -45deg;
}

.fragment-2 {
    --random-x: 90px;
    --random-y: -40px;
    --random-rotation: 30deg;
}

.fragment-3 {
    --random-x: -60px;
    --random-y: 70px;
    --random-rotation: -60deg;
}

.fragment-4 {
    --random-x: 110px;
    --random-y: 50px;
    --random-rotation: 90deg;
}

.fragment-5 {
    --random-x: -40px;
    --random-y: -90px;
    --random-rotation: -30deg;
}

.fragment-6 {
    --random-x: 70px;
    --random-y: 80px;
    --random-rotation: 120deg;
}

/* Animaciones mejoradas para "Seguro" - Efecto de explosión y destello */
.secure-explosion-effect {
    position: relative;
    display: inline-block;
    animation: secureFlash 0.1s ease-in-out 3, secureShake 0.5s ease-in-out;
}

@keyframes secureFlash {

    0%,
    100% {
        color: inherit;
        text-shadow: none;
    }

    50% {
        color: #00BFFF;
        text-shadow:
            0 0 10px #00BFFF,
            0 0 20px #00BFFF,
            0 0 30px #00BFFF,
            0 0 40px #00BFFF;
    }
}

@keyframes secureShake {

    0%,
    100% {
        transform: translateX(0);
    }

    10% {
        transform: translateX(-2px);
    }

    20% {
        transform: translateX(2px);
    }

    30% {
        transform: translateX(-2px);
    }

    40% {
        transform: translateX(2px);
    }

    50% {
        transform: translateX(-1px);
    }

    60% {
        transform: translateX(1px);
    }

    70% {
        transform: translateX(-1px);
    }

    80% {
        transform: translateX(1px);
    }

    90% {
        transform: translateX(-1px);
    }
}

/* Partículas de explosión para "Seguro" */
.explosion-particle {
    position: fixed;
    width: 4px;
    height: 4px;
    background: #00BFFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    animation: explosionParticle 1.5s ease-out forwards;
    box-shadow: 0 0 6px #00BFFF;
}

@keyframes explosionParticle {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.5);
        opacity: 0.8;
    }

    100% {
        transform: scale(0) translateX(var(--particle-x, 0px)) translateY(var(--particle-y, 0px));
        opacity: 0;
    }
}

/* Ondas de choque para "Seguro" */
.shockwave {
    position: fixed;
    border: 2px solid #00BFFF;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9998;
    animation: shockwaveExpand 1.2s ease-out forwards;
}

@keyframes shockwaveExpand {
    0% {
        transform: scale(0);
        opacity: 0.8;
        border-color: #00BFFF;
    }

    50% {
        opacity: 0.6;
        border-color: #0099FF;
    }

    100% {
        transform: scale(8);
        opacity: 0;
        border-color: #0066CC;
    }
}

/* Destello central para "Seguro" */
.central-flash {
    position: fixed;
    background: radial-gradient(circle, #00BFFF 0%, #0099FF 30%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9997;
    animation: centralFlashExpand 0.8s ease-out forwards;
}

@keyframes centralFlashExpand {
    0% {
        transform: scale(0);
        opacity: 1;
    }

    30% {
        transform: scale(1.2);
        opacity: 0.9;
    }

    100% {
        transform: scale(3);
        opacity: 0;
    }
}

/* Efecto de cristales rotos para "Seguro" */
.crystal-shard {
    position: fixed;
    width: 8px;
    height: 2px;
    background: linear-gradient(45deg, #00BFFF, #0099FF);
    pointer-events: none;
    z-index: 9996;
    animation: crystalShatter 1.8s ease-out forwards;
    transform-origin: center;
}

@keyframes crystalShatter {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    20% {
        transform: scale(1.5) rotate(var(--shard-rotation, 0deg));
        opacity: 0.9;
    }

    100% {
        transform: scale(0.2) rotate(var(--shard-rotation, 0deg)) translateX(var(--shard-x, 0px)) translateY(var(--shard-y, 0px));
        opacity: 0;
    }
}

/* Scroll Animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--primary-black);
}

::-webkit-scrollbar-thumb {
    background: var(--dark-gray);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--light-gray);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--primary-black);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 2rem;
        transition: var(--transition);
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.active .bar:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active .bar:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active .bar:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .steps-container {
        grid-template-columns: 1fr;
    }

    .download-platforms {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-stats {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .hero-buttons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 0.75rem;
    }

    .hero {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.8rem;
    }

    .platform-buttons {
        gap: 0.75rem;
    }

    .platform-btn {
        padding: 0.75rem 1rem;
    }

    .platform-btn i {
        font-size: 1.5rem;
    }
}

/* Responsive breakpoints mejorados para el mockup del teléfono */

/* Tablets grandes (1024px y menos) */
@media (max-width: 1024px) {
    .phone-mockup {
        width: 280px;
        height: 560px;
        padding: 0.9rem;
    }

    .mockup-header {
        padding: 0.8rem;
    }

    .app-header {
        font-size: 1rem;
    }

    .status-bar {
        font-size: 0.8rem;
    }

    .message-bubble {
        font-size: 0.8rem;
        padding: 0.6rem 0.8rem;
    }

    .message-time {
        font-size: 0.65rem;
    }
}

/* Tablets (768px y menos) */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }

    .hero-content {
        order: 2;
    }

    .hero-image {
        order: 1;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
        padding: 0.8rem;
        border-radius: 1.5rem;
    }

    .phone-screen {
        border-radius: 1.2rem;
    }

    .mockup-header {
        padding: 0.7rem;
    }

    .app-header {
        font-size: 0.9rem;
    }

    .mockup-content {
        padding: 0.8rem;
        height: calc(100% - 110px);
    }

    .message-bubble {
        font-size: 0.75rem;
        padding: 0.5rem 0.7rem;
        max-width: 85%;
    }

    .message-time {
        font-size: 0.6rem;
        margin-top: 0.3rem;
    }

    .status-bar {
        font-size: 0.75rem;
        margin-bottom: 0.8rem;
    }
}

/* Móviles grandes (480px y menos) */
@media (max-width: 480px) {
    .phone-mockup {
        width: 240px;
        height: 480px;
        padding: 0.7rem;
        border-radius: 1.3rem;
    }

    .phone-screen {
        border-radius: 1rem;
    }

    .mockup-header {
        padding: 0.6rem;
    }

    .app-header {
        font-size: 0.85rem;
    }

    .mockup-content {
        padding: 0.7rem;
        height: calc(100% - 100px);
    }

    .message-bubble {
        font-size: 0.7rem;
        padding: 0.45rem 0.6rem;
        max-width: 90%;
        border-radius: 0.8rem;
    }

    .message-time {
        font-size: 0.55rem;
        margin-top: 0.25rem;
        padding: 0.05rem 0.2rem;
    }

    .status-bar {
        font-size: 0.7rem;
        margin-bottom: 0.7rem;
    }

    .status-bar .indicators {
        gap: 0.3rem;
    }
}

/* Móviles pequeños (360px y menos) */
@media (max-width: 360px) {
    .phone-mockup {
        width: 220px;
        height: 440px;
        padding: 0.6rem;
        border-radius: 1.2rem;
    }

    .phone-screen {
        border-radius: 0.9rem;
    }

    .mockup-header {
        padding: 0.5rem;
    }

    .app-header {
        font-size: 0.8rem;
    }

    .mockup-content {
        padding: 0.6rem;
        height: calc(100% - 90px);
    }

    .message-bubble {
        font-size: 0.65rem;
        padding: 0.4rem 0.5rem;
        max-width: 95%;
        border-radius: 0.7rem;
    }

    .message-time {
        font-size: 0.5rem;
        margin-top: 0.2rem;
        padding: 0.03rem 0.15rem;
    }

    .status-bar {
        font-size: 0.65rem;
        margin-bottom: 0.6rem;
    }

    .status-bar .time {
        font-weight: 600;
    }
}

/* Ajustes para pantallas muy pequeñas */
@media (max-width: 320px) {
    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 0.5rem;
        border-radius: 1rem;
    }

    .mockup-header {
        padding: 0.4rem;
    }

    .app-header {
        font-size: 0.75rem;
    }

    .mockup-content {
        padding: 0.5rem;
        height: calc(100% - 80px);
    }

    .message-bubble {
        font-size: 0.6rem;
        padding: 0.35rem 0.45rem;
        border-radius: 0.6rem;
    }

    .message-time {
        font-size: 0.45rem;
        margin-top: 0.15rem;
    }

    .status-bar {
        font-size: 0.6rem;
        margin-bottom: 0.5rem;
    }
}

/* Animaciones para fragmentación de texto (Efímero) */
.text-fragment-container {
    position: relative;
    display: inline-block;
}

.text-fragment {
    position: absolute;
    display: inline-block;
    transition: all 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    will-change: transform, opacity;
}

.text-cracking .text-fragment {
    animation: fragmentExplosion 1s ease-out forwards;
}

@keyframes fragmentExplosion {
    0% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }

    50% {
        transform: scale(1.1) rotate(var(--random-rotation, 0deg));
        opacity: 0.8;
    }

    100% {
        transform: scale(0.3) translateX(var(--random-x, 0px)) translateY(var(--random-y, 0px)) rotate(var(--random-rotation, 0deg));
        opacity: 0;
    }
}

/* Variaciones de fragmentos para más aleatoriedad */
.fragment-1 {
    --random-x: -80px;
    --random-y: -60px;
    --random-rotation: -45deg;
}

.fragment-2 {
    --random-x: 90px;
    --random-y: -40px;
    --random-rotation: 30deg;
}

.fragment-3 {
    --random-x: -60px;
    --random-y: 70px;
    --random-rotation: -60deg;
}

.fragment-4 {
    --random-x: 110px;
    --random-y: 50px;
    --random-rotation: 90deg;
}

.fragment-5 {
    --random-x: -40px;
    --random-y: -90px;
    --random-rotation: -30deg;
}

.fragment-6 {
    --random-x: 70px;
    --random-y: 80px;
    --random-rotation: 120deg;
}


/* CTA */
/* Icono de fondo decorativo para secciones, estilo silueta grande y girada a la derecha */
.section-bg-icon {
    position: absolute;
    top: 50%;
    z-index: 0;
    opacity: 0.045;
    font-size: 32vw;
    color: var(--accent, #4F46E5);
    pointer-events: none;
    user-select: none;
    width: 1em;
    height: 1em;
    line-height: 1em;
    filter: blur(0.5px);
    transform: translateY(-50%) rotate(-18deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-bg-icon svg.bg-svg-icon {
    width: 1em;
    height: 1em;
    display: block;
    fill: currentColor;
}

.section-bg-icon-right {
    right: 0;
    left: auto;
}

.section-bg-icon-left {
    left: 0;
    right: auto;
    transform: translateY(-50%) rotate(18deg);
}

.hero,
.features,
.how-it-works,
.download,
.about,
.contact {
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.gallery {
    padding: 80px 0;
    background: var(--secondary-black);
    position: relative;
    z-index: 1;
    overflow: hidden;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.gallery-item {
    background: rgba(var(--primary-black), 0.5);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 24px 0 rgba(0, 0, 0, 0.12);
    transition: transform 0.2s;
}

.gallery-item img {
    width: 100%;
    display: block;
    border-radius: var(--border-radius-xl);
    object-fit: cover;
    transition: transform 0.2s;
}

.gallery-item:hover {
    transform: scale(1.04);
}

.gallery-item img:hover {
    transform: scale(1.06);
}

/* Estilos para el modal de la galería (lightbox) */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content {
    max-width: 90%;
    max-height: 80%;
    margin: 0 auto;
    border-radius: var(--border-radius-xl);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 20px;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: color 0.3s;
}

.lightbox-close {
    right: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    left: 60px;
}

.lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    text-align: center;
    font-size: 16px;
    max-width: 80%;
}

/* Lightbox styles */
.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background: rgba(18, 18, 22, 0.96);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.2s;
}

.gallery-lightbox[aria-hidden="false"] {
    display: flex;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    border-radius: 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    margin-bottom: 1rem;
    background: #222;
    object-fit: contain;
}

.lightbox-caption {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    text-align: center;
    max-width: 80vw;
    word-break: break-word;
}

.lightbox-close {
    position: absolute;
    top: 2.5rem;
    right: 3.5rem;
    color: #fff;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10001;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 50%;
    padding: 0.2em 0.5em;
    transition: background 0.2s;
}

.lightbox-close:hover {
    background: rgba(0, 0, 0, 0.5);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    border: none;
    color: #fff;
    font-size: 2.2rem;
    padding: 0.2em 0.5em;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10001;
    transition: background 0.2s;
}

.lightbox-prev {
    left: 2.5rem;
}

.lightbox-next {
    right: 2.5rem;
}

.lightbox-nav:hover {
    background: rgba(0, 0, 0, 0.6);
}

/* Botón CTA en el navbar */
.nav-cta-btn {
    background: var(--gradient-accent);
    color: var(--white) !important;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    margin-left: 1rem;
}

.nav-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(79, 70, 229, 0.4);
    background: linear-gradient(135deg, #5B52E8 0%, #8B4AED 100%);
}

.nav-cta-btn i {
    font-size: 0.8rem;
}

@media (max-width: 768px) {
    .nav-cta-btn {
        margin-left: 0;
        margin-top: 0.75rem;
        width: auto;
        justify-content: center;
        padding: 0.5rem 0.8rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .nav-cta-btn {
        margin-top: 0.5rem;
        padding: 0.4rem 0.7rem;
        font-size: 0.75rem;
        gap: 0.3rem;
    }
}

@media (max-width: 600px) {
    .lightbox-img {
        max-width: 98vw;
        max-height: 60vh;
    }

    .lightbox-close {
        top: 1rem;
        right: 1.2rem;
        font-size: 2rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }
}