/* Gibson Serial Checker Styles */

.container {
    max-width: 900px;
    margin: 0 auto;
}

.container h1 {
    font-size: 2.5em;
    color: #1a1a1a;
    margin-bottom: 10px;
    text-align: center;
}

.subtitle {
    text-align: center;
    font-size: 1.2em;
    color: #666;
    margin-bottom: 30px;
}

/* Serial Input Section */
.serial-input-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group label {
    color: white;
    font-size: 1.1em;
    font-weight: 600;
}

#serialInput {
    padding: 15px 20px;
    font-size: 1.3em;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 600;
}

#serialInput:focus {
    outline: none;
    border-color: white;
    background: white;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.decode-button {
    padding: 18px 40px;
    font-size: 1.2em;
    font-weight: 700;
    background: white;
    color: #667eea;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.decode-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    background: #f8f9ff;
}

.decode-button:active {
    transform: translateY(0);
}

.input-hint {
    color: rgba(255, 255, 255, 0.9);
    text-align: center;
    font-size: 0.9em;
    margin-top: 10px;
}

/* Result Section */
.result-section {
    margin: 30px 0;
    animation: slideDown 0.4s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.result-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.result-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.result-header h2 {
    margin: 0;
    font-size: 1.8em;
}

.result-badge {
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.result-badge.válido {
    background: #4caf50;
    color: white;
}

.result-badge.impreciso {
    background: #ff9800;
    color: white;
}

.result-badge.desconocido {
    background: #9e9e9e;
    color: white;
}

.result-badge.custom-shop {
    background: #ffd700;
    color: #333;
}

.result-badge.especial {
    background: #2196f3;
    color: white;
}

.result-badge.error {
    background: #f44336;
    color: white;
}

.result-body {
    padding: 30px;
}

.result-item {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.result-item:hover {
    background: #f8f9ff;
}

.result-item:last-child {
    border-bottom: none;
}

.result-label {
    font-weight: 600;
    color: #555;
    font-size: 1.05em;
}

.result-value {
    font-weight: 700;
    color: #1a1a1a;
    text-align: right;
    font-size: 1.05em;
}

.result-notes {
    background: #f8f9ff;
    padding: 25px;
    border-top: 3px solid #667eea;
}

.result-notes h3 {
    margin-top: 0;
    color: #667eea;
    font-size: 1.3em;
}

.notes-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 0 0;
}

.notes-list li {
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
    color: #444;
    line-height: 1.6;
}

.notes-list li:last-child {
    border-bottom: none;
}

.error-box {
    background: #ffebee;
    border: 2px solid #ef5350;
    border-radius: 10px;
    padding: 20px;
}

.error-box h3 {
    color: #d32f2f;
    margin-top: 0;
}

.error-box ul {
    margin: 10px 0 0 20px;
    color: #666;
}

/* Info Section */
.info-section {
    margin: 40px 0;
    padding: 30px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.info-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.location-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.location-card {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #667eea;
    transition: all 0.3s ease;
}

.location-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.location-card h3 {
    color: #667eea;
    margin-top: 0;
    font-size: 1.3em;
}

.location-card p {
    color: #555;
    line-height: 1.6;
}

/* Systems Section */
.systems-section {
    margin: 40px 0;
}

.systems-section h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
}

.system-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-left: 5px solid #667eea;
    transition: all 0.3s ease;
}

.system-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
    transform: translateX(5px);
}

.system-card.highlighted {
    background: linear-gradient(135deg, #f8f9ff 0%, #e8ebff 100%);
    border-left-color: #764ba2;
}

.system-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
    gap: 10px;
}

.system-header h3 {
    color: #1a1a1a;
    margin: 0;
    font-size: 1.4em;
}

.system-format {
    background: #667eea;
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-weight: 700;
    font-size: 1.1em;
    letter-spacing: 1px;
}

.system-details {
    list-style: none;
    padding: 0;
    margin: 15px 0;
}

.system-details li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
}

.system-details li:last-child {
    border-bottom: none;
}

.system-example {
    background: #f8f9ff;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
    border-left: 3px solid #667eea;
}

.system-example code {
    background: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 700;
    color: #667eea;
    font-size: 1.05em;
}

/* Warning Section */
.warning-section {
    margin: 40px 0;
    padding: 30px;
    background: #fff3cd;
    border-radius: 15px;
    border: 2px solid #ffc107;
}

.warning-section h2 {
    color: #856404;
    margin-bottom: 25px;
    font-size: 1.8em;
}

.warning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.warning-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border-left: 4px solid #ff9800;
}

.warning-card h3 {
    color: #e65100;
    margin-top: 0;
    font-size: 1.2em;
}

.warning-card p {
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* FAQ Section - En sidebar */
.faq-sidebar {
    margin: 40px 0;
}

.faq-sidebar h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
}

.faq-item {
    background: white;
    border-radius: 10px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.12);
}

.faq-question {
    padding: 20px;
    font-weight: 700;
    color: #1a1a1a;
    cursor: pointer;
    background: #f8f9ff;
    border-left: 4px solid #667eea;
    font-size: 1.1em;
}

.faq-answer {
    padding: 20px;
    color: #555;
    line-height: 1.8;
    border-top: 1px solid #f0f0f0;
}

/* Additional Info */
.additional-info {
    margin: 40px 0;
}

.additional-info h2 {
    color: #667eea;
    margin-bottom: 25px;
    font-size: 1.8em;
    text-align: center;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.info-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    border-top: 4px solid #667eea;
}

.info-card h3 {
    color: #667eea;
    margin-top: 0;
    font-size: 1.3em;
}

.info-card p {
    color: #555;
    line-height: 1.8;
    margin: 0;
}

/* Side Content */
.side-content {
    margin-top: 25px;
}

.serialchecker-wrapper.nopadding {
    padding: 0;
}

/* Layout de dos columnas - SOLO en pantallas grandes */
@media (min-width: 1024px) {
    .serialchecker-wrapper {
        display: flex;
        gap: 40px;
        max-width: 1200px;
        margin: 0 auto;
        padding: 20px;
    }
    
    .serialchecker-wrapper .container {
        flex: 1;
        max-width: 700px;
    }
    
    .serialchecker-wrapper .side-content {
        flex: 1;
        max-width: 400px;
        margin-top: 0;
    }
}

@media (min-width: 600px) {
    .serialchecker-wrapper {
        padding: 15px;
    }

    .nopadding {
        padding: 0px;
    }
}

/* Responsive Design */
@media (max-width: 1023px) {
    .side-content {
        width: 100%;
        max-width: 900px;
        margin: 25px auto 0;
    }
}

@media (max-width: 768px) {
    .container h1 {
        font-size: 2em;
    }
    
    .subtitle {
        font-size: 1em;
    }
    
    .serial-input-section {
        padding: 25px;
    }
    
    #serialInput {
        font-size: 1.1em;
    }
    
    .decode-button {
        padding: 15px 30px;
        font-size: 1em;
    }
    
    .result-header h2 {
        font-size: 1.4em;
    }
    
    .location-grid,
    .warning-grid,
    .info-cards {
        grid-template-columns: 1fr;
    }
    
    .system-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .system-format {
        font-size: 0.95em;
    }
}

@media (max-width: 480px) {
    .serialchecker-wrapper {
        padding: 10px;
    }
    
    .container h1 {
        font-size: 1.6em;
    }
    
    .serial-input-section {
        padding: 20px;
    }
    
    #serialInput {
        font-size: 1em;
        padding: 12px 15px;
    }
    
    .result-item {
        flex-direction: column;
        gap: 5px;
    }
    
    .result-value {
        text-align: left;
    }
}

/* Utilities */
.disc-bullet {
    list-style-type: disc;
    margin-left: 20px;
}

strong {
    color: #667eea;
}
/* ====================================================================
   Preguntas frecuentes
   Estaban solo en tuner.css, que esta página no carga: el bloque de FAQ
   del identificador de series se renderizaba sin estilos.
   ==================================================================== */
.faq-section {
    margin-top: 40px;
    padding: 25px;
    background: #f0f4f8;
    border-radius: 15px;
}

.faq-section h2 {
    color: #346cc0;
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.8em;
}

.faq-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-weight: bold;
    color: #333;
    margin-bottom: 10px;
    font-size: 1.1em;
}

.faq-answer {
    color: #666;
    line-height: 24px;
    padding-left: 20px;
}

/* ====================================================================
   Resultado del identificador Fender
   Una tarjeta por lectura: cuando un número encaja con dos esquemas de
   fábricas distintas se enseñan las dos, no un rango que las promedie.
   ==================================================================== */
/* En el de Gibson el botón va dentro de .input-group y hereda su gap; aquí
   hay dos campos y el botón aparte, y sin esto quedaban pegados. */
.fs-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.fs-form input,
.fs-form select {
    padding: 14px 18px;
    font-size: 1.05em;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.95);
}

.fs-form input:focus,
.fs-form select:focus {
    outline: none;
    border-color: white;
    background: white;
}

.fs-form .decode-button {
    margin-top: 6px;
}

/* Sobre el degradado morado, el gris no se leía. */
.fs-opcional {
    font-weight: normal;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.9em;
}

.fs-aviso-ambiguo {
    background: #fff8e6;
    border-left: 4px solid #e8a317;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
    color: #6b4e00;
    line-height: 1.6;
}

.fs-lectura {
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 14px;
    background: #fff;
}

.fs-lectura-cab {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 6px;
}

.fs-anios {
    font-size: 2.4em;
    font-weight: bold;
    color: #346cc0;
    line-height: 1.1;
}

.fs-sello {
    font-size: 0.78em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: 20px;
    padding: 5px 12px;
}

.fs-conf-alta { background: #e6f6ed; color: #1d7a45; }
.fs-conf-media { background: #fff3e0; color: #8a5a00; }
.fs-conf-baja { background: #f1f1f4; color: #5a5a66; }

.fs-pais {
    font-size: 1.1em;
    font-weight: bold;
    color: #333;
    margin: 0 0 4px;
}

.fs-esquema {
    color: #888;
    font-size: 0.92em;
    margin: 0 0 10px;
}

.fs-notas {
    margin: 0;
    padding-left: 20px;
    color: #555;
}

.fs-notas li {
    line-height: 1.65;
    margin-bottom: 6px;
}

.fs-siguiente {
    background: #f0f4f8;
    border-radius: 12px;
    padding: 18px 20px;
    margin-top: 18px;
}

.fs-siguiente h3 {
    margin: 0 0 10px;
    color: #346cc0;
    font-size: 1.2em;
}

.fs-siguiente ul {
    margin: 10px 0 0;
    padding-left: 20px;
    color: #555;
}

.fs-siguiente li {
    line-height: 1.7;
    margin-bottom: 8px;
}

.fs-recordatorio {
    margin: 12px 0 0;
    color: #888;
    font-size: 0.92em;
}

.fs-error {
    background: #ffebee;
    border-radius: 12px;
    padding: 16px 18px;
    color: #c62828;
}

@media (max-width: 768px) {
    .fs-anios { font-size: 2em; }
}
