/* Variables de colores */
:root {
    --color-dark: #2d3037;
    --color-secondary: #939194;
    --color-tertiary: #4f5354;
    --color-blue: #83f1e8;
    --color-white: #ffffff;
    --color-red: #c60b1e;
    --color-yellow: #ffc400;
    --color-eu-blue: #003399;
    --color-gold: #d4af37;
}

/* Estilos generales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', 'Helvetica', sans-serif;
}

body {
    background: linear-gradient(135deg, var(--color-dark) 0%, #1a1d23 100%);
    color: var(--color-white);
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-tertiary);
}

header h1 {
    color: var(--color-blue);
    margin-bottom: 10px;
    font-size: 2.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

header p {
    color: var(--color-secondary);
    font-size: 1.1rem;
}

/* Layout de 3 paneles */
.main-content {
    display: grid;
    grid-template-columns: 280px 1fr 1fr;
    gap: 25px;
    align-items: start;
}

/* Panel de controles */
.controls-panel {
    background: linear-gradient(145deg, var(--color-tertiary) 0%, #3a3e44 100%);
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    position: sticky;
    top: 20px;
}

.controls-panel h2 {
    color: var(--color-blue);
    margin-bottom: 25px;
    text-align: center;
    font-size: 1.5rem;
    border-bottom: 1px solid var(--color-secondary);
    padding-bottom: 10px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 30px;
}

.btn {
    padding: 14px 20px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn.generate {
    background: linear-gradient(145deg, var(--color-blue) 0%, #6ad1c8 100%);
    color: var(--color-dark);
    box-shadow: 0 4px 15px rgba(131, 241, 232, 0.3);
}

.btn.clear {
    background: linear-gradient(145deg, var(--color-secondary) 0%, #7a7c80 100%);
    color: var(--color-dark);
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

.btn:active {
    transform: translateY(-1px);
}

.options {
    margin-bottom: 25px;
}

.options h3 {
    color: var(--color-blue);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.option-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--color-white);
    cursor: pointer;
    font-size: 0.9rem;
}

.option-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--color-blue);
}

.info {
    background: rgba(0, 0, 0, 0.3);
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--color-blue);
    font-size: 0.85rem;
    color: var(--color-secondary);
}

.info strong {
    color: var(--color-blue);
}

/* Paneles DNI y Banco */
.dni-panel, .bank-panel {
    display: flex;
    justify-content: center;
}

/* Estilos de tarjetas */
.card {
    background: linear-gradient(145deg, var(--color-tertiary) 0%, #45494a 100%);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255,255,255,0.1);
    width: 100%;
    max-width: 500px;
}

.card-header {
    background: linear-gradient(90deg, var(--color-dark) 0%, #3a3e45 100%);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid var(--color-secondary);
}

/* Estilos específicos para el DNI */
.dni-card .card-header {
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.spain-flag {
    display: flex;
    width: 70px;
    height: 45px;
    border: 1px solid #666;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.spain-flag .red {
    flex: 1;
    background-color: var(--color-red);
}

.spain-flag .yellow {
    flex: 2;
    background-color: var(--color-yellow);
}

.european-flag {
    width: 60px;
    height: 40px;
    background-color: var(--color-eu-blue);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #666;
}

.european-flag .stars {
    color: gold;
    font-size: 8px;
    letter-spacing: 1px;
}

.dni-card h3 {
    color: var(--color-white);
    font-size: 0.9rem;
    text-align: center;
    line-height: 1.3;
    font-weight: normal;
}

.card-content {
    padding: 25px;
    display: flex;
    gap: 25px;
}

.photo-section {
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.photo-container {
    background: var(--color-dark);
    border: 1px solid var(--color-secondary);
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.photo-frame {
    width: 100%;
    height: 140px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #1a1d23;
}

.dni-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--color-secondary);
}

.photo-data {
    padding: 8px;
    text-align: center;
}

.photo-number {
    font-family: 'OCR A', 'Courier New', monospace;
    font-size: 1.1rem;
    font-weight: bold;
    color: var(--color-white);
    letter-spacing: 1px;
}

.signature-section {
    text-align: center;
}

.signature-label {
    font-size: 0.75rem;
    color: var(--color-secondary);
    margin-bottom: 5px;
}

.signature-box {
    width: 100%;
    height: 40px;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 5px,
        rgba(255,255,255,0.1) 5px,
        rgba(255,255,255,0.1) 10px
    );
    border: 1px solid var(--color-secondary);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.signature-line {
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-white), transparent);
}

.data-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.data-row {
    display: flex;
    border-bottom: 1px dashed rgba(255,255,255,0.2);
    padding-bottom: 10px;
    align-items: center;
}

.label {
    flex: 0 0 160px;
    font-weight: bold;
    color: var(--color-blue);
    font-size: 0.9rem;
}

.value {
    flex: 1;
    color: var(--color-white);
    font-family: 'Arial', sans-serif;
    font-size: 0.95rem;
}

.card-footer {
    background: var(--color-dark);
    padding: 15px 20px;
    border-top: 2px solid var(--color-secondary);
}

.mrz {
    font-family: 'OCR A', 'Courier New', monospace;
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--color-white);
    line-height: 1.4;
}

.mrz-line {
    margin-bottom: 5px;
}

/* Estilos específicos para la tarjeta bancaria */
.bank-card {
    background: linear-gradient(135deg, #1a1f71 0%, #2d3280 50%, #1a1f71 100%);
    color: white;
    border: 1px solid rgba(255,255,255,0.2);
}

.bank-card .card-header {
    background: transparent;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding: 20px 25px;
}

.bank-logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.chip {
    width: 45px;
    height: 35px;
    background: linear-gradient(135deg, #d4af37, #ffd700, #d4af37);
    border-radius: 7px;
    position: relative;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.chip::before {
    content: "";
    position: absolute;
    top: 6px;
    left: 6px;
    right: 6px;
    bottom: 6px;
    border: 1px solid rgba(0, 0, 0, 0.4);
    border-radius: 3px;
}

.contactless-symbol {
    width: 30px;
    height: 30px;
    border: 2px solid rgba(255,255,255,0.8);
    border-radius: 50%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wave {
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, transparent 30%, rgba(255,255,255,0.8) 30%, rgba(255,255,255,0.8) 40%, transparent 40%);
}

.card-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
}

.visa-logo {
    font-family: 'Arial', sans-serif;
    font-weight: bold;
    font-size: 1.4rem;
    background: linear-gradient(to right, #ffffff, #e8e8e8, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.debit-badge {
    background: linear-gradient(145deg, var(--color-blue), #6ad1c8);
    color: var(--color-dark);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: bold;
}

.bank-card .card-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-number-section {
    text-align: center;
    margin: 10px 0;
}

.card-number {
    font-family: 'OCR A', 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: var(--color-white);
    text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

.card-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 10px;
}

.card-holder, .card-expiry {
    display: flex;
    flex-direction: column;
}

.card-holder .label, .card-expiry .label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: -120px;
}

.card-holder .value, .card-expiry .value {
    font-size: 0.9rem;
    font-weight: bold;
}

.bank-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.bank-info {
    flex: 1;
}

.info-row {
    display: flex;
    margin-bottom: 8px;
    font-size: 0.8rem;
}

.info-row .label {
    flex: 0 0 100px;
    color: rgba(255,255,255,0.7);
    font-size: 0.8rem;
}

.info-row .value {
    font-family: 'OCR A', 'Courier New', monospace;
    font-size: 0.8rem;
}

.security-section {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.cvv-section {
    text-align: right;
}

.cvv-section .label {
    font-size: 0.7rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 5px;
}

.cvv-value {
    font-family: 'OCR A', 'Courier New', monospace;
    font-size: 0.9rem;
    font-weight: bold;
    background: rgba(0,0,0,0.3);
    padding: 5px 10px;
    border-radius: 4px;
    min-width: 50px;
    text-align: center;
}

.hologram {
    width: 50px;
    height: 30px;
    background: linear-gradient(45deg, 
        rgba(255,255,255,0.1) 25%, 
        transparent 25%, 
        transparent 50%, 
        rgba(255,255,255,0.1) 50%, 
        rgba(255,255,255,0.1) 75%, 
        transparent 75%, 
        transparent);
    background-size: 10px 10px;
    border-radius: 5px;
    border: 1px solid rgba(255,255,255,0.3);
}

.bank-card .card-footer {
    background: rgba(0,0,0,0.2);
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 15px 25px;
}

.signature-strip {
    background: repeating-linear-gradient(
        45deg,
        #ffcccc,
        #ffcccc 10px,
        #ffffff 10px,
        #ffffff 20px
    );
    height: 40px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    padding: 0 15px;
}

.signature-placeholder {
    display: flex;
    align-items: center;
    gap: 10px;
}

.signature-placeholder .signature-label {
    color: #333;
    font-size: 0.7rem;
    font-weight: bold;
}

.signature-placeholder .signature-line {
    flex: 1;
    height: 2px;
    background: #333;
}

/* Responsive */
@media (max-width: 1200px) {
    .main-content {
        grid-template-columns: 280px 1fr;
        grid-template-areas: 
            "controls dni"
            "bank bank";
    }
    
    .controls-panel {
        grid-area: controls;
    }
    
    .dni-panel {
        grid-area: dni;
    }
    
    .bank-panel {
        grid-area: bank;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .main-content {
        grid-template-columns: 1fr;
        grid-template-areas: 
            "controls"
            "dni"
            "bank";
    }
    
    .controls-panel {
        position: static;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 10px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .card-content {
        flex-direction: column;
    }
    
    .photo-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-start;
    }
    
    .photo-container {
        width: 140px;
    }
    
    .bank-details {
        flex-direction: column;
        gap: 15px;
    }
    
    .security-section {
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* Footer Styles */
footer {
    margin-top: 50px;
    padding: 20px 0;
    border-top: 2px solid var(--color-tertiary);
    background: linear-gradient(145deg, var(--color-dark) 0%, #1a1d23 100%);
}

.footer-socials {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0 20px;
}

.social-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s ease;
}

.social-item:hover {
    transform: translateY(-2px);
}

.social-item i {
    font-size: 1.2rem;
    transition: color 0.3s ease;
}

.social-item a {
    padding: 0.3rem 0.6rem;
    border-radius: 5px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: bold;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

/* GitHub */
.social-item:nth-child(1) i {
    color: var(--color-white);
}

.social-item:nth-child(1) a {
    background-color: #333;
    color: var(--color-white);
}

.social-item:nth-child(1) a:hover {
    background-color: #444;
    border-color: var(--color-blue);
}

/* YouTube */
.social-item:nth-child(2) i {
    color: #ff0000;
}

.social-item:nth-child(2) a {
    background-color: #ff0000;
    color: var(--color-white);
}

.social-item:nth-child(2) a:hover {
    background-color: #cc0000;
    border-color: var(--color-blue);
}

/* PayPal */
.social-item:nth-child(3) i {
    color: #0070ba;
}

.social-item:nth-child(3) a {
    background-color: #0070ba;
    color: var(--color-white);
}

.social-item:nth-child(3) a:hover {
    background-color: #005a9e;
    border-color: var(--color-blue);
}

/* Discord */
.social-item:nth-child(4) i {
    color: #5865F2;
}

.social-item:nth-child(4) a {
    background-color: #5865F2;
    color: var(--color-white);
}

.social-item:nth-child(4) a:hover {
    background-color: #4752c4;
    border-color: var(--color-blue);
}

.footer-copyright {
    text-align: center;
    font-size: 0.9rem;
    color: var(--color-secondary);
    padding: 0 20px;
}

/* Responsive para el footer */
@media (max-width: 768px) {
    .footer-socials {
        justify-content: center;
        flex-wrap: wrap;
        gap: 0.8rem;
    }
    
    .social-item a {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .social-item i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .footer-socials {
        gap: 0.5rem;
    }
    
    .social-item {
        gap: 0.3rem;
    }
    
    .social-item a {
        padding: 0.2rem 0.4rem;
        font-size: 0.7rem;
    }
}