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

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&family=Nunito:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&family=Open+Sans:wght@400;500;600;700&family=Source+Sans+Pro:wght@400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* Header & Navigation */
.navbar {
    background: #2c3e50;
    padding: 1rem 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo-img {
    height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
}

.logo h1 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
    font-family: 'Montserrat', sans-serif;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

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

.nav-link {
    color: #ecf0f1;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #3498db;
}

/* Navigation Dropdown */
.nav-dropdown {
    position: relative;
}

.nav-arrow {
    font-size: 0.65rem;
    margin-left: 4px;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .nav-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #2c3e50;
    min-width: 200px;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
    padding: 0.5rem 0;
    list-style: none;
    z-index: 1001;
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    color: #ecf0f1;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.dropdown-menu li a:hover {
    background: #34495e;
    color: #3498db;
}

.dropdown-divider {
    height: 1px;
    background: #34495e;
    margin: 0.4rem 0;
}

.dropdown-subitem a {
    padding-left: 2.2rem !important;
    font-size: 0.85rem !important;
    color: #bdc3c7 !important;
}

.dropdown-subitem a:before {
    content: "└ ";
    color: #3498db;
}

.dropdown-subitem a:hover {
    color: #3498db !important;
}

/* Font classes for different typographies */
.font-nunito {
    font-family: 'Nunito', sans-serif !important;
    font-weight: 600;
}

.font-poppins {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 600;
}

.font-opensans {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 600;
}

.font-sourcesans {
    font-family: 'Source Sans Pro', sans-serif !important;
    font-weight: 600;
}

/* Language Selector */
.lang-selector {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 0.5rem;
    padding-left: 1rem;
    border-left: 1px solid rgba(255,255,255,0.2);
}

.lang-link {
    color: #8899aa;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.2s;
}

.lang-link:hover {
    color: #3498db;
}

.lang-active {
    color: #fff;
    font-size: 1rem;
}

.lang-sep {
    color: rgba(255,255,255,0.3);
    font-size: 0.8rem;
}

.lang-flag {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #ecf0f1;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 120px 0 80px;
    color: white;
    display: flex;
    align-items: center;
    min-height: 100vh;
}

.hero-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

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

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

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-2px);
}

.btn-secondary {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

.btn-outline {
    background: transparent;
    border: 2px solid #3498db;
    color: #3498db;
}

.btn-outline:hover {
    background: #3498db;
    color: #fff;
    transform: translateY(-2px);
}

.hero-image {
    text-align: center;
}

.hero-image i {
    font-size: 15rem;
    opacity: 0.3;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

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

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    text-align: center;
    margin-bottom: 1rem;
}

.service-icon i {
    font-size: 3rem;
    color: #3498db;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    text-align: center;
}

.service-card p {
    margin-bottom: 1.5rem;
    color: #666;
    text-align: center;
}

.service-card ul {
    list-style: none;
}

.service-card ul li {
    padding: 0.5rem 0;
    color: #666;
    position: relative;
    padding-left: 1.5rem;
}

.service-card ul li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: bold;
}

.service-subsections {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.service-subsection {
    border: 1px solid #eef2f7;
    border-radius: 8px;
    padding: 0.85rem;
    background: #fdfefe;
}

.service-subsection h4 {
    font-size: 1rem;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.service-subsection p {
    margin: 0;
    color: #56606a;
    font-size: 0.95rem;
}

.service-cta {
    margin-top: 1.5rem;
    text-align: center;
}

/* Service detail pages */
.service-hero {
    padding: 150px 0 90px;
    color: #fff;
}

.service-telephony {
    background: linear-gradient(135deg, #1d2671, #c33764);
}

.service-networks {
    background: linear-gradient(135deg, #134e5e, #71b280);
}

.service-security {
    background: linear-gradient(135deg, #232526, #414345);
}

.service-hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.service-badge {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.6);
    border-radius: 999px;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.service-hero-text h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.service-hero-desc {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: rgba(255,255,255,0.9);
}

.service-hero-list {
    list-style: none;
    margin-bottom: 1.5rem;
}

.service-hero-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
}

.service-hero-list li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: #ffd166;
    font-size: 1.5rem;
    line-height: 1;
}

.service-hero-panel {
    background: #fff;
    color: #1e293b;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 20px 45px rgba(15,23,42,0.15);
}

.service-hero-panel h3 {
    margin-bottom: 0.7rem;
}

.service-hero-panel ul {
    list-style: none;
}

.service-hero-panel li {
    padding-left: 1.3rem;
    margin-bottom: 0.6rem;
    position: relative;
    color: #475569;
}

.service-hero-panel li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: #2563eb;
}

.service-panels {
    padding: 80px 0;
}

.section-intro {
    text-align: center;
    color: #64748b;
    max-width: 680px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.panel-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.8rem;
    box-shadow: 0 12px 30px rgba(15,23,42,0.08);
    border: 1px solid #eef2f7;
}

.panel-card h3 {
    margin-bottom: 0.6rem;
    color: #1f2937;
}

.panel-card p {
    color: #4b5563;
    margin-bottom: 1rem;
}

.panel-card ul {
    list-style: none;
}

.panel-card ul li {
    padding-left: 1.3rem;
    position: relative;
    color: #6b7280;
    margin-bottom: 0.5rem;
}

.panel-card ul li:before {
    content: "▹";
    position: absolute;
    left: 0;
    color: #10b981;
}

.service-footnote {
    font-size: 0.8rem;
    color: #94a3b8;
    margin-top: 0.8rem;
}

.service-stack {
    background: #f1f5f9;
    padding: 70px 0;
}

.stack-card {
    background: white;
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 15px 25px rgba(15,23,42,0.08);
}

.stack-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.stack-list span {
    background: #eef2ff;
    color: #4338ca;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

.service-usecases {
    padding: 70px 0;
}

.usecase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.usecase-card {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    background: white;
}

.usecase-card i {
    font-size: 2rem;
    color: #2563eb;
    margin-bottom: 0.6rem;
}

.usecase-card p {
    color: #475569;
}

.service-cta-final {
    padding: 90px 0;
    text-align: center;
    background: #0f172a;
    color: #fff;
}

.service-cta-final p {
    margin: 1rem auto 2rem;
    max-width: 640px;
    color: rgba(255,255,255,0.85);
}

@media (max-width: 768px) {
    .service-hero {
        padding-top: 120px;
    }

    .service-hero-text h1 {
        font-size: 2rem;
    }
}

/* Modules Section */
.modules {
    padding: 120px 0 80px;
    background: white;
}

.modules h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.modules-intro {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    color: #666;
    font-size: 1.1rem;
    line-height: 1.8;
}

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

.module-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 3px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

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

.module-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.module-icon i {
    font-size: 1.4rem;
    color: white;
}

.module-header h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin: 0;
    flex-grow: 1;
}

.module-badge {
    background: #3498db;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.badge-dev {
    background: #f59e0b;
    color: #78350f;
}

.module-dev {
    opacity: 0.85;
    position: relative;
}

.module-desc {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.module-details h4 {
    color: #2c3e50;
    font-size: 1rem;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    font-weight: 700;
    border-left: 3px solid #3498db;
    padding-left: 8px;
}

.module-details p {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}

.module-details ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0.5rem 0;
}

.module-details ul li {
    padding: 0.3rem 0;
    padding-left: 1.5rem;
    color: #666;
    font-size: 0.9rem;
    position: relative;
}

.module-details ul li:before {
    content: "\f0da";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    color: #3498db;
}

.module-details .benefits-list li:before {
    content: "\f00c";
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    color: #27ae60;
}

/* About Section */
.about {
    padding: 80px 0;
    background: #f8f9fa;
}

.about h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
    text-align: center;
}

.why-different {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.reason-card {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.reason-card:hover {
    transform: translateY(-5px);
}

.reason-number {
    position: absolute;
    top: -15px;
    left: 20px;
    background: #27ae60;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.reason-card:nth-child(2) .reason-number { background: #27ae60; }
.reason-card:nth-child(3) .reason-number { background: #27ae60; }
.reason-card:nth-child(4) .reason-number { background: #27ae60; }
.reason-card:nth-child(5) .reason-number { background: #27ae60; }
.reason-card:nth-child(6) .reason-number { background: #27ae60; }
.reason-card:nth-child(7) .reason-number { background: #27ae60; }
.reason-card:nth-child(8) .reason-number { background: #27ae60; }
.reason-card:nth-child(9) .reason-number { background: #27ae60; }

.reason-card h3 {
    color: #2c3e50;
    font-size: 1.2rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
    font-weight: 600;
}

.reason-card p {
    color: #666;
    line-height: 1.6;
    font-size: 0.95rem;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #f8f9fa;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: #2c3e50;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
}

.contact-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

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

.contact-item i {
    color: #3498db;
    font-size: 1.2rem;
    width: 20px;
}

.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-form h3 {
    margin-bottom: 1.5rem;
    color: #2c3e50;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group.honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
}

.form-group textarea {
    resize: vertical;
}

.form-check-group {
    margin-bottom: 1rem;
}

.form-check-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #555;
    line-height: 1.5;
}

.form-check-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: #3498db;
    cursor: pointer;
}

.form-check-label a {
    color: #3498db;
    text-decoration: underline;
}

.gdpr-info {
    margin-top: 2rem;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-left: 4px solid #3498db;
    border-radius: 4px;
    font-size: 0.83rem;
    color: #555;
    line-height: 1.6;
}

.gdpr-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.gdpr-info dl {
    margin-bottom: 1rem;
}

.gdpr-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.gdpr-row dt {
    font-weight: 600;
    color: #2c3e50;
    flex-shrink: 0;
    min-width: 110px;
}

.gdpr-row dd {
    margin: 0;
}

.gdpr-info p {
    margin-bottom: 0.5rem;
}

.gdpr-info a {
    color: #3498db;
}

.form-status {
    margin-top: 0.75rem;
    font-size: 0.95rem;
    min-height: 1.2em;
    color: #475569;
}

.form-status.success {
    color: #16a34a;
}

.form-status.error {
    color: #dc2626;
}

/* Footer */
footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: #3498db;
}

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

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

.footer-section ul li a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-links {
    text-align: center;
    margin-bottom: 1rem;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 0.5rem;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: #3498db;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .why-different {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: 0;
        top: 70px;
        z-index: 999;
        flex-direction: column;
        background-color: #2c3e50;
        width: 100%;
        text-align: center;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 2rem 0;
        display: none;
    }

    .nav-menu.active {
        display: flex;
    }

    .lang-selector {
        justify-content: center;
        border-left: none;
        padding-left: 0;
        margin-left: 0;
        padding-top: 0.5rem;
        border-top: 1px solid rgba(255,255,255,0.1);
    }

    .nav-dropdown {
        position: static;
    }

    .dropdown-menu {
        position: static;
        display: none;
        box-shadow: none;
        background: #34495e;
        border-radius: 0;
        min-width: 100%;
        padding: 0;
    }

    .nav-dropdown.open .dropdown-menu {
        display: block;
    }

    .dropdown-menu li a {
        padding: 0.5rem 1.2rem;
        font-size: 0.85rem;
    }

    .dropdown-divider {
        margin: 0.2rem 1rem;
    }

    .hero {
        flex-direction: column;
        justify-content: center;
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        min-width: 0;
        width: 100%;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-image i {
        font-size: 8rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .modules-grid {
        grid-template-columns: 1fr;
    }

    .about-content {
        grid-template-columns: 1fr;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .contact-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }

    .why-different {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 60px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .services,
    .about,
    .contact {
        padding: 60px 0;
    }

    .service-card,
    .contact-form,
    .module-card {
        padding: 1.5rem;
    }

    .modules h2 {
        font-size: 1.8rem;
    }

    .modules-intro {
        font-size: 1rem;
    }
}

/* Legal pages styling */
.legal-content {
    padding: 120px 0 80px;
    background: #f8f9fa;
}

.legal-text {
    background: white;
    padding: 3rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    line-height: 1.8;
}

.legal-text h1 {
    color: #2c3e50;
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
}

.legal-text h2 {
    color: #2c3e50;
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.legal-text h3 {
    color: #34495e;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-size: 1.2rem;
}

.legal-text h4 {
    color: #34495e;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.legal-text ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.legal-text li {
    margin-bottom: 0.5rem;
}

.legal-text a {
    color: #3498db;
    text-decoration: none;
}

.legal-text a:hover {
    text-decoration: underline;
}

.cookie-table {
    margin: 1.5rem 0;
    overflow-x: auto;
}

.cookie-table table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
}

.cookie-table th,
.cookie-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.cookie-table th {
    background-color: #f8f9fa;
    font-weight: bold;
    color: #2c3e50;
}

.cookie-table tr:hover {
    background-color: #f5f5f5;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

/* Animation for service cards */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.service-card {
    animation: fadeInUp 0.6s ease-out;
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Modulos detail page */
.module-layout {
    background-color: #f8fafc;
}

.module-hero {
    padding: 4rem 0 3rem;
    background: linear-gradient(135deg, #0f172a, #1e3a8a);
    color: #fff;
}

.module-hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
    display: block;
    color: rgba(255, 255, 255, 0.7);
}

.module-hero h1 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

.module-hero .hero-lead {
    max-width: 900px;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.demo-access {
    padding: 3rem 0;
}

.demo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    align-items: start;
}

.demo-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.09);
}

.demo-note {
    font-size: 0.9rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

.demo-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.demo-list li {
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.demo-table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.95rem;
}

.demo-table th,
.demo-table td {
    border: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.demo-table th {
    background: #f1f5f9;
    font-weight: 600;
}

.module-directory {
    padding: 2rem 0 1rem;
}

.module-index-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 1.5rem;
}

.module-index-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    background: #fff;
    border-radius: 16px;
    padding: 1rem 1.2rem;
    text-decoration: none;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    box-shadow: 0 12px 22px rgba(15, 23, 42, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.module-index-card span {
    font-size: 0.85rem;
    color: #475569;
}

.module-index-card i {
    color: #2563eb;
    margin-right: 0.4rem;
}

.module-index-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 30px rgba(15, 23, 42, 0.12);
}

.module-detail-list {
    padding: 2rem 0 4rem;
}

.module-detail-card {
    background: #fff;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #e2e8f0;
}

.module-detail-heading {
    display: flex;
    gap: 1rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.module-detail-heading h3 {
    margin: 0;
}

.module-detail-heading p {
    margin: 0.2rem 0 0;
    color: #475569;
}

.module-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.module-detail-content h4 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
    color: #0f172a;
}

.module-detail-content ul,
.module-detail-content ol {
    margin: 0 0 1rem 1.2rem;
    color: #334155;
}

.module-detail-content li {
    margin-bottom: 0.35rem;
}

.module-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.image-placeholder {
    border: 2px dashed #cbd5f5;
    border-radius: 16px;
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-size: 0.95rem;
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8fafc;
}

.module-resources {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.module-resources ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #1e293b;
}

.module-highlight {
    outline: 3px solid #2563eb;
    box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.15);
}

/* Bottom navigation bar */
.module-back-top {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.module-back-top .btn {
    font-size: 0.95rem;
    padding: 10px 24px;
}

.module-back-top .btn i {
    margin-right: 0.4rem;
}

/* Dark outlined button variant */
.btn-secondary-dark {
    background: transparent;
    color: #1e293b;
    border: 2px solid #cbd5e1;
}

.btn-secondary-dark:hover {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
    transform: translateY(-2px);
}

@media (max-width: 992px) {
    .module-detail-grid {
        grid-template-columns: 1fr;
    }

    .module-detail-card {
        padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .module-hero {
        padding: 3rem 0 2rem;
    }

    .module-detail-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .image-placeholder {
        min-height: 60px;
    }

    .module-back-top {
        flex-direction: column;
        align-items: stretch;
    }

    .module-back-top .btn {
        text-align: center;
    }
}

/* ============================================
   Single Module Detail Page (modulos.html)
   ============================================ */

.module-single-hero {
    padding: 120px 0 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
}

.module-back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    transition: color 0.2s;
}

.module-back-link:hover {
    color: white;
}

.module-single-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.module-single-header .module-icon {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.module-single-header .module-icon i {
    color: #60a5fa;
}

.module-single-header h1 {
    font-size: 2.2rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.module-single-tagline {
    margin: 0.5rem 0 0;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 700px;
}

.module-single-body {
    padding: 2.5rem 0 4rem;
}

.module-single-overview {
    margin-bottom: 2rem;
}

.module-single-overview h2 {
    font-size: 1.6rem;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

.module-single-overview p {
    font-size: 1.05rem;
    color: #475569;
    line-height: 1.7;
}

.module-single-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.module-single-col {
    background: #f8fafc;
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
}

.module-single-col h3 {
    font-size: 1.15rem;
    color: #1e293b;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-single-col h3 i {
    color: #2563eb;
}

.module-single-col ul {
    margin: 0;
    padding-left: 1.2rem;
    color: #334155;
}

.module-single-col li {
    margin-bottom: 0.4rem;
    line-height: 1.5;
}

.module-single-detail-card {
    background: white;
    border-radius: 22px;
    padding: 2rem;
    box-shadow: 0 24px 45px rgba(15, 23, 42, 0.08);
    border: 1px solid #e2e8f0;
    margin-bottom: 2.5rem;
}

.module-single-detail-card h2 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.module-single-summary {
    color: #475569;
    margin-bottom: 1.5rem;
    font-size: 1.02rem;
}

.module-single-tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.module-single-detail-card h4 {
    font-size: 1rem;
    color: #1e293b;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-single-detail-card h4 i {
    color: #2563eb;
    font-size: 0.9rem;
}

.module-single-detail-card ul,
.module-single-detail-card ol {
    margin: 0 0 1rem 1.2rem;
    color: #334155;
}

.module-single-detail-card li {
    margin-bottom: 0.35rem;
    line-height: 1.5;
}

.module-single-gallery {
    margin-bottom: 2.5rem;
}

.module-single-gallery h3 {
    font-size: 1.2rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.module-single-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.gallery-figure {
    margin: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
    cursor: pointer;
}

.gallery-figure:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.gallery-figure a {
    display: block;
    overflow: hidden;
    height: 160px;
}

.gallery-figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    display: block;
    transition: transform 0.2s;
}

.gallery-figure:hover img {
    transform: scale(1.03);
}

.gallery-figure figcaption {
    padding: 0.5rem 0.6rem;
    font-size: 0.8rem;
    color: #475569;
    text-align: center;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    line-height: 1.3;
}

/* Lightbox overlay */
.gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    cursor: pointer;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 95%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    object-fit: contain;
}

.gallery-lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.gallery-lightbox-close:hover {
    opacity: 1;
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    border: none;
    font-size: 1.8rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 10;
}

.gallery-lightbox-prev { left: 1rem; }
.gallery-lightbox-next { right: 1rem; }

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.35);
}

.gallery-lightbox-caption {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.6);
    padding: 0.5rem 1.2rem;
    border-radius: 8px;
    max-width: 80%;
    text-align: center;
}

.gallery-lightbox-counter {
    position: absolute;
    top: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 0.3rem 0.9rem;
    border-radius: 20px;
}

@media (max-width: 768px) {
    .gallery-lightbox-prev,
    .gallery-lightbox-next {
        width: 56px;
        height: 56px;
        font-size: 2rem;
    }
}

.module-single-demo {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(135deg, #eff6ff 0%, #f0fdf4 100%);
    border: 1px solid #bfdbfe;
    border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2.5rem;
}

.module-single-demo > i {
    font-size: 2rem;
    color: #2563eb;
    flex-shrink: 0;
}

.module-single-demo div {
    flex: 1;
}

.module-single-demo strong {
    font-size: 1.05rem;
    color: #1e293b;
}

.module-single-demo p {
    margin: 0.25rem 0 0;
    color: #475569;
    font-size: 0.9rem;
}

.module-single-demo code {
    background: rgba(37, 99, 235, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85rem;
}

.module-single-demo .btn {
    flex-shrink: 0;
}

.module-single-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.module-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #1e293b;
    padding: 0.75rem 1.25rem;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s;
    font-size: 0.95rem;
}

.module-nav-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    transform: translateY(-1px);
}

.module-nav-btn span {
    display: flex;
    flex-direction: column;
}

.module-nav-btn small {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.module-nav-center {
    background: #1e293b;
    color: white;
    border-color: #1e293b;
}

.module-nav-center:hover {
    background: #334155;
    color: white;
    border-color: #334155;
}

.module-nav-prev span {
    text-align: left;
}

.module-nav-next span {
    text-align: right;
}

/* Single module responsive */
@media (max-width: 992px) {
    .module-single-columns {
        grid-template-columns: 1fr;
    }

    .module-single-tech-grid {
        grid-template-columns: 1fr;
    }

    .module-single-gallery-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gallery-figure a {
        height: 130px;
    }
}

@media (max-width: 640px) {
    .module-single-hero {
        padding: 100px 0 1.5rem;
    }

    .module-single-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .module-single-header h1 {
        font-size: 1.6rem;
    }

    .module-single-demo {
        flex-direction: column;
        text-align: center;
    }

    .module-single-gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-figure a {
        height: 140px;
    }

    .module-single-nav {
        flex-direction: column;
    }

    .module-nav-btn {
        width: 100%;
        justify-content: center;
    }

    .module-nav-prev span,
    .module-nav-next span {
        text-align: center;
    }
}

/* ===== Cookie consent banner ===== */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: #1a2a3a;
    color: #e8edf2;
    box-shadow: 0 -4px 16px rgba(0,0,0,0.25);
}

.cookie-banner-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.cookie-banner-inner p {
    flex: 1;
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #cbd5e1;
    min-width: 200px;
}

.cookie-banner-inner p a {
    color: #60a5fa;
    text-decoration: underline;
    white-space: nowrap;
}

.cookie-banner-btns {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-shrink: 0;
}

.cookie-banner-btns .btn {
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
}

.cookie-reject-btn {
    background: none;
    border: 1px solid #94a3b8;
    color: #cbd5e1;
    padding: 0.5rem 1.2rem;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s, color 0.2s;
}

.cookie-reject-btn:hover {
    border-color: #e2e8f0;
    color: #f1f5f9;
}

@media (max-width: 600px) {
    .cookie-banner-inner {
        flex-direction: column;
        align-items: stretch;
        padding: 1rem;
        gap: 0.75rem;
    }
    .cookie-banner-btns {
        justify-content: center;
    }
}
