/*
 Theme Name:   Jornapro Child
 Theme URI:    https://jornapro.es/
 Description:  Tema premium personalizado para Jornapro - Control Horario Inteligente.
 Author:       Antigravity AI
 Template:     astra
 Version:      1.0.0
 Text Domain:  jornapro-child
*/

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #1A237E;
    --accent-color: #00A19B;
    --text-color: #333333;
    --light-bg: #F5F7FA;
    --glass-bg: rgba(255, 255, 255, 0.8);
}

body {
    font-family: 'Outfit', sans-serif;
    color: var(--text-color);
    background-color: var(--light-bg);
}

/* --- HEADER & LOGO --- */
.site-branding .site-title a {
    display: block;
    width: 180px;
    height: 50px;
    background: url('images/logo.png') no-repeat center left;
    background-size: contain;
    text-indent: -9999px;
}

.main-header-bar {
    background: var(--glass-bg) !important;
    backdrop-filter: blur(10px);
}

.entry-title,
.entry-header {
    display: none !important;
}

.site-content {
    padding-top: 0 !important;
    margin-top: -50px !important;
    /* Aumentado desplazamiento */
}

/* Forzar colapso de espacios en toda la estructura de Astra */
#primary,
#main,
#content,
.ast-container,
.site-content .ast-container,
.aspect-ratio-content {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.site-header,
.main-header-bar {
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
    border-bottom: none !important;
}

article,
.entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* --- HERO SECTION --- */
.jornapro-hero {
    background: linear-gradient(135deg, rgba(26, 35, 126, 0.95) 0%, rgba(0, 161, 155, 0.8) 100%),
        url('assets/images/hero-bg.png') no-repeat center center;
    background-size: cover;
    color: white;
    padding: 120px 0 140px;
    text-align: center;
    border-radius: 0 0 60px 60px;
    position: relative;
}

.jornapro-hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    background: linear-gradient(to right, #ffffff, var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-logo {
    max-width: 250px;
    margin-bottom: 30px;
    filter: brightness(0) invert(1);
    /* Logo blanco */
}

.btn-wow {
    background: var(--accent-color) !important;
    color: white !important;
    padding: 15px 35px !important;
    border-radius: 50px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none !important;
    display: inline-block;
    border: none !important;
}

.btn-wow:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 161, 155, 0.4);
}

/* --- APP DOWNLOAD BUTTONS --- */
.app-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 25px 0;
}

.app-btn {
    background: #000000 !important;
    color: #ffffff !important;
    padding: 10px 20px !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    min-width: 200px;
}

.app-btn:hover {
    transform: translateY(-2px);
    background: #111111 !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.app-btn-icon {
    width: 32px;
    height: 32px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.icon-google-play {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M325.3 234.3L104.6 13l280.8 161.2-60.1 60.1zM47 0C34 6.8 25.3 19.2 25.3 35.3v441.3c0 16.1 8.7 28.5 21.7 35.3l256.6-256L47 0zm425.2 225.6l-58.9-34.1-65.7 64.5 65.7 64.5 60.1-34.1c18-14.3 18-46.5-1.2-60.8zM104.6 499l280.8-161.2-60.1-60.1L104.6 499z' fill='white'/%3E%3C/svg%3E");
}

.icon-app-store {
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 384 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M318.7 268.7c-.2-36.7 16.4-64.4 50-84.8-18.8-26.9-47.2-41.7-84.7-44.6-35.5-2.8-74.3 20.7-88.5 20.7-15 0-49.4-19.7-76.4-19.7C63.3 141.2 4 184.8 4 273.5q0 39.3 14.4 81.2c12.8 36.7 59 126.7 107.2 125.2 25.2-.6 43-17.9 75.8-17.9 31.8 0 48.3 17.9 76.4 17.9 48.6-.7 90.4-82.5 102.6-119.3-65.2-31.4-73.3-114.8-1.7-152zM181 83.2c20.3-25.7 18.6-50.1 17.7-61.9-20.3 3.1-43.2 14.8-59.3 35.1-16.1 20.3-16.1 43.1-16.1 53.6 22 0 41.5-11.8 57.7-26.8z' fill='white'/%3E%3C/svg%3E");
}

.app-btn-text {
    text-align: left;
}

.app-btn-label {
    display: block;
    font-size: 9px;
    text-transform: uppercase;
    opacity: 0.7;
    letter-spacing: 1px;
    line-height: 1.2;
}

.app-btn-store {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.2;
}

/* --- MULTITENANT GRID --- */
.multitenant-grid {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 20px !important;
    width: 100% !important;
    margin-top: 40px !important;
    flex-wrap: nowrap !important;
}

.multitenant-item {
    flex: 1 !important;
    min-width: 120px !important;
    max-width: 280px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    padding: 40px 20px !important;
    border-radius: 25px !important;
    text-align: center !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    transition: all 0.3s ease;
}

.multitenant-item:hover {
    background: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-5px);
}

.multitenant-icon {
    font-size: 2.5rem !important;
    display: block !important;
    margin-bottom: 15px !important;
}

.multitenant-label {
    font-size: 0.9rem !important;
    font-weight: 700 !important;
    letter-spacing: 1px !important;
    color: white !important;
    display: block !important;
}

/* --- CARACTERÍSTICAS (HOME) --- */
.jornapro-features {
    padding: 80px 20px;
    background: white;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

.feature-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
    border: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.feature-card h3 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
    display: block;
}

/* --- SECCIÓN DETALLE (HOME) --- */
.jornapro-detail {
    display: flex;
    align-items: center;
    padding: 80px 20px;
    gap: 50px;
    max-width: 1200px;
    margin: 0 auto;
}

.detail-content {
    flex: 1;
}

.detail-image {
    flex: 1;
}

.detail-image img {
    width: 100%;
    border-radius: 30px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .jornapro-detail {
        flex-direction: column;
        text-align: center;
    }
}

/* --- AUDITORIA LEGAL (TABLA DESKTOP) --- */
.escudo-container {
    max-width: 1100px;
    margin: 60px auto;
    background: white;
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
}

.escudo-header {
    background: #2D58D1;
    color: white;
    padding: 30px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.escudo-header h2 {
    color: white !important;
    margin: 0 !important;
    font-size: 20px !important;
}

.escudo-badge-legal {
    background: white;
    color: #2D58D1;
    padding: 10px 25px;
    border-radius: 50px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.escudo-table {
    width: 100%;
    border-collapse: collapse;
}

.escudo-row {
    border-bottom: 1px solid #f2f2f2;
}

.escudo-row td {
    padding: 20px 40px;
    vertical-align: middle;
}

.escudo-icon-cell {
    width: 80px;
}

.escudo-title-cell {
    font-weight: 700;
    color: #333;
    width: 250px;
}

.escudo-desc-cell {
    color: #666;
    font-size: 0.95rem;
}

.escudo-status-cell {
    width: 180px;
    text-align: center;
}

.escudo-date-cell {
    width: 120px;
    text-align: right;
    color: #999;
    font-size: 0.85rem;
}

.escudo-icon {
    width: 45px;
    height: 45px;
    background: #E8F0FE;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2D58D1;
}

.escudo-verificado {
    background: #7FC11B;
    color: white;
    padding: 6px 18px;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

/* --- RESPONSIVIDAD MÓVIL CRÍTICA --- */
@media (max-width: 768px) {
    .escudo-table thead {
        display: none !important;
    }

    .escudo-header {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }

    .escudo-table,
    .escudo-table tbody,
    .escudo-table tr,
    .escudo-table td {
        display: block !important;
        width: 100% !important;
        border: none !important;
        padding: 0 !important;
    }

    .escudo-row {
        padding: 25px 20px !important;
        position: relative !important;
    }

    .escudo-row::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 20px;
        right: 20px;
        border-bottom: 2px dotted #888 !important;
    }

    .escudo-row:last-child::after {
        display: none;
    }

    .escudo-icon-cell {
        display: inline-block !important;
        width: 45px !important;
        margin-right: 10px !important;
    }

    .escudo-title-cell {
        display: inline-block !important;
        width: calc(100% - 65px) !important;
        vertical-align: middle !important;
        font-size: 1.1rem !important;
    }

    .escudo-desc-cell {
        padding: 15px 0 !important;
        font-size: 1rem !important;
    }

    .escudo-status-cell {
        display: inline-block !important;
        width: auto !important;
    }

    .escudo-date-cell {
        display: inline-block !important;
        width: auto !important;
        float: right !important;
    }

    .jornapro-hero h1 {
        font-size: 2.2rem !important;
    }
}