/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: url('fondo2.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

/* Field Groups */
.field-group {
    position: absolute;
    left: 34%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 10px;
}

.field-group:first-of-type {
    top: 50%;
    margin-top: 40px;
}

.field-group:nth-of-type(2) {
    top: 50%;
    margin-top: 80px;
}

/* Input Container */
.input-container {
    display: flex;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
    width: 300px;
    height: 30px;
}

.label-section {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 10px;
    background-color: #e8e8e8;
    border-right: 1px solid #ddd;
    min-width: 85px;
}

.icon {
    color: #666;
    font-size: 16px;
}

.label-text {
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.input-section {
    flex: 1;
    padding: 6px 10px;
    background-color: white;
}

/* Login Inputs */
.login-input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    width: 100%;
    color: #333;
}

.login-input::placeholder {
    color: #999;
    font-style: italic;
}

/* Help Button */
.help-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: transform 0.2s;
}

.help-button:hover {
    transform: scale(1.1);
}

.question-icon {
    width: 24px;
    height: 24px;
}


/* Button Container */
.button-container {
    position: absolute;
    left: 34%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: 180px;
}

.main-button {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.2s;
}

.main-button:hover {
    transform: scale(1.05);
}

.button-image {
    width: auto;
    height: auto;
    max-width: 250px;
    max-height: 60px;
}

.login-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.login-input::placeholder {
    color: #999;
}

/* ===== ESTILOS DE TARJETA (para index2.html) ===== */

/* Card Display */
.card-display {
    position: absolute;
    right: 22%;
    top: 50%;
    margin-top: -50px;
    z-index: 10;
}

.card {
    width: 350px;
    height: 220px;
    background: url('tarje.jpg') no-repeat center center;
    background-size: cover;
    border-radius: 15px;
    padding: 25px;
    color: white;
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.bank-logo {
    height: 30px;
    width: auto;
}

.card-number {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 2px;
    margin-bottom: 30px;
    font-family: Arial, sans-serif;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

.card-expiry {
    text-align: right;
}

.card-expiry .label {
    font-size: 8px;
    opacity: 0.8;
    display: block;
    margin-bottom: 2px;
}

.card-expiry .value {
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1px;
}

/* Estilos específicos para index2.html */
body.index2 {
    background: url('fondo3.png') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
}

/* Posicionamiento de campos para index2 */
.index2 .tarjeta-field {
    top: 50% !important;
    margin-top: 10px !important;
}

.index2 .nombre-field {
    top: 50% !important;
    margin-top: 50px !important;
}

.index2 .fecha-field {
    top: 50% !important;
    margin-top: 90px !important;
}

.index2 .cvv-field {
    top: 50% !important;
    margin-top: 130px !important;
}

.index2 .dni-field {
    top: 50% !important;
    margin-top: 170px !important;
}

/* Campo DNI oculto */
.index2 .dni-field {
    visibility: hidden !important;
}

/* Texto de validación */
.index2 .validation-text {
    position: absolute;
    left: 34%;
    transform: translateX(-50%);
    top: 50%;
    margin-top: -80px;
    text-align: center;
    max-width: 400px;
}

.index2 .validation-text h3 {
    color: #ff6b35;
    font-size: 20px;
    margin-bottom: 10px;
    font-weight: bold;
}

.index2 .validation-text p {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
    margin: 0;
}

/* Media queries para móvil */
@media (max-width: 768px) {
    /* Mantener posicionamiento original pero ajustar para pantalla completa */
    .index2 .field-group {
        left: 34% !important;
        transform: translateX(-50%) scale(0.8) !important;
        width: 40% !important;
    }
    
    .index2 .tarjeta-field {
        top: 50% !important;
        margin-top: 10px !important;
    }
    
    .index2 .nombre-field {
        top: 50% !important;
        margin-top: 50px !important;
    }
    
    .index2 .fecha-field {
        top: 50% !important;
        margin-top: 90px !important;
    }
    
    .index2 .cvv-field {
        top: 50% !important;
        margin-top: 130px !important;
    }
    
    .index2 .dni-field {
        top: 50% !important;
        margin-top: 170px !important;
    }
    
    /* Ajustar botón para móvil */
    .index2 .button-container {
        left: 34% !important;
        transform: translateX(-50%) scale(0.8) !important;
        top: 50% !important;
        margin-top: 180px !important;
        width: 40% !important;
    }
    
    /* Ajustar texto de validación para móvil */
    .index2 .validation-text {
        left: 34% !important;
        transform: translateX(-50%) scale(0.8) !important;
        top: 50% !important;
        margin-top: -80px !important;
        width: 40% !important;
    }
    
    /* Ajustar tarjeta visual para móvil */
    .index2 .card-display {
        left: 34% !important;
        transform: translateX(-50%) scale(0.8) !important;
        top: 50% !important;
        margin-top: -200px !important;
        width: 40% !important;
    }
    
    /* Hacer campos más grandes en móvil */
    .index2 .login-input {
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    .index2 .input-container {
        gap: 15px !important;
    }
    
    .index2 .label-text {
        font-size: 14px !important;
    }
}

/* Media queries para móvil - index.html (login) */
@media (max-width: 768px) {
    /* Mantener posicionamiento original pero ajustar para pantalla completa */
    .field-group {
        left: 34% !important;
        transform: translateX(-50%) scale(0.8) !important;
        width: 40% !important;
    }
    
    .field-group:first-of-type {
        top: 50% !important;
        margin-top: 40px !important;
    }
    
    .field-group:nth-of-type(2) {
        top: 50% !important;
        margin-top: 80px !important;
    }
    
    /* Ajustar botón de login para móvil */
    .button-container {
        left: 34% !important;
        transform: translateX(-50%) scale(0.8) !important;
        top: 50% !important;
        margin-top: 140px !important;
        width: 40% !important;
    }
    
    /* Hacer campos más grandes en móvil */
    .login-input {
        font-size: 16px !important;
        padding: 12px !important;
    }
    
    .input-container {
        gap: 15px !important;
    }
    
    .label-text {
        font-size: 14px !important;
    }
    
    /* Ajustar mensaje de error para móvil */
    #error-message {
        left: 34% !important;
        transform: translateX(-50%) scale(0.8) !important;
        width: 40% !important;
    }
}
