/* Premium Medical & Health-Tech Design System */
:root {
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Light Theme Color Palette */
    --bg-body: #f8fafc;        /* Soft clinical off-white */
    --bg-card: #ffffff;        /* Pure white for modular cards */
    --bg-card-alt: #f1f5f9;    /* Light gray for borders or nested elements */
    --bg-header: rgba(255, 255, 255, 0.85);

    /* Text Colors */
    --text-title: #0f172a;     /* Deep slate for clear, modern contrast */
    --text-paragraph: #334155; /* Mid slate for easy reading */
    --text-muted: #64748b;      /* Muted slate for helper text */
    
    /* Branding Colors */
    --color-teal: #0d9488;      /* Primary medical/health teal */
    --color-teal-dark: #0f766e;
    --color-teal-tint: #f0fdfa; /* Extremely soft teal background */
    --color-blue: #0284c7;      /* Cloud security blue */
    --color-blue-dark: #0369a1;
    --color-blue-tint: #f0f9ff; /* Soft blue tint */
    --color-success: #10b981;
    --color-success-bg: #ecfdf5;

    /* Borders and Shadows */
    --border-subtle: #e2e8f0;   /* Clean separator borders */
    --border-accent: #cbd5e1;
    --shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.05), 0 2px 8px -1px rgba(15, 23, 42, 0.03);
    --shadow-premium: 0 25px 50px -12px rgba(15, 23, 42, 0.08);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.02);
    
    /* Global Settings */
    --max-width: 1200px;
    --header-height: 85px;
    --border-radius-lg: 20px;
    --border-radius-md: 12px;
}

/* Base Reset */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-body);
    color: var(--text-paragraph);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Ambient Background Blobs (Soft, clean blue/teal light) */
.light-ambient-glow {
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    filter: blur(160px);
    pointer-events: none;
    z-index: -2;
    opacity: 0.5;
}

.glow-top-right {
    top: -200px;
    right: -100px;
    background: radial-gradient(circle, #e0f2fe 0%, rgba(248, 250, 252, 0) 70%);
}

.glow-bottom-left {
    bottom: -100px;
    left: -200px;
    background: radial-gradient(circle, #ccfbf1 0%, rgba(248, 250, 252, 0) 70%);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Header styling */
.site-header {
    height: var(--header-height);
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.logo-container {
    width: 50px;
    height: 50px;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
}

.brand-logo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-text-block {
    display: flex;
    flex-direction: column;
}

.badge-municipal {
    font-size: 0.72rem;
    font-family: var(--font-heading);
    font-weight: 600;
    color: var(--color-teal-dark);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.brand-title {
    font-size: 1.35rem;
    font-family: var(--font-heading);
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.01em;
}

.security-status-badge {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background-color: var(--color-success-bg);
    border: 1px solid rgba(16, 185, 129, 0.18);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.03);
}

.status-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-success);
    border-radius: 50%;
    animation: pulseActive 2s infinite;
}

.status-text {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--color-success);
    letter-spacing: 0.02em;
}

.icon-shield {
    width: 14px;
    height: 14px;
    color: var(--color-success);
}

/* Main Content Area */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5rem;
    padding-top: 3.5rem;
    padding-bottom: 5rem;
}

/* Hero Section */
.hero-section {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
}

.hero-header-block {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: var(--color-blue-tint);
    border: 1px solid rgba(2, 132, 199, 0.15);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.badge-pulse {
    width: 6px;
    height: 6px;
    background-color: var(--color-blue);
    border-radius: 50%;
    animation: bluePulse 1.8s infinite;
}

.badge-label {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--color-blue-dark);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--text-title);
    letter-spacing: -0.03em;
    margin-bottom: 0.75rem;
}

.text-gradient {
    background: linear-gradient(135deg, var(--color-teal) 30%, var(--color-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-meta-subtitle {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.subtitle-loc {
    color: var(--text-title);
    font-weight: 600;
}

.subtitle-status {
    color: var(--color-teal);
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.subtitle-divider {
    color: var(--border-subtle);
}

/* Hero Modular Grid */
.hero-modular-grid {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3rem;
    align-items: stretch;
}

/* Left Column: Dashboard cards */
.hero-dashboard-column {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Generic Modular Card Styles */
.modular-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s ease;
}

.modular-card:hover {
    box-shadow: var(--shadow-premium);
    transform: translateY(-2px);
}

/* Card 1: Project intro */
.card-intro .card-tag {
    font-family: var(--font-heading);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--color-teal);
    letter-spacing: 0.08em;
    margin-bottom: 0.75rem;
}

.card-intro .card-desc {
    font-size: 1.05rem;
    color: var(--text-paragraph);
    line-height: 1.65;
}

/* Card 2: DevOps Progress Checklist */
.checklist-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.checklist-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-title);
}

.checklist-progress {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-blue-dark);
    background-color: var(--color-blue-tint);
    padding: 0.25rem 0.6rem;
    border-radius: 20px;
}

.progress-bar-container {
    height: 6px;
    background-color: var(--bg-card-alt);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(to right, var(--color-teal), var(--color-blue));
    border-radius: 10px;
}

.checklist-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.checklist-item.completed {
    color: var(--text-paragraph);
}

.checklist-item.active {
    color: var(--text-title);
}

.check-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
}

.checklist-item.completed .check-icon {
    background-color: var(--color-teal-tint);
    border: 1.5px solid var(--color-teal);
    color: var(--color-teal);
}

.checklist-item.active .check-icon {
    background-color: var(--color-blue-tint);
    border: 1.5px solid var(--color-blue);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-blue);
    border-radius: 50%;
    animation: bluePulse 1.5s infinite;
}

.checklist-item.planned .check-icon {
    background-color: var(--bg-card-alt);
    border: 1.5px solid var(--border-subtle);
    color: var(--text-muted);
}

.checklist-item .font-medium {
    font-weight: 600;
}

/* Card 3: Governance block for Technicalgroup */
.card-governance {
    background: linear-gradient(135deg, #ffffff 60%, var(--color-blue-tint) 100%);
    border-color: rgba(2, 132, 199, 0.12);
}

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

.gov-icon-wrapper {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background-color: var(--color-blue-tint);
    border: 1px solid rgba(2, 132, 199, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-blue);
}

.gov-icon {
    width: 20px;
    height: 20px;
}

.gov-titles {
    display: flex;
    flex-direction: column;
}

.gov-badge {
    font-size: 0.65rem;
    font-family: var(--font-heading);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-blue-dark);
    font-weight: 700;
}

.gov-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-title);
    letter-spacing: -0.01em;
}

.gov-desc {
    font-size: 0.88rem;
    color: var(--text-paragraph);
    line-height: 1.55;
}

/* Right Column: Premium Interactive Showcase Card */
.hero-visual-column {
    display: flex;
    align-items: stretch;
}

.showcase-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-card);
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    transition: all 0.3s ease;
}

.showcase-card:hover {
    box-shadow: var(--shadow-premium);
}

/* iOS Segment style controls */
.showcase-tabs-pill {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.25rem;
    background-color: #f1f5f9;
    padding: 0.25rem;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-inner);
    border: 1px solid #e2e8f0;
}

.showcase-tab {
    background: transparent;
    border: none;
    padding: 0.75rem 0.5rem;
    border-radius: 9px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-svg-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.2;
}

.showcase-tab:hover {
    color: var(--text-title);
}

.showcase-tab.active {
    background-color: #ffffff;
    color: var(--text-title);
    box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.08);
}

/* Showcase Viewport */
.showcase-image-viewport {
    flex: 1;
    min-height: 380px;
    position: relative;
    border-radius: var(--border-radius-md);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background-color: var(--bg-card-alt);
}

.image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transform: scale(0.98);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
}

.image-wrapper.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: auto;
}

.viewport-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Overlay Badge on Image viewport */
.viewport-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.6) 0%, rgba(15, 23, 42, 0) 100%);
    padding: 2rem 1.25rem 1.25rem;
    display: flex;
    align-items: flex-end;
}

.viewport-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 0.5rem 0.9rem;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-title);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.viewport-badge.secure {
    background-color: var(--color-teal-tint);
    border-color: rgba(13, 148, 136, 0.2);
    color: var(--color-teal-dark);
}

.badge-svg {
    width: 14px;
    height: 14px;
}

.showcase-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.25rem;
}

.showcase-hint {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1.35;
}

.status-indicator-dot {
    width: 8px;
    height: 8px;
    background-color: var(--color-teal);
    border-radius: 50%;
    box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.3);
    animation: tealGlow 2s infinite;
}

/* Institutional banner (Municipalidad) */
.municipal-trust-banner {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: 1.75rem 2.25rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    box-shadow: var(--shadow-card);
}

.mun-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background-color: var(--color-teal-tint);
    border: 1px solid rgba(13, 148, 136, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal);
    flex-shrink: 0;
}

.mun-svg {
    width: 24px;
    height: 24px;
}

.mun-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mun-heading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-title);
}

.mun-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* Pillars Section */
.pillars-section {
    display: flex;
    flex-direction: column;
    gap: 3.5rem;
    border-top: 1px solid var(--border-subtle);
    padding-top: 5rem;
}

.pillars-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.pillars-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-title);
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.pillars-subtitle {
    font-size: 0.98rem;
    color: var(--text-muted);
}

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

.pillar-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--border-radius-lg);
    padding: 2.25rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    top: 0;
}

.pillar-card:hover {
    box-shadow: var(--shadow-premium);
    top: -4px;
    border-color: rgba(13, 148, 136, 0.2);
}

.pillar-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--color-teal-tint);
    border: 1px solid rgba(13, 148, 136, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-teal);
    transition: all 0.3s ease;
}

.pillar-card:hover .pillar-icon-box {
    background-color: var(--color-teal);
    color: #ffffff;
    transform: scale(1.03);
}

.pillar-icon-box svg {
    width: 20px;
    height: 20px;
}

.pillar-card-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-title);
}

.pillar-card-text {
    font-size: 0.88rem;
    color: var(--text-paragraph);
    line-height: 1.6;
}

/* Footer Styling */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--border-subtle);
    padding: 3rem 0;
    margin-top: auto;
}

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

.footer-left {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-mun-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-title);
    letter-spacing: 0.02em;
}

.footer-copyright {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.techgroup-signature {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.sig-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.2rem;
}

.sig-link {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 1.1rem;
    color: var(--text-title);
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    transition: color 0.2s ease;
}

.sig-link:hover {
    color: var(--color-teal);
}

.sig-sub {
    font-size: 0.65rem;
    color: var(--color-teal);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Animations */
@keyframes pulseActive {
    0% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

@keyframes bluePulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0.5);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 6px rgba(2, 132, 199, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(2, 132, 199, 0);
    }
}

@keyframes tealGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(13, 148, 136, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(13, 148, 136, 0);
    }
}

/* Responsive Rules */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .hero-modular-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .showcase-image-viewport {
        min-height: 420px;
    }
    
    .municipal-trust-banner {
        flex-direction: column;
        text-align: center;
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }

    .container {
        padding: 0 1.5rem;
    }

    .site-header {
        height: auto;
        padding: 0.75rem 0;
    }

    .header-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .main-content {
        padding-top: 2rem;
        gap: 3.5rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

    .pillars-section {
        padding-top: 3.5rem;
    }

    .footer-container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .techgroup-signature, .sig-link {
        align-items: center;
    }
}

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

    .hero-meta-subtitle {
        flex-direction: column;
        gap: 0.25rem;
    }

    .subtitle-divider {
        display: none;
    }

    .showcase-image-viewport {
        min-height: 320px;
    }
}
