/* Variables Globales y Reset - Tema Oscuro Innovador Samerp */
:root {
    --primary: #1d4ed8;
    /* Azul Samerp */
    --cyan: #06b6d4;
    /* Cyan */
    --orange: #f97316;
    /* Naranja */
    --gray-dark: #0f172a;
    /* Fondo Principal */
    --gray-alt: #1e293b;
    /* Fondo Secundario */
    --gray-light: #94a3b8;
    /* Gris para textos */
    --text-main: #f8fafc;

    --glass-bg: rgba(30, 41, 59, 0.4);
    --glass-border: rgba(6, 182, 212, 0.2);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-family: 'Roboto', sans-serif;
    --transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

body.light-theme {
    --gray-dark: #f8fafc;
    --gray-alt: #f1f5f9;
    --text-main: #0f172a;
    --gray-light: #475569;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(6, 182, 212, 0.3);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.1);
}

body.light-theme .navbar {
    background: rgba(248, 250, 252, 0.8);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .feature-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

body.light-theme .feature-icon {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .mockup-header {
    background: rgba(0, 0, 0, 0.05);
}

body.light-theme .ui-sidebar {
    background: rgba(255, 255, 255, 0.5) !important;
}

body.light-theme .ui-card {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

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

html, body {
    overflow-x: hidden;
    width: 100%;
}

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--gray-dark);
    line-height: 1.6;
    position: relative;
}

/* Background Glowing Orbs */
body::before,
body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    opacity: 0.15;
    animation: drift 15s infinite alternate ease-in-out;
}

body::before {
    top: -100px;
    left: -200px;
    background: var(--primary);
}

body::after {
    top: 40vh;
    right: -200px;
    background: var(--cyan);
}

@keyframes drift {
    0% {
        transform: translate(0, 0) scale(1);
    }

    100% {
        transform: translate(50px, 50px) scale(1.1);
    }
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 10;
}

/* Tipografía */
h1,
h2,
h3,
h4 {
    font-weight: 900;
    letter-spacing: -0.02em;
}

.highlight {
    background: linear-gradient(135deg, var(--cyan), var(--primary));
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight-color {
    color: var(--cyan) !important;
}

.success-color {
    color: var(--orange) !important;
}

p {
    color: var(--gray-light);
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
    border: 2px solid transparent;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
}

.btn-primary {
    background: linear-gradient(90deg, var(--primary), var(--cyan));
    color: #fff;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    border-color: var(--cyan);
    box-shadow: 0 15px 25px rgba(6, 182, 212, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border-color: var(--gray-light);
}

.btn-outline:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.btn-lg {
    padding: 12px 24px;
    font-size: 0.85rem;
}

.btn-xl {
    padding: 14px 28px;
    font-size: 0.9rem;
    border-radius: 50px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 1000;
    transition: var(--transition);
}

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

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 500;
    position: relative;
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 16px;
}

/* Hero Section */
.hero {
    padding: 200px 0 120px;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(249, 116, 22, 0);
    color: rgb(249, 154, 22);
    border: 2px solid rgb(249, 154, 22);
    border-radius: 20px;
    font-weight: 700;
    margin-bottom: 24px;
}

.hero-title {
    font-size: 2.2rem;
    line-height: 1.1;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-subtitle {
    font-size: 1rem;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.trial-text {
    font-size: 0.85rem;
    color: var(--gray-light);
    margin-left: 12px;
    text-transform: none;
    font-weight: 400;
}

/* Mockup Innovador 3D-ish */
.hero-visual {
    position: relative;
    width: 100%;
    height: 500px;
    perspective: 1000px;
}

.abstract-mockup {
    width: 100%;
    height: 100%;
    background: var(--glass-bg);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.abstract-mockup:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    height: 40px;
    background: rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    padding: 0 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dots {
    display: flex;
    gap: 8px;
}

.dots span {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #334155;
}

.dots span:nth-child(1) {
    background: #ef4444;
}

.dots span:nth-child(2) {
    background: #eab308;
}

.dots span:nth-child(3) {
    background: #22c55e;
}

.mockup-body {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
}

.ui-sidebar {
    width: 60px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.ui-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ui-card {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px;
    flex: 1;
}

.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex: 0 0 auto;
    height: 80px;
}

.ui-line {
    height: 10px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    margin-bottom: 10px;
}

.ui-line-lg {
    width: 150px;
}

.ui-line-md {
    width: 100px;
}

.ui-line-sm {
    width: 70px;
    background: var(--cyan);
}

.ui-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--orange);
}

.ui-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 20px;
    flex: 1;
}

.ui-chart-bar {
    width: 25%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px 4px 0 0;
    display: inline-block;
    margin-right: 5%;
    vertical-align: bottom;
}

.highlight-bar {
    background: var(--primary);
    box-shadow: 0 0 15px var(--primary);
}

.floating-card {
    position: absolute;
    background: var(--gray-alt);
    border: 1px solid var(--cyan);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.2);
    animation: float 6s ease-in-out infinite;
    z-index: 5;
}

.float-1 {
    top: 5%;
    right: -10px;
    animation-delay: 0s;
}

.float-2 {
    bottom: 10%;
    left: -10px;
    animation-delay: 2s;
    border-color: var(--orange);
    box-shadow: 0 10px 30px rgba(249, 115, 22, 0.15);
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* Features Section (Asymmetrical Grid) */
.features-section {
    padding: 120px 0;
    background: var(--gray-alt);
    position: relative;
}

.features-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan), transparent);
    opacity: 0.3;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 80px;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.section-subtitle {
    font-size: 1.2rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
    perspective: 1200px;
}

.features-grid:has(.feature-card:hover) .feature-card:not(:hover) {
    opacity: 0.4;
    transform: translateY(0) perspective(1000px) rotateY(-10deg) rotateX(5deg) scale(0.98);
    transition: all 0.4s ease;
}

.feature-card {
    background: #0f172a;
    backdrop-filter: blur(15px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.feature-card.reveal.active {
    transform: translateY(0) perspective(1000px) rotateY(-10deg) rotateX(5deg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: var(--cyan);
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

/* Efecto de brillo (Shimmer) */
.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right,
            rgba(255, 255, 255, 0) 0%,
            rgba(255, 255, 255, 0.08) 50%,
            rgba(255, 255, 255, 0) 100%);
    transform: skewX(-20deg);
    transition: none;
    z-index: 0;
}

.feature-card.reveal.active:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
    border-color: rgba(6, 182, 212, 0.4);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.1);
    z-index: 2;
}

.feature-card.reveal.active:hover::after {
    left: 200%;
    transition: left 0.7s ease;
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card:nth-child(1) {
    grid-column: span 7;
}

.feature-card:nth-child(2) {
    grid-column: span 5;
}

.feature-card:nth-child(3) {
    grid-column: span 5;
}

.feature-card:nth-child(4) {
    grid-column: span 7;
}

.feature-card:nth-child(odd) .feature-icon {
    color: var(--cyan);
    border-color: rgba(6, 182, 212, 0.2);
}

.feature-card:nth-child(even) .feature-icon {
    color: var(--orange);
    border-color: rgba(249, 115, 22, 0.2);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin-bottom: 24px;
    border: 1px solid transparent;
    transition: all 0.4s ease;
}

.feature-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
    transition: all 0.4s ease;
}

.feature-desc {
    opacity: 0;
    min-height: 80px;
    /* keep height to prevent layout shift */
    transition: opacity 0.3s ease;
}

.feature-card.reveal.active .feature-desc {
    opacity: 1;
    transform: translateY(0);
}

/* Details Section */
.details-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.details-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.details-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 30px;
}

.details-list li {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 1.2rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.details-list i {
    font-size: 1.5rem;
    color: var(--orange);
}

.details-visual {
    perspective: 1000px;
}

.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 2px solid var(--cyan);
    border-radius: 30px;
    padding: 30px;
    box-shadow: 0 0 50px rgba(6, 182, 212, 0.1);
    transform: rotateY(-20deg) rotateX(10deg);
    transition: transform 0.5s ease;
}

.glass-panel:hover {
    transform: rotateY(0deg) rotateX(0deg);
}

.glass-header {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.g-row {
    display: flex;
    gap: 24px;
}

.g-skeleton {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.g-skeleton.line {
    height: 16px;
    margin-bottom: 16px;
}

.g-skeleton.circle {
    height: 70px;
    border-radius: 16px;
}

/* CTA Section */
.cta-section {
    padding: 120px 0;
}

.cta-box {
    background: linear-gradient(135deg, var(--gray-alt), var(--gray-dark));
    border: 1px solid var(--cyan);
    padding: 80px 40px;
    border-radius: 30px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
    animation: rotate 10s linear infinite;
    z-index: 1;
    pointer-events: none;
}

@keyframes rotate {
    100% {
        transform: rotate(360deg);
    }
}

.cta-box h2,
.cta-box p,
.cta-box a {
    position: relative;
    z-index: 2;
}

.cta-box h2 {
    font-size: 3rem;
    margin-bottom: 24px;
    text-transform: uppercase;
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 20px 0 20px;
    background: #070b14;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px;
}

.footer-links {
    display: flex;
    gap: 40px;
}

.footer-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--cyan);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: #475569;
}

/* Animations */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.reveal-delay {
    transition-delay: 0.3s;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        align-items: center;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .feature-card:nth-child(n) {
        grid-column: span 12;
    }

    .details-layout {
        grid-template-columns: 1fr;
    }

    .section-title.text-left {
        text-align: center;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .hero-visual {
        height: auto;
        min-height: 500px;
    }

    .abstract-mockup {
        height: auto;
    }

    .mockup-body {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 15px;
    }

    .ui-sidebar {
        width: 100% !important;
        flex-direction: column !important;
        justify-content: flex-start;
        background: rgba(0,0,0,0.2) !important;
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .ui-sidebar img {
        width: 100% !important;
        max-width: 140px !important;
    }
    
    .ui-content {
        display: contents;
    }

    .ui-grid {
        display: contents;
    }
    
    .ui-card.flex-between {
        grid-column: 2;
        grid-row: 1;
        height: 60px;
        padding: 10px;
    }
    
    .ui-grid .ui-card:first-child {
        grid-column: 2;
        grid-row: 2;
        height: 120px !important;
    }
    
    .ui-grid .ui-card:last-child {
        grid-column: 1 / span 2;
        grid-row: 3;
        align-items: center;
    }
    
    .ui-grid .ui-card:last-child img {
        max-width: 300px !important;
        width: 100% !important;
    }
    
    .float-1 {
        transform: scale(0.7);
        top: 0px;
        right: -10px;
    }
    
    .float-2 {
        transform: scale(0.7);
        bottom: 10px;
        left: -10px;
    }
}

@media (max-width: 768px) {
    body, .hero {
        overflow-x: hidden; /* Prevent horizontal scrolling on mobile */
    }

    .abstract-mockup {
        transform: rotateY(-10deg) rotateX(5deg); /* Milder tilt for small screens */
    }

    .mockup-body {
        gap: 8px; /* Reduce gap to fit narrow screens */
        grid-template-columns: 1fr 1.3fr;
    }

    .ui-sidebar {
        padding: 10px !important;
    }

    .ui-sidebar img {
        max-width: 100px !important;
    }
    
    .ui-grid .ui-card:first-child {
        height: 100px !important;
        padding: 10px;
    }

    .float-1 {
        transform: scale(0.6);
        top: -10px;
        right: 5px;
    }
    
    .float-2 {
        transform: scale(0.6);
        bottom: 0px;
        left: 5px;
    }

    .nav-links {
        display: none;
    }

    .nav-container {
        height: auto;
        padding: 15px 20px; /* Spacing from edges */
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .nav-actions {
        flex-direction: row;
        width: auto;
    }

    .nav-actions .btn-primary {
        display: none !important; /* Hide 'Probar Ahora' on mobile header */
    }

    .nav-actions .btn {
        padding: 6px 12px !important;
        font-size: 0.7rem !important;
        width: auto !important;
    }

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

    .logo img {
        height: 85px !important; /* Logo un poco más grande */
        padding: 0 !important; /* Remove inline padding to fix vertical alignment */
    }

    .hero-title {
        font-size: 1.4rem;
    }
    
    .hero-subtitle {
        font-size: 0.85rem;
    }
    .cta-box h2 {
        font-size: 1.2rem;
    }
    
    .cta-box p {
        font-size: 0.85rem;
    }
    
    .cta-subtext {
        font-size: 0.7rem;
    }
    .hero {
        padding: 150px 0 60px;
    }

    .footer-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .btn {
        padding: 6px 12px;
        font-size: 0.7rem;
    }

    .btn-lg, .btn-xl {
        padding: 8px 16px;
        font-size: 0.75rem;
    }
    
    .nav-actions .btn {
        padding: 6px 10px;
        font-size: 0.7rem;
    }
}