
:root {
    --navy: #101b2b;
    --navy-light: #18283d;
    --teal: #147d80;
    --teal-light: #52d4c8;
    --white: #ffffff;
    --text: #253447;
    --muted: #65758a;
    --surface: #f3f7fa;
    --border: #dfe7ed;
    --radius: 20px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--white);
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

.navbar {
    min-height: 84px;
    padding: 15px 7%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: var(--white);
    border-bottom: 1px solid var(--border);
}


/* Contenedor de los dos logos */
.brand {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    text-decoration: none;
    flex-shrink: 0;
}

/* Cada logo y su nombre */
.brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 76px;
    text-align: center;
}

/* Imágenes de los logos */
.brand-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 50%;
    display: block;
    flex-shrink: 0;
}

/* Nombre debajo de cada imagen */
.brand-name {
    font-size: 10px;
    line-height: 1.3;
    font-weight: 800;
    letter-spacing: 0.7px;
    color: var(--navy);
    text-align: center;
}

/* Ajustes para el pie de página */
.footer-brand {
    align-items: flex-start;
}

.nav-actions,
.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.btn {
    min-height: 44px;
    padding: 11px 19px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    border-radius: 10px;
    border: 1px solid transparent;
    font-size: 14px;
    font-weight: 700;
    transition: transform 0.2s, background 0.2s;
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: var(--white);
    background: var(--teal);
}

.btn-primary:hover {
    background: #10686b;
}

.btn-outline {
    border-color: var(--border);
    color: var(--navy);
    background: var(--white);
}

.btn-light {
    background: var(--white);
    color: var(--navy);
}

.hero {
    background:
        radial-gradient(ellipse at 80% 40%, #1b4854 0%, transparent 45%),
        var(--navy);
    color: var(--white);
    padding: 80px 9%;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    gap: 50px;
    overflow: hidden;
}

.hero-content {
    max-width: 650px;
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--teal);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.hero .eyebrow,
.help-section .eyebrow {
    color: var(--teal-light);
}

.hero h1 {
    margin: 0 0 20px;
    font-size: clamp(38px, 5.2vw, 67px);
    line-height: 1.08;
    letter-spacing: -2px;
}

.hero h1 span {
    color: var(--teal-light);
}

.hero-content > p {
    max-width: 560px;
    color: #d1deeb;
    margin-bottom: 28px;
}

.hero-art {
    position: relative;
    min-height: 310px;
    display: grid;
    place-items: center;
    overflow: hidden;
}

.shield {
    z-index: 2;
    width: 140px;
    height: 165px;
    display: grid;
    place-items: center;
    color: var(--teal-light);
    font-size: 55px;
    background: linear-gradient(145deg, #1a4a57, #142739);
    border: 2px solid var(--teal-light);
    clip-path: polygon(50% 0, 95% 18%, 88% 67%, 50% 100%, 12% 67%, 5% 18%);
    filter: drop-shadow(0 0 20px #52d4c855);
}

.orbit {
    position: absolute;
    width: 270px;
    height: 270px;
    border: 1px solid #52d4c855;
    border-radius: 50%;
}

.orbit-two {
    width: 340px;
    height: 340px;
    border-style: dashed;
}

.circuit {
    position: absolute;
    width: 95px;
    height: 1px;
    background: var(--teal-light);
}

.circuit-one {
    top: 25%;
    left: 0;
}

.circuit-two {
    right: 0;
    top: 38%;
}

.circuit-three {
    bottom: 25%;
    left: 10%;
}

.art-label {
    position: absolute;
    bottom: 5px;
    font-size: 10px;
    letter-spacing: 2px;
    color: #c5e9e7;
}

.section {
    padding: 75px 9%;
}

.intro {
    max-width: 950px;
    margin: auto;
    text-align: center;
}

h2 {
    color: var(--navy);
    font-size: clamp(27px, 3.5vw, 40px);
    line-height: 1.2;
    margin: 0 0 20px;
}

.intro p,
.section-heading > p {
    color: var(--muted);
    max-width: 780px;
    margin: 0 auto;
}

.features {
    padding-top: 10px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.feature-card,
.violence-card {
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 25px;
    background: var(--white);
}

.feature-icon,
.violence-card > span {
    color: var(--teal);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1px;
}

.feature-card h3,
.violence-card h3 {
    color: var(--navy);
    margin: 12px 0 8px;
    line-height: 1.3;
}

.feature-card p,
.violence-card p {
    color: var(--muted);
    font-size: 14px;
    margin-bottom: 0;
}

.banner-section {
    background: var(--surface);
}

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.carousel {
    max-width: 1100px;
    margin: auto;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--white);
    box-shadow: 0 12px 40px #101b2b0d;
}

.slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    min-height: 300px;
}

.slide.active {
    display: grid;
    animation: appear 0.35s ease;
}

@keyframes appear {
    from { opacity: 0.5; }
    to { opacity: 1; }
}

.slide-art {
    min-height: 260px;
    padding: 25px;
    display: flex;
    align-items: flex-end;
    color: var(--white);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

.art-one {
    background:
        radial-gradient(circle at 65% 30%, #52d4c8 0 3%, transparent 4%),
        radial-gradient(circle at 65% 30%, transparent 0 20%, #52d4c844 21% 22%, transparent 23%),
        linear-gradient(135deg, #102536, #176c73);
}

.art-two {
    background:
        radial-gradient(circle at 65% 40%, #f0d8a4 0 5%, transparent 6%),
        radial-gradient(circle at 35% 65%, #52d4c8 0 7%, transparent 8%),
        linear-gradient(135deg, #18304a, #235e69);
}

.art-three {
    background:
        radial-gradient(circle at 40% 40%, #52d4c8 0 4%, transparent 5%),
        radial-gradient(circle at 60% 60%, #52d4c8 0 4%, transparent 5%),
        linear-gradient(135deg, #18283d, #176c73);
}

.slide-content {
    align-self: center;
    padding: 35px;
}

.slide-content h3 {
    color: var(--navy);
    font-size: 28px;
    line-height: 1.2;
    margin: 0 0 15px;
}

.slide-content p {
    color: var(--muted);
    font-size: 14px;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 22px;
    margin-top: 20px;
}

.carousel-controls > button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--white);
    color: var(--navy);
    cursor: pointer;
}

.carousel-dots {
    display: flex;
    gap: 9px;
}

.dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #b6c5d0;
    cursor: pointer;
}

.dot.active {
    background: var(--teal);
    transform: scale(1.25);
}

.help-section {
    margin: 55px 9%;
    padding: 45px;
    border-radius: var(--radius);
    background: var(--navy);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.help-section h2 {
    color: var(--white);
    max-width: 650px;
}

.help-section p {
    color: #d1deeb;
    max-width: 650px;
}

.violence-section {
    background: var(--surface);
}

.violence-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.violence-card {
    box-shadow: 0 5px 18px #101b2b05;
}

.disclaimer {
    max-width: 900px;
    margin: 25px auto 0;
    color: var(--muted);
    font-size: 12px;
}

.report-cta {
    text-align: center;
    max-width: 900px;
    margin: auto;
}

.report-cta > p {
    color: var(--muted);
}

.small-note {
    font-size: 12px;
    max-width: 620px;
    margin: 20px auto 0;
}

.footer {
    background: #0b1421;
    padding: 35px 9%;
    text-align: center;
    color: #c6d3df;
}

.footer-brand {
    justify-content: center;
}

.footer-brand .brand-text strong {
    color: var(--white);
}

.footer p {
    font-size: 13px;
}

.copyright {
    color: #93a5b7;
    border-top: 1px solid #26384a;
    padding-top: 20px;
    margin-top: 25px;
}

@media (max-width: 850px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 60px 7%;
    }

    .hero-art {
        min-height: 250px;
    }

    .features,
    .violence-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .help-section {
        margin: 35px 5%;
        flex-direction: column;
        align-items: flex-start;
    }

    .section {
        padding: 55px 6%;
    }
}

@media (max-width: 560px) {
    .navbar {
        padding: 13px 4%;
        gap: 10px;
    }

    .brand {
        gap: 8px;
    }

    .brand-symbol {
        width: 37px;
        height: 37px;
        font-size: 20px;
    }

    .brand-text strong {
        font-size: 13px;
    }

    .brand-text span {
        font-size: 8px;
        letter-spacing: 0.7px;
    }

    .nav-actions {
        gap: 6px;
    }

    .nav-actions .btn {
        padding: 9px;
        min-height: 38px;
        font-size: 11px;
    }

    .hero {
        padding: 50px 6%;
        gap: 20px;
    }

    .hero h1 {
        font-size: 42px;
    }

    .hero-art {
        min-height: 220px;
    }

    .features,
    .violence-grid {
        grid-template-columns: 1fr;
    }

    .slide.active {
        grid-template-columns: 1fr;
    }

    .slide-art {
        min-height: 170px;
    }

    .slide-content {
        padding: 25px;
    }

    .slide-content h3 {
        font-size: 24px;
    }

    .help-section {
        padding: 28px;
    }

    .btn {
        max-width: 100%;
    }
}

/* ==========================================
   CENTINELA DIGITAL TITAN
   Formularios y páginas interiores
   ========================================== */

.pagina-reporte {
    --cd-petroleo: #173B4D;
    --cd-turquesa: #23877D;
    --cd-gris-azul: #526773;
    --cd-fondo: #F3F7F8;
    --cd-texto: #26343B;

    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--cd-fondo);
    color: var(--cd-texto);
    font-family: Inter, Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.encabezado-reporte {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 7%;
    background: #fff;
    border-bottom: 1px solid #dfe7ed;
}

.marca-reporte {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--cd-petroleo, #173B4D);
    font-weight: 800;
}

.marca-reporte img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 10px;
}

.marca-reporte span {
    line-height: 1.3;
}

.enlace-volver {
    color: #173B4D;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.enlace-volver:hover {
    color: #23877D;
    text-decoration: underline;
}

.contenedor-reporte {
    width: min(100% - 36px, 850px);
    margin: 48px auto;
    flex: 1;
}

.introduccion-reporte {
    margin-bottom: 28px;
}

.etiqueta-reporte {
    display: inline-block;
    margin-bottom: 12px;
    color: #23877D;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.introduccion-reporte h1 {
    max-width: 720px;
    margin: 0 0 16px;
    color: #173B4D;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.2;
}

.introduccion-reporte p {
    max-width: 700px;
    color: #526773;
}

.nota-privacidad {
    padding-left: 14px;
    border-left: 4px solid #23877D;
    font-size: 14px;
}

.tarjeta-reporte {
    padding: clamp(22px, 5vw, 38px);
    background: #fff;
    border: 1px solid #dfe7ed;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(23, 59, 77, 0.06);
}

.tarjeta-reporte h2 {
    margin: 0 0 8px;
    color: #173B4D;
    font-size: 26px;
}

.texto-secundario,
.campo-reporte small {
    color: #526773;
    font-size: 14px;
}

.campo-reporte {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 24px;
}

.campo-reporte label,
.opcion-anonima label {
    color: #26343B;
    font-size: 15px;
    font-weight: 700;
}

.campo-reporte select,
.campo-reporte textarea {
    width: 100%;
    padding: 13px 14px;
    color: #26343B;
    background: #fff;
    border: 1px solid #cbd7dc;
    border-radius: 10px;
    font: inherit;
}

.campo-reporte select {
    min-height: 48px;
}

.campo-reporte textarea {
    min-height: 150px;
    resize: vertical;
}

.campo-reporte select:focus-visible,
.campo-reporte textarea:focus-visible,
.opcion-anonima input:focus-visible,
.tarjeta-reporte button:focus-visible,
.enlace-volver:focus-visible {
    outline: 3px solid rgba(35, 135, 125, 0.3);
    outline-offset: 3px;
    border-color: #23877D;
}

.opcion-anonima {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 24px;
}

.opcion-anonima input {
    width: 18px;
    height: 18px;
    accent-color: #23877D;
}

.aviso-anonimo {
    color: #526773;
    font-size: 13px;
}

.tarjeta-reporte button {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    padding: 13px 18px;
    color: #fff;
    background: #23877D;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.2s;
}

.tarjeta-reporte button:hover:not(:disabled) {
    background: #196c64;
    transform: translateY(-1px);
}

.tarjeta-reporte button:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.mensaje-reporte {
    margin-top: 18px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: 14px;
    overflow-wrap: anywhere;
}

.mensaje-error {
    color: #842029;
    background: #f8d7da;
    border: 1px solid #f1aeb5;
}

.mensaje-exito {
    color: #0f5132;
    background: #d1e7dd;
    border: 1px solid #a3cfbb;
}

.pie-reporte {
    padding: 24px 7%;
    color: #526773;
    background: #fff;
    border-top: 1px solid #dfe7ed;
    text-align: center;
    font-size: 13px;
}

@media (max-width: 560px) {
    .encabezado-reporte {
        padding: 14px 18px;
        align-items: flex-start;
    }

    .marca-reporte {
        gap: 8px;
        font-size: 13px;
    }

    .marca-reporte img {
        width: 36px;
        height: 36px;
    }

    .enlace-volver {
        padding-top: 8px;
        font-size: 12px;
    }

    .contenedor-reporte {
        margin: 28px auto;
    }

    .tarjeta-reporte {
        border-radius: 14px;
    }
}

/* ==========================================
   CENTINELA DIGITAL TITAN
   Diseño renovado para formularios
   ========================================== */

.pagina-reporte {
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(ellipse at 10% 15%, rgba(35, 135, 125, 0.11), transparent 34%),
        radial-gradient(ellipse at 90% 85%, rgba(23, 59, 77, 0.10), transparent 36%),
        #f3f7f8;
    color: #26343b;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

/* Encabezado */

.pagina-reporte .encabezado-reporte {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px clamp(20px, 6vw, 88px);
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(23, 59, 77, 0.08);
    box-shadow: 0 4px 22px rgba(23, 59, 77, 0.04);
}

.pagina-reporte .marca-reporte {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #173b4d;
    font-size: 16px;
    font-weight: 500;
    text-decoration: none;
}

.pagina-reporte .marca-reporte img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 13px;
    background: #fff;
}

.pagina-reporte .marca-reporte strong {
    display: inline-block;
    margin-left: 4px;
    color: #23877d;
    letter-spacing: 1.5px;
}

.pagina-reporte .enlace-volver {
    padding: 10px 16px;
    border: 1px solid #dce7e9;
    border-radius: 12px;
    color: #173b4d;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.2s, border-color 0.2s;
}

.pagina-reporte .enlace-volver:hover {
    background: #eaf5f3;
    border-color: #23877d;
}

/* Distribución principal */

.pagina-reporte .contenedor-reporte {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
    width: min(1080px, calc(100% - 40px));
    max-width: 1080px;
    margin: 0 auto;
    padding: 66px 0 76px;
    box-sizing: border-box;
}

/* Introducción */

.pagina-reporte .introduccion-reporte {
    max-width: 460px;
}

.pagina-reporte .etiqueta-reporte {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    padding: 9px 13px;
    border: 1px solid #cce7e1;
    border-radius: 999px;
    background: #e8f5f1;
    color: #17685f;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.pagina-reporte .introduccion-reporte h1 {
    margin: 0 0 20px;
    color: #173b4d;
    font-size: clamp(32px, 4vw, 47px);
    font-weight: 750;
    letter-spacing: -1.5px;
    line-height: 1.15;
}

.pagina-reporte .introduccion-reporte > p {
    color: #60727c;
    font-size: 16px;
    line-height: 1.8;
}

.pagina-reporte .introduccion-reporte .nota-privacidad {
    margin-top: 25px;
    padding: 15px 17px;
    border-left: 3px solid #23877d;
    border-radius: 0 12px 12px 0;
    background: rgba(255, 255, 255, 0.72);
    color: #526773;
    font-size: 13px;
    line-height: 1.7;
}

/* Tarjeta del formulario */

.pagina-reporte .tarjeta-reporte {
    width: 100%;
    box-sizing: border-box;
    padding: clamp(25px, 4vw, 40px);
    border: 1px solid rgba(23, 59, 77, 0.08);
    border-radius: 24px;
    background: #fff;
    box-shadow:
        0 24px 70px rgba(23, 59, 77, 0.09),
        0 3px 12px rgba(23, 59, 77, 0.03);
}

.pagina-reporte .tarjeta-reporte h2 {
    margin: 0 0 10px;
    color: #173b4d;
    font-size: 25px;
    font-weight: 750;
    letter-spacing: -0.5px;
}

.pagina-reporte .tarjeta-reporte .texto-secundario {
    margin: 0 0 24px;
    color: #71818a;
    font-size: 14px;
    line-height: 1.7;
}

/* Campos */

.pagina-reporte .campo-reporte {
    margin-bottom: 21px;
}

.pagina-reporte .campo-reporte label {
    display: block;
    margin-bottom: 9px;
    color: #263f4b;
    font-size: 14px;
    font-weight: 650;
}

.pagina-reporte .campo-reporte input[type="text"],
.pagina-reporte .campo-reporte input[type="email"],
.pagina-reporte .campo-reporte input[type="password"],
.pagina-reporte .campo-reporte select,
.pagina-reporte .campo-reporte textarea {
    display: block;
    width: 100%;
    min-height: 49px;
    box-sizing: border-box;
    margin: 0;
    padding: 13px 15px;
    border: 1px solid #dce5e9;
    border-radius: 12px;
    background: #f9fbfc;
    color: #26343b;
    font-family: inherit;
    font-size: 14px;
    line-height: 1.5;
    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.pagina-reporte .campo-reporte textarea {
    resize: vertical;
}

.pagina-reporte .campo-reporte input::placeholder,
.pagina-reporte .campo-reporte textarea::placeholder {
    color: #9aa8af;
}

.pagina-reporte .campo-reporte input:hover,
.pagina-reporte .campo-reporte select:hover,
.pagina-reporte .campo-reporte textarea:hover {
    border-color: #a8c9c7;
}

.pagina-reporte .campo-reporte input:focus,
.pagina-reporte .campo-reporte select:focus,
.pagina-reporte .campo-reporte textarea:focus {
    outline: none;
    border-color: #23877d;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(35, 135, 125, 0.12);
}

.pagina-reporte .campo-reporte small {
    display: block;
    margin-top: 8px;
    color: #71818a;
    font-size: 12px;
    line-height: 1.6;
}

/* Botón principal */

.pagina-reporte .tarjeta-reporte form button[type="submit"],
.pagina-reporte .tarjeta-reporte form .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    box-sizing: border-box;
    margin-top: 8px;
    padding: 14px 20px;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg, #173b4d, #23877d);
    box-shadow: 0 8px 18px rgba(23, 59, 77, 0.16);
    color: #fff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pagina-reporte .tarjeta-reporte form button[type="submit"]:hover,
.pagina-reporte .tarjeta-reporte form .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(23, 59, 77, 0.22);
}

.pagina-reporte .tarjeta-reporte form button[type="submit"]:focus-visible {
    outline: 3px solid #52b9ad;
    outline-offset: 3px;
}

.pagina-reporte .tarjeta-reporte form button[type="submit"]:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

/* Enlaces inferiores */

.pagina-reporte .tarjeta-reporte > .texto-secundario {
    margin: 24px 0 0;
    text-align: center;
}

.pagina-reporte .tarjeta-reporte a {
    color: #19766d;
    font-weight: 700;
    text-decoration: none;
}

.pagina-reporte .tarjeta-reporte a:hover {
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Mensajes de Flask */

.pagina-reporte .mensaje-reporte {
    margin: 0 0 20px;
    padding: 13px 15px;
    border: 1px solid transparent;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.6;
}

.pagina-reporte .mensaje-reporte.exito {
    border-color: #bce4d2;
    background: #edf9f2;
    color: #216b48;
}

.pagina-reporte .mensaje-reporte.error {
    border-color: #f0caca;
    background: #fff2f2;
    color: #a52e37;
}

/* Pie de página */

.pagina-reporte .pie-reporte {
    padding: 20px;
    border-top: 1px solid rgba(23, 59, 77, 0.08);
    color: #71818a;
    font-size: 12px;
    text-align: center;
}

.pagina-reporte .pie-reporte p {
    margin: 0;
}

/* Adaptación para celulares y tabletas */

@media (max-width: 760px) {
    .pagina-reporte .encabezado-reporte {
        padding: 15px 20px;
    }

    .pagina-reporte .marca-reporte {
        gap: 9px;
        font-size: 13px;
    }

    .pagina-reporte .marca-reporte img {
        width: 40px;
        height: 40px;
    }

    .pagina-reporte .enlace-volver {
        padding: 9px 11px;
        font-size: 12px;
    }

    .pagina-reporte .contenedor-reporte {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        width: min(100% - 32px, 520px);
        padding: 38px 0 48px;
    }

    .pagina-reporte .introduccion-reporte {
        max-width: none;
    }

    .pagina-reporte .introduccion-reporte h1 {
        font-size: 34px;
    }

    .pagina-reporte .tarjeta-reporte {
        padding: 26px 22px;
        border-radius: 20px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pagina-reporte *,
    .pagina-reporte *::before,
    .pagina-reporte *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* =========================================
   PANEL PRINCIPAL TITAN
   ========================================= */

.panel-titan {
    --titan-navy: #173b4d;
    --titan-teal: #23877d;
    --titan-muted: #71818a;
    --titan-border: #e5ecef;
    margin: 0;
    min-height: 100vh;
    background: #f5f8fa;
    color: #26343b;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.panel-titan *,
.panel-titan *::before,
.panel-titan *::after {
    box-sizing: border-box;
}

.panel-titan a {
    text-decoration: none;
}

/* Menú lateral */

.titan-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
    display: flex;
    flex-direction: column;
    width: 255px;
    padding: 25px 16px 18px;
    background: #fff;
    border-right: 1px solid var(--titan-border);
}

.titan-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 0 8px 29px;
    border-bottom: 1px solid var(--titan-border);
    color: var(--titan-navy);
}

.titan-brand img {
    width: 45px;
    height: 45px;
    border-radius: 11px;
    object-fit: contain;
}

.titan-brand strong,
.titan-brand small {
    display: block;
}

.titan-brand strong {
    font-size: 15px;
    font-weight: 850;
    letter-spacing: 0.4px;
}

.titan-brand small {
    margin-top: 5px;
    color: var(--titan-teal);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.7px;
}

.titan-menu-label {
    margin: 27px 10px 12px;
    color: #97a5ac;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.3px;
}

.titan-menu-label-secundario {
    margin-top: 29px;
}

.titan-menu {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.titan-menu-link {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 45px;
    padding: 10px 11px;
    border-radius: 10px;
    color: #60727c;
    font-size: 12px;
    font-weight: 650;
    transition: background 0.2s, color 0.2s;
}

.titan-menu-link:hover {
    background: #f0f7f6;
    color: var(--titan-teal);
}

.titan-menu-link.activo {
    background: #eaf5f2;
    color: #176c63;
    font-weight: 800;
}

.titan-menu-icono {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    font-size: 20px;
}

.titan-menu-proximamente {
    margin-left: auto;
    color: #9aa8af;
    font-size: 9px;
    font-weight: 600;
}

.titan-sidebar-bottom {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding: 17px 9px 3px;
    border-top: 1px solid var(--titan-border);
}

.titan-status-dot {
    width: 9px;
    height: 9px;
    flex-shrink: 0;
    border-radius: 50%;
    background: #39a785;
    box-shadow: 0 0 0 4px #e6f6ef;
}

.titan-sidebar-bottom strong,
.titan-sidebar-bottom small {
    display: block;
}

.titan-sidebar-bottom strong {
    color: var(--titan-navy);
    font-size: 11px;
}

.titan-sidebar-bottom small {
    margin-top: 4px;
    color: var(--titan-muted);
    font-size: 10px;
}

/* Área de trabajo */

.titan-main {
    min-height: 100vh;
    margin-left: 255px;
}

.titan-topbar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 76px;
    padding: 14px clamp(22px, 3.5vw, 48px);
    border-bottom: 1px solid var(--titan-border);
    background: rgba(255, 255, 255, 0.96);
}

.titan-breadcrumb {
    color: #8999a1;
    font-size: 12px;
}

.titan-topbar > div:first-child > strong {
    color: var(--titan-navy);
    font-size: 12px;
}

.titan-user {
    display: flex;
    align-items: center;
    gap: 11px;
}

.titan-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: #e0f1ed;
    color: var(--titan-teal);
    font-size: 15px;
    font-weight: 800;
}

.titan-user-info strong,
.titan-user-info small {
    display: block;
    max-width: 190px;
    overflow-wrap: anywhere;
}

.titan-user-info strong {
    color: var(--titan-navy);
    font-size: 12px;
}

.titan-user-info small {
    margin-top: 4px;
    color: var(--titan-muted);
    font-size: 10px;
}

.titan-user form {
    margin: 0;
}

.titan-logout,
.titan-login {
    display: inline-block;
    padding: 10px 13px;
    border: 1px solid #dce6e9;
    border-radius: 9px;
    background: #fff;
    color: var(--titan-navy);
    font: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.titan-logout:hover,
.titan-login:hover {
    border-color: var(--titan-teal);
    color: var(--titan-teal);
}

/* Contenido */

.titan-content {
    width: 100%;
    max-width: 1550px;
    margin: 0 auto;
    padding: 31px clamp(20px, 3.5vw, 48px) 25px;
}

.titan-flash {
    margin-bottom: 20px;
    padding: 13px 16px;
    border: 1px solid #bce4d2;
    border-radius: 10px;
    background: #edf9f2;
    color: #216b48;
    font-size: 13px;
}

.titan-flash.error {
    border-color: #f0caca;
    background: #fff2f2;
    color: #a52e37;
}

/* Bienvenida */

.titan-welcome {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr);
    align-items: center;
    gap: 25px;
    overflow: hidden;
    min-height: 275px;
    padding: 30px clamp(23px, 3vw, 40px);
    border: 1px solid #e0eceb;
    border-radius: 20px;
    background:
        radial-gradient(ellipse at 90% 10%, rgba(82, 212, 200, 0.15), transparent 40%),
        linear-gradient(115deg, #fff, #f0f8f6);
}

.titan-eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--titan-teal);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: 1.4px;
    line-height: 1.7;
}

.titan-welcome h1 {
    margin: 0 0 12px;
    color: var(--titan-navy);
    font-size: clamp(27px, 3vw, 37px);
    font-weight: 800;
    letter-spacing: -1.1px;
    line-height: 1.2;
}

.titan-welcome-text > p {
    max-width: 560px;
    margin: 0;
    color: var(--titan-muted);
    font-size: 13px;
    line-height: 1.85;
}

.titan-primary-button {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 21px;
    padding: 12px 16px;
    border-radius: 10px;
    background: linear-gradient(120deg, #173b4d, #23877d);
    box-shadow: 0 7px 15px rgba(23, 59, 77, 0.13);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    transition: transform 0.2s;
}

.titan-primary-button:hover {
    transform: translateY(-2px);
}

.titan-primary-button span {
    font-size: 18px;
}

.titan-welcome-art {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.titan-art-circle {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1px solid rgba(35, 135, 125, 0.18);
    border-radius: 50%;
    background: rgba(35, 135, 125, 0.035);
}

.titan-art-card {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    width: 190px;
    min-height: 195px;
    padding: 15px;
    border: 1px solid #fff;
    border-radius: 23px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 17px 40px rgba(23, 59, 77, 0.1);
    text-align: center;
}

.titan-art-card img {
    width: 115px;
    height: 115px;
    object-fit: contain;
}

.titan-art-card strong {
    margin-top: 7px;
    color: var(--titan-navy);
    font-size: 15px;
}

.titan-art-card > span {
    margin-top: 6px;
    color: var(--titan-teal);
    font-size: 9px;
    font-weight: 700;
}

.titan-art-decoration {
    position: absolute;
    top: 5px;
    right: 12px;
    color: #23877d;
    font-size: 30px;
}

/* Tarjetas de módulos */

.titan-section {
    margin-top: 35px;
}

.titan-section-heading {
    margin-bottom: 19px;
}

.titan-section-heading .titan-eyebrow {
    margin-bottom: 6px;
}

.titan-section-heading h2 {
    margin: 0;
    color: var(--titan-navy);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.titan-section-heading p {
    margin: 7px 0 0;
    color: var(--titan-muted);
    font-size: 12px;
    line-height: 1.7;
}

.titan-modules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 17px;
}

.titan-module {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    min-width: 0;
    min-height: 235px;
    padding: 22px 20px;
    border: 1px solid var(--titan-border);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(23, 59, 77, 0.025);
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.titan-module:hover {
    transform: translateY(-3px);
    border-color: #bcded8;
    box-shadow: 0 13px 26px rgba(23, 59, 77, 0.07);
}

.titan-module-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 43px;
    height: 43px;
    margin-bottom: 17px;
    border-radius: 13px;
    font-size: 25px;
    font-weight: 700;
}

.titan-module-icon.icon-teal {
    background: #e2f4ef;
    color: #23877d;
}

.titan-module-icon.icon-blue {
    background: #e8f0f8;
    color: #386a8a;
}

.titan-module-icon.icon-purple {
    background: #f0eafa;
    color: #8064ae;
}

.titan-module-tag {
    margin-bottom: 8px;
    color: #82949c;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 1px;
}

.titan-module h3 {
    margin: 0 0 10px;
    color: var(--titan-navy);
    font-size: 16px;
    font-weight: 800;
    line-height: 1.4;
}

.titan-module p {
    margin: 0 0 18px;
    color: var(--titan-muted);
    font-size: 11px;
    line-height: 1.8;
}

.titan-module-link {
    margin-top: auto;
    color: var(--titan-teal);
    font-size: 11px;
    font-weight: 800;
}

/* Tarjetas inferiores */

.titan-bottom-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
    margin-top: 28px;
}

.titan-info-card {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 22px;
    border: 1px solid var(--titan-border);
    border-radius: 16px;
    background: #fff;
}

.titan-info-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e2f4ef;
    color: var(--titan-teal);
    font-size: 21px;
}

.titan-info-card .titan-eyebrow {
    margin-bottom: 7px;
    font-size: 9px;
}

.titan-info-card h3 {
    margin: 0 0 9px;
    color: var(--titan-navy);
    font-size: 15px;
    line-height: 1.5;
}

.titan-info-card p {
    margin: 0;
    color: var(--titan-muted);
    font-size: 11px;
    line-height: 1.8;
}

.titan-info-card > div > a {
    display: inline-block;
    margin-top: 13px;
    color: var(--titan-teal);
    font-size: 11px;
    font-weight: 800;
}

.titan-info-card-dark {
    border-color: #173b4d;
    background: #173b4d;
}

.titan-info-card-dark .titan-eyebrow {
    color: #9eddd3;
}

.titan-info-card-dark h3 {
    color: #fff;
}

.titan-info-card-dark p {
    color: #d4e3e7;
}

.titan-info-card-dark .titan-info-icon {
    background: rgba(255, 255, 255, 0.12);
    color: #a7e3d8;
}

/* Pie */

.titan-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding: 20px 0 0;
    border-top: 1px solid var(--titan-border);
    color: #84949b;
    font-size: 10px;
}

/* Responsive */

@media (max-width: 1150px) {
    .titan-sidebar {
        width: 225px;
    }

    .titan-main {
        margin-left: 225px;
    }

    .titan-menu-link {
        gap: 8px;
        padding-right: 7px;
        padding-left: 8px;
        font-size: 11px;
    }

    .titan-menu-proximamente {
        display: none;
    }

    .titan-welcome {
        grid-template-columns: minmax(0, 1fr) 220px;
    }

    .titan-modules {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 800px) {
    .titan-sidebar {
        position: relative;
        width: 100%;
        padding: 15px 18px;
        border-right: 0;
        border-bottom: 1px solid var(--titan-border);
    }

    .titan-brand {
        padding-bottom: 14px;
    }

    .titan-menu-label,
    .titan-sidebar-bottom {
        display: none;
    }

    .titan-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 5px;
        margin-top: 12px;
    }

    .titan-menu-link {
        min-height: 37px;
        padding: 7px 9px;
    }

    .titan-menu-icono {
        width: 20px;
        height: 20px;
        font-size: 16px;
    }

    .titan-main {
        margin-left: 0;
    }

    .titan-topbar {
        position: relative;
        padding: 15px 20px;
    }

    .titan-content {
        padding: 23px 18px;
    }

    .titan-welcome {
        grid-template-columns: minmax(0, 1fr);
    }

    .titan-welcome-art {
        min-height: 220px;
    }

    .titan-bottom-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .titan-topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .titan-user {
        flex-wrap: wrap;
    }

    .titan-modules {
        grid-template-columns: minmax(0, 1fr);
    }

    .titan-module {
        min-height: 205px;
    }

    .titan-welcome {
        padding: 24px 20px;
    }

    .titan-welcome h1 {
        font-size: 29px;
    }

    .titan-footer {
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .panel-titan *,
    .panel-titan *::before,
    .panel-titan *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
