:root {
    --bg-dark: #050507;
    --bg-card: rgba(255, 255, 255, 0.03);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-main: #ffffff;
    --text-muted: #9898a6;
    --accent-gradient: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
    --accent-glow: rgba(79, 172, 254, 0.4);
    --glass-blur: blur(20px);
    --radius-lg: 24px;
    --radius-md: 16px;
    --font-main: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    margin: 0;
    background-color: var(--bg-dark);
    /* Fondo sutil con gradiente radial para profundidad */
    background-image:
        radial-gradient(circle at 15% 50%, rgba(79, 172, 254, 0.08), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(0, 242, 254, 0.05), transparent 25%);
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* --- Tipografía y Utilidades --- */
h1,
h2,
h3,
p {
    margin: 0;
}

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.text-gradient {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Header --- */
header {
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    --backdrop-filter: blur(12px);
    background: rgba(5, 5, 7, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #000;
    font-size: 18px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.logo-img {
    width: 45px;       /* Tamaño ajustado para el header */
    height: 45px;
    object-fit: contain; /* Asegura que el logo no se estire ni se aplaste */
    border-radius: 8px;  /* Bordes ligeramente redondeados si el logo es cuadrado */
    /* Si tu logo es oscuro y el fondo es oscuro, quizás quieras un pequeño brillo o fondo blanco:
       background-color: rgba(255,255,255,0.1); 
       padding: 2px;
    */
}

.brand-name {
    font-weight: 700;
    font-size: 18px;
    color: #fff;
    letter-spacing: -0.5px;
}

/* --- Botones --- */
.btn {
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #fff;
    color: #000;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.15);
}

.btn-accent {
    background: var(--accent-gradient);
    color: #000;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.btn-accent:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow);
    filter: brightness(1.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
}

.btn-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

/* --- Hero Section --- */
.hero {
    padding: 80px 0 60px;
    text-align: center;
}

.hero h1 {
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero p {
    font-size: clamp(18px, 2vw, 22px);
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 40px;
    line-height: 1.5;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    background: rgba(79, 172, 254, 0.1);
    border: 1px solid rgba(79, 172, 254, 0.3);
    color: #4facfe;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Feature Grid in Hero */
.features-mini {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

.f-tag {
    background: rgba(255, 255, 255, 0.05);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* --- CSS Phone Mockup Wrapper (El toque Pro) --- */
.phone-wrapper {
    position: relative;
    z-index: 1;
    margin: 0 auto;
    width: 100%;
    max-width: 350px;
    /* Ancho típico de celular */
    transition: transform 0.5s ease;
}

/* Sombra de brillo detrás del celular */
.phone-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 80%;
    background: var(--accent-gradient);
    filter: blur(60px);
    opacity: 0.3;
    z-index: -1;
    border-radius: 50%;
}

.phone-frame {
    background: #000;
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 0 0 2px #333,
        /* Borde externo sutil */
        0 20px 50px rgba(0, 0, 0, 0.5);
    /* Sombra profunda */
    overflow: hidden;
}

.phone-screen {
    border-radius: 32px;
    overflow: hidden;
    aspect-ratio: 9/19.5;
    /* Aspect ratio moderno de iPhone */
    background: #1a1a1a;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* --- Feature Sections (Apple Style) --- */
.section {
    padding: 120px 0;
    display: flex;
    align-items: center;
    gap: 60px;
}

.section:nth-child(even) {
    flex-direction: row-reverse;
}

.content-col {
    flex: 1;
}

.media-col {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.eyebrow {
    font-size: 14px;
    font-weight: 700;
    color: #4facfe;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
    display: block;
}

.section h2 {
    font-size: clamp(32px, 3vw, 48px);
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.1;
}

.section p {
    font-size: 18px;
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 450px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-top: 24px;
    display: flex;
    gap: 15px;
    align-items: flex-start;
}

.feature-icon {
    font-size: 24px;
}

/* --- Footer & CTA --- */
.cta-box {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 60px 20px;
    text-align: center;
    margin: 60px auto 100px;
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
}

footer {
    text-align: center;
    padding-bottom: 40px;
    color: #555;
    font-size: 13px;
}

/* --- Animaciones (Scroll Reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
}

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

/* --- Responsive --- */
@media (max-width: 900px) {

    .section,
    .section:nth-child(even) {
        flex-direction: column;
        text-align: center;
        gap: 40px;
        padding: 60px 0;
    }

    .section p,
    .section h2,
    .eyebrow {
        margin-left: auto;
        margin-right: auto;
    }

    .phone-wrapper {
        max-width: 280px;
    }
}

footer {
    text-align: center;
    padding: 60px 0 40px;
    color: var(--text-muted);
    font-size: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05); /* Línea sutil arriba */
    background: rgba(0,0,0,0.2); /* Fondo ligeramente más oscuro */
}

.footer-links {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.footer-links a:hover {
    color: #fff; /* Se ilumina a blanco al pasar el mouse */
    text-decoration: underline;
}

.footer-links .divider {
    color: rgba(255, 255, 255, 0.2);
}