/* ========================================
   ESTILOS ESPECÍFICOS - PÁGINA PRINCIPAL
   Usando variables de colors.css
   ======================================== */

/* Hero Section */
.hero {
    background: var(--gradient-hero);
    padding: 80px 20px;
    text-align: center;
    color: var(--text-white);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero h1 {
    margin: 0 0 20px 0;
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 800;
    text-shadow: 0 4px 8px rgba(0,0,0,0.3);
    letter-spacing: -1px;
    position: relative;
    z-index: 1;
}

.hero-header {
    text-align: center;
    margin-bottom: 50px;
    position: relative;
    z-index: 1;
}

.hero-intro {
    font-size: 20px;
    margin: 0;
    opacity: 0.95;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Download Grid - Two Cards */
.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 900px;
    margin: 0 auto 30px;
    position: relative;
    z-index: 1;
}

.download-card {
    background: var(--background-light);
    border-radius: var(--radius-lg);
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.download-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.card-header {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border-light);
}

.card-header h3 {
    margin: 0;
    font-size: 20px;
    color: var(--text-brand);
    font-weight: 700;
}

.badge {
    background: var(--accent-green);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.badge.web {
    background: var(--all-answer-filter-blue);
}

.qr-container {
    margin: 20px 0;
    padding: 15px;
    background: var(--porcelain);
    border-radius: var(--radius-md);
    transition: transform 0.3s ease;
}

.download-card:hover .qr-container {
    transform: scale(1.05);
}

.qr-wrapper {
    position: relative;
    display: inline-block;
    width: 180px;
    height: 180px;
}

.qr-code {
    display: block;
    width: 180px;
    height: 180px;
    border-radius: var(--radius-sm);
}

.qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 45px;
    height: 45px;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.qr-label {
    margin: 10px 0 0 0;
    font-size: 14px;
    color: var(--text-brand);
    font-weight: 600;
}

.card-info {
    width: 100%;
    margin: 20px 0;
}

.app-desc {
    color: var(--text-brand);
    font-size: 14px;
    margin: 0 0 15px 0;
    line-height: 1.5;
    font-weight: 500;
}

.price-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-green));
    color: white;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 16px;
}

.price-tag .price {
    font-size: 24px;
    font-weight: 800;
}

.download-card .cta-button {
    width: 100%;
    margin-top: auto;
    padding: 15px 25px;
    font-size: 16px;
    font-weight: 700;
    text-align: center;
}

.download-card.mobile-app .cta-button {
    background: var(--color-primary);
    color: white;
}

.download-card.web-app .cta-button {
    background: var(--color-primary);
    color: white;
}

.availability {
    margin-top: 20px;
    font-size: 16px;
    color: #f1f1f1;
}

.availability p {
    margin: 8px 0;
}

.availability .pricing-info {
    font-size: 18px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 12px;
    margin-bottom: 20px;
}

.availability .plans-button {
    display: inline-block;
    background: white;
    color: var(--color-primary);
    padding: 15px 40px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.availability .plans-button:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.availability a {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: bold;
}

.availability a:hover {
    text-decoration: underline;
}

/* Features Section */
.features, .pricing {
    padding: 40px 20px;
    text-align: center;
}

.features h2, .pricing h2 {
    color: var(--text-brand);
    margin-bottom: 30px;
    font-size: clamp(24px, 4vw, 32px);
}

.features {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.features > h2 {
    width: 100%;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 300px));
    gap: 20px;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
}

.feature, .pricing-plan {
    padding: 30px 20px;
    border: 1px solid var(--border-primary);
    border-radius: var(--radius-lg);
    background-color: var(--background-light);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-plan {
    margin: 20px;
    max-width: 300px;
    display: inline-block;
    vertical-align: top;
}

.feature:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.feature h3 {
    color: var(--text-brand);
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-icon {
    font-size: 48px;
    margin-bottom: var(--spacing-md);
    display: block;
    filter: drop-shadow(0 4px 8px rgba(102, 187, 106, 0.2));
    transition: all var(--transition-normal);
}

.feature:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 6px 12px rgba(102, 187, 106, 0.3));
}

.feature p {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Pricing Section */
.pricing-plan {
    background-color: var(--background-primary);
    box-shadow: var(--shadow-md);
    transition: transform 0.2s, box-shadow 0.3s;
}

.pricing-plan:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.pricing-plan h3 {
    color: var(--all-answer-filter-blue);
    font-size: 24px;
    margin-bottom: 10px;
}

.pricing-plan p {
    color: var(--text-secondary);
}

.pricing-plan .price {
    font-size: 28px;
    color: var(--text-brand);
    font-weight: bold;
    margin: 15px 0;
}

.pricing-plan .cta-button {
    background: var(--gradient-secondary);
    color: var(--text-white);
    padding: 10px 20px;
    font-size: 16px;
    margin-top: 15px;
    display: inline-block;
}

.pricing-plan .cta-button:hover {
    background: var(--gradient-primary);
}

/* Contact Section */
.contact {
    background-color: var(--background-light);
    padding: 40px 20px;
    text-align: center;
}

.contact h2 {
    color: var(--text-brand);
    margin-bottom: 20px;
    font-size: clamp(24px, 4vw, 32px);
}

.contact-info {
    max-width: 600px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.contact-item {
    background-color: var(--background-primary);
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-primary);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.contact-item h3 {
    color: var(--all-answer-filter-blue);
    margin-bottom: 10px;
    font-size: 18px;
}

.contact-icon {
    font-size: 40px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 4px 8px rgba(102, 187, 106, 0.2));
    transition: all var(--transition-normal);
}

.contact-item:hover .contact-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 6px 12px rgba(102, 187, 106, 0.3));
}

.contact-item p {
    color: var(--text-secondary);
    margin: 5px 0;
}

.contact-item a {
    color: var(--text-brand);
    text-decoration: none;
    font-weight: bold;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Disclaimer Section */
.disclaimer {
    background-color: var(--light-gray);
    padding: 20px;
    text-align: center;
    font-size: 14px;
    color: var(--text-brand);
    border-top: 2px solid var(--border-primary);
}

.disclaimer p {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.5;
}

/* Comparison Table Section */
.comparison-section {
    padding: 60px 20px;
    background: var(--gradient-hero);
    text-align: center;
}

/* Success Stats Section */
.success-stats {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
}

.stats-container {
    max-width: 1000px;
    margin: 0 auto;
}

.stats-container h2 {
    font-size: clamp(28px, 5vw, 38px);
    color: #2c3e50;
    margin-bottom: 40px;
    text-align: center;
}

/* Context Box */
.context-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 40px;
}

.context-numbers {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 30px;
}

.context-item {
    text-align: center;
}

.big-number {
    font-size: 48px;
    font-weight: 800;
    color: #2c3e50;
    display: block;
    margin-bottom: 10px;
}

.big-number.highlight-rate {
    color: #e74c3c;
}

.context-item p {
    font-size: 14px;
    color: #5a6c7d;
    margin: 0;
}

.context-divider {
    width: 2px;
    height: 60px;
    background: linear-gradient(180deg, transparent, #ddd, transparent);
}

.context-note {
    text-align: center;
    font-size: 16px;
    color: #34495e;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
    margin: 0;
}

/* User Results */
.user-results {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.user-results h3 {
    font-size: 26px;
    color: #2c3e50;
    margin-bottom: 30px;
    text-align: center;
}

.results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

.results-visual {
    text-align: center;
}

.success-range {
    margin-bottom: 20px;
}

.range-label {
    display: block;
    font-size: 14px;
    color: #5a6c7d;
    margin-bottom: 15px;
    font-weight: 600;
}

.range-bar {
    background: #e9ecef;
    height: 60px;
    border-radius: 30px;
    overflow: hidden;
    position: relative;
}

.range-fill {
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: 700;
    width: 73%;
}

.sample-info {
    font-size: 13px;
    color: #5a6c7d;
    margin: 15px 0 0 0;
    font-style: italic;
}

.results-factors h4 {
    font-size: 18px;
    color: #2c3e50;
    margin-bottom: 15px;
}

.results-factors ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.results-factors li {
    padding: 10px 0;
    padding-left: 30px;
    position: relative;
    color: #34495e;
    line-height: 1.6;
}

.results-factors li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
    font-size: 18px;
}

/* CTA Section */
.cta-section {
    text-align: center;
    padding: 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: 16px;
    color: white;
}

.cta-message {
    font-size: 20px;
    margin-bottom: 25px;
}

.cta-section .cta-button {
    background: white;
    color: var(--color-primary);
    padding: 15px 40px;
    font-size: 18px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-section .cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* Comparison Table Section */
.comparison-section {
    padding: 60px 20px;
    background: var(--gradient-hero);
    text-align: center;
}

.comparison-section h2 {
    color: var(--text-white);
    margin-bottom: 10px;
    font-size: clamp(28px, 4vw, 36px);
}

.section-subtitle {
    color: var(--text-white);
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 600;
    opacity: 0.95;
}

.table-wrapper {
    overflow-x: auto;
    max-width: 1000px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.tabla-funcionalidades {
    width: 100%;
    border-collapse: collapse;
    background-color: var(--background-primary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.tabla-funcionalidades thead {
    background: linear-gradient(135deg, var(--background-light) 0%, var(--tundora) 100%);
}

.tabla-funcionalidades thead th {
    padding: 30px 20px;
    color: var(--text-brand);
    border: none;
}

.tabla-funcionalidades thead th:first-child {
    background: transparent;
}

.pricing-header {
    text-align: center;
}

.pricing-header .title {
    font-size: 24px;
    margin: 0 0 15px 0;
    font-weight: 700;
    color: var(--text-brand);
}

.price-wrap {
    margin-top: 10px;
}

.price-wrap-inner {
    display: inline-block;
}

.price-wrap-inner .price {
    font-size: 22px;
    font-weight: 800;
    padding: 10px 30px;
    border-radius: 25px;
    background: rgba(102, 187, 106, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid var(--color-primary);
    margin: 0;
    display: inline-block;
    color: var(--text-brand);
}

.price-wrap-inner .price.premium {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #000;
    box-shadow: 0 4px 15px rgba(255, 215, 0, 0.4);
    border: 2px solid #FFD700;
}

.tabla-funcionalidades tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: all 0.2s ease;
}

.tabla-funcionalidades tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
}

.tabla-funcionalidades tbody tr:hover td {
    color: var(--text-white);
    font-weight: 600;
}

.tabla-funcionalidades tbody tr:last-child {
    border-bottom: none;
}

.tabla-funcionalidades td {
    padding: 18px 20px;
    text-align: center;
    font-size: 15px;
    color: var(--text-secondary);
}

.tabla-funcionalidades td:first-child {
    text-align: left;
    font-weight: 600;
    color: var(--text-brand);
    background: var(--background-light);
}

.tabla-funcionalidades td span {
    display: inline-block;
}

.tabla-funcionalidades .feature-check {
    color: var(--color-primary);
    font-size: 20px;
    font-weight: bold;
}

.tabla-funcionalidades tbody tr:hover .feature-check {
    color: var(--text-white);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .context-numbers {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .context-divider {
        width: 80%;
        height: 2px;
        justify-self: center;
    }

    .big-number {
        font-size: 36px;
    }

    .results-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .context-box,
    .user-results {
        padding: 25px;
    }

    .cta-section {
        padding: 30px 20px;
    }

    .cta-message {
        font-size: 18px;
    }

    .comparison-section {
        padding: 40px 15px;
    }
    
    .section-subtitle {
        font-size: 16px;
        margin-bottom: 30px;
    }
    
    .table-wrapper {
        border-radius: var(--radius-md);
        margin: 0 -5px;
    }
    
    .tabla-funcionalidades {
        font-size: 13px;
    }
    
    .tabla-funcionalidades thead th {
        padding: 20px 8px;
    }
    
    .pricing-header .title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .price-wrap-inner .price {
        font-size: 14px;
        padding: 6px 16px;
    }
    
    .tabla-funcionalidades td {
        padding: 12px 8px;
        font-size: 12px;
    }
    
    .tabla-funcionalidades td:first-child {
        font-size: 12px;
        padding: 12px 8px;
    }
}

@media (max-width: 480px) {
    .comparison-section {
        padding: 30px 10px;
    }
    
    .comparison-section h2 {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .section-subtitle {
        font-size: 14px;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .table-wrapper {
        margin: 0 -10px;
        box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
    }
    
    .tabla-funcionalidades thead th {
        padding: 12px 4px;
    }
    
    .pricing-header .title {
        font-size: 14px;
        margin-bottom: 8px;
    }
    
    .price-wrap {
        margin-top: 5px;
    }
    
    .price-wrap-inner .price {
        font-size: 12px;
        padding: 5px 12px;
    }
    
    .tabla-funcionalidades td {
        padding: 10px 4px;
        font-size: 11px;
        line-height: 1.4;
    }
    
    .tabla-funcionalidades td:first-child {
        font-size: 11px;
        padding: 10px 6px;
    }
    
    .tabla-funcionalidades tbody tr:hover {
        background-color: rgba(255, 255, 255, 0.3);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 40px 15px;
    }
    
    .download-grid {
        grid-template-columns: 1fr;
        gap: 25px;
        padding: 0 10px;
    }
    
    .download-card {
        padding: 25px 20px;
    }
    
    .card-header h3 {
        font-size: 18px;
    }
    
    .qr-wrapper {
        width: 150px;
        height: 150px;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
    
    .qr-logo {
        width: 38px;
        height: 38px;
        padding: 3px;
    }
    
    .price-tag {
        font-size: 14px;
    }
    
    .price-tag .price {
        font-size: 20px;
    }
    
    .features, .pricing, .contact {
        padding: 30px 15px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 10px;
    }
    
    .feature {
        max-width: 100%;
    }
    
    .pricing-plan {
        margin: 10px;
        max-width: none;
        display: block;
    }
    
    .availability .plans-button {
        padding: 12px 30px;
        font-size: 15px;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}