/* Variables de Entorno y Colores de Marca (mrmsolutions) */
:root {
    --primary-blue: #0056b3;
    --dark-blue: #0a1128;
    --accent-orange: #ff6a00;
    --light-bg: #f8f9fa;
    --text-dark: #1c1e21;
    --text-light: #ffffff;
    --grey-text: #606770;
    --border-color: #e3e6ea;
}

/* Resets Generales */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    color: var(--text-dark);
    background-color: #ffffff;
    overflow-x: hidden;
}

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    color: var(--dark-blue);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo span {
    color: var(--primary-blue);
}

.logo .domain {
    font-size: 14px;
    font-weight: 400;
    color: var(--grey-text);
    margin-left: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 30px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--primary-blue);
}

.nav-btn {
    background-color: var(--primary-blue);
    color: #fff !important;
    padding: 10px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: background-color 0.2s ease;
}

.nav-btn:hover {
    background-color: #004085;
}

/* Menú Hamburguesa para Móviles */
.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    background: transparent;
    border: none;
    gap: 4px;
}

.menu-toggle .bar {
    height: 3px;
    width: 25px;
    background-color: var(--text-dark);
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Hero Split Section */
.hero-split {
    display: flex;
    min-height: calc(100vh - 78px);
    width: 100%;
    position: relative; /* Contiene las nubes absolutas */
    overflow: hidden; /* Evita scroll vertical de las nubes */
    background-color: var(--light-bg); /* Fondo de la parte izquierda */
}

/* --- ANIMACIÓN DE NUBES --- */
.clouds-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200%; 
    z-index: 0;
    pointer-events: none;
}

.cloud-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: var(--primary-blue);
    animation: moveCloudBack 16s ease-in-out infinite alternate;
}

.cloud-front {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    fill: var(--primary-blue);
    animation: moveCloudFront 10s ease-in-out infinite alternate;
}

@keyframes moveCloudFront {
    0% { transform: translateY(-5%) scaleX(1); }
    100% { transform: translateY(-40%) scaleX(1.02); }
}

@keyframes moveCloudBack {
    0% { transform: translateY(-35%) scaleX(1.05); }
    100% { transform: translateY(-10%) scaleX(0.95); }
}

/* --- CONTENIDO HERO --- */
.hero-half {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    text-align: center;
    position: relative;
    z-index: 1; /* Por encima de las nubes */
    transition: all 0.3s ease;
}

/* Lado Izquierdo: Retail */
.hero-retail {
    background-color: transparent; 
    color: var(--text-dark);
}

/* Lado Derecho: Restaurant */
.hero-restaurant {
    background-color: transparent; 
    color: var(--text-light);
}

.hero-image-container {
    width: 100%;
    max-width: 400px;
    height: 250px;
    margin-bottom: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
}

.hero-tpv-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 12px;
}

.hero-restaurant .hero-image-container {
    background: rgba(255,255,255,0.05);
}

.hero-half h1 {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 15px;
}

.hero-half p {
    font-size: 16px;
    max-width: 450px;
    margin-bottom: 35px;
    line-height: 1.6;
}

.hero-retail p { color: var(--grey-text); }
.hero-restaurant p { color: #a0aec0; }

/* Botones */
.btn {
    display: inline-block;
    padding: 14px 35px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-blue {
    background-color: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}

.btn-white {
    background-color: #ffffff;
    color: var(--primary-blue);
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.2);
}

.btn-blue:hover { background-color: #004494; }


/* Features Section */
.features-section {
    padding: 100px 40px;
    background-color: #ffffff;
    text-align: center;
}

.section-header { margin-bottom: 60px; }

.section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-blue);
    margin-bottom: 15px;
}

.section-header p {
    font-size: 18px;
    color: var(--grey-text);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    text-align: left;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 8px;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background-color: rgba(0, 86, 179, 0.08);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    color: var(--primary-blue);
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--dark-blue);
}

.feature-card p {
    font-size: 15px;
    color: var(--grey-text);
    line-height: 1.6;
}

/* Ecosystem / Partners Section */
.ecosystem-section {
    background-color: var(--dark-blue);
    color: var(--text-light);
    padding: 80px 40px;
    text-align: center;
}

.ecosystem-section h2 {
    font-size: 30px;
    margin-bottom: 15px;
    font-weight: 700;
}

.ecosystem-section p {
    color: #a0aec0;
    margin-bottom: 50px;
    font-size: 16px;
}

.partners-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 60px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.logo-placeholder {
    font-size: 24px;
    font-weight: 700;
    opacity: 0.6;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-revo span { color: var(--accent-orange); }

/* CTA Section */
.cta-section {
    background-color: var(--light-bg);
    padding: 90px 40px;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.cta-section h2 {
    font-size: 32px;
    color: var(--dark-blue);
    margin-bottom: 15px;
    font-weight: 700;
}

.cta-section p {
    font-size: 16px;
    color: var(--grey-text);
    max-width: 600px;
    margin: 0 auto 35px auto;
    line-height: 1.6;
}

.btn-orange {
    background-color: var(--accent-orange);
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.25);
}

.btn-orange:hover { background-color: #e05d00; }

/* Footer */
.footer {
    background-color: #0b0f19;
    color: #ffffff;
    padding: 80px 40px 30px 40px;
    font-size: 14px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.footer-socials {
    display: flex !important;          
    justify-content: center !important; 
    align-items: center !important;
    gap: 30px !important;              
    margin: 40px auto 30px auto !important;
    padding-top: 30px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important; 
    width: 100% !important;
    max-width: 1200px !important;
}

.footer-socials a {
    display: inline-flex !important;
    text-decoration: none !important;
    transition: transform 0.2s ease-in-out !important;
}

.footer-socials svg {
    width: 24px !important;           
    height: 24px !important;
    fill: #ffffff !important;         
    opacity: 0.8 !important;          
    transition: opacity 0.2s ease !important;
}

.footer-socials a:hover svg {
    opacity: 1 !important;            
}

.footer-socials a:hover {
    transform: translateY(-3px) !important; 
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto 60px auto;
}

.footer-col h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 12px; }

.footer-col ul li a {
    color: #a0aec0;
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer-col ul li a:hover { color: #ffffff; }

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    font-size: 13px;
    color: #718096;
}

.footer-legal a {
    color: #718096;
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.2s;
}

.footer-legal a:hover { color: #a0aec0; }

/* Responsive Media Queries */
@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        position: absolute;
        top: 73px;
        left: 0;
        background-color: #ffffff;
        padding: 20px;
        border-bottom: 1px solid var(--border-color);
        box-shadow: 0 10px 15px rgba(0,0,0,0.05);
        gap: 20px;
    }

    .nav-links.active { display: flex; }
    .nav-btn { width: 100%; text-align: center; }
    .hero-split { flex-direction: column; }
    
    /* Reglas para apagar la animación de nubes en móvil y asegurar contraste */
    .clouds-background { display: none; }
    .hero-restaurant { background-color: var(--dark-blue); }

    .hero-half { padding: 80px 20px; }
    .hero-half h1 { font-size: 32px; }
    .features-section, .cta-section, .ecosystem-section { padding: 60px 20px; }
    .footer-bottom { flex-direction: column; text-align: center; }
    .footer-legal a { margin: 0 10px; }

    .footer-socials {
        gap: 22px;
        margin: 30px 0 20px 0;
    }
}