/* Force all titles uppercase */
.section-title,
.hero-title-dim,
section h2 {
    text-transform: uppercase;
}

/* Specific page overrides can go here */
/* Risk Statistics Bar - Tactical */
/* Impacto Operacional Section - Template Style */
.impact-section {
    margin-bottom: 40px;
    text-align: center;
    width: 100%;
}

.impact-header-group {
    margin-top: 30px;
    /* Space from stats container above */
    margin-bottom: 10px;
    /* Reduced space to calculator below */
}

.impact-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    color: #38bdf8;
    font-size: 0.85rem;
    /* Slightly larger */
    letter-spacing: 3px;
    /* Wider spacing */
    text-transform: uppercase;
    margin-bottom: 5px;
    opacity: 1;
    /* Full opacity for crispness */
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
    /* Subtle glow */
}

.impact-heading {
    font-family: 'Inter', sans-serif;
    color: #cbd5e1;
    /* Muted silver/grey similar to image */
    font-size: 3rem;
    /* Larger impact */
    font-weight: 500;
    /* Medium weight */
    letter-spacing: -1px;
    margin: 0;
    opacity: 1;
}


/* Calculator Component CSS - Cyberwar x Executive Edition */
.calculator-card {
    background: linear-gradient(145deg, rgba(2, 12, 27, 0.95) 0%, rgba(10, 25, 47, 0.98) 100%);
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 4px;
    padding: 0;
    width: 100%;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.8), 0 0 20px rgba(56, 189, 248, 0.05);
    font-family: var(--font-heading);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    position: relative;
    backdrop-filter: blur(10px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* "Tech" Corners overlay */
.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    border-top: 2px solid #38bdf8;
    border-left: 2px solid #38bdf8;
    z-index: 2;
}

.calculator-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    border-bottom: 2px solid #38bdf8;
    border-right: 2px solid #38bdf8;
    z-index: 2;
}

.calc-header {
    background: rgba(13, 31, 56, 0.9);
    padding: 15px 25px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Scanline effect for header */
.calc-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #38bdf8, transparent);
    opacity: 0.5;
}

.calc-title {
    color: #e6f1ff;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.3);
}

.calc-status {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.5px;
    background: rgba(16, 185, 129, 0.1);
    padding: 4px 10px;
    border-radius: 2px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-dot {
    width: 6px;
    height: 6px;
    background-color: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 1.5s infinite;
}

.metrics-row {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    border-bottom: 1px solid rgba(56, 189, 248, 0.1);
}

.metric-card {
    padding: 30px;
    border-right: 1px solid rgba(56, 189, 248, 0.1);
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background: rgba(2, 12, 27, 0.4);
    transition: all 0.3s ease;
}

.metric-card:hover {
    background: rgba(56, 189, 248, 0.03);
    box-shadow: inset 0 0 20px rgba(56, 189, 248, 0.05);
}

.metric-card:last-child {
    border-right: none;
}

.metric-label {
    color: #8892b0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    margin-bottom: 15px;
    opacity: 0.8;
    font-weight: 600;
}

.metric-value {
    font-family: 'Inter', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: #e6f1ff;
    margin-bottom: 8px;
    line-height: 1;
    letter-spacing: -1px;
}

.metric-value.gold {
    color: #ffbd2e;
    font-size: 3rem;
    text-shadow: 0 0 30px rgba(255, 189, 46, 0.2);
    background: linear-gradient(180deg, #fff 0%, #ffbd2e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.metric-value.teal {
    color: #38bdf8;
    text-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.metric-value.red {
    color: #f43f5e;
    text-shadow: 0 0 15px rgba(244, 63, 94, 0.2);
}

.metric-sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: #8892b0;
    opacity: 0.6;
    margin-top: 5px;
}

.content-area {
    padding: 30px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    background: radial-gradient(circle at center, rgba(16, 33, 62, 0.5) 0%, rgba(2, 12, 27, 0.8) 100%);
    min-height: 420px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
    animation: slideInLeft 0.6s ease-out 0.2s backwards;
}

.right-column {
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.6s ease-out 0.4s backwards;
}

.graph-container {
    border: 1px solid rgba(56, 189, 248, 0.15);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 45px 25px 25px;
    background: rgba(10, 25, 47, 0.4);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.graph-label {
    position: absolute;
    top: 15px;
    left: 15px;
    font-size: 0.75rem;
    color: #38bdf8;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.progress-bars-container {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.p-bar-label {
    font-size: 0.7rem;
    color: #ccd6f6;
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.5px;
}

.p-bar-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.p-bar-fill {
    height: 100%;
    width: 0%;
    transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px currentColor;
    position: relative;
}

/* Scan effect on bars */
.p-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    animation: shimmer 2s infinite;
}

.inputs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-label {
    color: #8892b0;
    font-size: 0.7rem;
    margin-bottom: 8px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.input-field {
    width: 100%;
    background: rgba(2, 12, 27, 0.7);
    border: 1px solid rgba(56, 189, 248, 0.2);
    color: #38bdf8;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    padding: 12px 15px;
    border-radius: 0;
    /* Tactical sharp edges */
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #38bdf8;
    background: rgba(17, 34, 64, 0.9);
    box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
}

/* Threat Monitor - Cyberwar Style */
.threat-monitor {
    flex: 1;
    border: 1px solid rgba(244, 63, 94, 0.2);
    /* Red tint for threat awareness */
    background: rgba(2, 12, 27, 0.8);
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    position: relative;
}

/* CRT Scanline Overlay */
.threat-monitor::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
}

.monitor-header {
    background: rgba(20, 10, 20, 0.9);
    padding: 12px 20px;
    border-bottom: 1px solid rgba(244, 63, 94, 0.2);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.monitor-title {
    color: #f43f5e;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.monitor-badge {
    background: rgba(244, 63, 94, 0.15);
    color: #f43f5e;
    padding: 4px 8px;
    border-radius: 2px;
    font-size: 0.65rem;
    font-weight: 700;
    border: 1px solid rgba(244, 63, 94, 0.4);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.1);
    animation: pulse-red 2s infinite;
}

.monitor-body {
    flex: 1;
    padding: 15px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    overflow-y: hidden;
    position: relative;
    background: #050505;
}

.threat-row {
    display: flex;
    gap: 12px;
    padding: 4px 0;
    animation: slideIn 0.3s ease-out;
    border-bottom: none;
    font-size: 0.7rem;
    line-height: 1.5;
    position: relative;
    z-index: 1;
}

.t-time {
    color: #666;
    font-family: 'JetBrains Mono', monospace;
    opacity: 0.8;
    min-width: 60px;
}

.level-blocked {
    color: #f43f5e;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(244, 63, 94, 0.4);
}

.level-info {
    color: #38bdf8;
    font-weight: 700;
}

.level-ok {
    color: #10b981;
    font-weight: 700;
}

.t-msg {
    color: #a8b2d1;
    font-family: 'JetBrains Mono', monospace;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse-dot {
    0% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        box-shadow: 0 0 15px #38bdf8;
        transform: scale(1.2);
    }

    100% {
        opacity: 0.5;
        transform: scale(1);
    }
}

@keyframes pulse-red {
    0% {
        opacity: 0.7;
        border-color: rgba(244, 63, 94, 0.4);
    }

    50% {
        opacity: 1;
        border-color: rgba(244, 63, 94, 0.8);
        box-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
    }

    100% {
        opacity: 0.7;
        border-color: rgba(244, 63, 94, 0.4);
    }
}

@keyframes shimmer {
    100% {
        transform: translateX(100%);
    }
}

/* Update for Comparison Card with Image */
.compare-card.danger,
.compare-card.success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    position: relative;
    overflow: hidden;
}

.compare-content {
    flex: 1;
    z-index: 2;
}

.compare-image {
    width: 120px;
    height: 120px;
    object-fit: contain;
    opacity: 0.8;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

/* Red Glow for Danger Card */
.compare-card.danger .compare-image {
    filter: drop-shadow(0 0 10px rgba(244, 63, 94, 0.3));
    animation: pulse-red 3s infinite alternate;
}

/* Blue Glow for Success Card */
.compare-card.success .compare-image {
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.3));
    animation: pulse-dot 3s infinite alternate;
}

@media (max-width: 600px) {

    .compare-card.danger,
    .compare-card.success {
        flex-direction: column;
        text-align: center;
    }

    .compare-image {
        width: 100px;
        height: 100px;
        margin-top: 15px;
    }
}

/* ========================================
    PRICING CARD VISUALS - Clean Implementation
    ======================================== */

/* Card Container */
.pricing-card {
    position: relative;
    background: rgba(2, 12, 27, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    border-radius: 20px;
    padding: 35px 25px;
}

.pricing-card:hover {
    border-color: rgba(56, 189, 248, 0.15);
    transform: translateY(-5px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.pricing-card:nth-child(2):hover {
    border-color: rgba(168, 85, 247, 0.15);
}

.pricing-card:nth-child(3):hover {
    border-color: rgba(244, 63, 94, 0.15);
}

/* Visual Container - Subtle rounded platform */
.pricing-visual {
    width: 140px;
    height: 140px;
    margin: 0 auto 30px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08) 0%, rgba(2, 12, 27, 0.3) 100%);
    border: 1px solid rgba(56, 189, 248, 0.12);
    border-radius: 24px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
    /* Clips image to rounded corners */
}

/* Color variants for the platform */
.pricing-card:nth-child(2) .pricing-visual {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.08) 0%, rgba(2, 12, 27, 0.3) 100%);
    border-color: rgba(168, 85, 247, 0.12);
}

.pricing-card:nth-child(3) .pricing-visual {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.08) 0%, rgba(2, 12, 27, 0.3) 100%);
    border-color: rgba(244, 63, 94, 0.12);
}

/* Hover glow on platform */
.pricing-card:hover .pricing-visual {
    border-color: rgba(56, 189, 248, 0.3);
    box-shadow: 0 8px 40px rgba(56, 189, 248, 0.15);
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(2, 12, 27, 0.4) 100%);
}

.pricing-card:nth-child(2):hover .pricing-visual {
    border-color: rgba(168, 85, 247, 0.3);
    box-shadow: 0 8px 40px rgba(168, 85, 247, 0.15);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12) 0%, rgba(2, 12, 27, 0.4) 100%);
}

.pricing-card:nth-child(3):hover .pricing-visual {
    border-color: rgba(244, 63, 94, 0.3);
    box-shadow: 0 8px 40px rgba(244, 63, 94, 0.15);
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.12) 0%, rgba(2, 12, 27, 0.4) 100%);
}

/* Remove pseudo-elements (no grid, no ring) */
.pricing-visual::before,
.pricing-visual::after {
    display: none;
}

/* The Image - Fused with container */
.pricing-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: relative;
    z-index: 2;
    border-radius: 22px;
    /* Slightly less than container's 24px to account for border */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    animation: pricing-pulse 4s ease-in-out infinite;
}

/* Card-specific glow colors */
.pricing-card:nth-child(1) .pricing-image {
    filter: drop-shadow(0 4px 12px rgba(56, 189, 248, 0.2));
}

.pricing-card:nth-child(2) .pricing-image {
    filter: drop-shadow(0 4px 12px rgba(168, 85, 247, 0.2));
}

.pricing-card:nth-child(3) .pricing-image {
    filter: drop-shadow(0 4px 12px rgba(244, 63, 94, 0.2));
}

/* Hover: image lifts and glows stronger */
.pricing-card:hover .pricing-image {
    transform: scale(1.06);
    animation-play-state: paused;
}

.pricing-card:nth-child(1):hover .pricing-image {
    filter: drop-shadow(0 12px 25px rgba(56, 189, 248, 0.4));
}

.pricing-card:nth-child(2):hover .pricing-image {
    filter: drop-shadow(0 12px 25px rgba(168, 85, 247, 0.4));
}

.pricing-card:nth-child(3):hover .pricing-image {
    filter: drop-shadow(0 12px 25px rgba(244, 63, 94, 0.4));
}

@keyframes pricing-pulse {

    0%,
    100% {
        transform: scale(1);
        filter: brightness(1);
    }

    50% {
        transform: scale(1.03);
        filter: brightness(1.15);
    }
}

/* Gobierno specific */
.gob-hero-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Privacy Policy Specific Styles */
.privacy-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 80px 20px
}

.privacy-header {
    text-align: center;
    margin-bottom: 60px;
    padding-top: 80px
}

.privacy-title {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 20px;
    font-weight: 800
}

.privacy-subtitle {
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.9rem
}

.privacy-section {
    margin-bottom: 50px;
    padding: 30px;
    background: var(--bg-light);
    border-left: 3px solid var(--primary);
    border-radius: 4px
}

.privacy-section h2 {
    color: var(--text-heading);
    font-size: 1.5rem;
    margin-bottom: 20px;
    font-weight: 700
}

.privacy-section h3 {
    color: var(--primary);
    font-size: 1.2rem;
    margin: 25px 0 15px;
    font-weight: 600
}

.privacy-section p {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 15px
}

.privacy-section ul {
    margin: 15px 0;
    padding-left: 25px
}

.privacy-section li {
    color: var(--text-body);
    line-height: 1.8;
    margin-bottom: 10px
}

.privacy-highlight {
    background: rgba(100, 255, 218, 0.1);
    padding: 20px;
    border-radius: 4px;
    margin: 20px 0;
    border: 1px solid rgba(100, 255, 218, 0.2)
}

.privacy-contact {
    background: var(--bg-deep);
    padding: 30px;
    border-radius: 6px;
    margin-top: 40px;
    text-align: center
}

.privacy-contact h3 {
    color: var(--primary);
    margin-bottom: 20px
}

.privacy-contact p {
    margin: 10px 0
}

.privacy-contact a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600
}

.privacy-contact a:hover {
    text-decoration: underline
}

.last-updated {
    text-align: center;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.85rem;
    margin-top: 40px;
    padding: 20px;
    background: var(--bg-deep);
    border-radius: 4px
}

@media(max-width:768px) {
    .privacy-container {
        padding: 60px 15px
    }

    .privacy-title {
        font-size: 2rem
    }

    .privacy-section {
        padding: 20px
    }
}