/* Reset y variables CSS */
:root {
    --primary-blue: #007AFF;
    --primary-purple: #AF52DE;
    --primary-orange: #FF9500;
    --primary-green: #34C759;
    --primary-red: #FF3B30;
    --primary-pink: #FF2D92;
    
    --bg-primary: #000000;
    --bg-secondary: #1C1C1E;
    --bg-tertiary: #2C2C2E;
    --bg-card: #1C1C1E;
    
    --text-primary: #FFFFFF;
    --text-secondary: #EBEBF5;
    --text-tertiary: #8E8E93;
    
    --border-color: #38383A;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --border-radius: 12px;
    --border-radius-large: 20px;
    
    --gradient-blue-purple: linear-gradient(135deg, var(--primary-blue), var(--primary-purple));
    --gradient-orange-red: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    --gradient-green-blue: linear-gradient(135deg, var(--primary-green), var(--primary-blue));
    --gradient-pink-purple: linear-gradient(135deg, var(--primary-pink), var(--primary-purple));
}

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

body {
    font-family: var(--font-family);
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(28, 28, 30, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.2rem;
}

.logo-icon {
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient-blue-purple);
    border-radius: 1px;
}

.nav-search {
    display: flex;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    gap: 0.5rem;
}

.search-input {
    background: none;
    border: none;
    color: var(--text-primary);
    outline: none;
    width: 200px;
}

.search-input::placeholder {
    color: var(--text-tertiary);
}

.search-btn {
    background: none;
    border: none;
    color: var(--text-tertiary);
    cursor: pointer;
    font-size: 1rem;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background: var(--text-primary);
    transition: all 0.3s ease;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin: 3rem 0;
    padding: 1rem 0;
}

.pagination a {
    color: var(--text-primary);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    background: var(--bg-tertiary);
    transition: all 0.3s ease;
}

.pagination a:hover,
.pagination a.active {
    background: var(--gradient-blue-purple);
}

.pagination-current {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    background: var(--gradient-blue-purple);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #FFFFFF, #E5E5E7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.hero-cta {
    display: inline-block;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

.hero-phones {
    position: relative;
    height: 400px;
}

.phone {
    position: absolute;
    width: 180px;
    height: 360px;
    background: linear-gradient(145deg, #2C2C2E, #1C1C1E);
    border-radius: 30px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.phone-1 {
    top: 0;
    left: 0;
    transform: rotate(-10deg);
    z-index: 2;
}

.phone-2 {
    top: 20px;
    right: 0;
    transform: rotate(10deg);
    z-index: 1;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--gradient-orange-red);
    border-radius: 22px;
    position: relative;
    overflow: hidden;
}

.phone-screen::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 2px;
}

/* Featured Apps Section */
.featured-apps {
    padding: 80px 0;
    background: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    background: var(--gradient-blue-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.apps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas en desktop */
    gap: 2rem;
}

.app-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-large);
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue-purple);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.app-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

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

.app-icon {
    width: 80px;
    height: 80px;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-icon-placeholder {
    width: 100%;
    height: 100%;
    background: var(--gradient-blue-purple);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.app-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.app-developer {
    color: var(--text-tertiary);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.app-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.rating-text {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.app-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    text-align: justify;
}

.app-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.app-price {
    background: var(--gradient-orange-red);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.app-category {
    color: var(--text-tertiary);
    font-size: 0.85rem;
    background: var(--bg-tertiary);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
}

.app-link {
    display: block;
    text-align: center;
    background: var(--gradient-blue-purple);
    color: white;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.app-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: var(--bg-primary);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

@media (max-width: 900px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

.category-card {
    background: var(--bg-card);
    border-radius: var(--border-radius-large);
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.category-card.productivity::before {
    background: var(--gradient-blue-purple);
}

.category-card.games::before {
    background: var(--gradient-orange-red);
}

.category-card.utilities::before {
    background: var(--gradient-green-blue);
}

.category-card.photography::before {
    background: var(--gradient-pink-purple);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.category-card:hover::before {
    opacity: 0.1;
}

.category-icon {
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
}

.category-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.category-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
    z-index: 1;
}

.category-card p {
    color: var(--text-secondary);
    position: relative;
    z-index: 1;
}

/* Footer */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0 1rem;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--text-primary);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-link {
    background: var(--bg-tertiary);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    transition: all 0.3s ease;
}

.social-link:hover {
    background: var(--gradient-blue-purple);
    color: white !important;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-tertiary);
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(28, 28, 30, 0.98);
        backdrop-filter: blur(20px);
        border-top: 1px solid var(--border-color);
        flex-direction: column;
        padding: 1rem 2rem;
        gap: 1rem;
    }
    
    .nav-menu.active {
        display: flex;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }
    
    .nav-search {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .apps-grid {
        grid-template-columns: 1fr;
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .nav-container {
        padding: 1rem;
    }
}


/* Review Article Styles */
.review-article {
    padding-top: 80px;
}

.review-header {
    background: var(--bg-secondary);
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-category {
    background: var(--gradient-blue-purple);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
}

.review-date {
    color: var(--text-tertiary);
    font-size: 0.9rem;
}

.review-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    background: var(--gradient-blue-purple);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-overview {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 2rem;
    align-items: start;
}

.app-icon-large {
    width: 120px;
    height: 120px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.app-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-name {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.app-developer {
    color: var(--text-tertiary);
    margin-bottom: 1rem;
}

.app-rating-large {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stars {
    font-size: 1.2rem;
}

.rating-score {
    color: var(--text-tertiary);
    font-weight: 600;
}

.app-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-item {
    background: var(--bg-tertiary);
    padding: 1rem;
    border-radius: var(--border-radius);
}

.info-label {
    display: block;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    margin-bottom: 0.25rem;
}

.info-value {
    font-weight: 600;
    color: var(--text-primary);
}

.download-btn {
    display: inline-block;
    background: var(--gradient-blue-purple);
    color: white;
    padding: 1rem 2rem;
    border-radius: var(--border-radius);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 122, 255, 0.3);
}

.screenshots-section {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.screenshots-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-align: center;
}

.screenshots-carousel {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
}

.screenshot {
    flex: 0 0 auto;
    width: 200px;
    height: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    scroll-snap-align: start;
}

.screenshot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-content {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.content-wrapper h2 {
    font-size: 1.75rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.content-wrapper h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem;
    color: var(--text-primary);
}

.content-wrapper p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.content-wrapper ul,
.content-wrapper ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

.content-wrapper li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.review-summary {
    padding: 3rem 0;
    background: var(--bg-primary);
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.pros,
.cons {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
}

.pros h3,
.cons h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.pros ul,
.cons ul {
    list-style: none;
    padding: 0;
}

.pros li,
.cons li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.pros li:last-child,
.cons li:last-child {
    border-bottom: none;
}

.final-verdict {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: var(--border-radius-large);
    border: 1px solid var(--border-color);
    text-align: center;
}

.final-verdict h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.final-verdict p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.final-rating {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.rating-label {
    font-weight: 600;
    color: var(--text-primary);
}

/* Page Header Styles */
.page-header {
    padding: 120px 0 60px;
    background: var(--gradient-blue-purple);
    text-align: center;
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: white;
}

.page-description {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    margin: 0 auto;
}

.reviews-grid {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

/* Mobile Responsive for Review Pages */
@media (max-width: 768px) {
    .app-overview {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .app-info-grid {
        grid-template-columns: 1fr;
    }
    
    .summary-grid {
        grid-template-columns: 1fr;
    }
    
    .screenshots-carousel {
        padding-left: 1rem;
    }
    
    .final-rating {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .review-title {
        font-size: 2rem;
    }
    
    .page-title {
        font-size: 2rem;
    }
    
    /* Page layout responsive */
    .page-text-content {
        max-width: 95%;
    }
    
    .info-page .page-title {
        font-size: 2rem;
    }
    
    .info-page .page-text-content h1 {
        font-size: 1.75rem;
    }
}

/* Single column layout for pages */
.page-image-container {
    text-align: center;
    margin: 40px 0;
}

.page-image {
    max-width: 100%;
    height: auto;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    max-height: 400px;
}

.page-text-content {
    max-width: 80%;
    margin: 0 auto;
}

/* Info page specific styles */
.info-page .page-header {
    background: var(--gradient-blue-purple);
    padding: 80px 0 40px;
    margin-bottom: 40px;
    padding-top: 80px !important;
    margin-top: 40px !important;
}

.info-page .page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 2rem 0;
    text-align: center;
}

.info-page .page-content {
    padding: 40px 0 80px;
}

.info-page .page-text-content h1 {
    color: var(--primary-blue);
    font-size: 2rem;
    margin-bottom: 20px;
    margin-top: 40px;
}

.info-page .page-text-content h1:first-child {
    margin-top: 0;
}

.info-page .page-text-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    margin-bottom: 15px;
    margin-top: 30px;
}

.info-page .page-text-content h3 {
    color: var(--text-secondary);
    font-size: 1.25rem;
    margin-bottom: 10px;
    margin-top: 25px;
}

.info-page .page-text-content p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 15px;
}

.info-page .page-text-content ul,
.info-page .page-text-content ol {
    color: var(--text-secondary);
    margin-bottom: 15px;
    padding-left: 20px;
}

.info-page .page-text-content li {
    margin-bottom: 8px;
    line-height: 1.6;
}

.info-page .page-text-content strong {
    color: var(--text-primary);
}

.info-page .page-text-content a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

.info-page .page-text-content a:hover {
    color: var(--primary-purple);
}

/* Botón expandir contenido */
.expand-content-btn {
    background: var(--gradient-blue-purple);
    color: var(--text-primary);
    border: none;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    margin: 2rem 0;
    display: block;
}

.expand-content-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.expand-content-btn:active {
    transform: translateY(0);
}

@media (max-width: 1024px) {
    .apps-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en tablet */
    }
}

@media (max-width: 768px) {
    .apps-grid {
        grid-template-columns: 1fr; /* 1 columna en móvil */
    }
}