/* CSS BÁSICO Y DE COMPATIBILIDAD (Similar a la respuesta anterior) */
:root {
    --primary-color: #3c42da;
    /* Color azul/morado de los botones activos */
    --text-color: #333;
    --bg-light: #f9f9f9;
    --border-color: #ddd;
    --success-color: #28a745;
    /* Color para las marcas de verificación */
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Quicksand', sans-serif;
}

body {
    background-color: #fff;
    color: var(--text-color);
}



/* --- Título Principal --- */
.main-title-section {
    text-align: center;
    padding: 60px 20px;
}

.main-title-section h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    font-weight: 700;
}

.main-title-section p {
    font-size: 1.1em;
    color: #666;
}

/* --- Compatible Devices --- */
.compatible-devices-section {
    padding: 40px 0 60px;
    text-align: center;
}

.compatible-devices-section h2 {
    font-size: 2em;
    margin-bottom: 10px;
    font-weight: 700;
}

.brand-selector button {
    background: #fff;
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: 25px;
    margin: 0 8px 20px 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s;
}

.brand-selector button:hover {
    border-color: var(--primary-color);
}

.brand-selector button.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Estilo para el icono (Favicon o Emoji/FA si se usa) */
.brand-selector button img {
    height: 18px;
    vertical-align: middle;
    margin-right: 5px;
    border-radius: 3px;
    /* Un poco de estilo al favicon simulado */
}

.devices-list-container {
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    background-color: #fff;
    position: relative;
}

.devices-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-height: 450px;
    overflow-y: auto;
    padding-right: 10px;
}

.devices-grid::-webkit-scrollbar {
    width: 8px;
}

.devices-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.devices-grid::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.devices-grid::-webkit-scrollbar-thumb:hover {
    background: #aaa;
}

.device-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 12px;
    text-align: left;
    cursor: default;
    height: 60px;
    display: flex;
    align-items: center;
}

.device-card span {
    font-weight: 600;
    font-size: 14px;
    margin-left: 5px;
}

.device-card .check-icon {
    color: var(--success-color);
    font-size: 1.2em;
}

/* --- How to Know If Your Phone is eSIM-Compatible --- */
.compatibility-section {
    padding: 60px 0;
    background-color: var(--bg-light);
}

.compatibility-section h2 {
    text-align: center;
    font-size: 2em;
    margin-bottom: 40px;
    font-weight: 700;
}

.step-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.step-box {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.step-number {
    position: absolute;
    top: -18px;
    left: -18px;
    width: 40px;
    height: 40px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 1.2em;
}

.step-box h3 {
    margin-bottom: 15px;
    color: var(--primary-color);
    font-size: 1.3em;
}

.step-box p {
    margin-bottom: 15px;
}

/* Step 1 Specifics */
.imei-check-section {
    padding: 15px;
    background: #f0f8ff;
    border: 1px solid #cce5ff;
    border-radius: 8px;
}

.imei-check-section ol {
    list-style: none;
    padding-left: 0;
}

.imei-check-section li {
    margin-bottom: 10px;
    position: relative;
    padding-left: 25px;
}

.imei-check-section li::before {
    content: attr(data-step);
    position: absolute;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.8em;
    font-weight: bold;
}

.imei-input-group {
    margin-top: 20px;
}

#imei-input {
    width: calc(100% - 120px);
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px 0 0 5px;
    font-size: 1em;
}

#check-compatibility-btn {
    padding: 10px 20px;
    border: none;
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    border-radius: 0 5px 5px 0;
    font-size: 1em;
    transition: background-color 0.3s;
}

#check-compatibility-btn:hover:not(:disabled) {
    background-color: #2e35b1;
}

#check-compatibility-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Step 2 Specifics */
.lock-info-box {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.os-card {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    flex: 1;
    min-width: 200px;
}

.os-card h4 {
    font-size: 1.1em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.os-card code {
    display: block;
    background: var(--bg-light);
    padding: 8px;
    border-radius: 4px;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
    font-size: 0.9em;
}

/* Resultado de la validación */
#validation-result {
    margin-top: 25px;
    padding: 20px;
    border-radius: 8px;
    display: none;
    border-left: 5px solid;
}

#validation-result.compatible {
    background-color: #d4edda;
    color: #155724;
    border-left-color: var(--success-color);
}

#validation-result.incompatible {
    background-color: #f8d7da;
    color: #721c24;
    border-left-color: #dc3545;
}

.devices-name {
    font-size: smaller;
    font-size: 5px;
}

/* Estilos para Smartphones (hasta 480px) */
@media (max-width: 480px) {
    .device-card span {
        font-weight: 600;
        font-size: 7px;
        margin-left: 1px;
    }
}