:root {
    --deep-blue: #0A2342;
    --silver-mid: #B3B3B3;
    --silver-light: #E6E6E6;
    --background: #f5f7fa;
    --text-main: #222222;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: radial-gradient(circle at top left, var(--silver-light), #ffffff);
    color: var(--text-main);
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-header {
    padding: 1.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.brand-logo {
    height: 56px;
    width: auto;
}

.brand-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--deep-blue);
}

.brand-subtitle {
    font-size: 0.85rem;
    color: var(--silver-mid);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.page-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.hero-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 2.5rem 2.75rem;
    max-width: 720px;
    width: 100%;
    box-shadow:
        0 18px 45px rgba(0, 0, 0, 0.06),
        0 0 0 1px rgba(179, 179, 179, 0.18);
}

.hero-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--silver-mid);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-size: 2rem;
    margin: 0;
    color: var(--deep-blue);
}

.hero-text {
    margin-top: 0.75rem;
    margin-bottom: 1.5rem;
    color: #555555;
}

.hero-status {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(10, 35, 66, 0.08), rgba(230, 230, 230, 0.6));
    margin-bottom: 1.25rem;
    font-size: 0.9rem;
}

.hero-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #3bb273;
    box-shadow: 0 0 0 6px rgba(59, 178, 115, 0.25);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-primary,
.btn-ghost {
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--deep-blue), #123d6b);
    color: white;
    box-shadow: 0 12px 24px rgba(10, 35, 66, 0.35);
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(10, 35, 66, 0.45);
}

.btn-ghost {
    background: transparent;
    color: var(--deep-blue);
    border: 1px solid var(--silver-mid);
}

.hero-meta {
    font-size: 0.8rem;
    color: var(--silver-mid);
}

.hero-meta strong {
    color: var(--deep-blue);
}

@media (max-width: 640px) {
    .page-header {
        padding: 1rem 1.25rem;
    }

    .hero-card {
        padding: 1.75rem 1.5rem;
    }

    .hero-title {
        font-size: 1.5rem;
    }
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.table th,
.table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #e1e4ea;
}

.table th {
    text-align: left;
    font-weight: 600;
    color: var(--deep-blue);
    background: #f4f6fb;
}

.table tr:hover td {
    background: #f8fafc;
}

.actions {
    display: flex;
    gap: 0.35rem;
}

.btn-small {
    font-size: 0.8rem;
    padding: 0.35rem 0.8rem;
}

.form-row {
    margin-bottom: 0.75rem;
}

.form-row label {
    display: block;
    margin-bottom: 0.25rem;
    font-size: 0.85rem;
}

.form-row input,
.form-row textarea {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border-radius: 8px;
    border: 1px solid #d0d4dc;
}

.form-row textarea {
    min-height: 90px;
    resize: vertical;
}

/* ===== Layout con sidebar para el panel ===== */

.panel-shell {
    display: flex;
    min-height: calc(100vh - 72px);
    /* resto de la altura tras el header */
}

/* sidebar lateral */
.sidebar {
    width: 230px;
    padding: 1.5rem 1.25rem;
    background: linear-gradient(180deg, rgba(10, 35, 66, 0.08), rgba(230, 230, 230, 0.5));
    border-right: 1px solid rgba(179, 179, 179, 0.35);
}

.sidebar-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--silver-mid);
    margin-bottom: 0.75rem;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.45rem 0.65rem;
    border-radius: 999px;
    font-size: 0.9rem;
    text-decoration: none;
    color: #333;
    border: 1px solid transparent;
}

.sidebar-link span.icon {
    font-size: 1.05rem;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.8);
    border-color: rgba(10, 35, 66, 0.15);
}

.sidebar-link.is-active {
    background: #ffffff;
    border-color: rgba(10, 35, 66, 0.35);
    color: var(--deep-blue);
    font-weight: 600;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.04);
}

/* contenido principal del panel */
.panel-main {
    flex: 1;
    padding: 1.75rem 2rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

/* Ajustes responsive */
@media (max-width: 900px) {
    .panel-shell {
        flex-direction: column;
        min-height: auto;
    }

    .sidebar {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        padding: 0.75rem 1rem;
        border-right: none;
        border-bottom: 1px solid rgba(179, 179, 179, 0.35);
    }

    .sidebar-title {
        display: none;
    }

    .sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .sidebar-link {
        font-size: 0.85rem;
    }

    .panel-main {
        padding: 1.5rem;
    }
}

/* Variante de tarjeta mÃ¡s ancha para listados (clientes, proyectos, etc.) */
.hero-card--wide {
    max-width: 1024px;
}

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    table-layout: fixed;
    /* hace que reparta el ancho de columnas */
}

.table th,
.table td {
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid #e1e4ea;
    word-wrap: break-word;
    /* que el texto largo salte de lÃ­nea */
    white-space: normal;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    background: #e5e9f2;
    color: #1f2a44;
}

/* Prioridad */
.badge--priority-alta {
    background: #f39c12;
    color: #fff;
}

.badge--priority-media {
    background: #3498db;
    color: #fff;
}

.badge--priority-baja {
    background: #95a5a6;
    color: #fff;
}

.badge-red {
    background: #e74c3c;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.1rem 0.45rem;
    margin-left: auto;
}

/* Alinear bien los botones de acciones dentro de la celda */
.table-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

/* ===========================
   FRONT SITE (JL DevWorks)
   =========================== */

.site-body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 0;
    background: radial-gradient(circle at 0 0, #021839 0, #021839 30%, #f5f7fc 70%, #f5f7fc 100%);
    color: #12213a;
}

/* HEADER */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(16px);
    background: rgba(245, 247, 252, 0.90);
    border-bottom: 1px solid rgba(12, 29, 70, 0.06);
}

.site-header-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
}

.site-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.site-logo-title {
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #0a2340;
    text-transform: uppercase;
    font-size: 0.9rem;
}

.site-logo-subtitle {
    display: block;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #7081a0;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

/* Hamburger menu button (hidden on desktop) */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: #102a43;
    line-height: 1;
}

.menu-toggle:hover {
    color: #0b2d66;
}

.site-nav a {
    text-decoration: none;
    color: #102444;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    transition: all 0.15s ease-out;
}

/* CTA principal: que no se vuelva blanco al pasar el ratÃ³n */
.site-nav .nav-link-cta {
    background: #0b2d66;
    color: #f7fbff;
    box-shadow: 0 12px 32px rgba(3, 17, 40, 0.45);
    font-weight: 600;
}

.site-nav .nav-link-cta:hover {
    background: #071a3b;
    color: #ffffff;
    box-shadow: 0 8px 24px rgba(3, 17, 40, 0.6);
    transform: translateY(-1px);
}

.site-nav .nav-link-ghost {
    border: 1px solid rgba(11, 45, 102, 0.15);
    color: #0b2d66;
}

.site-nav .nav-link-ghost:hover {
    background: rgba(11, 45, 102, 0.06);
}

/* HERO */

.site-main {
    max-width: 1120px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.site-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.1fr);
    gap: 2.5rem;
    align-items: center;
    margin-top: 1.5rem;
    margin-bottom: 3rem;
}

.site-hero-text {
    color: #f7fbff;
}

.site-hero-kicker {
    font-size: 0.8rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(241, 245, 255, 0.8);
    margin-bottom: 0.75rem;
}

.site-hero h1 {
    font-size: clamp(2rem, 2.7vw, 2.7rem);
    line-height: 1.1;
    margin: 0 0 1rem;
}

.site-hero-lead {
    font-size: 1rem;
    max-width: 34rem;
    line-height: 1.6;
    color: rgba(237, 241, 255, 0.92);
}

.site-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.2rem 0 0.5rem;
}

.site-hero-meta {
    font-size: 0.85rem;
    color: rgba(224, 232, 255, 0.85);
}

/* HERO CARD con imagen */

.site-hero-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgba(6, 33, 76, 0.28);
    padding: 1.25rem 1.25rem 1.4rem;
    display: flex;
    gap: 1.2rem;
    align-items: center;
}

.site-hero-card-media {
    flex: 0 0 120px;
}

.site-hero-card-media img {
    width: 100%;
    border-radius: 16px;
    display: block;
    object-fit: cover;
}

.site-hero-card-body h2 {
    margin: 0 0 0.5rem;
    font-size: 1.05rem;
    color: #0b2d66;
}

.site-hero-card-body p {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.5;
    color: #4a5873;
}

/* BOTONES FRONTALES */

.btn-primary-lg,
.btn-ghost-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 0.7rem 1.5rem;
    font-size: 0.92rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease-out;
}

.btn-primary-lg {
    background: #0b2d66;
    color: #f7fbff;
    box-shadow: 0 16px 40px rgba(3, 17, 40, 0.5);
    font-weight: 600;
}

.btn-primary-lg:hover {
    background: #071a3b;
    color: #ffffff;
    box-shadow: 0 10px 26px rgba(3, 17, 40, 0.7);
    transform: translateY(-1px);
}



.btn-ghost-lg:hover {
    background: rgba(255, 255, 255, 0.08);
}

/* SECCIONES GENERALES */

.site-section {
    margin-bottom: 3.5rem;
    color: #10213a;
}

.site-section h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.site-section-alt {
    background: #f7f8fc;
    border-radius: 24px;
    padding: 2rem 1.75rem 2.2rem;
}

/* Tarjetas */

.site-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.site-card {
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem 1.4rem;
    box-shadow: 0 18px 48px rgba(6, 33, 76, 0.18);
    font-size: 0.95rem;
}

/* Timeline proceso */

.site-timeline {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.site-timeline .step {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.25rem 1.1rem;
    box-shadow: 0 16px 40px rgba(9, 36, 78, 0.16);
    font-size: 0.95rem;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    background: #0b2d66;
    color: #f7fbff;
    margin-bottom: 0.35rem;
}

/* CTA final */

.site-section-cta {
    margin-top: 1rem;
}

.site-section-cta-inner {
    background: linear-gradient(90deg, #032554, #0a3c7b);
    color: #f7fbff;
    border-radius: 28px;
    padding: 1.6rem 1.7rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

/* FOOTER */

.site-footer {
    text-align: center;
    padding: 1.5rem;
    font-size: 0.8rem;
    color: #7a879d;
}

/* RESPONSIVE */

@media (max-width: 900px) {

    /* Mobile menu toggle */
    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(245, 247, 252, 0.98);
        backdrop-filter: blur(16px);
        border-bottom: 1px solid rgba(12, 29, 70, 0.06);
        flex-direction: column;
        align-items: stretch;
        padding: 1rem 1.5rem;
        gap: 0.5rem;
        display: none;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    }

    .site-nav.active {
        display: flex;
    }

    .site-nav a {
        width: 100%;
        text-align: center;
        padding: 0.75rem;
    }

    .site-header {
        position: sticky;
    }

    .site-header-inner {
        position: relative;
    }

    .site-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .site-hero-card {
        margin-top: 1.5rem;
        margin-left: auto;
        margin-right: auto;
    }

    .site-main {
        padding: 1.8rem 1.1rem 3rem;
    }

    .site-section-cta-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .site-grid-3,
    .site-timeline {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Tarjeta del hero como solo imagen */
.site-hero-card {
    max-width: 520px;
    width: 100%;
    height: 280px;
    /* ajusta si la quieres mÃ¡s alta/baja */
}

/* Que use el mismo estilo de las otras tarjetas */
.site-card {
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 22px 60px rgba(6, 33, 61, 0.15);
}

/* VersiÃ³n imagen para el hero */
.site-hero-card--image {
    padding: 0;
    /* sin padding, todo imagen */
    overflow: hidden;
    /* recorta la imagen en las esquinas redondas */
}

/* La imagen rellena toda la tarjeta */
.site-hero-card--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
}

#servicios h2 {
    color: #ffffff;
}

/* --- Footer frontend --- */
.site-footer {
    margin-top: 3rem;
    padding: 1.75rem 1.5rem;
    background: #0b1f36;
    color: #e5edf5;
    font-size: 0.9rem;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.site-footer a {
    color: #e5edf5;
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    font-size: 0.85rem;
}

/* --- Banner de cookies --- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    padding: 0.75rem;
    pointer-events: none;
    /* solo el contenido interior coge clics */
}

.cookie-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 12px 40px rgba(15, 35, 52, 0.35);
    padding: 1rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    pointer-events: auto;
}

.cookie-banner-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    color: #243b53;
    max-width: 580px;
    font-size: 0.9rem;
}

.cookie-banner-text strong {
    font-size: 0.95rem;
}

.cookie-banner-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-end;
}

.cookie-link {
    font-size: 0.85rem;
    color: #1f4fff;
    text-decoration: none;
}

.cookie-link:hover {
    text-decoration: underline;
}

.cookie-btn-primary,
.cookie-btn-secondary {
    border-radius: 999px;
    padding: 0.45rem 1.2rem;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.cookie-btn-primary {
    background: #1f4fff;
    color: #ffffff;
}

.cookie-btn-primary:hover {
    filter: brightness(1.05);
}

.cookie-btn-secondary {
    background: #edf2f7;
    color: #243b53;
}

.cookie-btn-secondary:hover {
    background: #e1e7f0;
}

.cookie-banner.is-hidden {
    display: none;
}

@media (max-width: 768px) {
    .cookie-banner-inner {
        align-items: flex-start;
    }

    .cookie-banner-actions {
        justify-content: flex-start;
    }
}

/* ðŸ”¥ Forzar tamaÃ±o del logo en la web pÃºblica */
.site-logo img {
    height: 64px !important;
    /* prueba 56, 64, 72... hasta que te guste */
    width: auto !important;
    display: block;
}