/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --brand-color: #e63946; /* Ajusta al rojo exacto de tu logo */
    --text-color: #535353;
    --light-text: #726F6F;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: #f5f5f5;
    color: var(--text-color);
    line-height: 1.5;
    overflow-x: hidden;
}

/* Layout Principal */
.main-container {
    display: flex;
    min-height: 100vh;
}

/* Columna Izquierda (Contenido) */
.content-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px 0;
    max-width: 640px; /* Delimitación solicitada */
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* Ajuste para que el contenido no pegue a los bordes en 980px */
.navbar, .hero-content, .footer-links {
    padding-left: 20px;
    padding-right: 20px;
    width: 100%;
}

/* Header / Nav */
.navbar {
    display: flex;
    align-items: center;
    gap: 64px;
}

.logo img {
    height: 30px;
}

.nav-links a {
    text-decoration: none;
    color: var(--brand-color);
    font-size: 0.8rem;
    margin-right: 30px;
    font-weight: 300;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* Hero Content */
.hero-content {
    max-width: 340px; /* Para mantener el bloque de texto estrecho como en la imagen */
    margin-top: -50px; /* Centrado visual respecto a la imagen */
}

.title {
    font-family: 'Gloock', serif;
    color: var(--brand-color);
    font-size: 1.1rem;
    margin-bottom: 60px;
    font-weight: 400;
}

.description {
    font-size: 1rem;
    color: var(--light-text);
    margin-bottom: 25px;
    font-weight: 300;
}

.store-buttons {
    display: flex;
    gap: 8px;
    margin-top: 30px;
}

.store-buttons img {
    height: 32px;
    border-radius: 6px;
}

/* Footer */
.footer-links {
    font-size: 0.8rem;
    color: var(--light-text);
    font-weight: 300;
}

.footer-links a {
    text-decoration: none;
    color: inherit;
}

.separator {
    margin: 0 10px;
}

/* Columna Derecha (Imagen) */
.image-side {
    width: 35%; /* Ajuste proporcional */
    height: 100vh;
    position: sticky;
    top: 0;
    overflow: hidden;
}

.bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* Responsive */
@media (max-width: 1024px) {
    .image-side {
        width: 40%;
    }
}

@media (max-width: 768px) {
    .main-container {
        flex-direction: column;
    }
    .image-side {
        width: 60%;
        height: 60vh;
        order: -1; /* La imagen arriba en móviles */
        margin-left: 40%;
    }
    .content-side {
        padding: 40px 20px;
        background-color: #f5f5f5;
    }
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .hero-content {
        max-width: 100%;
        margin-top: 40px;
    }
}


/* Reglas de detección dinámica */

/* Si es iOS, ocultamos Google Play */
.store-buttons.is-ios .btn-googleplay {
    display: none;
}

/* Si es Android, ocultamos App Store */
.store-buttons.is-android .btn-appstore {
    display: none;
}

/* Ajuste opcional: Centrar el botón único en móviles */
@media (max-width: 768px) {
    .is-ios, .is-android {
        justify-content: flex-start; /* O 'center' si prefieres que el botón único se centre */
    }
}