:root {
    --bg-main: #fdfdfd;
    --bg-secondary: #0a192f;
    --accent-blue: #0a192f;
    --accent-gold: #c5a059;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-light: #ffffff;
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --font-main: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Base Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    width: 100%;
}

section {
    position: relative;
    padding: 5rem 0;
    width: 100%;
    overflow: hidden;
    /* Prevent floating elements from escaping */
}

/* Header & Ticker (Fixed) */
.main-header {
    background: #ffffff;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-bottom: 3px solid var(--accent-blue);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo .brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.accent-text {
    color: var(--accent-blue);
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--accent-blue);
}

.cta-button {
    background: var(--accent-gold);
    color: #ffffff !important;
    padding: 0.8rem 1.8rem;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background: var(--accent-blue);
    padding: 10px 0;
}

.ticker {
    display: flex;
    white-space: nowrap;
    animation: ticker 30s linear infinite;
}

.ticker p {
    font-size: 0.85rem;
    font-weight: 600;
    color: #ffffff;
    margin-right: 3rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

@keyframes ticker {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Hero Section - Fixed Overlap */
.hero {
    padding-top: 160px;
    /* Space for the fixed header + ticker */
    padding-bottom: 4rem;
    background: #ffffff;
    display: flex;
    align-items: center;
}

.hero .container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 5rem;
    flex-wrap: wrap;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    text-align: left;
}

.hero h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    color: var(--accent-blue);
    text-transform: uppercase;
}

.hero h1 span {
    color: var(--accent-gold);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.5;
}

.hero-visual {
    flex: 0 1 auto;
    min-width: 320px;
    display: flex;
    justify-content: center;
}

.glass-card {
    background: #ffffff;
    border: 1px solid var(--accent-blue);
    padding: 3rem;
    box-shadow: 20px 20px 0px var(--accent-blue);
    width: 100%;
}

.stat-item {
    margin-bottom: 1.5rem;
}

.stat-item:last-child {
    margin-bottom: 0;
}

.stat-item .number {
    display: block;
    font-size: 3rem;
    font-weight: 800;
    color: var(--accent-gold);
    line-height: 1;
}

.stat-item .label {
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    color: var(--accent-blue);
}

/* Section Common */
.section-title {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.section-title p {
    color: var(--accent-gold);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* E-Procesos TV Section */
.tv-channel {
    background: #f8f9fa;
}

.channel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.live-badge {
    background: #d0021b;
    color: #fff;
    padding: 5px 12px;
    font-weight: 800;
    font-size: 0.75rem;
    border-radius: 2px;
}

.main-screen {
    display: grid;
    grid-template-columns: 2fr 1fr;
    background: #000;
    border: 5px solid var(--accent-blue);
}

.video-container {
    position: relative;
    aspect-ratio: 16/9;
}

/* E-Procesos TV - Live + VOD */
.main-screen-full {
    width: 100%;
    background: #000;
    border: 4px solid var(--accent-blue);
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16/9;
}

.video-container-live {
    width: 100%;
    height: 100%;
}

.video-js {
    width: 100% !important;
    height: 100% !important;
}

.dot-live {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #ff0000;
    border-radius: 50%;
    margin-right: 5px;
    animation: blink 1s infinite;
}

.vod-section {
    margin-top: 2rem;
}

.vod-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.vod-filters {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid #ddd;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.vod-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.vod-card {
    background: #fff;
    border-bottom: 3px solid transparent;
    transition: var(--transition);
    cursor: pointer;
}

.vod-card:hover {
    transform: translateY(-5px);
    border-bottom-color: var(--accent-gold);
}

.vod-thumb {
    aspect-ratio: 16/9;
    background: #000;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
}

.play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition);
}

.vod-card:hover .play-overlay {
    opacity: 1;
}

.play-overlay i {
    font-size: 3rem;
    color: #fff;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.vod-info {
    padding: 1rem 0;
}

.vod-tag {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--accent-gold);
    display: block;
    margin-bottom: 0.5rem;
}

.vod-info h4 {
    font-size: 0.95rem;
    line-height: 1.3;
    color: var(--accent-blue);
    font-weight: 700;
}

@media (max-width: 1024px) {
    .vod-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .vod-grid {
        grid-template-columns: 1fr;
    }

    .vod-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

.video-placeholder {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-placeholder iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-loading {
    color: #fff;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: blink 1.5s infinite;
}

.tv-logo-bug {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    font-weight: 800;
    font-size: 0.8rem;
    z-index: 10;
    /* Asegurar que esté sobre el iframe */
    pointer-events: none;
    /* No interferir con el video */
}

.bug-text {
    background: var(--accent-blue);
    color: #fff;
    padding: 4px 8px;
}

.bug-box {
    background: var(--accent-gold);
    color: var(--accent-blue);
    padding: 4px 8px;
}

.news-bar {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    display: flex;
    border-top: 2px solid var(--accent-gold);
}

.breaking-label {
    background: #d0021b;
    padding: 6px 15px;
    font-weight: 800;
}

.overlay {
    position: absolute;
    padding: 3rem;
    text-align: center;
    color: #fff;
    z-index: 5;
}

.play-btn {
    background: var(--accent-gold);
    border: none;
    padding: 1rem 2.5rem;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    margin-top: 1.5rem;
    transition: var(--transition);
}

.playlist {
    background: #111;
    padding: 2rem;
    border-left: 1px solid #333;
}

.playlist h3 {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 1rem;
}

.playlist-item {
    padding: 1rem;
    border-bottom: 1px solid #222;
    cursor: pointer;
    transition: var(--transition);
}

.playlist-item:hover {
    background: #1a1a1a;
}

.playlist-item.active {
    background: #222;
    border-left: 4px solid var(--accent-gold);
}

.playlist-item .time {
    display: block;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin-bottom: 0.3rem;
}

.playlist-item p {
    color: #fff;
    font-size: 0.9rem;
}

/* Fiscalía de Procesos */
.citizen-portal {
    background: #ffffff;
}

.portal-card {
    display: flex;
    background: var(--accent-blue);
    color: #fff;
    box-shadow: 20px 20px 0px var(--accent-gold);
}

.portal-info {
    padding: 4rem;
    flex: 1.5;
}

.portal-info h2 {
    font-size: 3rem;
    line-height: 1.1;
    margin-bottom: 2rem;
}

.portal-info p {
    font-size: 1.3rem;
    opacity: 0.8;
    margin-bottom: 2.5rem;
}

.portal-visual {
    flex: 1;
    background: var(--accent-gold);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 10rem;
    color: var(--accent-blue);
}

/* Enfoque Conciliador */
.philosophy {
    background: #f8f9fa;
}

.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.phi-card {
    background: #fff;
    padding: 4rem 3rem;
    border: 1px solid #eee;
    box-shadow: 10px 10px 0px var(--accent-blue);
    text-align: center;
    transition: var(--transition);
}

.phi-card:hover {
    transform: translate(-5px, -5px);
    box-shadow: 15px 15px 0px var(--accent-gold);
}

.phi-card i {
    font-size: 2.5rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
}

.phi-card h3 {
    font-size: 1.4rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
}

/* Tools Section */
.tools-section {
    background: var(--bg-secondary);
    color: #fff;
}

.tools-section .section-title h2 {
    color: #fff;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
}

.tool-card {
    padding: 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.02);
}

.tool-icon {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-gold);
    opacity: 0.3;
    margin-bottom: 1.5rem;
}

/* Who Am I (Trayectoria) */
.who-am-i {
    background: #ffffff;
}

.biography {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 5rem;
}

.tag {
    color: var(--accent-gold);
    font-weight: 800;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 1rem;
    display: block;
}

.bio-text h2 {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 2rem;
}

.bio-text p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
}

.bio-manifesto {
    margin-top: 3rem;
    padding: 3rem;
    background: #f8f9fa;
    border-left: 8px solid var(--accent-blue);
}

.bio-manifesto h3 {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: var(--accent-gold);
    text-transform: uppercase;
}

.bio-manifesto p {
    margin-bottom: 1.5rem !important;
}

.bio-manifesto strong {
    color: var(--accent-blue);
}

.bio-features {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.feature-small {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 2.5rem;
    background: #f8f9fa;
    border-left: 6px solid var(--accent-gold);
}

.feature-small i {
    font-size: 2.5rem;
    color: var(--accent-blue);
}

/* Biography & Portrait */
.bio-portrait-container {
    position: relative;
    width: 100%;
    margin-bottom: 2rem;
}

.bio-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border: 5px solid var(--accent-blue);
    box-shadow: 15px 15px 0px var(--accent-gold);
    transition: var(--transition);
}

.bio-img:hover {
    transform: scale(1.02);
}

.attire-badge {
    position: absolute;
    bottom: -15px;
    right: -15px;
    background: var(--accent-gold);
    color: var(--accent-blue);
    padding: 10px 15px;
    font-weight: 800;
    font-size: 0.7rem;
    text-transform: uppercase;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.2);
}

/* Modals & Wizards */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 25, 47, 0.95);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: #fff;
    width: 100%;
    max-width: 600px;
    padding: 3rem;
    position: relative;
    border-top: 10px solid var(--accent-gold);
}

.btn-close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    color: var(--accent-blue);
}

.progress-container {
    width: 100%;
    height: 6px;
    background: #eee;
    margin-bottom: 2rem;
    position: relative;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: var(--accent-gold);
    width: 0%;
    transition: width 0.4s ease;
}

.wizard-step {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wizard-step h3 {
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.wizard-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.wizard-btn {
    padding: 1rem 1.5rem;
    background: #f8f9fa;
    border: 1px solid #eee;
    text-align: left;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.wizard-btn:hover {
    background: var(--accent-blue);
    color: #fff;
    border-color: var(--accent-blue);
}

.result-card {
    text-align: center;
}

.result-score {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-gold);
    margin: 1.5rem 0;
}

/* Services Section */
.services {
    background: #f8f9fa;
}

.services-wrapper {
    display: flex;
    gap: 3rem;
    flex-wrap: wrap;
}

.service-box {
    flex: 1;
    background: #fff;
    padding: 4rem;
    border: 1px solid #eee;
    min-width: 300px;
}

.service-box.public {
    border-top: 8px solid var(--accent-blue);
}

.service-box.private {
    border-top: 8px solid var(--accent-gold);
}

.service-box h3 {
    font-size: 2rem;
    margin-bottom: 2rem;
    color: var(--accent-blue);
}

.service-box ul {
    list-style: none;
}

.service-box ul li {
    margin-bottom: 1rem;
    padding-left: 2rem;
    position: relative;
}

.service-box ul li::before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--accent-blue);
    font-weight: 800;
}

/* Footer */
footer {
    background: #000;
    color: #fff;
    padding: 6rem 0 3rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10rem;
    margin-bottom: 5rem;
}

.footer-info h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.social-icons {
    display: flex;
    gap: 2rem;
    margin-top: 2rem;
}

.social-icons a {
    color: #fff;
    font-size: 1.8rem;
    transition: var(--transition);
}

.social-icons a:hover {
    color: var(--accent-gold);
}

.footer-contact-direct h4 {
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    color: var(--accent-gold);
}

.direct-msg {
    margin-bottom: 2rem;
    color: #ccc;
    font-size: 0.95rem;
}

.schedule-box {
    background: #111;
    border: 1px solid #222;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.schedule-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #eee;
}

.schedule-item:last-child {
    margin-bottom: 0;
}

.schedule-item i {
    color: var(--accent-gold);
}

.schedule-item.featured {
    border-top: 1px solid #333;
    padding-top: 1rem;
    color: #fff;
}

.schedule-item.featured i {
    color: #00d2ff;
    /* Un azul vivo para indicar servicio activo/online */
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-whatsapp {
    background: #25d366;
    color: #fff;
    text-decoration: none;
    padding: 1.2rem;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    transition: var(--transition);
}

.btn-email-direct {
    background: var(--accent-blue);
    color: #fff;
    text-decoration: none;
    padding: 1.2rem;
    text-align: center;
    font-weight: 800;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.btn-whatsapp:hover,
.btn-email-direct:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.copyright {
    text-align: center;
    color: #555;
    font-size: 0.8rem;
    border-top: 1px solid #111;
    padding-top: 3rem;
}

/* Responsive */
@media (max-width: 900px) {
    .main-screen {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .hero .container {
        text-align: center;
    }

    .hero-content {
        text-align: center;
    }

    .biography {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
}

/* Planes & Pricing */
.pricing-section {
    padding: 5rem 5%;
    background: #ffffff;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.price-card {
    padding: 3rem 2rem;
    background: #fff;
    border: 1px solid #eee;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.price-card.featured {
    border: 2px solid var(--accent-blue);
    box-shadow: 15px 15px 0px var(--accent-gold);
    transform: translateY(-10px);
}

.plan-tag {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: block;
}

.price-card h3 {
    font-size: 1.5rem;
    color: var(--accent-blue);
    margin-bottom: 1rem;
}

.price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: var(--text-primary);
}

.price-card ul {
    list-style: none;
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.price-card ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid #f5f5f5;
}

.price-card ul li:last-child {
    border-bottom: none;
}

.btn-outline {
    display: inline-block;
    padding: 0.8rem 1.5rem;
    border: 2px solid var(--accent-blue);
    color: var(--accent-blue);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.85rem;
    transition: var(--transition);
}

.btn-outline:hover {
    background: var(--accent-blue);
    color: #fff;
}

@media (max-width: 768px) {
    .pricing-grid {
        grid-template-columns: 1fr;
    }
}