/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8fafc;
}

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

/* Header */
.modules-header {
    background: linear-gradient(135deg, #4AD7D1 0%, #3bc5bf 100%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    min-height: 80px;
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.8rem;
    font-weight: 800;
    color: white;
    text-decoration: none;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.logo svg, .logo img {
    width: 70px;
    height: 70px;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.4));
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    padding: 4px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.logo:hover {
    transform: scale(1.05);
}

.logo:hover svg, .logo:hover img {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 1);
    transform: rotate(5deg);
}

.back-button {
    background: linear-gradient(135deg, #2C3E50 0%, #34495E 100%);
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 62, 80, 0.3);
}

.back-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.4);
}

/* Hero Section */
.modules-hero {
    background: linear-gradient(135deg, 
                rgba(52, 55, 76, 0.95) 0%, 
                rgba(42, 45, 63, 0.9) 50%, 
                rgba(74, 215, 209, 0.2) 100%);
    color: white;
    padding: 120px 0 80px;
    margin-top: 80px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #4AD7D1 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.cloud-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 1rem 2rem;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-weight: 600;
}

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

/* Technology Features Section */
.tech-features-section {
    background: white;
    padding: 80px 0;
}

.tech-header {
    text-align: center;
    margin-bottom: 4rem;
}

.tech-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2a2d3f;
    margin-bottom: 1rem;
}

.tech-subtitle {
    font-size: 1.2rem;
    color: #64748b;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.tech-card {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    border: 1px solid #e2e8f0;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.tech-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: #4AD7D1;
}

.tech-icon-wrapper {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #4AD7D1 0%, #3bc5bf 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 25px rgba(74, 215, 209, 0.3);
}

.tech-icon {
    font-size: 2rem;
}

.tech-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2a2d3f;
    margin-bottom: 1rem;
}

.tech-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Module Preview Section */
.module-preview {
    background: #f8fafc;
    padding: 80px 0;
}

.preview-header {
    text-align: center;
    margin-bottom: 4rem;
}

.preview-header h2 {
    font-size: 2.8rem;
    font-weight: 700;
    color: #2a2d3f;
    margin-bottom: 1rem;
}

.preview-header p {
    font-size: 1.2rem;
    color: #64748b;
}

/* Role Selector Tabs */
.role-selector {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.role-tab {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 2.5rem;
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.role-tab:hover {
    border-color: #4AD7D1;
    color: #4AD7D1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 215, 209, 0.2);
}

.role-tab.active {
    background: linear-gradient(135deg, #4AD7D1 0%, #3bc5bf 100%);
    border-color: #4AD7D1;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 215, 209, 0.3);
}

.role-tab.active:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 215, 209, 0.4);
}

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

.role-label {
    font-size: 1.1rem;
}

.modules-container {
    display: block;
}

.modules-container.active {
    display: block;
    animation: fadeIn 0.4s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.preview-card {
    background: white;
    padding: 2.5rem 2rem;
    border-radius: 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.preview-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: #4AD7D1;
}

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

.preview-card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: #2a2d3f;
    margin-bottom: 1rem;
}

.preview-card p {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
}

/* Modules Grid */
.modules-grid {
    background: #f8fafc;
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 3rem;
    font-weight: 700;
    color: #2a2d3f;
    margin-bottom: 4rem;
}

.modules-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
}

.module-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.module-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.module-card.premium {
    border: 2px solid #f39c12;
    background: linear-gradient(135deg, #fff 0%, #fffbf6 100%);
}

.module-header {
    padding: 2rem;
    background: linear-gradient(135deg, #2a2d3f 0%, #34374c 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
}

.module-icon {
    font-size: 2.5rem;
    min-width: 3.5rem;
}

.module-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
    flex: 1;
}

.premium-badge {
    background: #f39c12;
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Mock Screenshots */
.module-screenshot {
    padding: 2rem;
    background: #f8fafc;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 280px;
}

.mock-screen {
    width: 100%;
    max-width: 320px;
    background: #2a2d3f;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.module-card:hover .mock-screen {
    transform: scale(1);
}

.mock-header {
    background: #34374c;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: white;
    font-weight: 500;
}

.mock-nav {
    width: 60px;
    height: 8px;
    background: #4AD7D1;
    border-radius: 4px;
}

.mock-content {
    padding: 1.5rem;
    color: white;
    min-height: 180px;
}

.mock-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #4AD7D1;
}

/* Specific Mock Styles */
.mock-cards {
    display: flex;
    gap: 0.8rem;
}

.mock-card {
    width: 60px;
    height: 40px;
    border-radius: 6px;
}

.mock-card.blue { background: #3498db; }
.mock-card.green { background: #27ae60; }
.mock-card.yellow { background: #f39c12; }

.units-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.unit-item {
    aspect-ratio: 1;
    background: #485570;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
    font-weight: 500;
}

.unit-item.occupied {
    background: #27ae60;
}

.residents-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.resident-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #485570;
    border-radius: 6px;
}

.resident-avatar {
    width: 32px;
    height: 32px;
    background: #4AD7D1;
    border-radius: 50%;
}

.resident-info {
    flex: 1;
}

.resident-name {
    width: 80px;
    height: 8px;
    background: #64748b;
    border-radius: 4px;
    margin-bottom: 4px;
}

.resident-unit {
    width: 40px;
    height: 6px;
    background: #94a3b8;
    border-radius: 3px;
}

.finance-stats {
    display: flex;
    gap: 1rem;
}

.stat-card {
    flex: 1;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.stat-card.green { background: #27ae60; }
.stat-card.blue { background: #3498db; }

.stat-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

.calendar-mock {
    text-align: center;
}

.calendar-header {
    font-size: 0.9rem;
    margin-bottom: 1rem;
    color: #4AD7D1;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.5rem;
}

.calendar-day {
    aspect-ratio: 1;
    background: #485570;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
}

.calendar-day.reserved {
    background: #e74c3c;
}

.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.notification-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #485570;
    border-radius: 6px;
}

.notif-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.notif-dot.red { background: #e74c3c; }
.notif-dot.blue { background: #3498db; }

.notif-text {
    font-size: 0.8rem;
    flex: 1;
}

.notification-item.urgent {
    border-left: 3px solid #e74c3c;
}

.incidents-list {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.incident-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem;
    background: #485570;
    border-radius: 6px;
}

.incident-priority {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.incident-item.critical .incident-priority {
    background: #e74c3c;
}

.incident-item.normal .incident-priority {
    background: #f39c12;
}

.incident-desc {
    font-size: 0.8rem;
    flex: 1;
}

.admin-dashboard {
    display: flex;
    gap: 1rem;
}

.admin-card {
    flex: 1;
    padding: 1rem;
    background: #485570;
    border-radius: 8px;
    text-align: center;
}

.admin-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #4AD7D1;
    margin-bottom: 0.5rem;
}

.admin-label {
    font-size: 0.8rem;
    opacity: 0.8;
}

/* Module Description */
.module-description {
    padding: 2rem;
}

.module-description p {
    font-size: 1.1rem;
    color: #475569;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.module-description ul {
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.module-description li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: #64748b;
    font-size: 0.95rem;
}

.module-description li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    font-size: 1.1rem;
}

/* CTA Section */
.modules-cta {
    background: linear-gradient(135deg, #2a2d3f 0%, #34374c 100%);
    color: white;
    padding: 80px 0;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: linear-gradient(135deg, #4AD7D1 0%, #3bc5bf 100%);
    color: white;
    padding: 1rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(74, 215, 209, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 215, 209, 0.4);
}

.btn-secondary {
    background: transparent;
    color: white;
    padding: 1rem 2rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.6);
}

/* Footer */
.modules-footer {
    background: #1a1d29;
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.3rem;
    font-weight: 700;
}

.footer-logo svg {
    width: 40px;
    height: 40px;
}

.footer-info p {
    margin-bottom: 1rem;
    color: #94a3b8;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-info span {
    color: #4AD7D1;
    font-size: 0.9rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #334155;
    color: #64748b;
}

/* WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    z-index: 1000;
    text-decoration: none;
    animation: pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
    width: 35px;
    height: 35px;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 25px rgba(37, 211, 102, 0.6);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .modules-container {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.5rem;
    }
    
    .modules-preview-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 1.5rem;
    }
    
    .tech-header h2, .preview-header h2 {
        font-size: 2.2rem;
    }
}

@media (max-width: 768px) {
    .nav {
        padding: 1rem 0;
        flex-direction: column;
        gap: 1rem;
    }
    
    .logo {
        font-size: 1.4rem;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .modules-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float svg {
        width: 30px;
        height: 30px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .modules-container {
        grid-template-columns: 1fr;
    }
    
    .module-screenshot {
        padding: 1rem;
        min-height: 240px;
    }
    
    .mock-screen {
        max-width: 280px;
    }
    
    .role-selector {
        gap: 0.8rem;
    }
    
    .role-tab {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .role-icon {
        font-size: 1.3rem;
    }
    
    .role-label {
        font-size: 1rem;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .modules-preview-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .tech-card {
        padding: 1.5rem;
    }
    
    .preview-card {
        padding: 2rem 1.5rem;
    }
    
    .tech-header h2, .preview-header h2 {
        font-size: 1.8rem;
    }
} 