/* Diseño ultra moderno y elegante */
:root {
    --primary-color: #6366f1;
    --secondary-color: #4f46e5;
    --accent-color: #06b6d4;
    --success-color: #10b981;
    --purple-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --blue-gradient: linear-gradient(135deg, #667eea 0%, #06b6d4 100%);
    --dark-bg: #0a0f1c;
    --card-bg: rgba(15, 23, 42, 0.8);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

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

body {
    background: #E6F3F9;
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

.body-principal {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-section {
    
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem 0 4rem;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.glass-container {
    background: #E6F3F9;
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    margin: 2rem 0;
    position: relative;
    overflow: hidden;
}

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

.hero-title {
    font-size: clamp(3rem, 6vw, 4rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-align: center;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    position: relative;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-description {
    font-size: 1.2rem;
    color: #467184;
    text-align: center;
    line-height: 1.7;
    margin-bottom: 3rem;
    margin-top: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, var(--success-color), var(--accent-color));
    color: white;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -5px rgba(16, 185, 129, 0.4);
    color: white;
    text-decoration: none;
}

.features-section {
    padding: 3rem 0;
    position: relative;
}

.feature-card {
    background: #E6F3F9;
    border: 1px solid #c2d6df;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    height: 100%;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #0d97ce;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    border-color: #0d97ce;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    display: block;
    text-align: center;
    filter: drop-shadow(0 4px 8px rgba(37, 99, 235, 0.3));
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #467184;
    text-align: center;
    margin-bottom: 1rem;
}

.feature-description {
    color: #467184;
    text-align: center;
    line-height: 1.6;
    font-size: 0.95rem;
}

.benefits-list {
    list-style: none;
    padding: 0;
    margin: 0;
    cursor: pointer;
}

.benefits-list li {
    color: #467184;
    padding: 0.75rem 0;
    font-size: 1rem;
    position: relative;
    padding-left: 2rem;
    transition: color 0.2s ease;
}

.benefits-list li:hover {
    color: #0d97ce;
}

.benefits-list li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success-color);
    font-weight: bold;
    font-size: 1.1rem;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color:  #0d97ce;
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
}

.floating-elements {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: float 8s ease-in-out infinite;
}

.floating-elements::before {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.floating-elements::after {
    bottom: 20%;
    right: 10%;
    animation-delay: 4s;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 70%);
}

.text-center {
    margin-bottom: 1rem;
}
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* ===========================================
   PWA INSTALL STYLES - IMPROVED DESIGN
   =========================================== */


/* PWA Install Card */
.pwa-install-card {
    backdrop-filter: blur(20px) !important;
    border-radius: 25px !important;
    padding: 3rem 2.5rem !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.pwa-install-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.15);
}

/* PWA Header */
.pwa-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.pwa-icon-wrapper {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    animation: pulse 3s ease-in-out infinite;
}

.pwa-main-icon {
    font-size: 2rem;
    color: white;
}

.pwa-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pwa-subtitle {
    font-size: 1.1rem;
    color: #4a5568;
    line-height: 1.6;
    margin: 0 auto;
}

.pwa-subtitle strong {
    color: #2d3748;
    font-weight: 600;
}

/* PWA Platform Buttons */
.pwa-buttons-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 1.5rem !important;
    margin-bottom: 2.5rem !important;
}

.pwa-platform-btn {
    display: flex !important;
    align-items: center !important;
    padding: 1.5rem !important;
    background: rgba(102, 126, 234, 0.1) !important;
    border: 1px solid rgba(102, 126, 234, 0.1) !important;
    border-radius: 18px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: left !important;
    position: relative !important;
    overflow: hidden !important;
}

.pwa-platform-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.6s;
}

.pwa-platform-btn:hover::before {
    left: 100%;
}

.pwa-platform-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(102, 126, 234, 0.3);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.android-platform:hover {
    background: linear-gradient(135deg, rgba(61, 220, 132, 0.1) 0%, rgba(46, 125, 50, 0.05) 100%);
    border-color: rgba(61, 220, 132, 0.3);
}

.iphone-platform:hover {
    background: linear-gradient(135deg, rgba(0, 122, 255, 0.1) 0%, rgba(0, 86, 179, 0.05) 100%);
    border-color: rgba(0, 122, 255, 0.3);
}

.platform-icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    margin-right: 1rem;
    flex-shrink: 0;
}

.android-platform .platform-icon {
    background: linear-gradient(135deg, #3ddc84 0%, #2e7d32 100%);
    color: white;
}

.iphone-platform .platform-icon {
    background: linear-gradient(135deg, #007aff 0%, #0056b3 100%);
    color: white;
}

.platform-icon i {
    font-size: 1.5rem;
}

.platform-content {
    flex: 1;
}

.platform-content h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: #1a202c;
    margin: 0 0 0.25rem 0;
}

.platform-content p {
    font-size: 0.9rem;
    color: #718096;
    margin: 0;
}

.platform-arrow {
    color: #a0aec0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.pwa-platform-btn:hover .platform-arrow {
    color: #4a5568;
    transform: translateX(3px);
}

/* PWA Benefits */
.pwa-benefits {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 25px;
    color: #4c51bf;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.benefit-item:hover {
    background: rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

.benefit-item i {
    font-size: 1rem;
}

/* PWA Modals */
.pwa-modal {
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.pwa-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 25px 25px 0 0;
    border-bottom: 1px solid var(--border-color);
    padding: 1.5rem;
}

.pwa-modal-header .modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
}

.pwa-modal-header .btn-close {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    opacity: 1;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.pwa-modal-header .btn-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.pwa-modal-body {
    padding: 2rem;
    max-height: 70vh;
    overflow-y: auto;
}

.pwa-modal-footer {
    background: var(--glass-bg);
    border-top: 1px solid var(--border-color);
    border-radius: 0 0 25px 25px;
    padding: 1.5rem;
}

/* PWA Steps */
.pwa-steps {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.pwa-step {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    padding: 1.5rem;
    background: var(--glass-bg);
    border-radius: 15px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.pwa-step:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.pwa-step-number {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.pwa-step-content {
    flex: 1;
}

.pwa-step-content h6 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pwa-step-content p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.pwa-step-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* PWA URL Box */
.pwa-url-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.pwa-url-box code {
    background: transparent;
    color: #06b6d4;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.9rem;
    flex: 1;
    word-break: break-all;
}

.pwa-copy-btn {
    background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    border: none;
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
}

.pwa-copy-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.4);
}

/* PWA Tips and Highlights */
.pwa-tip, .pwa-highlight, .pwa-success {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    font-size: 0.95rem;
}

.pwa-tip {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
}

.pwa-highlight {
    background: rgba(6, 182, 212, 0.1);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #06b6d4;
}

.pwa-success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #10b981;
}

.pwa-tip i, .pwa-highlight i, .pwa-success i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Responsive Design for Improved PWA Section */
@media (max-width: 768px) {
    
    .pwa-install-card {
        padding: 2rem 1.5rem;
        margin: 0 1rem;
    }
    
    .pwa-title {
        font-size: 1.8rem;
    }
    
    .pwa-subtitle {
        font-size: 1rem;
    }
    
    .pwa-icon-wrapper {
        width: 70px;
        height: 70px;
        margin-bottom: 1rem;
    }
    
    .pwa-main-icon {
        font-size: 1.75rem;
    }
    
    .pwa-buttons-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .pwa-platform-btn {
        padding: 1.25rem;
    }
    
    .platform-icon {
        width: 45px;
        height: 45px;
    }
    
    .platform-icon i {
        font-size: 1.3rem;
    }
    
    .platform-content h4 {
        font-size: 1.1rem;
    }
    
    .pwa-benefits {
        gap: 1rem;
    }
    
    .benefit-item {
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Modal responsive styles */
    .pwa-step {
        flex-direction: column;
        text-align: center;
    }
    
    .pwa-step-number {
        align-self: center;
    }
    
    .pwa-url-box {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .pwa-url-box code {
        text-align: center;
        word-break: break-word;
    }
    
    .pwa-modal-body {
        padding: 1.5rem;
        max-height: 60vh;
    }
}

/* PWA Modal Close Button Styles */
.pwa-modal .close {
    color: #ffffff !important;
    font-size: 1.8rem !important;
    font-weight: 300 !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    opacity: 0.8 !important;
    transition: all 0.3s ease !important;
    padding: 0.5rem !important;
    margin: -0.5rem -0.5rem -0.5rem auto !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    width: 35px !important;
    height: 35px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
}

.pwa-modal .close:hover {
    color: #ffffff !important;
    opacity: 1 !important;
    background: rgba(255, 255, 255, 0.2) !important;
    transform: scale(1.1) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.pwa-modal .close:focus {
    outline: none !important;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3) !important;
}

/* PWA Modal Header Styles */
.pwa-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
    border-bottom: none !important;
    padding: 1.5rem !important;
    border-radius: 20px 20px 0 0 !important;
}

@media (max-width: 480px) {
    
    .pwa-install-card {
        padding: 1.5rem 1rem;
        margin: 0 0.5rem;
        border-radius: 20px;
    }
    
    .pwa-header {
        margin-bottom: 2rem;
    }
    
    .pwa-title {
        font-size: 1.6rem;
    }
    
    .pwa-subtitle {
        font-size: 0.95rem;
    }
    
    .pwa-icon-wrapper {
        width: 60px;
        height: 60px;
    }
    
    .pwa-main-icon {
        font-size: 1.5rem;
    }
    
    .pwa-buttons-grid {
        margin-bottom: 2rem;
    }
    
    .pwa-platform-btn {
        padding: 1rem;
        border-radius: 15px;
    }
    
    .platform-icon {
        width: 40px;
        height: 40px;
        margin-right: 0.75rem;
    }
    
    .platform-icon i {
        font-size: 1.2rem;
    }
    
    .platform-content h4 {
        font-size: 1rem;
    }
    
    .platform-content p {
        font-size: 0.85rem;
    }
    
    .pwa-benefits {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }
    
    .benefit-item {
        padding: 0.5rem 0.875rem;
        font-size: 0.8rem;
    }
    
    /* Modal mobile styles */
    .pwa-modal-header {
        padding: 1.25rem;
    }
    
    .pwa-modal-header .modal-title {
        font-size: 1.3rem;
    }
    
    .pwa-step-content h6 {
        font-size: 1.1rem;
    }
}

@media (max-width: 1200px) {
    .hero-title {
        font-size: 2.9rem;
    }
}

@media (max-width: 991px) {
    .hero-section {
        margin-top: 80px;
    }
}

@media (max-width: 768px) {
    .hero-section {
        padding: 2rem 0;
        margin-top: 80px;
    }
    
    .glass-container {
        padding: 2rem 1.5rem;
        margin: 1rem 0.5rem;
        border-radius: 20px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    .cta-button {
        padding: 0.9rem 2rem;
        font-size: 1rem;
        width: 100%;
        max-width: 280px;
        justify-content: center;
    }
    
    .features-section {
        padding: 4rem 0;
    }
    
    .feature-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title {
        font-size: 2rem;
        margin-bottom: 3rem;
    }
    
    .benefits-list li {
        font-size: 0.95rem;
    }
    
    .hero-description {
        font-size: 1.1rem;
        margin-bottom: 2rem;
    }
    
    /* PWA Buttons - Layout vertical en pantallas pequeñas */
    .pwa-buttons-grid {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .pwa-platform-btn {
        flex-direction: column !important;
        text-align: center !important;
        padding: 1.25rem !important;
    }
    
    .platform-icon {
        margin-right: 0 !important;
        margin-bottom: 0.75rem !important;
        width: 45px !important;
        height: 45px !important;
    }
    
    .platform-content h4 {
        font-size: 1.1rem !important;
        margin-bottom: 0 !important;
    }
    
    .platform-arrow {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .hero-section {
        margin-top: 60px;
        padding: 1.5rem 0;
    }
    
    .glass-container {
        padding: 1.5rem 1rem;
        margin-top: 6rem;
    }
    
    .hero-title {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .feature-icon {
        font-size: 2rem;
    }
    
    .feature-title {
        font-size: 1.1rem;
    }
    
    .feature-description {
        font-size: 0.9rem;
    }
}