:root {
    --bg-color: #0f172a; /* Azul noche profundo */
    --text-color: #f8fafc;
    --text-muted: #94a3b8;
    --accent: #10b981; /* Verde esmeralda vibrante */
    --accent-hover: #059669;
    --glass-bg: rgba(30, 41, 59, 0.7);
    --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Efectos visuales de fondo */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle at 15% 50%, rgba(16, 185, 129, 0.05), transparent 25%),
                radial-gradient(circle at 85% 30%, rgba(16, 185, 129, 0.05), transparent 25%);
    z-index: -1;
    pointer-events: none;
}

/* Navegación */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background: rgba(15, 23, 42, 0.85);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-img {
    width: 32px;
    height: 32px;
    border-radius: 8px; /* Redondea los bordes por si la imagen es muy cuadrada */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

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

/* Botones */
.btn-primary, .btn-primary-small {
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    text-decoration: none;
    font-weight: 600;
    border-radius: 50px;
    transition: transform 0.3s, box-shadow 0.3s;
    display: inline-block;
    border: none;
}

.btn-primary {
    padding: 1rem 2.2rem;
    font-size: 1.1rem;
    box-shadow: 0 10px 25px rgba(16, 185, 129, 0.3);
}

.btn-primary-small {
    padding: 0.6rem 1.4rem;
    font-size: 0.95rem;
}

.btn-primary:hover, .btn-primary-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(16, 185, 129, 0.4);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-color);
    text-decoration: none;
    padding: 1rem 2.2rem;
    font-weight: 600;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    transition: background-color 0.3s, border-color 0.3s;
}

.btn-secondary:hover {
    background: var(--glass-bg);
    border-color: rgba(255,255,255,0.2);
}

/* Sección Principal (Hero) */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 8rem 5% 4rem;
    position: relative;
}

.hero-content {
    flex: 1;
    padding-right: 3rem;
}

.badge {
    display: inline-block;
    padding: 0.4rem 1.2rem;
    background: rgba(16, 185, 129, 0.1);
    color: var(--accent);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
    letter-spacing: 0.5px;
}

h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-weight: 800;
    letter-spacing: -2px;
}

.gradient-text {
    background: linear-gradient(135deg, #34d399, #059669);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 550px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    perspective: 1000px;
}

.phone-mockup {
    width: 320px;
    height: 650px;
    background: #1e293b;
    border-radius: 45px;
    border: 10px solid #334155;
    position: relative;
    box-shadow: -20px 25px 50px -12px rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transform: rotateY(-15deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

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

.mockup-content {
    color: var(--text-muted);
    font-weight: 600;
}

.screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.screenshot.active {
    opacity: 1;
}

/* Características (Features) */
.features {
    padding: 8rem 5%;
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 4rem;
    font-weight: 800;
}

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

.card.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    transition: transform 0.3s, box-shadow 0.3s;
}

.card.glass:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255,255,255,0.2);
}

.icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
}

.glass h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.glass p {
    color: var(--text-muted);
    line-height: 1.7;
}

.pricing-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 2rem;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

/* Catálogo */
.catalog-section {
    padding: 6rem 5% 2rem;
    text-align: center;
}

.catalog-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 2rem;
    border-radius: 32px;
}

.catalog-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.catalog-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
}

.tag-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: transform 0.3s, border-color 0.3s;
}

.tag:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
}

/* Llamada a la acción (CTA) */
.cta-section {
    padding: 6rem 5% 10rem;
    text-align: center;
    position: relative;
    background: linear-gradient(to bottom, var(--bg-color) 0%, rgba(15, 23, 42, 0.8) 50%, #0b1121 100%), 
                url('media/TheRockTrailRunner1024x500.jpg') center/cover fixed no-repeat;
}

.cta-content {
    max-width: 700px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--accent);
    border-radius: 32px;
    padding: 4rem 2rem;
    box-shadow: 0 0 50px rgba(16, 185, 129, 0.15);
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
}

.trial-text {
    color: var(--accent) !important;
    font-weight: 600;
    margin-top: 1rem;
    font-size: 1rem !important;
}

.cta-app-icon {
    width: 96px;
    height: 96px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-app-icon:hover {
    transform: scale(1.1) rotate(-5deg);
}

/* Footer */
footer {
    padding: 4rem 5% 2rem;
    border-top: 1px solid var(--glass-border);
    background: #0b1121;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer Logo removido, usamos la misma clase .logo y .logo-text de la navbar */

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.copyright {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- PRECIOS --- */
.pricing {
    padding: 6rem 5%;
    text-align: center;
    position: relative;
}

.pricing h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    font-weight: 800;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    border-radius: 24px;
    padding: 3rem 2rem;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-card h3 {
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.pricing-card .price span {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 400;
}

.pricing-card p {
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.features-list {
    list-style: none;
    flex-grow: 1;
}

.features-list li {
    margin-bottom: 1.2rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.features-list .icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.features-list .warning strong {
    color: #f59e0b; /* Amarillo/naranja */
}

.features-list .disabled .text {
    text-decoration: line-through;
    color: rgba(148, 163, 184, 0.5); /* Gris muy tenue para el texto tachado */
}

.features-list .highlight strong {
    color: var(--accent);
}

.pro-card {
    background: linear-gradient(135deg, rgba(30,41,59,0.9), rgba(15,23,42,0.95));
    border: 2px solid var(--accent);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(16, 185, 129, 0.15);
    z-index: 10;
}

.popular-badge {
    position: absolute;
    top: -15px;
    right: 30px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(16, 185, 129, 0.3);
}

/* Adaptación para móviles y tablets */
@media (max-width: 992px) {
    h1 { font-size: 3.5rem; }
    .hero { flex-direction: column; text-align: center; padding-top: 8rem; }
    .hero-content { padding-right: 0; margin-bottom: 4rem; }
    .hero p { margin: 0 auto 2.5rem; }
    .hero-buttons { justify-content: center; }
    .phone-mockup { transform: rotateY(0deg) rotateX(0deg); }
}

@media (max-width: 768px) {
    .nav-links { display: none; /* En móvil podríamos poner un menú hamburguesa */ }
    h1 { font-size: 2.8rem; }
    .hero-buttons { flex-direction: column; }
    .footer-content { flex-direction: column; gap: 2rem; text-align: center; }
    .footer-links { flex-direction: column; gap: 1rem; }
    .pro-content { padding: 3rem 1.5rem; }
    .price { font-size: 2.5rem; }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .pro-card {
        transform: scale(1);
    }
}
