/* assets/kanvas-esim.css */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

body {
    font-family: 'Inter', sans-serif !important;
    background-color: #f4f7f6 !important;
    color: #333 !important;
    line-height: 1.6 !important;
}

.kanvas-esim-container {
    max-width: 450px !important;
    margin: 0 auto !important;
    background-color: transparent !important;
}

/* Nuevo contenedor principal del formulario */
.form {
    width: 100% !important;
    background-color: #ffffff !important;
    border-radius: 20px !important;
    padding: 24px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    border: none !important;
    margin-bottom: 16px !important;
}

/* Título del formulario */
.form-title {
    font-size: 20px !important;
    font-weight: 600 !important;
    color: #1a1a1a !important;
    margin: 0 0 8px 0 !important;
    text-align: left !important;
    line-height: 1.2 !important;
}

.form-subtitle {
    font-size: 13px !important;
    color: #6B7280 !important;
    margin-bottom: 24px !important;
    line-height: 1.4 !important;
    text-align: left !important;
    font-weight: 400 !important;
}

.form-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #1a1a1a !important;
    margin-bottom: 6px !important;
    display: block !important;
}

.form-group {
    display: flex !important;
    flex-direction: row !important;
    gap: 12px !important;
    margin-bottom: 16px !important;
}

.form-item {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    flex: 1 !important;
}

.form-item-full {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    margin-bottom: 20px !important;
}

input#name, input#apellido, input#correo, .form-input {
    height: 44px !important;
    border-radius: 8px !important;
    border: 1.5px solid #E5E7EB !important;
    padding: 0 12px !important;
    box-sizing: border-box !important;
    font-size: 14px !important;
    color: #1a1a1a !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    font-family: 'Inter', sans-serif !important;
	width: 100% !important;
}

input#name::placeholder, input#apellido::placeholder, input#correo::placeholder, .form-input::placeholder {
    color: #9CA3AF !important;
    font-size: 14px !important;
}

input#name:focus, input#apellido:focus, input#correo:focus, .form-input:focus {
    border-color: #60A5FA !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1) !important;
    outline: none !important;
}

.space-lines {
    width: 100% !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 12px !important;
    margin: 20px 0 !important;
}

.textinline {
    color: #9CA3AF !important;
    font-size: 12px !important;
    font-weight: 400 !important;
}

span.line {
    flex: 1 !important;
    height: 1px !important;
    background-color: #E5E7EB !important;
}

.buttons {
    display: flex !important;
    gap: 12px !important;
    flex-direction: column !important;
    margin-bottom: 20px !important;
}

/* Botones personalizados de Google y Apple */
.btn-google, .btn-apple {
    width: 100% !important;
    height: 44px !important;
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 10px !important;
    border-radius: 8px !important;
    border: 1.5px solid #E5E7EB !important;
    background-color: #FFFFFF !important;
    cursor: pointer !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
    padding: 0 16px !important;
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
}

.btn-google:hover, .btn-apple:hover {
    border-color: #D1D5DB !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
    text-decoration: none !important;
}

.btn-google:active, .btn-apple:active {
    transform: translateY(1px) !important;
}

/* Iconos para los botones */
.btn-google svg, .btn-apple svg {
    width: 18px !important;
    height: 18px !important;
    flex-shrink: 0 !important;
}

/* Botón principal */
.btn-continue {
    display: flex !important;
    width: 100% !important;
    height: 48px !important;
    padding: 0 24px !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 8px !important;
    border-radius: 12px !important;
    background: #00B8F1 !important;
    border: none !important;
    cursor: pointer !important;
    transition: background-color 0.2s ease, transform 0.1s ease !important;
    margin-bottom: 12px !important;
    font-family: 'Inter', sans-serif !important;
}

.btn-continue:hover:not(:disabled) {
    background: #0EA5E9 !important;
    transform: translateY(-1px) !important;
}

.btn-continue:active:not(:disabled) {
    transform: translateY(0) !important;
}

.btn-continue span {
    color: #FFFFFF !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    line-height: 20px !important;
}

.btn-continue svg {
    width: 16px !important;
    height: 16px !important;
}

/* Estilos para el botón deshabilitado */
.btn-continue:disabled {
    background: #D1D5DB !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
    transform: none !important;
}

/* Texto de términos y condiciones */
.terms-text {
    font-size: 11px !important;
    color: #6B7280 !important;
    text-align: center !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    font-weight: 400 !important;
}

/* Checkboxes fuera del contenedor principal */
.checkboxs {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    margin-bottom: 20px !important;
}

input[type="checkbox"] {
    width: 18px !important;
    height: 18px !important;
    border: 1.5px solid #D1D5DB !important;
    accent-color: #00B8F1 !important;
    border-radius: 3px !important;
}

.checkbox-item {
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    border: 1.5px solid #E5E7EB !important;
    padding: 16px !important;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.06) !important;
    background-color: #ffffff !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.checkbox-item:hover {
    border-color: #D1D5DB !important;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.08) !important;
}

.checkbox-item label {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
    flex-grow: 1 !important;
    margin-bottom: 0 !important;
    color: #374151 !important;
    font-weight: 400 !important;
}

.checkbox-item a {
    color: #6B7280 !important;
    text-decoration: none !important;
    font-weight: 400 !important;
    transition: color 0.2s ease !important;
    flex-shrink: 0 !important;
}

.checkbox-item a:hover {
    color: #374151 !important;
}

.checkbox-item a svg {
    width: 18px !important;
    height: 18px !important;
}

/* Ocultar los botones originales de Google y Apple */
#google-signin-button-container,
#appleid-signin {
    display: none !important;
}

/* Modals */
.kanvas-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.kanvas-modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 30px;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    animation: fadeInScale 0.3s ease-out forwards;
    position: relative;
    display: flex;
    flex-direction: column;
    max-height: 90vh;
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.kanvas-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.kanvas-modal-header h2 {
    margin: 0;
    font-size: 1.8em;
    color: #333;
    font-weight: 700;
}

.kanvas-modal-close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.kanvas-modal-close:hover,
.kanvas-modal-close:focus {
    color: #333;
    text-decoration: none;
}

.kanvas-modal-body {
    padding: 10px 0;
    font-size: 1em;
    color: #555;
    overflow-y: auto;
    flex-grow: 1;
}

.kanvas-modal-body h3 {
    font-size: 1.4em;
    color: #444;
    margin-top: 20px;
    margin-bottom: 15px;
    font-weight: 600;
}

.kanvas-modal-body ul {
    list-style-type: disc;
    margin-left: 25px;
    padding-left: 0;
    margin-bottom: 20px;
}

.kanvas-modal-body ul li {
    margin-bottom: 10px;
    line-height: 1.5;
}

.kanvas-modal-footer {
    border-top: 1px solid #eee;
    padding-top: 20px;
    margin-top: 20px;
    text-align: right;
}

.kanvas-modal-close-btn {
    padding: 10px 20px;
    background-color: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 500;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.kanvas-modal-close-btn:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

/* Device Compatibility Modal */
.device-list-container {
    margin-top: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    max-height: 250px;
    overflow-y: auto;
    background-color: #f9f9f9;
}

.compatible-devices-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.compatible-devices-list li {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    font-size: 0.95em;
    color: #444;
}

.compatible-devices-list li:last-child {
    border-bottom: none;
}

/* Success Modal */
.success-body {
    text-align: center;
}

.success-body p {
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* Error Modal */
.error-body {
    text-align: center;
    color: #d9534f;
    font-weight: 500;
}

/* Loading Modal */
#loading-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background-color: white !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 9999 !important;
    padding: 0 !important;
}

.loading-content {
    text-align: center;
    background-color: #FFFFFF;
    padding: 40px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 90%;
    max-height: 90%;
    overflow: auto;
}

.loading-main-text {
    font-size: 1.5em;
    color: #333;
    margin-top: 20px;
    margin-bottom: 10px;
}

.loading-subtitle-text {
    font-size: 1em;
    color: #555;
    line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .kanvas-esim-container {
        margin: 50px auto !important;
        
    }

    .form {
        padding: 20px !important;
    }

    .form-group {
        flex-direction: column;
        gap: 16px;
    }

    .form-item {
        width: 100%;
    }

    .kanvas-modal-content {
        width: 95%;
        padding: 20px;
    }

    .kanvas-modal-header h2 {
        font-size: 1.5em;
    }
}

/* Device Compatibility Modal - Nuevos estilos para dropdowns */
.device-dropdown-container {
    margin-bottom: 16px;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    overflow: hidden;
    background-color: #ffffff;
}

.device-dropdown-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    cursor: pointer;
    background-color: #F9FAFB;
    transition: background-color 0.2s ease;
    user-select: none;
}

.device-dropdown-header:hover {
    background-color: #F3F4F6;
}

.device-dropdown-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 500;
    color: #374151;
    font-size: 16px;
}

.dropdown-arrow {
    transition: transform 0.2s ease;
}

.device-dropdown-header.active .dropdown-arrow {
    transform: rotate(180deg);
}

.device-dropdown-content {
    padding: 0;
    border-top: 1px solid #E5E7EB;
    max-height: 300px;
    overflow-y: auto;
}

.device-category {
    padding: 16px;
    border-bottom: 1px solid #F3F4F6;
}

.device-category:last-child {
    border-bottom: none;
}

.device-category h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #4B5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.device-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
}

.device-list li {
    padding: 8px 12px;
    background-color: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    font-size: 13px;
    color: #374151;
    transition: all 0.2s ease;
}

.device-list li:hover {
    background-color: #EEF2FF;
    border-color: #C7D2FE;
    color: #3730A3;
}

/* Estilos responsivos para dispositivos móviles */
@media (max-width: 600px) {
    .device-list {
        grid-template-columns: 1fr;
    }
    
    .device-dropdown-header {
        padding: 12px;
    }
    
    .device-dropdown-title {
        font-size: 14px;
    }
    
    .device-category {
        padding: 12px;
    }
}

/* Estilos para los pasos animados */
.steps-container {
    max-width: 350px;
    margin: 20px auto;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    to {
        opacity: 1;
    }
}

.step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px 0;
    opacity: 0;
    transform: translateX(-20px);
    transition: all 0.6s ease;
}

.step.active {
    opacity: 1;
    transform: translateX(0);
}

.step-number {
    background: #00B8F1;
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    margin-right: 12px;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.step.active .step-number {
    transform: scale(1.1);
}

.step-content {
    flex: 1;
    text-align: left;
}

.step-title {
    font-weight: 600;
    color: #333;
    font-size: 16px;
    margin-bottom: 4px;
}

.step-description {
    color: #666;
    font-size: 14px;
    line-height: 1.4;
}

/* Checkmark animation */
.step.completed .step-number {
    background: #28a745;
}

.step.completed .step-number::after {
    content: '✓';
    animation: checkmark 0.3s ease;
}

@keyframes checkmark {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}