body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: #333;
    background: white;
    margin: 0;
    padding: 25px;
    min-height: 100vh;
}

.usd-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0;
    width: 100%;
}

.usd-data-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

.usd-data-table th,
.usd-data-table td {
    padding: 12px 15px;
    text-align: left;
    vertical-align: middle;
}

.usd-data-table thead th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
}

.usd-data-table th:nth-child(1),
.usd-data-table td:nth-child(1) {
    width: 30%;
}

.usd-data-table th:nth-child(2),
.usd-data-table td:nth-child(2),
.usd-data-table th:nth-child(3),
.usd-data-table td:nth-child(3),
.usd-data-table th:nth-child(4),
.usd-data-table td:nth-child(4),
.usd-data-table th:nth-child(5),
.usd-data-table td:nth-child(5) {
    width: 17.5%;
}

.usd-entity-cell {
    display: flex;
    align-items: center;
    gap: 10px;
}

.usd-entity-logo {
    width: 150px;
    height: 150px;
    object-fit: contain;
    flex-shrink: 0;
}

.usd-data-table tbody tr {
    border-bottom: 1px solid #e9ecef;
}

.usd-data-table tbody tr:last-child {
    border-bottom: none;
}

.usd-data-table tbody tr td {
    padding: 15px;
}

.usd-separator-row td {
    height: 1px;
    padding: 0;
    background-color: #0056b3;
}

.ad-space {
    min-height: 250px;
    margin: 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
}

.ad-space[data-ad-slot="responsive-banner"] {
    min-height: 90px;
}

.ad-space[data-ad-slot="mobile-banner"] {
    min-height: 50px;
}

.usd-ad-row {
    display: none;
}

.usd-ad-cell {
    padding: 20px 15px !important;
    text-align: center;
}

.usd-ad-placeholder {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 30px;
    margin: 10px auto;
    max-width: 400px;
}

.usd-ad-content {
    text-align: center;
}

.usd-ad-text {
    font-size: 16px;
    font-weight: 600;
    color: #6c757d;
    margin-bottom: 5px;
}

.usd-ad-code {
    font-size: 14px;
    color: #adb5bd;
    font-family: 'Courier New', monospace;
}

.usd-ad-container-mobile {
    display: none;
}

/* === VISTA Mﾃ天IL PERSONALIZADA === */

.mobile-view {
    display: none;
}

.mobile-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    text-align: center;
}

.mobile-logo {
    width: 200px;
    height: 80px;
    object-fit: contain;
    margin: 0 auto 10px;
    display: block;
}

.mobile-entity-name {
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.mobile-field {
    font-size: 14px;
    margin: 4px 0;
    text-align: center;
}

/* === REGLAS RESPONSIVAS PARA MOVIL === */

@media (max-width: 768px) {

    body {
        padding: 15px;
    }

    .usd-data-table {
        font-size: 14px;
    }

    .usd-data-table th,
    .usd-data-table td {
        padding: 10px 8px;
    }

    .usd-data-table th:nth-child(1),
    .usd-data-table td:nth-child(1) {
        width: 35%;
    }

    .usd-entity-logo {
        width: 42px;
        height: 42px;
    }l

    .ad-space[data-ad-slot="responsive-banner"] {
        min-height: 250px;
    }

    .usd-ad-container-mobile {
        display: block;
    }

    /* OCULTAR VISTA ESCRITORIO */
    thead,
    tbody.desktop-view {
        display: none !important;
    }

    /* MOSTRAR VISTA Mﾃ天IL */
    tbody.mobile-view {
        display: table-row-group !important;
    }
}

/* Ocultar por defecto (PC) */
.mobile-card {
    display: none;
}

/* Mostrar solo en móviles */
@media (max-width: 768px) {
    .mobile-card {
        display: block;
    }
}

